/* ============================================
   DRAMAVIEW STYLES - CLEAN VERSION
   ============================================ */

:root {
    --primary-gold: #D4AF37;
    --dark-gold: #B8941F;
    --light-gold: #F4E4BC;
    --deep-green: #1B4D3E;
    --dark-green: #0F2E26;
    --cream: #FDF6E3;
    --dark-bg: #0A0F0D;
    --glass-bg: rgba(27, 77, 62, 0.9);
    --glass-border: rgba(212, 175, 55, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0A0F0D 0%, #1B4D3E 50%, #0F2E26 100%);
    background-attachment: fixed;
    color: var(--cream);
    min-height: 100vh;
    line-height: 1.6;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-gold);
    color: var(--dark-bg);
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    border-radius: 0 0 8px 0;
}

.skip-link:focus {
    top: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Decorations */
.ramadhan-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.moon-decoration {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--light-gold) 0%, var(--primary-gold) 100%);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
    z-index: -1;
    animation: moonGlow 3s ease-in-out infinite alternate;
}

.moon-decoration::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 12px;
    width: 60px;
    height: 60px;
    background: var(--dark-bg);
    border-radius: 50%;
}

@keyframes moonGlow {
    from { box-shadow: 0 0 30px rgba(212, 175, 55, 0.4); }
    to { box-shadow: 0 0 50px rgba(212, 175, 55, 0.7); }
}

.lantern {
    position: fixed;
    width: 30px;
    height: 45px;
    background: linear-gradient(to bottom, var(--primary-gold), var(--dark-gold));
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.5;
    animation: float 6s ease-in-out infinite;
    z-index: -1;
}

.lantern::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 8px;
    background: var(--dark-gold);
    border-radius: 3px;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

.lantern:nth-of-type(3) { left: 8%; top: 15%; animation-delay: 0s; }
.lantern:nth-of-type(4) { left: 88%; top: 55%; animation-delay: 2s; }
.lantern:nth-of-type(5) { left: 3%; top: 65%; animation-delay: 4s; }

/* Header */
.header {
    background: linear-gradient(to bottom, rgba(11, 15, 13, 0.98), rgba(11, 15, 13, 0.8));
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Amiri', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-gold);
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.logo:hover {
    transform: scale(1.02);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.logo i {
    font-size: 2rem;
    color: var(--light-gold);
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 45px;
    border: 2px solid var(--glass-border);
    border-radius: 30px;
    background: rgba(27, 77, 62, 0.6);
    color: var(--cream);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: rgba(27, 77, 62, 0.9);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.search-input::placeholder {
    color: rgba(253, 246, 227, 0.5);
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-gold);
    font-size: 1rem;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    color: var(--dark-bg);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--light-gold), var(--primary-gold));
    transform: translateY(-50%) scale(1.05);
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 5%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(27, 77, 62, 0.9), rgba(15, 46, 38, 0.95));
    border-radius: 20px;
    padding: 50px 40px;
    margin-bottom: 40px;
    border: 1px solid var(--glass-border);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-title {
    font-family: 'Amiri', serif;
    font-size: 2.8rem;
    color: var(--primary-gold);
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
    position: relative;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--cream);
    max-width: 600px;
    margin: 0 auto 25px;
    line-height: 1.7;
    position: relative;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    color: var(--light-gold);
    font-size: 0.95rem;
    position: relative;
}

.hero-stats span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-stats i {
    color: var(--primary-gold);
}

/* Sections */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.section-title {
    font-family: 'Amiri', serif;
    font-size: 1.5rem;
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.section-title i {
    color: var(--light-gold);
}

.section {
    margin-bottom: 50px;
}

/* Drama Grid */
.drama-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.drama-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.drama-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.2);
    border-color: var(--primary-gold);
}

.drama-poster {
    width: 100%;
    aspect-ratio: 2/3;
    position: relative;
    overflow: hidden;
}

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

.drama-card:hover .drama-poster img {
    transform: scale(1.08);
}

.drama-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    color: var(--dark-bg);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 700;
    z-index: 10;
}

.drama-rank {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(11, 15, 13, 0.95);
    color: var(--primary-gold);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid var(--primary-gold);
    z-index: 10;
}

.drama-info {
    padding: 12px;
}

.drama-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--light-gold);
}

.drama-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(253, 246, 227, 0.6);
}

.drama-meta i {
    color: var(--primary-gold);
    margin-right: 4px;
}

/* Loading */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 1.1rem;
    color: var(--primary-gold);
    grid-column: 1 / -1;
}

