/**
 * =====================================================
 * TRUYENAUDIOFULL - CLEAN CSS
 * Modern Dark Theme
 * =====================================================
 */

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

html {
    scroll-behavior: smooth;
}

/* ===================== VARIABLES ===================== */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --accent: #f97316;
    --accent-light: #fb923c;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    --bg-input: #0f172a;
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: #334155;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --transition: 0.2s ease;
}

/* ===================== BASE ===================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-light);
}

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

/* ===================== CONTAINER ===================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================== HEADER ===================== */
.site-header {
    background: var(--bg-card);
    border-bottom: 3px solid var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-size: 20px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.logo-domain {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
}

/* Search */
.search-wrap {
    flex: 1;
    max-width: 600px;
}

.search-form {
    display: flex;
    background: var(--bg-input);
    border: 2px solid var(--border);
    border-radius: 25px;
    overflow: hidden;
    transition: border-color var(--transition);
}

.search-form:focus-within {
    border-color: var(--primary);
}

.search-input {
    flex: 1;
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 15px;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    outline: none;
}

.search-btn {
    padding: 10px 20px;
    background: var(--primary);
    border: none;
    color: white;
    cursor: pointer;
    transition: background var(--transition);
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* ===================== NAVIGATION ===================== */
.main-nav {
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 4px;
    overflow-x: auto;
    padding: 4px;
}

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

.nav-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    color: rgba(255,255,255,0.95);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}

.nav-link:hover {
    background: rgba(255,255,255,0.15);
    color: white;
}

.nav-link.active {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* ===================== MAIN CONTENT ===================== */
.main-content {
    padding: 32px 0;
    padding-bottom: 100px;
}

/* ===================== PAGE HEADER ===================== */
.page-header {
    margin-bottom: 24px;
}

.page-title {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}

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

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

.story-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2);
}

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

.story-cover-wrap {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}

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

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

.badge-full {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
}

.badge-new {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
}

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

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

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

.play-btn svg {
    width: 24px;
    height: 24px;
    fill: white;
    margin-left: 3px;
}

.cover-stats {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
}

.cover-chip {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
}

.cover-chip svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.story-info {
    padding: 14px;
}

.story-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* ===================== BREADCRUMB ===================== */
.detail-breadcrumb {
    margin-bottom: 24px;
}

.detail-breadcrumb ol {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 14px;
    color: var(--text-muted);
}

.detail-breadcrumb li:not(:last-child)::after {
    content: '/';
    margin-left: 8px;
    color: var(--border);
}

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

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

/* ===================== PAGINATION ===================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-card);
    color: var(--text);
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all var(--transition);
}

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

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

/* ===================== EMPTY STATE ===================== */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    fill: none;
    stroke: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    color: var(--text);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
}

/* ===================== FOOTER ===================== */
.site-footer {
    background: var(--bg-card);
    border-top: 3px solid var(--accent);
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-brand-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--accent);
}

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

.footer-title {
    font-size: 16px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
}

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

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

/* ===================== STORY HERO (NEW) ===================== */
.story-hero {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 20px;
    margin-bottom: 40px;
    border: 1px solid var(--border);
}

