@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Literata:ital,opsz,wght@0,7..72,400;0,7..72,500;0,7..72,600;1,7..72,400&family=Merriweather:ital,wght@0,300;0,400;0,700;1,400&family=Be+Vietnam+Pro:wght@400;500;600;700&display=swap');

:root {
    /* Base typography - Crystal Clear & Highly Legible for Vietnamese */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Be Vietnam Pro', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Be Vietnam Pro', sans-serif;
    --font-reading-serif: 'Literata', 'Merriweather', Georgia, serif;
    --font-reading-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Be Vietnam Pro', sans-serif;

    /* Light Theme (Warm Luxury Paper & Gold) */
    --bg-base: #f7f6f2;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #ffffff;
    --bg-surface-glass: rgba(255, 255, 255, 0.85);
    
    --text-primary: #18181b;
    --text-secondary: #52525b;
    --text-muted: #71717a;
    
    --border-subtle: #e4e4e7;
    --border-focus: #f59e0b;
    
    --brand-primary: #d97706;
    --brand-primary-hover: #b45309;
    --brand-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --brand-glow: rgba(217, 119, 6, 0.25);
    --badge-bg: #fef3c7;
    --badge-text: #92400e;
    
    --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
    --card-shadow-hover: 0 20px 30px -8px rgba(0, 0, 0, 0.12), 0 8px 12px -4px rgba(0, 0, 0, 0.06);
    --book-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.22), 0 6px 12px -4px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] {
    --bg-base: #090d16;
    --bg-surface: #111827;
    --bg-surface-elevated: #1a2234;
    --bg-surface-glass: rgba(17, 24, 39, 0.85);
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-focus: #fbbf24;
    
    --brand-primary: #fbbf24;
    --brand-primary-hover: #f59e0b;
    --brand-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    --brand-glow: rgba(251, 191, 36, 0.35);
    --badge-bg: rgba(245, 158, 11, 0.15);
    --badge-text: #fcd34d;
    
    --card-shadow: 0 6px 24px -2px rgba(0, 0, 0, 0.4);
    --card-shadow-hover: 0 24px 38px -8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(251, 191, 36, 0.15);
    --book-shadow: 0 16px 32px -6px rgba(0, 0, 0, 0.6), 0 8px 16px -4px rgba(0, 0, 0, 0.4);
}

[data-theme="sepia"] {
    --bg-base: #f4ecd8;
    --bg-surface: #ebe1c8;
    --bg-surface-elevated: #dfd4b8;
    --bg-surface-glass: rgba(235, 225, 200, 0.9);
    
    --text-primary: #433422;
    --text-secondary: #665038;
    --text-muted: #856b50;
    
    --border-subtle: #d3c4a5;
    --border-focus: #b45309;
    
    --brand-primary: #b45309;
    --brand-primary-hover: #92400e;
    --brand-gradient: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    --brand-glow: rgba(180, 83, 9, 0.25);
    --badge-bg: #ded0b4;
    --badge-text: #5e3b12;
    
    --card-shadow: 0 4px 20px -2px rgba(67, 52, 34, 0.08);
    --card-shadow-hover: 0 18px 30px -8px rgba(67, 52, 34, 0.16);
    --book-shadow: 0 12px 28px -6px rgba(67, 52, 34, 0.3);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(150, 150, 150, 0.3);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary);
}

