/* ==========================================================================
   OriginRealm Homepage Stylesheet
   Route Scope: / (Home / Welcome)
   Features:
     - Hero Trust & Rights Positioning Banner
     - Hero Section, Scale Stats & Centered Search Bar
     - Classics Spotlight Section & Responsive Story Cards
   Architecture: Zero monolithic dependency, colocated dark/light theming.
   ========================================================================== */

/* ─── 0. FEATURED SLIDER, PROMOTED CTA & FEED SKELETONS ───────────────────
   Moved from originrealm.bundle.css and light-theme.css (homepage only).
   Kept ahead of the sections below to preserve the original cascade order. */
.featured-slider {
    max-width: 1320px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 2rem;
    position: relative;
    box-sizing: border-box;
}

.slider-wrapper {
    overflow: hidden;
    border-radius: 18px;
    background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.2) 0%, rgba(15, 23, 42, 0.95) 90%);
    border: 1px solid rgba(99, 102, 241, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 30px rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(20px);
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 0.5rem;
    pointer-events: none;
}

.slider-btn {
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.slider-btn:hover {
    background: rgba(99, 102, 241, 0.9);
    border-color: rgba(99, 102, 241, 0.5);
    transform: scale(1.1);
}

.card-time-ago {
    font-size: 0.72rem;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    margin-left: auto;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.skeleton-card {
    height: 400px;
    border-radius: 8px;
}

.promoted-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.promoted-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.promoted-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin: 2rem auto;
    max-width: 1280px;
    padding: 0 2rem;
}

[data-theme="light"] .slider-wrapper {
    background: linear-gradient(135deg, #e8eff6 0%, #dce5ef 100%) !important;
    border: 1px solid rgba(79, 70, 229, 0.22) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 0 20px rgba(79, 70, 229, 0.05) !important;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #a5b4fc;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.view-all:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.5);
    color: #c7d2fe;
    transform: translateX(2px);
}

.promote-your-series-cta {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 2px dashed rgba(255, 215, 0, 0.3);
}

.btn-promote {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-promote:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.6);
    background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
}

.promote-info {
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

[data-theme="light"] .view-all {
    background: rgba(79, 70, 229, 0.10) !important;
    border-color: rgba(79, 70, 229, 0.22) !important;
    color: #3730a3 !important;
}

[data-theme="light"] .view-all:hover {
    background: rgba(79, 70, 229, 0.20) !important;
    color: #1e1b4b !important;
}

@media (max-width: 768px) {
    .promoted-grid {
        gap: 0.75rem;
        padding: 0 0.75rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .btn-promote {
        padding: 12px 30px;
        font-size: 16px;
    }
    .featured-slider {
        padding: 0 1rem;
    }
}

.skeleton-card {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    contain: paint;
}

.skeleton-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: rgba(51, 65, 85, 0.6);
    position: relative;
    overflow: hidden;
}

.skeleton-cover::after,
.skeleton-line::after,
.skeleton-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.08) 50%, transparent 100%);
    animation: feedShimmerGpu 1.5s infinite;
    will-change: transform;
}

.skeleton-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skeleton-line {
    height: 14px;
    border-radius: 4px;
    background: rgba(51, 65, 85, 0.6);
    position: relative;
    overflow: hidden;
}

.skeleton-slide {
    width: 100%;
    min-height: 280px;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.8);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 2rem;
}

.reveal-section {
    contain: layout;
    min-height: 380px;
}

[data-theme="light"] .featured-slider .slider-wrapper,
[data-theme="light"] .slider-wrapper {
    background: #f4f7fa !important;
    border: 1px solid #dde3ea !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03) !important;
}

[data-theme="light"] .slider-btn {
    background: rgba(214, 224, 236, 0.9) !important;
    backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(15, 23, 42, 0.18) !important;
    color: #1e293b !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.10) !important;
}

[data-theme="light"] .slider-btn:hover {
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35) !important;
}

[data-theme="light"] .view-all {
    background: rgba(79, 70, 229, 0.10) !important;
    border: 1px solid rgba(79, 70, 229, 0.22) !important;
    color: #3730a3 !important;
}

[data-theme="light"] .view-all:hover {
    background: rgba(79, 70, 229, 0.20) !important;
    color: #1e1b4b !important;
    border-color: rgba(79, 70, 229, 0.45) !important;
}

[data-theme="light"] .promoted-section {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.10) 0%, rgba(245, 158, 11, 0.06) 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.25) !important;
}

[data-theme="light"] .promoted-badge {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: #1e1b4b !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25) !important;
}