.hero-cover {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

.hero-badge-full {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f97316, #e67e22);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

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

.hero-title {
    font-size: 36px;
    font-weight: 800;
    color: white;
    line-height: 1.2;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 15px;
}

.stat-icon {
    font-size: 18px;
}

.stat-text {
    color: var(--text);
    font-weight: 500;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tag {
    padding: 8px 16px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    font-size: 13px;
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.2s;
}

.hero-tag:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.hero-desc {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 15px;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-save {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--bg-hover);
    color: var(--text);
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-save:hover {
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.btn-save.saved {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.btn-save.saved svg {
    fill: white;
}

/* ===================== EPISODES GRID ===================== */
.episodes-section {
    margin-top: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border);
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.section-count {
    color: var(--text-muted);
    font-size: 14px;
    background: var(--bg-hover);
    padding: 6px 14px;
    border-radius: 20px;
}

.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.episode-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.episode-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}

.episode-card.playing {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent), 0 8px 24px rgba(249, 115, 22, 0.3);
}

.episode-card.no-audio {
    opacity: 0.6;
}

.episode-card.no-audio:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

.episode-play-btn {
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    color: inherit;
}

.ep-cover {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.ep-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.ep-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.episode-card:hover .ep-overlay {
    opacity: 1;
}

.ep-locked {
    background: rgba(0, 0, 0, 0.7);
}

.ep-info {
    padding: 16px;
}

.ep-number {
    display: block;
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.ep-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 8px;
    line-height: 1.4;
}

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

.episode-card.playing .ep-overlay {
    opacity: 1;
    background: rgba(249, 115, 22, 0.7);
}

.episode-card.playing .ep-overlay svg {
    width: 40px;
    height: 40px;
}

.ep-locked-text {
    font-size: 13px;
    color: var(--text-muted);
}

/* Audio Player Styles */
.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 3px solid var(--primary);
    padding: 12px 20px;
    display: none;
    z-index: 9999;
}

.audio-player.active {
    display: block;
}

.player-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

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

.player-story {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-title {
    font-size: 14px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

.player-progress {
    flex: 2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-time {
    font-size: 12px;
    color: var(--text-muted);
    min-width: 40px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-hover);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s;
}

.player-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    font-size: 18px;
}

.player-close:hover {
    color: white;
}

/* Responsive */
@media (max-width: 900px) {
    .story-hero {
        grid-template-columns: 180px 1fr;
        gap: 24px;
        padding: 24px;
    }
    
    .hero-title {
        font-size: 28px;
    }
}

@media (max-width: 600px) {
    .story-hero {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .hero-cover {
        max-width: 200px;
        margin: 0 auto;
    }
    
    .hero-info {
        text-align: center;
    }
    
    .hero-stats,
    .hero-tags,
    .hero-actions {
        justify-content: center;
    }
    
    .episode-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }
}

/* ===================== STORY DETAIL HEADER ===================== */
.story-header {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px 32px;
    margin-bottom: 32px;
    border: 1px solid var(--border);
}

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

.header-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-icon {
    font-size: 32px;
}

.header-title {
    font-size: 28px;
    font-weight: 800;
    color: white;
    line-height: 1.3;
}

.header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.header-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 14px;
}

.header-meta-label {
    font-size: 16px;
}

.header-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.header-category {
    padding: 5px 12px;
    background: var(--bg-hover);
    border-radius: 16px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    transition: all var(--transition);
}

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

.header-full-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--accent), #e67e22);
    color: white;
    font-weight: 700;
    font-size: 12px;
    border-radius: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-description {
    margin-top: 8px;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 14px;
}

/* ===================== STORY DETAIL ===================== */
.story-detail {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.story-cover-large {
    aspect-ratio: 3/4;
    border-radius: var(--radius);
    overflow: hidden;
}

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

.story-meta {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.story-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.story-meta-label {
    color: var(--text-muted);
    min-width: 100px;
}

.story-meta-value {
    color: var(--text);
    font-weight: 500;
}

.detail-title {
    font-size: 32px;
    font-weight: 800;
    color: white;
    line-height: 1.3;
    margin-bottom: 20px;
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.story-info-section {
    display: flex;
    flex-direction: column;
}

.related-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--bg-card);
    color: var(--text);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
}

.related-chip:hover {
    background: var(--primary);
    color: white;
}

.story-meta-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 12px 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted);
}

.meta-icon {
    font-size: 16px;
    opacity: 0.7;
}

.meta-text {
    font-weight: 500;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.category-tag {
    padding: 6px 14px;
    background: var(--bg-card);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    transition: all var(--transition);
}

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

.story-badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--accent), #e67e22);
    color: white;
    font-weight: 700;
    font-size: 12px;
    border-radius: 20px;
    margin: 12px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background: var(--accent-light);
}

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

.btn-secondary:hover {
    background: var(--border);
}

.btn-secondary.bookmarked {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

/* ===================== AUDIO PLAYER ===================== */
.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 2px solid var(--primary);
    padding: 12px 20px;
    z-index: 9999;
    display: none;
}

.audio-player.active {
    display: block;
}

.audio-player-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.player-info {
    min-width: 200px;
}

.player-title {
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-story {
    font-size: 12px;
    color: var(--text-muted);
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

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

.player-btn.play:hover {
    background: var(--accent-light);
}

.player-progress {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-time {
    font-size: 12px;
    color: var(--text-muted);
    min-width: 40px;
    font-variant-numeric: tabular-nums;
}

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

.player-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 3px;
    width: 0%;
    transition: width 0.1s;
}

.player-volume {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: var(--bg-hover);
    border-radius: 2px;
    cursor: pointer;
}

/* ===================== EPISODES ===================== */
.episodes-section {
    margin: 40px 0;
}

.episodes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.episodes-title {
    font-size: 22px;
    font-weight: 700;
    color: white;
}

.episode-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 8px;
}

.episode-list::-webkit-scrollbar {
    width: 6px;
}

.episode-list::-webkit-scrollbar-track {
    background: var(--bg-hover);
    border-radius: 3px;
}

.episode-list::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.episode-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border-radius: var(--radius);
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.episode-item:hover {
    background: var(--bg-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.episode-item.playing {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--bg-card), rgba(249, 115, 22, 0.15));
}

.episode-item.playing .episode-num {
    background: var(--accent);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.episode-num {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
    transition: all var(--transition);
}

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

.episode-title {
    font-weight: 600;
    color: var(--text);
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.episode-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.episode-play-btn:hover {
    background: var(--accent-light);
    transform: scale(1.1);
}

.episode-item.playing .episode-play-btn {
    background: var(--accent);
}

.episode-playing-icon {
    display: none;
    animation: equalizer 0.8s infinite;
}

@keyframes equalizer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.episode-item.playing .episode-playing-icon {
    display: flex;
    gap: 2px;
}

.episode-item.playing .episode-play-icon {
    display: none;
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: var(--bg-hover);
    border-radius: 2px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
}

.player-btn#playerClose {
    background: transparent;
    color: var(--text-muted);
    font-size: 16px;
}

.player-btn#playerClose:hover {
    background: var(--bg-hover);
    color: var(--accent);
}

/* ===================== RELATED ===================== */
.related-section {
    margin: 40px 0;
}

.related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.related-title {
    font-size: 22px;
    font-weight: 700;
    color: white;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
    .story-detail {
        grid-template-columns: 220px 1fr;
    }
}

@media (max-width: 768px) {
    .story-detail {
        grid-template-columns: 1fr;
    }
    
    .story-cover-large {
        max-width: 300px;
        margin: 0 auto;
    }
    
    .detail-title {
        font-size: 24px;
    }
    
    .detail-actions {
        flex-direction: column;
    }
    
    .episode-list {
        grid-template-columns: 1fr;
    }
    
    .audio-player-inner {
        flex-wrap: wrap;
        gap: 12px;
    }
    
    .player-progress {
        order: 1;
        width: 100%;
    }
    
    .player-info {
        order: 0;
        width: 100%;
    }
    
    .player-controls {
        order: 2;
    }
    
    .player-volume {
        order: 3;
    }
    
    .player-btn#playerClose {
        order: 4;
    }
}