/* ================================================= */
/* 🌟 HEADER (LUXURY GLASSMORPHISM) */
/* ================================================= */
header {
    background-color: var(--bg-surface-glass);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.brand-logo:hover .brand-logo-img {
    transform: scale(1.05);
}

[data-theme="light"] .brand-logo-img {
    background: #090d16;
    padding: 3px 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

[data-theme="sepia"] .brand-logo-img {
    background: #1c150c;
    padding: 3px 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

@media (max-width: 600px) {
    .brand-logo-img {
        height: 38px;
    }
}

.brand-symbol {
    width: 40px;
    height: 40px;
    background: var(--brand-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 20px;
    box-shadow: 0 4px 14px var(--brand-glow);
}

.brand-title {
    display: flex;
    flex-direction: column;
}

.brand-title .main-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-title .sub-name {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.search-box {
    flex: 1;
    max-width: 520px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 11px 18px 11px 44px;
    border-radius: 9999px;
    border: 1px solid var(--border-subtle);
    background-color: var(--bg-surface);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.search-box input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px var(--brand-glow);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    pointer-events: none;
}

.search-clear-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 4px 6px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    z-index: 2;
}

.search-clear-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.search-suggestions-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    z-index: 1000;
    max-height: 420px;
    overflow-y: auto;
    padding: 8px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: fadeInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.15s ease;
}

.search-suggestion-item:hover,
.search-suggestion-item:focus {
    background: rgba(245, 158, 11, 0.14);
}

.search-suggestion-thumb {
    width: 38px;
    height: 54px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    background: #111;
}

.search-suggestion-info {
    flex: 1;
    min-width: 0;
}

.search-suggestion-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.search-suggestion-title mark {
    background: rgba(245, 158, 11, 0.35);
    color: #f59e0b;
    border-radius: 3px;
    padding: 0 3px;
    font-weight: 800;
}

.search-suggestion-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.search-suggestion-tag {
    background: rgba(245, 158, 11, 0.15);
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 11px;
    color: #f59e0b;
    font-weight: 600;
}

.search-suggestions-footer {
    padding: 10px;
    text-align: center;
    font-size: 13px;
    color: #f59e0b;
    font-weight: 700;
    cursor: pointer;
    border-top: 1px solid var(--border-subtle);
    margin-top: 4px;
    border-radius: 0 0 10px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.15s ease;
}

.search-suggestions-footer:hover {
    background: rgba(245, 158, 11, 0.12);
}

.search-suggestions-empty {
    padding: 22px 14px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.97);
}

.btn-gold {
    background: var(--brand-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--brand-glow);
}

.btn-gold:hover {
    box-shadow: 0 6px 22px var(--brand-glow);
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.btn-ghost {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
}

.btn-ghost:hover {
    background: var(--bg-surface-elevated);
    border-color: var(--text-muted);
}

.theme-btn {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 17px;
    transition: all 0.2s ease;
}

.theme-btn:hover {
    border-color: var(--brand-primary);
    transform: rotate(15deg);
}

/* ================================================= */
/* 🌟 HERO SPOTLIGHT BANNER */
/* ================================================= */
.spotlight-wrapper {
    margin: 28px 0 36px;
    position: relative;
    border-radius: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.spotlight-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(50px) opacity(0.18);
    transform: scale(1.15);
    pointer-events: none;
}

.spotlight-content {
    position: relative;
    z-index: 2;
    padding: 36px 44px;
    display: flex;
    align-items: center;
    gap: 40px;
}

@media (max-width: 768px) {
    .spotlight-content {
        flex-direction: column;
        padding: 24px 20px;
        text-align: center;
        gap: 24px;
    }
}

/* 3D Realistic Book Poster */
.book-poster {
    width: 175px;
    min-width: 175px;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    position: relative;
    box-shadow: var(--book-shadow);
    transform: perspective(800px) rotateY(-4deg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    overflow: hidden;
    background: #1e293b;
}

.book-poster:hover {
    transform: perspective(800px) rotateY(0deg) translateY(-6px);
    box-shadow: 0 24px 40px -8px rgba(0, 0, 0, 0.35);
}

.book-poster::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 14px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.45), rgba(255, 255, 255, 0.25) 50%, rgba(0, 0, 0, 0.15));
    z-index: 3;
    pointer-events: none;
}

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

.spotlight-info {
    flex: 1;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--badge-bg);
    color: var(--badge-text);
    margin-bottom: 14px;
}

.spotlight-title {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.spotlight-desc {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.spotlight-actions {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

/* ================================================= */
/* 🌟 CATEGORY NAV CHIPS */
/* ================================================= */
.category-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 0 20px;
    margin-bottom: 24px;
}

.category-nav::-webkit-scrollbar {
    height: 4px;
}

.category-chip {
    padding: 9px 20px;
    border-radius: 12px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all 0.25s ease;
    cursor: pointer;
}

.category-chip:hover, .category-chip.active {
    background: var(--brand-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 14px var(--brand-glow);
    transform: translateY(-2px);
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title-icon {
    color: var(--brand-primary);
}

.section-count {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ================================================= */
/* 🌟 STORY BOOK GRID (LUXURY 3D NOVEL CARDS) */
/* ================================================= */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px, 1fr));
    gap: 26px 20px;
    margin-bottom: 60px;
}

@media (max-width: 640px) {
    .book-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 12px;
    }
}

.book-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
}

.book-card:hover {
    transform: translateY(-6px);
}

.card-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    background: #1e293b;
    box-shadow: var(--book-shadow);
    transition: box-shadow 0.3s ease;
}

