/*!
 * =====================================================
 * TRUYENAUDIOFULL - Semantic HTML5 SEO Theme
 * Version 3.0 - Light Theme, Semantic HTML5
 * =====================================================
 */

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Brand Colors */
    --brand-color: #f75d71;
    --brand-hover: #e04559;
    --brand-light: #fecdd3;
    
    /* Background */
    --bg-body: #f7f8fa;
    --bg-white: #ffffff;
    --bg-light: #f4f6f9;
    
    /* Text */
    --text-dark: #1a1a1a;
    --text-body: #374151;
    --text-muted: #6b7280;
    
    /* Borders */
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition: 0.25s ease;
    
    /* Layout */
    --container-max: 1200px;
    --header-height: 70px;
}

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-body);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }

p {
    margin-bottom: 1rem;
}

/* Hidden H1 for SEO (visually hidden but accessible) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==================== LINKS ==================== */
a {
    color: var(--brand-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-hover);
}

/* ==================== UTILITIES ==================== */
.text-brand { color: var(--brand-color) !important; }
.bg-brand { background-color: var(--brand-color) !important; }
.hover-brand:hover { color: var(--brand-color) !important; }
.fs-7 { font-size: 0.875rem; }

/* ==================== LAYOUT ==================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ==================== SITE LOGO ==================== */
.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

.site-logo:hover {
    color: var(--text-dark);
}

.logo-icon {
    font-size: 1.8rem;
}

.logo-text {
    line-height: 1.2;
}

/* ==================== HEADER & NAVIGATION ==================== */
.site-header {
    background-color: var(--bg-white);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: var(--space-lg);
}

/* Navigation */
.main-nav {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    position: sticky;
    top: var(--header-height);
    z-index: 99;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
    display: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    color: var(--text-body);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    white-space: nowrap;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-link svg {
    opacity: 0.6;
    transition: opacity 0.2s;
}

.nav-link:hover {
    color: var(--brand-color);
    background-color: var(--brand-light);
}

.nav-link:hover svg {
    opacity: 1;
}

.nav-link.active {
    color: white;
    background-color: var(--brand-color);
    box-shadow: 0 2px 8px rgba(247, 93, 113, 0.3);
}

.nav-link.active svg {
    opacity: 1;
}

/* Search Form */
.search-form {
    position: relative;
    display: flex;
    max-width: 300px;
    flex: 1;
}

.search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    background-color: var(--bg-light);
    border: 1px solid transparent;
    border-radius: 25px;
    font-size: 0.875rem;
    transition: all 0.25s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--brand-color);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px var(--brand-light);
}

.search-input:focus {
    outline: none;
    border-color: var(--brand-color);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px var(--brand-light);
}

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

/* ==================== HEADER ACTIONS ==================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background-color: var(--bg-light);
    color: var(--text-body);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    text-decoration: none;
}

.header-btn:hover {
    background-color: var(--brand-light);
    color: var(--brand-color);
}

.header-btn.primary {
    background-color: var(--brand-color);
    color: white;
}

.header-btn.primary:hover {
    background-color: var(--brand-hover);
    color: white;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    padding: var(--space-sm);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-dark);
}

/* Mobile Navigation Menu */
@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 999;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        padding: var(--space-md);
        gap: var(--space-sm);
    }
    
    .nav-link {
        padding: 12px 16px;
    }
}

/* ==================== CONTINUE READING ==================== */
.continue-section {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-md) 0;
}

.continue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.continue-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.continue-scroll {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    padding-bottom: var(--space-sm);
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.continue-scroll::-webkit-scrollbar {
    height: 4px;
}

.continue-scroll::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.continue-card {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-fast);
    width: 280px;
}

.continue-card:hover {
    border-color: var(--brand-color);
    box-shadow: var(--shadow-md);
}

.continue-cover {
    position: relative;
    width: 70px;
    height: 90px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

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

.continue-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-color: rgba(0,0,0,0.4);
}

.continue-progress-bar {
    height: 100%;
    background-color: var(--brand-color);
}

.continue-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    overflow: hidden;
    flex-grow: 1;
}

.continue-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.continue-episode {
    font-size: 0.875rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
    padding: var(--space-xl) 0;
}

/* ==================== CONTENT WRAPPER (Main + Sidebar) ==================== */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-xl);
}

.content-main {
    min-width: 0;
}

.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .content-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* ==================== HERO SECTION ==================== */
.hero-banner {
    position: relative;
    height: 400px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-xl);
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-xl);
    color: var(--bg-white);
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--brand-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-sm);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--brand-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--brand-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--bg-white);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    margin-bottom: var(--space-xl);
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}

