:root {
    color-scheme: dark;
    --bg-dark: #0e1526;
    --bg-card: #1a1e2e;
    --text-white: #f5f5f5;
    --text-gray: rgba(245, 245, 245, 0.7);
    --accent-blue: #1f1ade;
    --accent-cyan: #57d2dd;
    --accent-purple: #093364;
    --gradient-primary: linear-gradient(135deg, #1f1ade 0%, #57d2dd 100%);
    --gradient-card: linear-gradient(180deg, rgba(26, 30, 46, 0.7) 0%, rgba(26, 30, 46, 0.9) 100%);
    --surface-glass: rgba(255, 255, 255, 0.1);
    --surface-glass-strong: rgba(255, 255, 255, 0.18);
    --border-subtle: rgba(255, 255, 255, 0.05);
    --border-soft: rgba(255, 255, 255, 0.1);
    --control-border: rgba(255, 255, 255, 0.35);
    --trend-tile-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    --newsletter-bg: linear-gradient(0deg, rgba(26, 30, 46, 1) 0%, rgba(26, 30, 46, 0.5) 100%);
    --footer-bg: #020617;
    --footer-muted: rgba(255, 255, 255, 0.3);
    --topics-card-bg: linear-gradient(160deg, rgba(31, 26, 222, 0.12), rgba(87, 210, 221, 0.12), rgba(26, 30, 46, 0.75));
    --category-card-bg: linear-gradient(145deg, rgba(26, 30, 46, 0.6), rgba(26, 30, 46, 0.8));
    --glow-card-bg: linear-gradient(180deg, rgba(26, 30, 46, 0.6) 0%, rgba(26, 30, 46, 0.8) 100%);
    --glow-card-small-bg: rgba(26, 30, 46, 0.4);
    --tag-bg: rgba(31, 26, 222, 0.2);
    --tag-border: rgba(31, 26, 222, 0.3);
    --inset-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    --category-hover-shadow: 0 0 20px rgba(87, 210, 221, 0.3), inset 0 0 10px rgba(87, 210, 221, 0.1);
    --font-main: 'Montserrat', sans-serif;
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg-dark: #f5f7fb;
    --bg-card: #ffffff;
    --text-white: #0f172a;
    --text-gray: rgba(15, 23, 42, 0.75);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 247, 255, 0.9) 100%);
    --surface-glass: rgba(15, 23, 42, 0.04);
    --surface-glass-strong: rgba(15, 23, 42, 0.08);
    --border-subtle: rgba(15, 23, 42, 0.08);
    --border-soft: rgba(15, 23, 42, 0.15);
    --control-border: rgba(15, 23, 42, 0.25);
    --trend-tile-bg: linear-gradient(135deg, rgba(15, 23, 42, 0.03) 0%, rgba(15, 23, 42, 0.08) 100%);
    --newsletter-bg: linear-gradient(0deg, rgba(255, 255, 255, 1) 0%, rgba(237, 241, 255, 0.95) 100%);
    --footer-bg: #e8ebf7;
    --footer-muted: rgba(15, 23, 42, 0.6);
    --topics-card-bg: linear-gradient(160deg, rgba(87, 210, 221, 0.08), rgba(255, 255, 255, 0.9));
    --category-card-bg: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(243, 246, 255, 0.95));
    --glow-card-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 244, 255, 0.95) 100%);
    --glow-card-small-bg: rgba(255, 255, 255, 0.9);
    --tag-bg: rgba(87, 210, 221, 0.15);
    --tag-border: rgba(87, 210, 221, 0.3);
    --inset-shadow: inset 0 0 12px rgba(15, 23, 42, 0.08);
    --category-hover-shadow: 0 15px 30px rgba(15, 23, 42, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

#neural-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: rgba(26, 30, 46, 0.7);
    /* Semi-transparent dark background (using new palette #1a1e2e) */
    backdrop-filter: blur(20px);
    /* Heavy blur for glass effect */
    -webkit-backdrop-filter: blur(20px);
    /* Safari support */
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-soft);
    transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;

    /* The "Four Big Shapes" Glow Effect - Updated Colors */
    background-image:
        radial-gradient(circle at 15% 50%, rgba(87, 210, 221, 0.15) 0%, transparent 50%),
        /* #57d2dd */
        radial-gradient(circle at 40% 50%, rgba(9, 51, 100, 0.3) 0%, transparent 50%),
        /* #093364 */
        radial-gradient(circle at 65% 50%, rgba(87, 210, 221, 0.15) 0%, transparent 50%),
        /* #57d2dd */
        radial-gradient(circle at 90% 50%, rgba(9, 51, 100, 0.3) 0%, transparent 50%);
    /* #093364 */
    background-size: 200% 200%;
    /* Ensure gradients blend smoothly */
    animation: headerGlowPulse 10s ease-in-out infinite alternate;
}

.site-header.scrolled {
    background-color: rgba(10, 14, 28, 0.9);
    border-bottom: 1px solid rgba(87, 210, 221, 0.32);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), 0 0 16px rgba(87, 210, 221, 0.12);
}

html[data-theme="light"] .site-header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    background-image: none;
}

html[data-theme="light"] .site-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 20px 32px rgba(15, 23, 42, 0.12);
}

@keyframes headerGlowPulse {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 140px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

.site-header.scrolled .logo img {
    height: 70px;
}

.main-nav ul {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-gray);
    font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-white);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

body[data-home-ready="false"] .home-hydrate {
    opacity: 1;
    transform: none;
    pointer-events: none;
}