.book-card:hover .card-poster {
    box-shadow: var(--card-shadow-hover);
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.book-card:hover .card-poster img {
    transform: scale(1.05);
}

/* Book spine realism */
.card-poster::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 10px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(255, 255, 255, 0.2) 50%, rgba(0, 0, 0, 0.1));
    z-index: 3;
    pointer-events: none;
}

/* Floating Badges on Poster */
.poster-category {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(15, 23, 42, 0.8);
    color: #fcd34d;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.poster-quickview {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    z-index: 4;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.25s ease;
}

.book-card:hover .poster-quickview {
    opacity: 1;
    transform: translateY(0);
}

.card-details {
    padding-top: 12px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.book-card:hover .card-title {
    color: var(--brand-primary);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* ================================================= */
/* 🌟 LUXURY POPUP MODAL (CINEMATIC PREVIEW) */
/* ================================================= */
.modal-backdrop-blur {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 16, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop-blur.is-active {
    opacity: 1;
    visibility: visible;
}

.modal-window {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    width: 100%;
    max-width: 720px;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5), 0 0 35px var(--brand-glow);
    transform: scale(0.92) translateY(12px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop-blur.is-active .modal-window {
    transform: scale(1) translateY(0);
}

.modal-exit-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 10;
    transition: all 0.2s ease;
}

.modal-exit-btn:hover {
    background: var(--brand-primary);
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-inner-layout {
    padding: 36px;
    display: flex;
    gap: 32px;
}

@media (max-width: 640px) {
    .modal-inner-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 24px 20px;
        gap: 20px;
    }
}

.modal-book-column {
    width: 185px;
    min-width: 185px;
}

.modal-book-column .book-poster {
    width: 100%;
    min-width: 100%;
    box-shadow: 0 20px 35px -8px rgba(0, 0, 0, 0.4);
}

.modal-data-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modal-novel-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 10px;
}

.modal-stats-bar {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-subtle);
}

.modal-stats-bar strong {
    color: var(--text-primary);
}

.modal-rating-stars {
    color: #f59e0b;
    font-size: 14px;
    font-weight: 700;
}

.modal-synopsis {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    max-height: 160px;
    overflow-y: auto;
    margin-bottom: 24px;
    padding-right: 8px;
    white-space: pre-wrap;
}

.modal-btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ================================================= */
/* 🌟 READER VIEW (IMMERSIVE TYPOGRAPHY) */
/* ================================================= */
.reading-stage {
    max-width: 860px;
    margin: 24px auto 60px;
    padding: 0 20px;
}

.reading-progress-track {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    z-index: 45;
}

.reading-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--brand-gradient);
    transition: width 0.1s ease;
}

.reading-toolbox {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: var(--card-shadow);
}

.reading-article {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 48px 46px;
    box-shadow: var(--card-shadow);
    font-size: var(--reading-font-size, 19px);
    line-height: 1.85;
    letter-spacing: 0.012em;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

@media (max-width: 640px) {
    .reading-article {
        padding: 26px 18px;
        line-height: 1.8;
    }
}

.reading-article p {
    margin-bottom: 1.6em;
    text-align: left;
    word-break: break-word;
    letter-spacing: 0.012em;
}

.reading-article p:first-of-type {
    text-indent: 0;
}

.reading-article.serif-mode {
    font-family: var(--font-reading-serif);
    line-height: 1.9;
}

.reading-article.sans-mode {
    font-family: var(--font-reading-sans);
    line-height: 1.85;
}

/* Chapter Picker Modal Grid */
.chapter-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    max-height: 440px;
    overflow-y: auto;
    padding: 6px;
}

.chapter-picker-item {
    padding: 12px 10px;
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.chapter-picker-item:hover, .chapter-picker-item.is-current {
    background: var(--brand-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px var(--brand-glow);
}

/* ================================================= */
/* 🌟 ADMIN DASHBOARD (CLEAN & MODERN) */
/* ================================================= */
.admin-metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-bottom: 28px;
}

.metric-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.metric-box::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: var(--brand-glow);
    border-radius: 50%;
    filter: blur(24px);
    pointer-events: none;
}

.metric-box .label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.metric-box .number {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
    color: var(--brand-primary);
}

.admin-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: var(--card-shadow);
}

