@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ============================================
   Neon Noir — тёмная тема с неоном
   ============================================ */

:root {
    --ink: #f8fbff;
    --muted: #94a3b8;
    --surface: radial-gradient(circle at top right, #1f2a40 0%, #0a0f1a 65%, #040308 100%);
    --panel: rgba(5, 7, 15, 0.85);
    --card: rgba(11, 16, 31, 0.8);
    --stroke: rgba(148, 163, 184, 0.18);
    --accent: #7c3aed;
    --accent-2: #22d3ee;
    --glow: 0 25px 90px rgba(124, 58, 237, 0.35);
    --radius: 28px;
    --page-gutter: clamp(16px, 5vw, 56px);
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    margin: 0;
    font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--surface);
    color: var(--ink);
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    padding: 0;
    margin: 0;
    list-style: none;
}

figure {
    margin: 0;
}

h1 {
    margin: 0 0 12px;
    font-size: clamp(24px, 2vw, 32px);
    font-weight: 900;
    font-family: var(--font-heading);
}

h2 {
    margin: 0 0 12px;
    font-size: clamp(20px, 2vw, 30px);
    font-weight: 900;
    font-family: var(--font-heading);
}

.media-asset {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: block;
}

.media-asset img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page {
    min-height: 100vh;
    padding: 0 var(--page-gutter);
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* ============================================
   Header / Footer
   ============================================ */

.wrap-footer {
    margin-top: auto;
}

.site-header,
.site-footer {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 28px clamp(24px, 6vw, 96px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    border-radius: 0;
    background: var(--panel);
    border: 1px solid var(--stroke);
    box-shadow: var(--glow);
    backdrop-filter: blur(18px);
    border-left: none;
    border-right: none;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-start;
}

.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    border-radius: 8px;
}

.brand-text {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 4px;
}

.brand-mark {
    color: var(--ink, inherit);
    font-size: 26px;
    font-weight: 720;
    line-height: 31px;
    word-wrap: break-word;
    margin: 0;
}

.brand-caption {
    margin: 0;
    color: var(--muted, #94a3b8);
    font-size: 13px;
    font-weight: 400;
    line-height: 15px;
    word-wrap: break-word;
}

.site-nav {
    display: flex;
    gap: 18px;
    font-size: 0.95rem;
}

.site-nav a {
    padding: 6px 0;
    color: var(--muted);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    border-color: var(--accent-2);
    color: var(--ink);
}

.search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.14);
}

.search input {
    background: transparent;
    border: none;
    color: var(--ink);
    min-width: 220px;
}

.search input::placeholder {
    color: rgba(148, 163, 184, 0.7);
}

.search button {
    border: none;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #010101;
    font-weight: 600;
    border-radius: 999px;
    padding: 8px 18px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.3);
}

/* Burger Menu */
.burger-menu {
    position: relative;
    z-index: 1000;
}

.burger-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}

.burger-button:hover {
    color: var(--ink);
}

.burger-icon {
    width: 24px;
    height: 18px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.burger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: currentColor;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.menu-content {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background: var(--panel);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    border-left: 1px solid var(--stroke);
    backdrop-filter: blur(18px);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--stroke);
}

.menu-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
}

.menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
}

.menu-close:hover {
    color: var(--ink);
}

.menu-search {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--stroke);
}

.menu-search form {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.14);
}

.menu-search input {
    background: transparent;
    border: none;
    padding: 8px 12px;
    flex: 1;
    min-width: 0;
    color: var(--ink);
}

.menu-search input::placeholder {
    color: rgba(148, 163, 184, 0.7);
}

.menu-search button {
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    white-space: nowrap;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #010101;
    font-weight: 600;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(34, 211, 238, 0.3);
}

.menu-nav {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--stroke);
}