.loading i {
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Back Button */
.back-btn {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: var(--cream);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.back-btn:hover {
    background: var(--glass-bg);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    transform: translateX(-5px);
}

/* Detail View */
.detail-view {
    display: none;
    animation: fadeIn 0.4s ease;
}

.detail-view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.detail-hero {
    background: linear-gradient(135deg, rgba(11, 15, 13, 0.95), rgba(27, 77, 62, 0.9));
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid var(--glass-border);
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.detail-poster {
    width: 100%;
    max-width: 300px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 3px solid var(--primary-gold);
    transition: transform 0.3s ease;
}

.detail-poster:hover {
    transform: scale(1.02);
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-content h1 {
    font-family: 'Amiri', serif;
    font-size: 2.2rem;
    color: var(--primary-gold);
    line-height: 1.3;
    margin: 0;
}

.detail-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.detail-meta span {
    background: rgba(212, 175, 55, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--glass-border);
    color: var(--light-gold);
}

.detail-meta i {
    color: var(--primary-gold);
}

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

.tag {
    background: rgba(27, 77, 62, 0.8);
    border: 1px solid var(--glass-border);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--light-gold);
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary-gold);
    color: var(--dark-bg);
    border-color: var(--primary-gold);
}

.detail-synopsis {
    line-height: 1.8;
    color: rgba(253, 246, 227, 0.9);
    font-size: 1rem;
    text-align: justify;
    margin: 0;
}

.play-btn {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    color: var(--dark-bg);
    border: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    font-family: 'Poppins', sans-serif;
    margin-top: 10px;
    width: fit-content;
}

.play-btn:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
}

/* Episodes */
.episodes-section {
    background: var(--glass-bg);
    border-radius: 20px;
    padding: 35px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
}

.episode-card {
    background: rgba(11, 15, 13, 0.7);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.episode-card:hover {
    border-color: var(--primary-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.episode-card.current {
    border-color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.2);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.episode-card.played {
    opacity: 0.6;
    border-color: var(--deep-green);
}

.episode-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-gold);
    margin-bottom: 5px;
    line-height: 1;
}

.episode-label {
    font-size: 0.8rem;
    color: rgba(253, 246, 227, 0.7);
    margin-bottom: 10px;
}

/* Footer */
.footer {
    background: linear-gradient(to top, rgba(11, 15, 13, 0.98), rgba(27, 77, 62, 0.9));
    border-top: 2px solid var(--glass-border);
    padding: 50px 5% 25px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: var(--primary-gold);
    font-family: 'Amiri', serif;
    font-size: 1.6rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand p {
    color: rgba(253, 246, 227, 0.7);
    font-size: 0.9rem;
}

.footer-links h4 {
    color: var(--primary-gold);
    margin-bottom: 18px;
    font-size: 1.05rem;
    font-weight: 600;
}

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

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

.footer-links a {
    color: rgba(253, 246, 227, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--primary-gold);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--glass-border);
    color: rgba(253, 246, 227, 0.5);
    font-size: 0.85rem;
}

/* ============================================
   VIDEO MODAL
   ============================================ */

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: linear-gradient(135deg, #0A0F0D 0%, #1B4D3E 100%);
    border-radius: 20px;
    border: 2px solid var(--glass-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: rgba(11, 15, 13, 0.98);
    border-bottom: 1px solid var(--glass-border);
}

.video-info h3 {
    color: var(--primary-gold);
    font-family: 'Amiri', serif;
    font-size: 1.3rem;
    margin: 0 0 5px 0;
}

.video-info p {
    color: rgba(253, 246, 227, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

.video-close-btn {
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--glass-border);
    color: var(--cream);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.video-close-btn:hover {
    background: rgba(212, 175, 55, 0.3);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    transform: rotate(90deg);
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

/* Big Center Controls */
.big-center-controls {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: 40px;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s;
}

.big-center-controls.hidden {
    opacity: 0;
    pointer-events: none;
}

.big-control-btn {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.3);
    background: rgba(0,0,0,0.6);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.big-control-btn:hover {
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    color: var(--dark-bg);
    transform: scale(1.1);
}

.big-control-btn.prev-btn,
.big-control-btn.next-btn {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    opacity: 0.7;
}

.big-control-btn.prev-btn:hover,
.big-control-btn.next-btn:hover {
    opacity: 1;
}

.big-control-btn:disabled {
    opacity: 0.2 !important;
    cursor: not-allowed;
    background: rgba(0,0,0,0.3);
}

.big-control-btn.play-pause-btn {
    width: 100px;
    height: 100px;
    font-size: 2.5rem;
    background: rgba(212, 175, 55, 0.9);
    border-color: var(--primary-gold);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
}

.big-control-btn.play-pause-btn:hover {
    background: var(--primary-gold);
    transform: scale(1.15);
}

/* Video Loader */
.video-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.9);
    color: var(--cream);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--glass-border);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.video-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.9);
    color: var(--cream);
}

.video-error i {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 15px;
}

.video-error button {
    margin-top: 15px;
    padding: 10px 25px;
    background: var(--primary-gold);
    border: none;
    border-radius: 20px;
    color: var(--dark-bg);
    font-weight: 600;
    cursor: pointer;
}

/* Progress Bar */
.bottom-progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    cursor: pointer;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-gold), var(--light-gold));
    width: 0%;
    transition: width 0.1s linear;
    border-radius: 4px;
}

.time-display {
    color: white;
    font-size: 0.9rem;
    font-family: monospace;
    text-align: right;
}

/* Episode Navigation */
.episode-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background: rgba(11, 15, 13, 0.98);
    border-top: 1px solid var(--glass-border);
}

.nav-episode-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--cream);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.nav-episode-btn:hover:not(:disabled) {
    background: var(--primary-gold);
    color: var(--dark-bg);
    border-color: var(--primary-gold);
}

.nav-episode-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.episode-info-center {
    text-align: center;
    color: var(--light-gold);
    font-size: 0.9rem;
}

.episode-info-center strong {
    color: var(--primary-gold);
}

/* Responsive */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .detail-hero {
        grid-template-columns: 250px 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .search-container {
        width: 100%;
        max-width: none;
    }
    
    .hero-section {
        padding: 35px 25px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .drama-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .detail-hero {
        grid-template-columns: 1fr;
        padding: 25px;
    }
    
    .detail-poster {
        max-width: 200px;
        margin: 0 auto;
    }
    
    .detail-content {
        text-align: center;
    }
    
    .detail-meta {
        justify-content: center;
    }
    
    .detail-tags {
        justify-content: center;
    }
    
    .play-btn {
        margin: 0 auto;
    }
    
    .episodes-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .video-modal-content {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .big-center-controls {
        gap: 20px;
    }
    
    .big-control-btn {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .big-control-btn.play-pause-btn {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .episode-nav-bar {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .drama-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .episodes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}