.admin-card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.terminal-log-view {
    background: #060911;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #34d399;
    font-family: 'Consolas', monospace;
    font-size: 13px;
    padding: 20px;
    border-radius: 14px;
    max-height: 280px;
    overflow-y: auto;
    white-space: pre-wrap;
    line-height: 1.5;
}

/* ================================================= */
/* 🛍️ SHOPEE AFFILIATE LOCK & MONETIZATION STYLES */
/* ================================================= */
.reading-article-container {
    position: relative;
}

.content-locked-blur {
    filter: blur(8px);
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
    opacity: 0.28;
    transition: filter 0.4s ease, opacity 0.4s ease;
}

.reading-lock-curtain {
    position: relative;
    margin: -100px auto 40px;
    z-index: 10;
    max-width: 640px;
    text-align: center;
    padding: 36px 28px;
    background: var(--bg-surface);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 20px;
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.6), 0 0 35px rgba(245, 158, 11, 0.25);
    backdrop-filter: blur(16px);
}

.lock-curtain-icon {
    font-size: 46px;
    margin-bottom: 12px;
    display: inline-block;
    animation: lockPulse 2s ease-in-out infinite;
}

@keyframes lockPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.6)); }
}

.lock-curtain-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.lock-curtain-desc {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.shopee-badge-glow {
    background: linear-gradient(135deg, #ee4d2d 0%, #ff7337 100%);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(238, 77, 45, 0.35);
}

.lock-timer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Cover Edit Modal */
.cover-preview-box {
    width: 130px;
    aspect-ratio: 2 / 3;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 16px;
    box-shadow: var(--book-shadow);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
}

.cover-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================================================= */
/* 🧭 READING NAVIGATION BAR */
/* ================================================= */
.reading-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 40px 0 20px;
    padding: 18px 22px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .reading-nav {
        flex-direction: column;
        gap: 10px;
    }
    .reading-nav a, .reading-nav button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ================================================= */
/* 📚 RELATED / RECOMMENDED STORIES SECTION */
/* ================================================= */
.reading-related-section {
    margin-top: 45px;
    padding-top: 36px;
    border-top: 1px solid var(--border-subtle);
}

.reading-related-header {
    margin-bottom: 22px;
}

.reading-related-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: var(--brand-glow);
    color: var(--brand-primary);
    border: 1px solid rgba(245, 158, 11, 0.3);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.reading-related-title {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.3px;
}

.reading-related-subtitle {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

.reading-related-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-top: 16px;
}

@media (max-width: 900px) {
    .reading-related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

@media (max-width: 520px) {
    .reading-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

.related-book-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 9px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
}

.related-book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.35), 0 0 16px var(--brand-glow);
    border-color: rgba(245, 158, 11, 0.45);
}

.related-card-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #111827;
    display: block;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.related-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.related-book-card:hover .related-card-poster img {
    transform: scale(1.06);
}

/* Realistic 3D book spine */
.related-card-poster::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 7px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.45), rgba(255, 255, 255, 0.2) 50%, rgba(0, 0, 0, 0.1));
    z-index: 3;
    pointer-events: none;
}

.related-poster-cat {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 4;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(15, 23, 42, 0.85);
    color: #fcd34d;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-poster-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 5;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.related-book-card:hover .related-poster-overlay {
    opacity: 1;
}

.related-card-details {
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.related-card-title {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    margin-bottom: 6px;
    transition: color 0.2s ease;
}

.related-book-card:hover .related-card-title {
    color: var(--brand-primary);
}

.related-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: auto;
}

/* ================================================= */
/* 🌟 CHAPTER READING NAVIGATION (TOP & BOTTOM) */
/* ================================================= */
.reading-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.reading-nav-top {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px dashed var(--border-subtle);
}

.reading-nav-bottom {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px dashed var(--border-subtle);
}

.nav-btn-chapter {
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 700;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

/* ================================================= */
/* 🌟 HOT NOVELS RANKING BADGES */
/* ================================================= */
.poster-rank-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 900;
    background: rgba(15, 23, 42, 0.85);
    color: #f59e0b;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.poster-rank-badge.rank-1 {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    border-color: #fde68a;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.6);
}