.menu-nav a {
    display: block;
    padding: 12px 0;
    text-decoration: none;
    color: var(--muted);
    font-size: 1rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.menu-nav a:hover,
.menu-nav a.active {
    border-color: var(--accent-2);
    color: var(--ink);
    font-weight: 600;
}

.menu-section {
    padding-bottom: 16px;
}

.menu-section-title {
    margin: 0 0 12px 0;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-list li a {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: var(--muted);
}

.menu-list li a:hover,
.menu-list li a.active {
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink);
}

/* Menu animations */
.menu-enter-active,
.menu-leave-active {
    transition: opacity 0.3s ease;
}

.menu-enter-from,
.menu-leave-to {
    opacity: 0;
}

.menu-enter-active .menu-content,
.menu-leave-active .menu-content {
    transition: transform 0.3s ease;
}

.menu-enter-from .menu-content,
.menu-leave-to .menu-content {
    transform: translateX(100%);
}

@media (max-width: 768px) {
    .menu-content {
        max-width: 100%;
    }
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-links a {
    color: var(--accent-2);
    font-weight: 500;
}

.site-footer {
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: center;
}

.footer-domain {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-copyright {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}

/* ============================================
   Utilities
   ============================================ */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(124, 58, 237, 0.18);
    color: var(--ink);
    border: 1px solid rgba(124, 58, 237, 0.4);
}

.pill-outline {
    border: 1px solid rgba(34, 211, 238, 0.6);
    background: transparent;
    color: var(--accent-2);
}

.muted,
.description,
.excerpt,
.meta {
    color: var(--muted);
}

.meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    margin: 12px 0;
}

.btn {
    display: inline-flex;
    border: none;
    border-radius: 999px;
    padding: 12px 28px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (max-width: 768px) {
    .btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        letter-spacing: 0.06em;
    }
}

.load-more {
    display: flex;
}

.load-more-btn {
    margin: 0 auto;
    justify-content: center;
    min-width: 220px;
}

.btn.primary {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #010101;
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.35);
}

.btn.secondary {
    background: rgba(148, 163, 184, 0.15);
    color: var(--ink);
    border: 1px solid var(--stroke);
}

.btn.ghost {
    border: 1px solid rgba(124, 58, 237, 0.5);
    background: transparent;
    color: var(--ink);
}

.btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* ============================================
   Главная
   ============================================ */

.hero {
    display: grid;
    grid-template-columns: 2fr 1.1fr;
    gap: 32px;
    padding: 40px;
    border-radius: calc(var(--radius) + 8px);
    border: 1px solid var(--stroke);
    background: linear-gradient(130deg, rgba(8, 12, 25, 0.9), rgba(16, 24, 48, 0.75));
    box-shadow: var(--glow);
    backdrop-filter: blur(14px);
}

.hero-media img {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(34, 211, 238, 0.25);
    box-shadow: 0 25px 60px rgba(3, 7, 18, 0.7);
}


.hero-feature {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    padding: 32px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 18px;
    border: 1px solid rgba(124, 58, 237, 0.4);
    background: rgba(2, 6, 23, 0.4);
    isolation: isolate;
}

.hero-feature + .hero-feature {
    margin-top: 20px;
}

.hero-feature::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.2) 0%, rgba(2, 6, 23, 0.85) 90%);
    z-index: 1;
    pointer-events: none;
}

.hero-feature .hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    aspect-ratio: initial;
}

.hero-feature .hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    border: none;
    box-shadow: none;
    opacity: 0.82;
}

.hero-feature .feature-link > *:not(.hero-media) {
    position: relative;
    z-index: 2;
}