[data-theme="light"] .promote-your-series-cta {
    background: #dde3ea !important;
    border: 2px dashed rgba(245, 158, 11, 0.4) !important;
}

[data-theme="light"] .promote-info {
    color: #475569 !important;
}

[data-theme="light"] .skeleton-card {
    background: #edf2f7 !important;
    border-color: rgba(15, 23, 42, 0.10) !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .skeleton-cover,
[data-theme="light"] .skeleton-line,
[data-theme="light"] .skeleton-slide {
    background: #cbd7e3 !important;
}

[data-theme="light"] .skeleton-cover::after,
[data-theme="light"] .skeleton-line::after,
[data-theme="light"] .skeleton-slide::after {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.55) 50%, transparent 100%) !important;
}


/* ─── 1. HERO TRUST BANNER ──────────────────────────────────────────────── */
.hero-trust-banner {
    margin-top: 1.25rem;
    padding: 0.75rem 1.15rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-width: 640px;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .hero-trust-banner,
html[data-theme="light"] .hero-trust-banner {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08) !important;
}

.hero-trust-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
}

.hero-trust-content {
    flex: 1;
    min-width: 0;
}

.hero-trust-heading {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.15rem;
    flex-wrap: wrap;
}

[data-theme="light"] .hero-trust-heading,
html[data-theme="light"] .hero-trust-heading {
    color: #0f172a !important;
}

.hero-trust-pill {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.12rem 0.45rem;
    border-radius: 5px;
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

[data-theme="light"] .hero-trust-pill,
html[data-theme="light"] .hero-trust-pill {
    background: rgba(16, 185, 129, 0.15) !important;
    color: #059669 !important;
}

.hero-trust-text {
    font-size: 0.76rem;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0;
}

[data-theme="light"] .hero-trust-text,
html[data-theme="light"] .hero-trust-text {
    color: #475569 !important;
}

.hero-trust-link {
    color: #818cf8;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.hero-trust-link:hover {
    color: #a5b4fc;
    text-decoration: underline;
}

[data-theme="light"] .hero-trust-link,
html[data-theme="light"] .hero-trust-link {
    color: #4f46e5 !important;
}

/* ─── 2. HOMEPAGE HERO & SEARCH SECTION ─────────────────────────────────── */
.hero-banner-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 1.5rem auto 2.5rem;
    max-width: 850px;
    padding: 0 1rem;
}

.hero-stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.95rem;
    border-radius: 9999px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.32);
    color: #c7d2fe;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    letter-spacing: 0.2px;
}

.hero-stats-badge strong {
    color: #a5b4fc;
    font-weight: 800;
}

[data-theme="light"] .hero-stats-badge,
html[data-theme="light"] .hero-stats-badge {
    background: rgba(99, 102, 241, 0.1) !important;
    border-color: rgba(99, 102, 241, 0.35) !important;
    color: #3730a3 !important;
}

[data-theme="light"] .hero-stats-badge strong,
html[data-theme="light"] .hero-stats-badge strong {
    color: #1e1b4b !important;
}

.hero-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: heroPulse 2s infinite;
}