.page-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
}

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
    padding: var(--space-md) 0;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-sm);
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: var(--space-sm);
    color: var(--text-muted);
}

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

.breadcrumb a:hover {
    color: var(--brand-color);
}

/* ==================== FILTER BAR ==================== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    padding: var(--space-md);
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
}

.filter-btn {
    padding: 8px 16px;
    background-color: var(--bg-light);
    color: var(--text-body);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    background-color: var(--brand-light);
    color: var(--brand-color);
}

.filter-btn.active {
    background-color: var(--brand-color);
    color: white;
}

/* ==================== STORY GRID ==================== */
.story-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-lg);
}

/* Story Card - Using ARTICLE element for SEO */
.story-card {
    background: none;
}

.story-cover-link {
    display: block;
    text-decoration: none;
}

.story-cover-wrap {
    position: relative;
    aspect-ratio: 2/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--bg-light);
    box-shadow: var(--shadow-sm);
}

.story-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.story-cover-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.story-card:hover .story-cover-overlay {
    opacity: 1;
}

.play-btn {
    width: 60px;
    height: 60px;
    background-color: var(--brand-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.play-btn svg {
    width: 28px;
    height: 28px;
}

/* Badges */
.badge-full,
.badge-new {
    position: absolute;
    top: var(--space-sm);
    right: var(--space-sm);
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    z-index: 2;
}

.badge-full {
    background-color: var(--brand-color);
    color: white;
}

.badge-new {
    background-color: #10b981;
    color: white;
}

/* Card Meta Overlay */
.card-meta-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 8px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    z-index: 2;
}

.card-meta-overlay .meta-rating,
.card-meta-overlay .meta-listen {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: white;
    font-weight: 500;
}

.card-meta-overlay .meta-rating svg {
    color: #f59e0b;
}

.card-meta-overlay .meta-listen svg {
    opacity: 0.9;
}

.story-info {
    padding: var(--space-md) 0;
}

.story-card-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast);
}

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

/* ==================== SIDEBAR ==================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.sidebar-widget {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--brand-color);
    margin-bottom: var(--space-lg);
}

/* Ranking List - Using OL for SEO */
.ranking-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ranking-list li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