.hero-bullets {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    color: var(--muted);
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.highlight-stack {
    border: 1px solid var(--stroke);
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    background: var(--card);
}

.highlight-card {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.highlight-card:last-child {
    border-bottom: none;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.article-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.category-card {
    padding: 24px;
    border-radius: 24px;
    background: var(--card);
    border: 1px solid var(--stroke);
    box-shadow: var(--glow);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-list li {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 10px;
    margin-top: 10px;
}

.category-list-link {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

/* ============================================
   Search & Cards
   ============================================ */

.search-page,
.article-page,
.category-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.search-item,
.article-card {
    border: 1px solid var(--stroke);
    border-radius: 22px;
    background: var(--panel);
    box-shadow: 0 18px 50px rgba(4, 5, 12, 0.9);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.search-item:hover,
.article-card:hover {
    border-color: rgba(34, 211, 238, 0.5);
    transform: translateY(-4px);
}

.search-item a,
.article-card a,
.article-card .card-link {
    display: flex;
    gap: 16px;
    padding: 20px;
    color: inherit;
}

.article-card .media-asset {
    flex-shrink: 0;
    max-width: 300px;
    width: 100%;
}

.category-hero .hero-link {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
    gap: 32px;
    align-items: center;
}

.category-hero .hero-cover {
    flex-shrink: 0;
    max-width: 550px;
    width: 100%;
}

.category-hero .hero-copy {
    flex: 1;
    min-width: 0;
}

.hero-feature .feature-link {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 18px;
    width: 100%;
    height: 100%;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
}

.highlight-link {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.category-lead-link {
    display: block;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============================================
   Article / Category Hero
   ============================================ */

.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.8);
    flex-wrap: wrap;
}

.article-date {
    color: rgba(148, 163, 184, 0.8);
}

.article-separator {
    color: rgba(148, 163, 184, 0.6);
}

.article-category,
.article-tag {
    color: var(--accent-2);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.article-category:hover,
.article-tag:hover {
    opacity: 0.7;
}

.article-tag-separator {
    color: rgba(148, 163, 184, 0.6);
}

.article-header {
    margin-bottom: 24px;
}

.article-subtitle {
    margin: 0;
    font-size: 1.1rem;
    color: rgba(226, 232, 240, 0.9);
    line-height: 1.6;
}

.article-cover {
    margin: 24px 0;
}

.article-cover img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.article-body {
    margin: 24px 0;
    line-height: 1.7;
}

.rich-text-block {
    padding: 0;
    line-height: 1.7;
}

.article-author {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--stroke);
    font-size: 0.9rem;
    color: rgba(148, 163, 184, 0.8);
}

.article-author-label {
    font-weight: 600;
    margin-right: 8px;
}

.article-author-name {
    color: rgba(226, 232, 240, 0.95);
}

.category-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    padding: 32px;
    border-radius: 30px;
    border: 1px solid var(--stroke);
    background: linear-gradient(140deg, rgba(13, 19, 34, 0.8), rgba(24, 4, 37, 0.8));
}

.hero-cover {
    width: 100%;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(124, 58, 237, 0.35);
}

.hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================
   Content Layout
   ============================================ */

.content-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.content-layout__details {
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 0;
}

.content-layout__sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content-layout__sticky {
    position: sticky;
    top: 24px;
}

@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .content-layout__sticky {
        position: static;
    }
}

/* ============================================
   Страница автора
   ============================================ */

.author-header {
    padding-bottom: 1.5rem;
}

.author-info {
    max-width: 100%;
}

.author-name {
    font-size: 23px;
    font-weight: 900;
    line-height: 29px;
    margin: 0 0 1rem 0;
}

.author-caption {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
}

.author-separator {
    color: var(--muted);
}

.author-caption-text {
    font-size: 0.9rem;
}

.author-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ============================================
   Error
   ============================================ */

.error {
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.error .panel {
    width: min(860px, 100%);
    padding: 48px;
    border-radius: 32px;
    border: 1px solid rgba(94, 234, 212, 0.4);
    background: rgba(2, 6, 23, 0.9);
    box-shadow: 0 45px 90px rgba(2, 6, 23, 0.9);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.error .card {
    border: 1px dashed rgba(94, 234, 212, 0.4);
    border-radius: 20px;
    padding: 20px;
    background: rgba(15, 23, 42, 0.6);
}

.error .actions {
    display: flex;
    gap: 12px;
}

/* ============================================
   States
   ============================================ */

.loader,
.empty {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.loader-full {
    width: 100%;
    justify-content: center;
    padding: 48px 24px;
}

.loader-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.loader-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-2);
    animation: pulse 1.4s ease-in-out infinite;
}

.loader-dot:nth-child(1) {
    animation-delay: 0s;
}

.loader-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes pulse {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    30% {
        opacity: 1;
        transform: scale(1);
    }
}

.spinner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(148, 163, 184, 0.3);
    border-top-color: var(--accent-2);
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   Sidebar Top News Widget
   ============================================ */

.sidebar-topnews {
    background-color: var(--card);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--stroke);
}

.sidebar-topnews__title {
    border-bottom: 2px solid var(--accent);
    font: 800 17px/20px 'Space Grotesk', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    padding-bottom: 16px;
    color: var(--ink);
}

.sidebar-topnews__topics {
    border-bottom: 1px solid var(--stroke);
    padding-bottom: 12px;
}

.sidebar-topnews__topics:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-topnews .btn {
    display: block;
    margin: 16px auto 0;
    max-width: max-content;
}

/* ============================================
   Card Mini Component
   ============================================ */

.card-mini {
    border-bottom: 1px solid var(--stroke);
    display: -webkit-box;
    display: flex;
    padding: 10px 0;
    text-decoration: none;
}

.card-mini:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.card-mini__image-wrap {
    -webkit-box-ordinal-group: 2;
    border-radius: calc(var(--radius) / 3);
    height: 40px;
    margin: 4px 0 -4px 10px;
    min-width: 40px;
    order: 1;
    overflow: hidden;
    width: 40px;
}

.card-mini__image {
    height: auto;
    line-height: 0;
    width: 40px;
}

.card-mini__text {
    -webkit-box-flex: 1;
    flex-grow: 1;
}

.card-mini__title {
    color: var(--ink);
    display: inline;
    font: 400 14px/1.25 'Space Grotesk', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-transition: color 0.2s ease-out;
    transition: color 0.2s ease-out;
    margin: 0;
}

.card-mini__title:after {
    content: ' ';
}

.card-mini:visited .card-mini__title {
    color: var(--muted);
}

@supports (-moz-appearance: none) {
    .card-mini:visited .card-mini__title {
        color: var(--ink);
    }
}

.card-mini:hover .card-mini__title {
    color: var(--accent);
}

.card-mini__info {
    -webkit-box-align: center;
    align-items: center;
    color: var(--muted);
    display: -webkit-box;
    display: flex;
    flex-wrap: wrap;
    font: 400 10px/1.35 'Space Grotesk', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    margin-top: 3px;
}

.card-mini__info-item {
    margin-right: 5px;
}

.card-mini__icon {
    height: 14px;
    margin-right: 5px;
    vertical-align: middle;
    width: 14px;
}

.card-mini__icon:last-child {
    margin-right: 0;
}

.card-mini__icon._play {
    fill: var(--accent);
}

.card-mini__icon._external {
    color: var(--muted);
    height: 15px;
}

.card-mini__icon._exclusive {
    height: 16px;
    margin-bottom: -1px;
    margin-top: -1px;
    width: 16px;
}

.card-mini__icon._partner {
    height: 14px;
    max-width: 80px;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
}

.card-mini__ad-title {
    -webkit-box-ordinal-group: 0;
    background-color: rgba(148, 163, 184, 0.2);
    border-radius: calc(var(--radius) / 4);
    color: var(--muted);
    font: 400 10px/1.35 'Space Grotesk', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    order: -1;
    padding: 1px 5px;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1100px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 768px) {
    .hero {
        padding: 28px;
    }

    .hero-feature {
        padding: 24px;
    }

    .category-card {
        padding: 20px;
    }

    .category-hero {
        padding: 24px;
    }

    .category-hero .hero-cover {
        max-width: 450px;
    }

    .category-hero .hero-link {
        gap: 24px;
    }
}

/* ============================================
   Tags Select
   ============================================ */
.tags-select {
    display: none;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tag-link.active .pill {
    background: var(--accent);
    color: var(--ink);
    border-color: var(--accent-2);
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.4);
}

.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

@media (max-width: 768px) {
    .tags-select {
        display: block;
    }

    .tags-list {
        display: none;
    }
}

.tags-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    color: var(--ink);
    font-size: 1rem;
    font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23f8fbff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tags-select:hover {
    border-color: rgba(148, 163, 184, 0.3);
}

.tags-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

.tags-select option {
    background: var(--card);
    color: var(--ink);
    padding: 0.5rem;
}

@media (max-width: 720px) {
    .page {
        padding: 0 16px;
        gap: 20px;
    }

    .content {
        gap: 20px;
    }

    .site-header,
    .site-footer {
        padding: 20px 16px;
    }

    .hero {
        padding: 20px;
        gap: 20px;
    }

    .hero-feature {
        padding: 20px;
        min-height: auto;
    }

    .article-header {
        padding: 0;
        margin-bottom: 16px;
    }

    .category-hero {
        padding: 20px;
        gap: 20px;
    }

    .category-hero .hero-link {
        flex-direction: column-reverse;
        gap: 16px;
    }

    .category-hero .hero-cover {
        max-width: 100%;
        width: 100%;
    }

    .article-body {
        padding: 0;
        margin: 16px 0;
    }

    .category-card {
        padding: 16px;
    }

    .search-item a,
    .article-card a,
    .article-card .card-link {
        flex-direction: column;
        padding: 16px;
        gap: 12px;
    }

    .article-card .media-asset {
        max-width: 100%;
        width: 100%;
    }

    .highlight-card {
        padding: 16px 20px;
    }

    .sidebar-topnews {
        padding: 16px;
    }

    .error {
        padding: 0;
    }

    .error .panel {
        padding: 24px;
    }

    .error .actions {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .search-page,
    .article-page,
    .category-page {
        gap: 16px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .article-grid {
        gap: 12px;
    }

    .search input {
        min-width: 150px;
    }
}