body[data-home-ready="false"] .home-hydrate h3,
body[data-home-ready="false"] .home-hydrate h4,
body[data-home-ready="false"] .home-hydrate p,
body[data-home-ready="false"] .home-hydrate .meta,
body[data-home-ready="false"] .home-hydrate .article-meta,
body[data-home-ready="false"] .home-hydrate .article-meta span,
body[data-home-ready="false"] .home-hydrate .topic-tag,
body[data-home-ready="false"] .home-hydrate .categories-placeholder {
    color: transparent !important;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.06),
        rgba(255, 255, 255, 0.16),
        rgba(255, 255, 255, 0.06)
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
    border-radius: 12px;
}

body[data-home-ready="false"] .home-hydrate h3,
body[data-home-ready="false"] .home-hydrate h4,
body[data-home-ready="false"] .home-hydrate p,
body[data-home-ready="false"] .home-hydrate .categories-placeholder {
    display: block;
    width: 100%;
}

body[data-home-ready="false"] .home-hydrate img {
    filter: grayscale(100%);
    opacity: 0.6;
}

html[data-theme="light"] body[data-home-ready="false"] .home-hydrate h3,
html[data-theme="light"] body[data-home-ready="false"] .home-hydrate h4,
html[data-theme="light"] body[data-home-ready="false"] .home-hydrate p,
html[data-theme="light"] body[data-home-ready="false"] .home-hydrate .meta,
html[data-theme="light"] body[data-home-ready="false"] .home-hydrate .article-meta,
html[data-theme="light"] body[data-home-ready="false"] .home-hydrate .article-meta span,
html[data-theme="light"] body[data-home-ready="false"] .home-hydrate .topic-tag,
html[data-theme="light"] body[data-home-ready="false"] .home-hydrate .categories-placeholder {
    background: linear-gradient(
        90deg,
        rgba(15, 23, 42, 0.08),
        rgba(15, 23, 42, 0.16),
        rgba(15, 23, 42, 0.08)
    );
}

body[data-home-ready="true"] .home-hydrate {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-soft);
    background: var(--surface-glass);
    color: var(--text-white);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.menu-toggle i {
    position: absolute;
    font-size: 1rem;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu-toggle .icon-close {
    opacity: 0;
    transform: scale(0.9);
}

.menu-toggle.is-open .icon-close {
    opacity: 1;
    transform: scale(1);
}

.menu-toggle.is-open .icon-bars {
    opacity: 0;
    transform: scale(0.9);
}

.menu-toggle:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-1px);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(6, 10, 20, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1200;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 110px 20px 40px;
}

.mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-inner {
    width: min(360px, 100%);
    background: var(--bg-card);
    border-radius: 22px;
    border: 1px solid var(--border-soft);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.45);
}

.mobile-menu-title {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.mobile-menu a {
    padding: 0.75rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    background: var(--surface-glass);
    font-weight: 600;
    color: var(--text-white);
}

.mobile-menu a:hover {
    border-color: rgba(87, 210, 221, 0.5);
    color: var(--accent-cyan);
}

body.menu-open {
    overflow: hidden;
}

@media (min-width: 901px) {
    .mobile-menu {
        display: none;
    }
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.2rem;
    cursor: pointer;
}

.theme-toggle {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-soft);
    background: var(--surface-glass);
    color: var(--text-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.theme-toggle i {
    position: absolute;
    font-size: 1rem;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.theme-toggle .icon-dark {
    color: currentColor;
}

.theme-toggle .icon-light {
    opacity: 0;
    transform: translateY(6px);
    color: #fbbf24;
}

.theme-toggle.is-light .icon-light {
    opacity: 1;
    transform: translateY(0);
}

.theme-toggle.is-light .icon-dark {
    opacity: 0;
    transform: translateY(-6px);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    border-color: var(--accent-cyan);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.user-profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.user-profile i {
    color: var(--text-white);
}

.user-profile .user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gray);
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-profile.is-logged-in .user-name {
    color: var(--text-white);
}

.user-profile.is-logged-out i {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26, 30, 46, 0.3) 0%, var(--bg-dark) 100%);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-bar-container {
    background: var(--surface-glass);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    border-radius: 50px;
    display: flex;
    max-width: 500px;
    margin: 0 auto 2rem;
    border: 1px solid var(--border-soft);
}

.search-bar-container input {
    flex: 1;
    background: none;
    border: none;
    padding: 0.8rem 1.5rem;
    color: var(--text-white);
    font-size: 1rem;
    outline: none;
}

.search-bar-container input::placeholder {
    color: var(--text-gray);
    opacity: 0.8;
}

.search-panel {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 110px 24px 32px;
    background: rgba(4, 10, 22, 0.72);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1600;
}

.search-panel.is-open {
    opacity: 1;
    pointer-events: auto;
}

.search-panel-card {
    width: min(960px, 100%);
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border-soft);
    box-shadow: 0 35px 90px rgba(2, 8, 23, 0.6);
    display: flex;
    flex-direction: column;
    max-height: min(78vh, 760px);
    overflow: hidden;
}

.search-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.6rem 1.8rem 0.8rem;
}