.ranking-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.rank-num {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.rank-num.top-1 { background-color: #f59e0b; color: white; }
.rank-num.top-2 { background-color: #10b981; color: white; }
.rank-num.top-3 { background-color: #3b82f6; color: white; }
.rank-num.other { background-color: var(--bg-light); color: var(--text-muted); }

.ranking-cover {
    width: 50px;
    height: 65px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}

.ranking-info {
    flex: 1;
    overflow: hidden;
}

.ranking-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.ranking-title:hover {
    color: var(--brand-color);
}

.ranking-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    gap: var(--space-md);
}

/* Categories List - Using UL/LI for SEO */
.categories-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.categories-list li {
    display: inline-block;
}

.categories-list a {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--bg-light);
    color: var(--text-body);
    font-size: 0.875rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.categories-list a:hover {
    background-color: var(--brand-color);
    color: white;
}

/* ==================== EPISODES SECTION ==================== */
.episodes-section {
    background-color: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-top: var(--space-xl);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

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

.episode-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Episode Item */
.episode-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.episode-item:hover {
    background-color: var(--brand-light);
}

.episode-item.playing {
    background-color: var(--brand-light);
    border-left: 3px solid var(--brand-color);
}

.episode-item.no-audio {
    opacity: 0.6;
    cursor: default;
}

.ep-thumb {
    position: relative;
    width: 60px;
    height: 75px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.ep-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ep-thumb-overlay,
.ep-thumb-locked {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ep-thumb-overlay {
    background-color: rgba(0,0,0,0.4);
}

.ep-thumb-locked {
    background-color: rgba(0,0,0,0.6);
}

.ep-info {
    flex: 1;
    overflow: hidden;
}

.ep-num {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ep-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ep-duration {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.ep-status {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
}

.ep-status.locked {
    background-color: var(--bg-light);
    color: var(--text-muted);
}

.ep-play-btn {
    width: 44px;
    height: 44px;
    background-color: var(--brand-color);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.ep-play-btn:hover {
    background-color: var(--brand-hover);
    transform: scale(1.1);
}

/* ==================== PAGINATION ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xs);
    margin-top: var(--space-xl);
}

.page-btn {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-white);
    color: var(--text-body);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.page-btn:hover {
    background-color: var(--brand-light);
    color: var(--brand-color);
}

.page-btn.active {
    background-color: var(--brand-color);
    color: white;
}

/* ==================== STORY HERO (Detail Page) ==================== */
.story-hero {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-xl);
    padding: var(--space-xl);
    background-color: var(--bg-white);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-xl);
}

.hero-cover {
    position: relative;
    aspect-ratio: 2/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.hero-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.hero-author {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    color: var(--text-muted);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.tag {
    display: inline-block;
    padding: 6px 14px;
    background-color: var(--bg-light);
    color: var(--text-body);
    font-size: 0.875rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

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

.hero-desc {
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
}

/* ==================== AUDIO PLAYER ==================== */
.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.audio-player.active {
    transform: translateY(0);
}

.audio-player-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.player-info {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-width: 200px;
}

.player-cover {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

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

.player-text {
    overflow: hidden;
}

.player-story,
.player-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-story {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
}

.player-title {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.player-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.player-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 45px;
}

.player-bar {
    flex: 1;
    height: 6px;
    background-color: var(--bg-light);
    border-radius: var(--radius-full);
    cursor: pointer;
    overflow: hidden;
}

.player-bar-fill {
    height: 100%;
    background-color: var(--brand-color);
    width: 0;
    transition: width 0.1s linear;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.player-btn {
    width: 40px;
    height: 40px;
    background-color: var(--bg-light);
    border: none;
    border-radius: 50%;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.player-btn:hover {
    background-color: var(--brand-color);
    color: white;
}

.player-btn.play {
    width: 48px;
    height: 48px;
    background-color: var(--brand-color);
    color: white;
}

.player-btn.play:hover {
    background-color: var(--brand-hover);
}

.volume-btn,
.player-close {
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.volume-btn:hover,
.player-close:hover {
    color: var(--brand-color);
}

/* ==================== FOOTER ==================== */
.site-footer {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: var(--space-xl) 0;
    margin-top: var(--space-xl);
}

.footer-seo {
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--brand-color);
}

.footer-seo-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
}

.footer-seo-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
}

.footer-seo-desc strong {
    color: var(--brand-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-section {
    min-width: 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.footer-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-links svg {
    color: var(--brand-color);
    flex-shrink: 0;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--brand-color);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

.footer-badges {
    display: flex;
    gap: var(--space-sm);
}

.footer-badges span {
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.badge-dmca {
    background-color: #10b981;
    color: white;
}

.badge-protected {
    background-color: var(--text-dark);
    color: white;
}

/* Tags List */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    list-style: none;
    margin: 0;
    padding: 0;
}

.tags-list li {
    display: inline-block;
}

.tags-list a {
    display: inline-block;
    padding: 6px 12px;
    background-color: var(--bg-light);
    color: var(--text-body);
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.tags-list a:hover {
    background-color: var(--brand-color);
    color: white;
    border-color: var(--brand-color);
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: var(--space-xl) var(--space-md);
    color: var(--text-muted);
}

.empty-state h3 {
    margin-bottom: var(--space-sm);
}

/* ==================== TOAST ==================== */
.toast-container {
    position: fixed;
    bottom: 100px;
    right: var(--space-lg);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    padding: var(--space-md) var(--space-lg);
    background-color: var(--text-dark);
    color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease;
}

.toast.success { background-color: #10b981; }
.toast.error { background-color: #ef4444; }
.toast.warning { background-color: #f59e0b; }

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .story-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .story-hero {
        grid-template-columns: 200px 1fr;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--bg-white);
        padding: var(--space-md);
        box-shadow: var(--shadow-md);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: stretch;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .search-form {
        max-width: 100%;
    }
    
    .story-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: var(--space-md);
    }
    
    .story-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-cover {
        margin: 0 auto;
        max-width: 200px;
    }
    
    .hero-info {
        align-items: center;
    }
    
    .hero-meta {
        justify-content: center;
    }
    
    .hero-tags {
        justify-content: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .continue-card {
        width: 240px;
    }
    
    .audio-player-inner {
        flex-wrap: wrap;
        gap: var(--space-md);
    }
    
    .player-info {
        min-width: 100%;
    }
    
    .player-progress {
        order: 3;
        width: 100%;
    }
    
    .episode-item {
        padding: var(--space-sm);
    }
    
    .ep-thumb {
        width: 50px;
        height: 60px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .story-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-bar {
        padding: var(--space-sm);
        gap: var(--space-xs);
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .hero-banner {
        height: 300px;
    }
    
    .hero-title {
        font-size: 1.25rem;
    }
}