.poster-rank-badge.rank-2 {
    background: linear-gradient(135deg, #94a3b8, #64748b);
    color: #ffffff;
    border-color: #e2e8f0;
}

.poster-rank-badge.rank-3 {
    background: linear-gradient(135deg, #b45309, #78350f);
    color: #ffffff;
    border-color: #fcd34d;
}

/* ================================================= */
/* 📚 TỦ TRUYỆN CÁ NHÂN (MY BOOKMARKS & LIBRARY) */
/* ================================================= */
.btn-bookmark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-bookmark.is-bookmarked {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    border-color: #f87171 !important;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4) !important;
}

.library-tab-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 9999px;
    margin-left: 6px;
}

.library-empty-box {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-surface);
    border: 1px dashed var(--border-subtle);
    border-radius: 20px;
    color: var(--text-muted);
}

.library-empty-icon {
    font-size: 52px;
    margin-bottom: 14px;
    opacity: 0.8;
}

.library-empty-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* ================================================= */
/* 🛍️ BOX GÓC SĂN DEAL SHOPEE Ở CUỐI CHƯƠNG */
/* ================================================= */
.shopee-deal-box {
    margin: 36px 0 28px;
    background: linear-gradient(135deg, rgba(238, 77, 45, 0.08) 0%, rgba(245, 158, 11, 0.06) 50%, rgba(15, 23, 42, 0.6) 100%);
    border: 1px solid rgba(238, 77, 45, 0.35);
    border-radius: 20px;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 10px 30px -10px rgba(238, 77, 45, 0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.shopee-deal-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -8px rgba(238, 77, 45, 0.3);
    border-color: rgba(238, 77, 45, 0.6);
}

.shopee-deal-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #ee4d2d, #f59e0b);
}

.shopee-deal-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.shopee-deal-icon {
    font-size: 40px;
    line-height: 1;
    flex-shrink: 0;
    animation: bounceIcon 2.5s infinite;
}

@keyframes bounceIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.shopee-deal-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #ee4d2d;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 4px;
}

.shopee-deal-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.35;
}

.shopee-deal-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