@keyframes heroPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.home-page-title {
    margin: 0 0 0.5rem;
    color: var(--text-primary, #ffffff);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.home-page-subtitle {
    margin: 0 0 1.5rem;
    color: var(--text-tertiary, #94a3b8);
    font-size: 1.05rem;
    line-height: 1.5;
    max-width: 600px;
}

.hero-search-container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
}

.hero-search-bar {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.75);
    border: 1.5px solid rgba(99, 102, 241, 0.35);
    border-radius: 12px;
    padding: 0.35rem 0.4rem 0.35rem 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 20px rgba(99, 102, 241, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s ease;
}

[data-theme="light"] .hero-search-bar,
html[data-theme="light"] .hero-search-bar {
    background: #ffffff !important;
    border-color: rgba(99, 102, 241, 0.4) !important;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.hero-search-bar:focus-within {
    border-color: rgba(129, 140, 248, 0.85);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 25px rgba(99, 102, 241, 0.35);
}

[data-theme="light"] .hero-search-bar:focus-within,
html[data-theme="light"] .hero-search-bar:focus-within {
    border-color: #6366f1 !important;
    box-shadow: 0 4px 25px rgba(99, 102, 241, 0.25) !important;
}

.hero-search-icon {
    width: 20px;
    height: 20px;
    color: #818cf8;
    flex-shrink: 0;
    margin-right: 0.75rem;
}

[data-theme="light"] .hero-search-icon,
html[data-theme="light"] .hero-search-icon {
    color: #4f46e5 !important;
}

.hero-search-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
}

[data-theme="light"] .hero-search-input,
html[data-theme="light"] .hero-search-input {
    color: #0f172a !important;
}

.hero-search-input::placeholder {
    color: #64748b;
}

[data-theme="light"] .hero-search-input::placeholder,
html[data-theme="light"] .hero-search-input::placeholder {
    color: #94a3b8 !important;
}

.hero-search-btn {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.1rem;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.hero-search-btn:hover {
    background: linear-gradient(135deg, #4f46e5, #4338ca);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .hero-banner-section {
        margin: 1.25rem auto 2rem;
        padding: 0 0.85rem;
    }

    .hero-stats-badge {
        font-size: 0.78rem;
        padding: 0.38rem 0.85rem;
        line-height: 1.4;
        max-width: 100%;
        text-align: center;
        box-sizing: border-box;
        white-space: normal;
    }

    .home-page-title {
        font-size: clamp(1.45rem, 5.5vw, 1.95rem);
    }

    .home-page-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-banner-section {
        margin: 1rem auto 1.75rem;
    }

    .hero-stats-badge {
        font-size: 0.74rem;
        padding: 0.32rem 0.75rem;
        gap: 0.4rem;
    }
}

/* ─── 3. CLASSICS SPOTLIGHT SECTION ─────────────────────────────────────── */
.classics-spotlight-section {
    max-width: 1320px;
    width: 100%;
    margin: 3rem auto !important;
    padding: 0 2rem;
    box-sizing: border-box;
}

.classics-spotlight-banner {
    background: radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.15) 0%, rgba(15, 23, 42, 0.6) 70%);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 20px;
    padding: 1.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .classics-spotlight-banner,
html[data-theme="light"] .classics-spotlight-banner {
    background: radial-gradient(circle at 20% 0%, rgba(245, 158, 11, 0.12) 0%, rgba(255, 255, 255, 0.95) 70%);
    border-color: rgba(245, 158, 11, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.classics-spotlight-header {
    max-width: 680px;
}

.classics-spotlight-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.75rem;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}

.classics-spotlight-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 0.4rem;
    letter-spacing: -0.3px;
}

[data-theme="light"] .classics-spotlight-title,
html[data-theme="light"] .classics-spotlight-title {
    color: #0f172a;
}

.classics-spotlight-desc {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 0;
}

[data-theme="light"] .classics-spotlight-desc,
html[data-theme="light"] .classics-spotlight-desc {
    color: #475569;
}

.classics-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #0f172a !important;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.classics-explore-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
    color: #000 !important;
}

.classics-spotlight-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 1024px) {
    .classics-spotlight-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .classics-spotlight-grid {
        grid-template-columns: 1fr;
    }
    .classics-spotlight-banner {
        padding: 1.25rem;
    }
}

.classics-card {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

[data-theme="light"] .classics-card,
html[data-theme="light"] .classics-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.classics-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.classics-card-cover-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #1e293b;
}

.classics-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.classics-card:hover .classics-card-cover {
    transform: scale(1.05);
}

.classics-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    letter-spacing: 0.04em;
}

.classics-card-info {
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.classics-card-cn {
    color: #f59e0b;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.classics-card-title {
    color: #f8fafc;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    line-height: 1.3;
}

[data-theme="light"] .classics-card-title,
html[data-theme="light"] .classics-card-title {
    color: #0f172a;
}

.classics-card-author {
    color: #64748b;
    font-size: 0.78rem;
    margin-bottom: 0.6rem;
}

.classics-card-desc {
    color: #94a3b8;
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 0 0 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

[data-theme="light"] .classics-card-desc,
html[data-theme="light"] .classics-card-desc {
    color: #64748b;
}

.classics-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.75rem;
    margin-top: auto;
}

[data-theme="light"] .classics-card-footer,
html[data-theme="light"] .classics-card-footer {
    border-top-color: rgba(0, 0, 0, 0.06);
}

.classics-read-link {
    color: #fbbf24;
    font-size: 0.82rem;
    font-weight: 700;
    transition: color 0.2s ease;
}

.classics-card:hover .classics-read-link {
    color: #f59e0b;
}

/* The featured slider is a tablet-and-up element. Its old phone-only rules
   (slide min-width: 0 !important) made slides content-sized while feed-loader.js
   still steps the track by 100%, so slides cut off and neighbours showed through.
   Phones now skip it entirely (feed-loader.js also skips the API call). */
@media (max-width: 767.98px) {
    .featured-slider {
        display: none !important;
    }
}