.search-panel-kicker {
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.search-panel-header h2 {
    font-size: 1.6rem;
    line-height: 1.2;
}

.search-panel-close {
    background: var(--surface-glass);
    border: 1px solid var(--border-soft);
    color: var(--text-white);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.search-panel-close:hover {
    transform: scale(1.05);
    background: var(--surface-glass-strong);
}

.search-panel .search-bar-container {
    max-width: none;
    margin: 0 1.8rem 1rem;
}

.search-panel-meta {
    padding: 0 1.8rem;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.search-results {
    padding: 1.2rem 1.8rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-result-card {
    cursor: pointer;
}

.search-empty {
    padding: 1.2rem;
    border-radius: 16px;
    border: 1px dashed var(--border-soft);
    color: var(--text-gray);
    background: var(--surface-glass);
}

.search-suggestions {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.search-suggestions-title {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-gray);
}

.search-suggestion-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.search-suggestion-list button {
    background: var(--tag-bg);
    border: 1px solid var(--tag-border);
    color: var(--text-white);
    border-radius: 999px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.search-suggestion-list button:hover {
    background: var(--accent-blue);
    color: #ffffff;
    transform: translateY(-1px);
}

body.search-open {
    overflow: hidden;
}

html[data-theme="light"] .search-panel {
    background: rgba(236, 242, 255, 0.75);
}

html[data-theme="light"] .search-panel-close {
    background: rgba(255, 255, 255, 0.9);
}

@media (max-width: 900px) {
    .search-panel {
        padding: 90px 18px 24px;
    }

    .search-panel-card {
        max-height: 82vh;
    }

    .search-panel .search-bar-container {
        flex-direction: column;
        gap: 0.6rem;
        padding: 0.8rem;
    }

    .search-panel .search-bar-container input {
        padding: 0.75rem 1rem;
    }

    .search-panel .btn-primary {
        width: 100%;
    }
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: scale(1.05);
}

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

.tag {
    background: var(--tag-bg);
    color: var(--accent-blue);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--tag-border);
    cursor: pointer;
    transition: all 0.3s;
}

.tag:hover {
    background: var(--accent-blue);
    color: white;
}

/* Sections General */
.section {
    padding: 3rem 0;
}

.section-header {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-white);
}

.section-header i {
    color: var(--accent-purple);
    /* Sparkle color */
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-blue);
}

.card-image {
    height: 180px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.5s;
}

.news-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
    background: var(--gradient-card);
}

.card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.card-content .meta {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Editorial Section */
.editorial-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.main-article {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 400px;
}

.main-article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.article-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    background: linear-gradient(0deg, rgba(4, 8, 18, 0.98) 0%, rgba(4, 8, 18, 0.9) 60%, rgba(4, 8, 18, 0.65) 85%, rgba(4, 8, 18, 0.45) 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 1;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.article-overlay h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.85);
}

.article-overlay p,
.article-overlay .article-meta {
    text-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.meta-chip {
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(87, 210, 221, 0.15);
    border: 1px solid rgba(87, 210, 221, 0.4);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

.meta-time {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.meta-sep {
    margin: 0 0.35rem;
    color: var(--text-gray);
}

.meta-reading {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

.meta-reading i {
    color: var(--accent-blue);
    font-size: 0.85rem;
}

.article-time {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
}

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

.side-card {
    display: flex;
    gap: 1rem;
    background: var(--bg-card);
    padding: 0.8rem;
    border-radius: 12px;
    align-items: center;
    transition: background 0.3s;
}

.side-card:hover {
    background: var(--surface-glass);
}

.side-card img {
    width: 80px;
    height: 80px;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    object-fit: cover;
    object-position: center top;
    flex-shrink: 0;
}

.side-content h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.side-content .meta {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* Trends Section */
.trends-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.trend-item {
    background: var(--trend-tile-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.trend-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.trend-item:hover::before {
    opacity: 1;
}

.trend-item .category {
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.trend-item h3 {
    font-size: 1.2rem;
}

/* Newsletter */
.newsletter {
    padding: 6rem 0;
    background: var(--newsletter-bg);
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter p {
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-soft);
    background: var(--surface-glass);
    color: var(--text-white);
    outline: none;
}

.newsletter-form button {
    padding: 0 2rem;
    border-radius: 8px;
    border: none;
    background: var(--accent-blue);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* Footer */
.site-footer {
    background: var(--footer-bg);
    /* Darker than body */
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo img {
    height: 120px;
    width: auto;
    display: block;
}

.footer-brand p {
    color: var(--text-gray);
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: var(--surface-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    color: var(--accent-blue);
}

.social-icons a:hover {
    background: var(--accent-blue);
    transform: translateY(-3px);
    color: #ffffff;
}

.social-x-mark {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-white);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--footer-muted);
    font-size: 0.85rem;
}

/* Top Section Adjustment */
.top-section {
    padding-top: 200px;
    /* Account for fixed header */
}

.page-intro {
    padding-top: 200px;
    padding-bottom: 1.5rem;
}

.page-intro-content {
    max-width: 60ch;
}

.page-intro-content h1 {
    font-size: clamp(1.9rem, 2.6vw, 2.8rem);
    margin-bottom: 0.35rem;
    line-height: 1.15;
    text-wrap: balance;
}

.page-intro-content p {
    font-size: 1rem;
    color: var(--text-gray);
}

.no-wrap {
    white-space: nowrap;
}

.preferences-panel {
    padding-top: 1.5rem;
    padding-bottom: 3.5rem;
}

.preferences-card.glow-card {
    padding: clamp(1.8rem, 2.8vw, 2.6rem);
    background: rgba(12, 16, 30, 0.75);
    border-radius: 26px;
    border: 1px solid rgba(87, 210, 221, 0.18);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.preferences-header {
    margin-bottom: 1.8rem;
    max-width: 70ch;
}

.preferences-kicker {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.preferences-header h2 {
    font-size: clamp(1.4rem, 2vw, 2rem);
    margin-bottom: 0.6rem;
}

.preferences-header p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.preferences-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.landing-setting {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.landing-setting-title {
    font-size: 0.92rem;
    color: var(--text-gray);
}

.landing-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.landing-option {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.landing-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.landing-option-label {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.5rem 0.95rem;
    color: var(--text-white);
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.landing-option input:checked + .landing-option-label {
    border-color: rgba(31, 26, 222, 0.65);
    background: rgba(31, 26, 222, 0.15);
    color: #ffffff;
}

.preferences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.preference-option {
    display: block;
    position: relative;
    cursor: pointer;
}

.preference-option input {
    position: absolute;
    opacity: 0;
    inset: 0;
    pointer-events: none;
}

.preference-tile {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.preference-tile i {
    color: var(--accent-blue);
    font-size: 1.1rem;
}

.preference-title {
    font-weight: 600;
    color: var(--text-white);
}

.preference-option input:checked + .preference-tile {
    border-color: rgba(31, 26, 222, 0.6);
    background: rgba(31, 26, 222, 0.12);
    box-shadow: 0 18px 40px rgba(31, 26, 222, 0.25);
}

.preferences-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.preferences-status {
    color: var(--accent-cyan);
    font-size: 0.9rem;
}

.preferences-submit {
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    border: none;
    background: var(--accent-blue);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.preferences-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(31, 26, 222, 0.35);
}

.preferences-submit:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
    transform: none;
}

.profile-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.preferences-secondary {
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: var(--text-white);
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.preferences-secondary:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.preferences-category-block + .preferences-category-block {
    margin-top: 2.5rem;
}

.profile-intro {
    padding-bottom: 2rem;
}

.profile-intro-actions {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.auth-main {
    padding: clamp(11rem, 16vh, 13.5rem) 0 5rem;
}

.auth-container {
    display: flex;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 430px;
    padding: 2.5rem;
    margin-top: 1rem;
    background: rgba(10, 12, 24, 0.75);
    border-radius: 24px;
    border: 1px solid rgba(87, 210, 221, 0.15);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-kicker {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-label {
    font-size: 0.85rem;
    color: var(--text-gray);
    font-weight: 600;
}

.auth-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    color: var(--text-white);
    font-size: 0.95rem;
    outline: none;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.auth-submit {
    width: 100%;
    margin-top: 0.5rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.6rem 0 1.2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.auth-social {
    width: 100%;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    padding: 0.75rem 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-social:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.auth-footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-gray);
    text-align: center;
}

.auth-link {
    background: none;
    border: none;
    color: var(--accent-cyan);
    font-weight: 600;
    cursor: pointer;
}

.auth-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--accent-cyan);
    text-align: center;
}

html[data-theme="light"] .auth-card {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .auth-input {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.12);
    color: #0f172a;
}

html[data-theme="light"] .auth-input::placeholder {
    color: rgba(15, 23, 42, 0.5);
}

html[data-theme="light"] .auth-social {
    background: rgba(15, 23, 42, 0.05);
    color: #0f172a;
}

html[data-theme="light"] .auth-link,
html[data-theme="light"] .auth-status {
    color: var(--accent-blue);
}

html[data-theme="light"] .mobile-menu {
    background: rgba(245, 247, 255, 0.82);
}

html[data-theme="light"] .mobile-menu-inner {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .mobile-menu a {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

html[data-theme="light"] .preferences-card.glow-card {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(31, 26, 222, 0.12);
    box-shadow: 0 30px 60px rgba(30, 60, 90, 0.15);
}

html[data-theme="light"] .preferences-header p,
html[data-theme="light"] .preferences-status {
    color: rgba(18, 26, 40, 0.7);
}

html[data-theme="light"] .preference-tile {
    border-color: rgba(31, 26, 222, 0.12);
    background: rgba(31, 26, 222, 0.03);
}

html[data-theme="light"] .preference-title {
    color: var(--text-dark);
}

html[data-theme="light"] .preferences-secondary {
    border-color: rgba(31, 26, 222, 0.2);
    color: var(--text-dark);
}

/* Glowing Card Effects */
/* Glowing Card Effects */
.glow-card {
    background: var(--glow-card-bg);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    /* Base border */
    border: 1px solid var(--border-soft);
}

/* The "Glow" border effect - using a pseudo-element for the gradient border look */
.glow-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(to top left, rgba(87, 210, 221, 0.5) 0%, rgba(255, 255, 255, 0.1) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
    z-index: 4;
    transition: opacity 0.3s;
}

/* The bottom inner glow */
.glow-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top left, rgba(87, 210, 221, 0.15), transparent 50%);
    pointer-events: none;
    opacity: 0.6;
    z-index: 3;
    transition: opacity 0.3s;
}

.glow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(87, 210, 221, 0.2);
    border-color: transparent;
    /* Let pseudo-element handle it */
}

.glow-card:hover::before {
    opacity: 1;
    background: linear-gradient(to top left, rgba(87, 210, 221, 1) 0%, rgba(255, 255, 255, 0.2) 100%);
}

.glow-card:hover::after {
    opacity: 1;
    background: linear-gradient(to top left, rgba(87, 210, 221, 0.25), transparent 50%);
}

.glow-card-small {
    background: var(--glow-card-small-bg);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: all 0.3s ease;
}

.glow-card-small:hover {
    background: rgba(26, 30, 46, 0.6);
    border-color: rgba(87, 210, 221, 0.4);
    box-shadow: 0 0 15px rgba(87, 210, 221, 0.1);
}

html[data-theme="light"] .glow-card-small:hover {
    background: rgba(15, 23, 42, 0.08);
}

/* Three Column Grid */
.cards-grid.three-col {
    grid-template-columns: repeat(3, 1fr);
}

/* Categories Section */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--category-card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glow-card-inset {
    box-shadow: var(--inset-shadow);
}

.category-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--category-hover-shadow);
    transform: translateY(-3px);
}

.category-card i {
    font-size: 2rem;
    color: var(--accent-blue);
    filter: drop-shadow(0 0 5px rgba(31, 26, 222, 0.45));
}

.cat-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--text-white);
}

.cat-info span {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* Responsive */
@media (max-width: 992px) {
    .cards-grid.three-col {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 900px) {
    .header-container {
        gap: 1rem;
    }

    .logo img {
        height: 90px;
    }

    .site-header.scrolled .logo img {
        height: 60px;
    }

    .main-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .header-actions {
        gap: 0.75rem;
    }

    .user-profile .user-name {
        display: none;
    }
}

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

    .cards-grid.three-col {
        grid-template-columns: 1fr;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .main-nav {
        display: none;
    }

    .section {
        padding: 2.4rem 0;
    }

    .top-section {
        padding-top: 170px;
    }

    .page-intro {
        padding-top: 170px;
    }

    .main-article {
        height: clamp(300px, 70vw, 420px);
    }

    .article-overlay {
        padding: 1.5rem;
    }

    .article-overlay h3 {
        font-size: 1.55rem;
        line-height: 1.25;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .article-overlay p {
        display: none;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .para-ti-carousel .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        height: 70vh;
        min-height: 420px;
        padding-top: 120px;
    }

    .hero-content h1 {
        font-size: 2.3rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .search-bar-container {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0.75rem;
        border-radius: 18px;
    }

    .btn-primary {
        width: 100%;
    }
}

/* Para Ti Carousel */
.para-ti-carousel .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carousel-nav {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-glass-strong);
    border: 1px solid var(--control-border);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn i {
    color: inherit;
}

.nav-btn:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #ffffff;
}

.carousel-container {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    /* Space for hover effects */
    padding-top: 1rem;
    padding-right: 0.5rem;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    scroll-behavior: smooth;
}

.carousel-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.carousel-item {
    min-width: 260px;
    max-width: 260px;
    flex-shrink: 0;
}

/* Para Ti Extended Stream */
.para-ti-extended {
    padding-top: 2rem;
}

.para-ti-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.stream-column {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.stream-card {
    display: grid;
    grid-template-columns: 1.1fr 2fr;
    gap: 1rem;
    padding: 1rem;
}

.stream-thumb {
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--surface-glass);
}

.stream-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.stream-card:hover .stream-thumb img {
    transform: scale(1.05);
}

.stream-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
}

.stream-content h3 {
    font-size: 1.1rem;
    line-height: 1.35;
}

.stream-content p {
    color: var(--text-gray);
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.topics-cloud {
    position: sticky;
    top: 120px;
}

.topics-card {
    padding: 1.5rem;
    border-radius: 18px;
    background: var(--topics-card-bg);
    border: 1px solid rgba(87, 210, 221, 0.35);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 0 18px rgba(87, 210, 221, 0.25);
}

.topics-title {
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    display: inline-block;
    font-weight: 700;
}

.topics-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topic-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(87, 210, 221, 0.25);
    background: rgba(87, 210, 221, 0.08);
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.topic-tag:hover {
    background: rgba(87, 210, 221, 0.16);
    border-color: var(--accent-cyan);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 12px rgba(87, 210, 221, 0.15);
}

[data-article-id] {
    cursor: pointer;
}

.categories-placeholder {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.categories-grid[data-category-grid] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
}

@media (max-width: 1024px) {
    .categories-grid[data-category-grid] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .categories-grid[data-category-grid] {
        grid-template-columns: 1fr;
    }
}

.category-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
}

.category-card i {
    font-size: 1.5rem;
    color: var(--accent-blue);
}

.category-card .cat-info h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-white);
}

.category-card .cat-info span {
    display: block;
    margin-top: 0.2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.category-card:hover {
    border-color: rgba(87, 210, 221, 0.4);
    box-shadow: 0 35px 60px rgba(0, 0, 0, 0.4), 0 0 25px rgba(87, 210, 221, 0.12);
}

[data-article-id] {
    cursor: pointer;
}

/* Article page */
.article-body {
    background: var(--bg-dark);
    padding-top: 160px;
}

.article-main {
    padding: 3rem 0 5rem;
}

.article-container {
    max-width: 1160px;
    margin: 0 auto;
}

.article-breadcrumb {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.article-breadcrumb .breadcrumb-sep {
    color: var(--text-muted);
}

.article-breadcrumb a {
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
}

[data-article-page][data-article-ready="false"] [data-article-title],
[data-article-page][data-article-ready="false"] [data-article-chip],
[data-article-page][data-article-ready="false"] [data-article-location],
[data-article-page][data-article-ready="false"] [data-article-source],
[data-article-page][data-article-ready="false"] [data-article-share],
[data-article-page][data-article-ready="false"] [data-article-category],
[data-article-page][data-article-ready="false"] [data-article-time],
[data-article-page][data-article-ready="false"] [data-article-datetime],
[data-article-page][data-article-ready="false"] [data-article-content],
[data-article-page][data-article-ready="false"] [data-related-eyebrow],
[data-article-page][data-article-ready="false"] [data-related-arrow],
[data-article-page][data-article-ready="false"] [data-related-title],
[data-article-page][data-article-ready="false"] [data-related-subtitle],
[data-article-page][data-article-ready="false"] [data-related-articles] {
    color: transparent !important;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.06),
        rgba(255, 255, 255, 0.16),
        rgba(255, 255, 255, 0.06)
    );
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease-in-out infinite;
    border-radius: 12px;
}

[data-article-page][data-article-ready="false"] [data-article-title],
[data-article-page][data-article-ready="false"] [data-related-title],
[data-article-page][data-article-ready="false"] [data-related-subtitle] {
    display: block;
    width: 100%;
}

[data-article-page][data-article-ready="false"] [data-article-content] {
    min-height: 320px;
}

html[data-theme="light"] [data-article-page][data-article-ready="false"] [data-article-title],
html[data-theme="light"] [data-article-page][data-article-ready="false"] [data-article-chip],
html[data-theme="light"] [data-article-page][data-article-ready="false"] [data-article-location],
html[data-theme="light"] [data-article-page][data-article-ready="false"] [data-article-source],
html[data-theme="light"] [data-article-page][data-article-ready="false"] [data-article-share],
html[data-theme="light"] [data-article-page][data-article-ready="false"] [data-article-category],
html[data-theme="light"] [data-article-page][data-article-ready="false"] [data-article-time],
html[data-theme="light"] [data-article-page][data-article-ready="false"] [data-article-datetime],
html[data-theme="light"] [data-article-page][data-article-ready="false"] [data-article-content],
html[data-theme="light"] [data-article-page][data-article-ready="false"] [data-related-eyebrow],
html[data-theme="light"] [data-article-page][data-article-ready="false"] [data-related-arrow],
html[data-theme="light"] [data-article-page][data-article-ready="false"] [data-related-title],
html[data-theme="light"] [data-article-page][data-article-ready="false"] [data-related-subtitle],
html[data-theme="light"] [data-article-page][data-article-ready="false"] [data-related-articles] {
    background: linear-gradient(
        90deg,
        rgba(15, 23, 42, 0.08),
        rgba(15, 23, 42, 0.16),
        rgba(15, 23, 42, 0.08)
    );
}

.article-hero-card {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    min-height: 260px;
    background: rgba(8, 12, 24, 0.6);
    border-radius: 32px;
    border: 1px solid rgba(87, 210, 221, 0.15);
    box-shadow: 0 45px 120px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    scroll-margin-top: 140px;
}

.article-hero-header {
    padding: 2.75rem;
    background-image:
        linear-gradient(0deg, rgba(4, 8, 18, 0.92) 0%, rgba(4, 8, 18, 0.82) 55%, rgba(4, 8, 18, 0.65) 100%),
        var(--article-hero-image, none);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
}

.article-hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 72ch;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.article-chip {
    display: inline-flex;
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    font-size: 0.8rem;
    background: rgba(87, 210, 221, 0.12);
    border: 1px solid rgba(87, 210, 221, 0.3);
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-hero-card h1 {
    font-size: clamp(2rem, 2.8vw, 3rem);
    margin-bottom: 1rem;
    color: var(--text-white);
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.article-summary {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 52ch;
}

.article-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

.article-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: rgba(15, 23, 42, 0.25);
    color: var(--text-white);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.article-share i {
    font-size: 0.85rem;
}

.article-share:hover {
    transform: translateY(-1px);
    border-color: rgba(31, 26, 222, 0.6);
    background: rgba(31, 26, 222, 0.2);
}

.article-share.is-copied {
    border-color: rgba(31, 26, 222, 0.75);
    background: rgba(31, 26, 222, 0.3);
}

.article-datetime {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-white);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(31, 26, 222, 0.18);
    border: 1px solid rgba(31, 26, 222, 0.4);
    box-shadow: 0 10px 22px rgba(31, 26, 222, 0.2);
}

.article-datetime i {
    color: var(--accent-blue);
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 2rem;
    align-items: start;
    padding: 0 2.75rem 2.75rem;
}

.article-content {
    padding: 2.5rem 2.75rem;
    line-height: 1.9;
    font-size: 1.08rem;
    color: var(--text-white);
    background: rgba(8, 12, 24, 0.78);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    scroll-margin-top: 120px;
}

.article-layout .article-content {
    margin: 0;
    max-width: none;
}

.article-sidebar {
    align-self: start;
}

.article-sidebar-inner {
    padding: 1.6rem 1.4rem 1.8rem;
    border-radius: 22px;
    background: rgba(8, 12, 24, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    position: relative;
}

.sidebar-header {
    margin-bottom: 1.2rem;
}

.sidebar-eyebrow {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
    font-weight: 700;
}

.sidebar-header h3 {
    margin: 0 0 0.3rem;
    font-size: 1.2rem;
    color: var(--text-white);
}

.sidebar-title-link {
    color: inherit;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.sidebar-title-link:hover {
    color: var(--accent-blue);
}

.sidebar-title-link i {
    font-size: 0.9rem;
}

.sidebar-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.article-sidebar .side-articles {
    display: grid;
    gap: 1.4rem;
}

.article-sidebar .side-card {
    display: grid;
    gap: 0.7rem;
    padding: 0 0 1.2rem;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    border-bottom: 1px solid rgba(87, 210, 221, 0.12);
}

.article-sidebar .side-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.article-sidebar .side-card:hover {
    background: transparent;
    box-shadow: none;
}

.article-sidebar .side-card img {
    width: 100%;
    height: 160px;
    display: block;
    object-fit: cover;
    object-position: center top;
    border-radius: 14px;
}

.article-sidebar .side-content h4 {
    font-size: 0.98rem;
    line-height: 1.35;
    margin-bottom: 0.35rem;
}

.article-sidebar .side-content .meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-content p {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.article-content p:last-child {
    margin-bottom: 0;
}

.article-content h2,
.article-content h3 {
    margin: 2rem 0 1rem;
    color: var(--text-white);
}

.article-hero-card.glow-card:hover {
    transform: none;
    box-shadow: 0 45px 120px rgba(0, 0, 0, 0.55);
    border-color: rgba(87, 210, 221, 0.15);
}

.article-hero-card.glow-card:hover::before {
    opacity: 0.5;
    background: linear-gradient(to top left, rgba(87, 210, 221, 0.5) 0%, rgba(255, 255, 255, 0.1) 100%);
}

.article-hero-card.glow-card:hover::after {
    opacity: 0.6;
    background: linear-gradient(to top left, rgba(87, 210, 221, 0.15), transparent 50%);
}

.article-content.glow-card-small:hover {
    background: rgba(10, 12, 24, 0.88);
    border-color: rgba(87, 210, 221, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.article-sidebar-inner.glow-card-small:hover {
    background: rgba(10, 12, 24, 0.88);
    border-color: rgba(87, 210, 221, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

.article-sidebar .side-card.glow-card-small:hover {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

@media (max-width: 992px) {
    .para-ti-grid {
        grid-template-columns: 1fr;
    }

    .topics-cloud {
        position: static;
    }
}

@media (max-width: 768px) {
    .stream-card {
        grid-template-columns: 1fr;
        padding: 1.2rem;
    }

    .stream-thumb {
        min-height: 200px;
    }

    .article-body {
        padding-top: 120px;
    }

    .article-main {
        padding: 2.5rem 0 4rem;
    }

    .article-hero-header {
        padding: 2rem;
    }

    .article-content {
        padding: 2rem;
    }

    .article-layout {
        grid-template-columns: 1fr;
        padding: 0 2rem 2rem;
    }

    .article-sidebar-inner {
        position: static;
        margin-top: 2rem;
    }
}

/* Category page */
.category-main {
    padding: 4rem 0 5rem;
}

.category-container {
    max-width: 1100px;
    margin: 0 auto;
}

.category-header {
    margin-bottom: 1.5rem;
}

.category-kicker {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.category-header h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3rem);
    color: var(--text-white);
}

.category-count {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.category-hero {
    margin-bottom: 2.5rem;
    padding: 2.5rem;
    display: flex;
    align-items: flex-end;
    min-height: 320px;
    background: rgba(8, 12, 24, 0.65);
    border-radius: 26px;
    border: 1px solid rgba(87, 210, 221, 0.15);
    background-image:
        linear-gradient(0deg, rgba(4, 8, 18, 0.98) 0%, rgba(4, 8, 18, 0.88) 55%, rgba(4, 8, 18, 0.6) 100%);
    background-size: cover;
    background-position: center top;
    overflow: hidden;
}

.category-hero.has-hero-image {
    background-image:
        linear-gradient(0deg, rgba(4, 8, 18, 0.98) 0%, rgba(4, 8, 18, 0.88) 55%, rgba(4, 8, 18, 0.6) 100%),
        var(--category-hero-image, none);
}

.category-hero .hero-text {
    max-width: 70ch;
}

.category-hero .hero-text h2 {
    margin-top: 0;
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
}

.category-hero .hero-text p {
    margin: 0 0 1.4rem;
    color: var(--text-muted);
}

.category-hero .hero-meta {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0.8rem 0 1.2rem;
}

.category-hero .hero-image {
    display: none;
}

.category-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.category-list-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 22px;
    background: rgba(10, 12, 24, 0.65);
    border: 1px solid rgba(87, 210, 221, 0.15);
    height: 100%;
}

.category-list-card-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.category-list-card-link:hover {
    border-color: rgba(87, 210, 221, 0.4);
    transform: translateY(-2px);
}

.category-list-card-link:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

.category-list-card .list-thumb {
    border-radius: 18px;
    overflow: hidden;
}

.category-list-card .list-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    object-position: center top;
}

.category-list-card .list-content h3 {
    margin-top: 0;
    color: var(--text-white);
}

.category-list-card .list-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.category-list-card .list-content p {
    color: var(--text-muted);
    margin-bottom: 0;
}

html[data-theme="light"] .article-hero-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .article-hero-header {
    background-image:
        linear-gradient(0deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 247, 255, 0.9) 55%, rgba(255, 255, 255, 0.7) 100%),
        var(--article-hero-image, none);
}

html[data-theme="light"] .article-hero-card h1 {
    color: #0f172a;
    text-shadow: none;
}

html[data-theme="light"] .article-meta,
html[data-theme="light"] .article-info {
    color: rgba(15, 23, 42, 0.7);
}

html[data-theme="light"] .article-share {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 23, 42, 0.2);
    color: #0f172a;
}

html[data-theme="light"] .article-share:hover {
    border-color: rgba(31, 26, 222, 0.5);
    background: rgba(31, 26, 222, 0.12);
    color: #0f172a;
}

html[data-theme="light"] .article-chip {
    background: rgba(87, 210, 221, 0.2);
    border-color: rgba(87, 210, 221, 0.45);
    color: #0f172a;
}

html[data-theme="light"] .article-content {
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: none;
}

html[data-theme="light"] .article-content p {
    color: rgba(15, 23, 42, 0.8);
}

html[data-theme="light"] .article-content h2,
html[data-theme="light"] .article-content h3 {
    color: #0f172a;
}

html[data-theme="light"] .article-sidebar-inner {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: none;
}

html[data-theme="light"] .article-datetime {
    background: rgba(31, 26, 222, 0.12);
    color: #0f172a;
    border-color: rgba(31, 26, 222, 0.28);
    box-shadow: 0 12px 24px rgba(31, 26, 222, 0.12);
}

html[data-theme="light"] .sidebar-header h3,
html[data-theme="light"] .article-sidebar .side-content h4 {
    color: #0f172a;
}

html[data-theme="light"] .sidebar-subtitle,
html[data-theme="light"] .article-sidebar .side-content .meta {
    color: rgba(15, 23, 42, 0.7);
}

html[data-theme="light"] .article-sidebar .side-card {
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .article-overlay {
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 60%, rgba(255, 255, 255, 0.7) 85%, rgba(255, 255, 255, 0.45) 100%);
    color: #0f172a;
}

html[data-theme="light"] .article-overlay h3 {
    text-shadow: none;
}

html[data-theme="light"] .article-overlay p,
html[data-theme="light"] .article-overlay .article-meta {
    text-shadow: none;
}

html[data-theme="light"] .meta-chip {
    color: #0f172a;
    background: rgba(87, 210, 221, 0.2);
    border-color: rgba(87, 210, 221, 0.45);
}

html[data-theme="light"] .meta-time {
    color: rgba(15, 23, 42, 0.7);
}

html[data-theme="light"] .category-list-card {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .category-list-card .list-content p,
html[data-theme="light"] .category-list-card .list-meta {
    color: rgba(15, 23, 42, 0.7);
}

html[data-theme="light"] .article-hero-card.glow-card:hover {
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
    border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .article-hero-card.glow-card:hover::before {
    opacity: 0.5;
    background: linear-gradient(to top left, rgba(87, 210, 221, 0.35) 0%, rgba(255, 255, 255, 0.25) 100%);
}

html[data-theme="light"] .article-hero-card.glow-card:hover::after {
    opacity: 0.5;
    background: linear-gradient(to top left, rgba(87, 210, 221, 0.15), transparent 50%);
}

html[data-theme="light"] .article-content.glow-card-small:hover {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .article-sidebar-inner.glow-card-small:hover {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

@media (max-width: 768px) {
    .article-hero-card {
        padding: 2rem;
    }

    .category-hero {
        min-height: 300px;
        padding: 2rem;
    }

    .category-list-card {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 980px) {
    .category-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .site-header {
        padding: 0.6rem 0;
    }

    .logo img {
        height: 72px;
    }

    .site-header.scrolled .logo img {
        height: 56px;
    }

    .theme-toggle,
    .menu-toggle {
        width: 38px;
        height: 38px;
    }

    .icon-btn {
        display: none;
    }

    .icon-btn[data-search-toggle] {
        display: inline-flex;
    }

    .user-profile img {
        width: 28px;
        height: 28px;
    }

    .mobile-menu {
        padding-top: 90px;
    }

    .top-section,
    .page-intro {
        padding-top: 150px;
    }

    .page-intro-content h1 {
        font-size: 1.6rem;
    }

    .page-intro-content p {
        font-size: 0.95rem;
    }

    .main-article {
        height: clamp(280px, 85vw, 380px);
    }

    .article-overlay h3 {
        font-size: 1.4rem;
    }

    .article-overlay p {
        font-size: 0.9rem;
    }

    .carousel-item {
        min-width: 220px;
        max-width: 220px;
    }

    .card-content {
        padding: 1.25rem;
    }

    .stream-thumb {
        min-height: 170px;
    }

    .article-hero-header {
        padding: 1.6rem;
    }

    .article-hero-card h1 {
        font-size: 1.75rem;
    }

    .article-layout {
        padding: 0 1.4rem 1.6rem;
    }

    .article-content {
        padding: 1.6rem;
        font-size: 1rem;
    }

    .article-breadcrumb {
        flex-wrap: wrap;
        gap: 0.35rem;
        font-size: 0.8rem;
    }

    .article-datetime {
        font-size: 0.85rem;
    }

    .category-main {
        padding: 3rem 0 4rem;
        padding-top: 5.5rem;
    }

    .category-hero {
        padding: 1.8rem;
        gap: 1.4rem;
    }

    .category-header h1 {
        font-size: 2rem;
    }

    .category-list-card {
        padding: 1.2rem;
    }

    .category-list-card .list-thumb img {
        height: 180px;
    }

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

    .preferences-actions,
    .profile-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-main {
        padding: 9rem 0 4rem;
    }

    .auth-card {
        padding: 2rem 1.6rem;
    }

    .auth-header h1 {
        font-size: 1.7rem;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-form button,
    .newsletter-form input {
        width: 100%;
    }

    .newsletter-form button {
        padding: 0.95rem 1.2rem;
        min-height: 52px;
    }

    .article-container {
        padding: 0 2px;
    }

    .article-layout {
        padding: 0 0 1.2rem;
    }

    .article-content {
        padding: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header-actions {
        gap: 0.5rem;
    }

    .logo img {
        height: 64px;
    }

    .site-header.scrolled .logo img {
        height: 48px;
    }

    .menu-toggle,
    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .mobile-menu-inner {
        padding: 1.2rem;
    }

    .mobile-menu {
        padding-top: 80px;
    }

    .main-article {
        height: clamp(260px, 95vw, 360px);
    }

    .article-overlay {
        padding: 1.2rem;
    }

    .article-overlay h3 {
        font-size: 1.25rem;
    }

    .card-content h3 {
        font-size: 1rem;
    }

    .stream-content h3 {
        font-size: 1rem;
    }

    .article-content {
        padding: 0.95rem;
    }

    .article-hero-header {
        padding: 1.4rem;
    }

    .article-body {
        padding-top: 105px;
    }

    .category-hero {
        padding: 1.5rem;
        min-height: 260px;
    }

    .category-list-card {
        padding: 1rem;
    }

    .article-container {
        padding: 0 2px;
    }

    .article-layout {
        padding: 0 0 1rem;
    }
}

.category-infinite-sentinel {
    display: flex;
    justify-content: center;
    padding: 2rem 0 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.category-infinite-sentinel.is-hidden {
    display: none;
}

.category-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