.shopee-deal-btn {
    background: linear-gradient(135deg, #ee4d2d 0%, #f97316 100%);
    color: #ffffff !important;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 18px rgba(238, 77, 45, 0.4);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.shopee-deal-btn:hover {
    transform: scale(1.04);
    box-shadow: 0 6px 22px rgba(238, 77, 45, 0.6);
}

@media (max-width: 640px) {
    .shopee-deal-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    .shopee-deal-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================================= */
/* 📱 MOBILE RESPONSIVE OPTIMIZATION (HOÀN THIỆN MOBILE 100%) */
/* ========================================================= */
@media (max-width: 640px) {
    /* 1. Header Navigation */
    header {
        padding: 8px 0 10px !important;
    }
    .nav-wrapper {
        flex-wrap: wrap !important;
        height: auto !important;
        gap: 8px 10px !important;
        padding: 0 4px !important;
    }
    .brand-logo {
        flex: 1 1 auto;
    }
    .brand-logo-img {
        height: 36px !important;
    }
    .nav-actions {
        gap: 6px !important;
    }
    .nav-actions .btn {
        padding: 6px 10px !important;
        font-size: 12px !important;
        border-radius: 16px !important;
    }
    .theme-btn {
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }
    .search-box {
        order: 3 !important;
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        margin-top: 4px !important;
    }
    .search-box input {
        width: 100% !important;
        padding: 9px 14px 9px 38px !important;
        font-size: 13.5px !important;
        height: 40px !important;
        border-radius: 9999px !important;
    }
    .search-icon {
        left: 14px !important;
        font-size: 14px !important;
    }

    /* 2. Chapter Page Header: Hide squished middle title */
    .chapter-header-title {
        display: none !important;
    }

    /* 3. Hero Spotlight Section */
    .spotlight-wrapper {
        margin-bottom: 24px !important;
        border-radius: 16px !important;
    }
    .spotlight-content {
        padding: 20px 16px !important;
        gap: 16px !important;
        text-align: center !important;
    }
    .book-poster {
        width: 150px !important;
        min-width: 150px !important;
        margin: 0 auto;
    }
    .spotlight-title {
        font-size: 22px !important;
        line-height: 1.3 !important;
        margin-bottom: 8px !important;
    }
    .spotlight-desc {
        font-size: 13px !important;
        line-height: 1.6 !important;
        margin-bottom: 16px !important;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .spotlight-actions {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    .spotlight-actions .btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 18px !important;
        font-size: 14px !important;
    }

    /* 4. Reading Floating / Sticky Toolbox (2 hàng đều tăm tắp, không bị tràn màn hình) */
    .reading-toolbox {
        padding: 10px 8px !important;
        gap: 8px !important;
        margin-bottom: 18px !important;
        border-radius: 14px !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .toolbox-row-fonts,
    .toolbox-row-themes {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 6px !important;
    }
    .toolbox-row-fonts .btn,
    .toolbox-row-themes .btn {
        width: 100% !important;
        min-width: 0 !important;
        padding: 8px 2px !important;
        font-size: 12px !important;
        text-align: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
    }

    /* 5. Reading Top Nav Buttons */
    .reading-nav.reading-nav-top {
        display: grid !important;
        grid-template-columns: 1fr 1fr 1.2fr !important;
        gap: 6px !important;
        margin-bottom: 20px !important;
    }
    .reading-nav.reading-nav-top .btn,
    .reading-nav.reading-nav-top a {
        width: 100% !important;
        padding: 9px 4px !important;
        font-size: 12px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* 6. Story Details Page Actions */
    #storyActionButtons {
        width: 100% !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    #storyActionButtons .btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 18px !important;
    }
    .story-hero-wrapper {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
}

/* ================================================= */
/* 🔥 HERO COVERFLOW SLIDER (ĐẦU TRANG THEO ẢNH MẪU) */
/* ================================================= */
:root {
    --hero-card-w: 380px;
    --hero-card-h: 520px;
}

@media (max-width: 992px) {
    :root {
        --hero-card-w: 330px;
        --hero-card-h: 460px;
    }
}

@media (max-width: 768px) {
    :root {
        --hero-card-w: 78vw;
        --hero-card-h: min(118vw, 470px);
    }
}

.hero-slider-section {
    position: relative;
    margin-top: 14px;
    margin-bottom: 24px;
}

.hot-slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 12px 0 16px 0;
    border-radius: 28px;
}

@media (max-width: 768px) {
    .hot-slider-wrapper {
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px);
        border-radius: 0;
    }
}

.hot-slider-ambient {
    position: absolute;
    inset: -30px;
    background-size: cover;
    background-position: center;
    filter: blur(70px) saturate(1.4);
    opacity: 0.28;
    pointer-events: none;
    transition: background-image 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

.hot-slider-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 20px calc(50% - (var(--hero-card-w) / 2));
    scrollbar-width: none;
    cursor: grab;
    position: relative;
    z-index: 2;
    align-items: center;
}

.hot-slider-track.active-drag {
    cursor: grabbing;
    scroll-behavior: auto;
    scroll-snap-type: none;
}

.hot-slider-track::-webkit-scrollbar {
    display: none;
}

.hot-slide-card {
    flex: 0 0 var(--hero-card-w);
    width: var(--hero-card-w);
    height: var(--hero-card-h);
    scroll-snap-align: center;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #0b1120;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
    cursor: pointer;
    user-select: none;
    opacity: 0.65;
    transform: scale(0.9);
    filter: brightness(0.72);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s ease,
                filter 0.4s ease,
                box-shadow 0.4s ease,
                border-color 0.4s ease;
    z-index: 1;
}

.hot-slide-card.is-center {
    opacity: 1;
    transform: scale(1.02);
    filter: brightness(1);
    z-index: 5;
    border-color: rgba(245, 158, 11, 0.75);
    box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.85),
                0 0 35px rgba(245, 158, 11, 0.35);
}

.hot-slide-poster {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #090d16;
}

.hot-slide-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hot-slide-card.is-center:hover .hot-slide-poster img {
    transform: scale(1.05);
}

.hot-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.3) 45%, rgba(9, 13, 22, 0.96) 100%);
    pointer-events: none;
}

.hot-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 22px 20px;
    z-index: 3;
    pointer-events: none;
}

.hot-slide-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.22);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.4);
    margin-bottom: 8px;
    backdrop-filter: blur(8px);
}

.hot-slide-title {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}

.hot-slide-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.88);
}

.hot-slide-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.hot-slide-card.is-center .hot-slide-actions,
.hot-slide-card:hover .hot-slide-actions {
    opacity: 1;
    transform: translateY(0);
}

.hot-nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hot-nav-arrow:hover {
    background: #f59e0b;
    color: #000000;
    border-color: #f59e0b;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.5);
}

.hot-nav-prev { left: 18px; }
.hot-nav-next { right: 18px; }

@media (max-width: 768px) {
    .hot-nav-arrow { display: none; }
}

.hot-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    margin-bottom: 6px;
}

.hot-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--border-subtle);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.hot-slider-dot.active {
    width: 26px;
    background: #f59e0b;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.65);
}


