/* public/assets/css/style.css */

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

body {
    font-family: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(160deg, #0f0f14 0%, #1a1528 45%, #2d1f3d 100%);
    min-height: 100vh;
    color: #e8e6ed;
}

body.page-home {
    background: #0a0a0f;
}

.bg-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(196, 164, 106, 0.25), transparent),
        radial-gradient(ellipse 60% 40% at 100% 50%, rgba(99, 102, 241, 0.12), transparent);
    z-index: 0;
}

.page-home .home-hub,
.page-home .navbar,
.page-home .hero,
.page-home #catalog,
.page-home .site-footer,
.page-auth .navbar,
.page-auth .auth-layout,
.page-auth .site-footer,
.page-app .navbar,
.page-app .page-inner,
.page-app .detail-hero,
.page-app .detail-body,
.page-app .show-main,
.page-app .watch-main,
.page-app .site-footer {
    position: relative;
    z-index: 1;
}

/* Navigation */
.navbar {
    background: rgba(8, 8, 12, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-drama {
    background: rgba(8, 8, 12, 0.9);
}

.logo-drama {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #f5e6c8, #c4a46a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-drama .site-logo-nav {
    height: 28px;
    width: auto;
    margin-right: 0.45rem;
    vertical-align: middle;
    border-radius: 6px;
    object-fit: contain;
    -webkit-background-clip: border-box;
    background-clip: border-box;
}

.nav-cta {
    background: linear-gradient(135deg, #c4a46a, #9a7b4f) !important;
    padding: 0.35rem 1rem !important;
    border-radius: 999px;
    font-weight: 600;
    color: #0a0a0f !important;
}

.nav-cta:hover {
    filter: brightness(1.08);
    color: #0a0a0f !important;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.logo:hover {
    color: #667eea;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a, .nav-links span {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #667eea;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

/* Movies Grid */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.movie-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    border-color: rgba(196, 164, 106, 0.35);
}

.card-drama .card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-media {
    position: relative;
}

.card-badges {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
}

.badge-type {
    color: #c4d4ff;
}

.badge-free {
    color: #86efac;
}

.badge-paid {
    color: #fcd34d;
}

.card-cta {
    font-size: 0.85rem;
    color: #c4a46a;
    font-weight: 600;
}

.muted-wide {
    grid-column: 1 / -1;
    text-align: center;
    opacity: 0.7;
    padding: 2rem;
}

.hero {
    padding: 4rem 20px 3rem;
    text-align: center;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: #c4a46a;
    margin-bottom: 1rem;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    max-width: 18ch;
    margin: 0 auto 1rem;
}

.hero-title span {
    background: linear-gradient(135deg, #f5e6c8, #c4a46a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    max-width: 36rem;
    margin: 0 auto 1.75rem;
    opacity: 0.82;
    line-height: 1.6;
}

.btn-drama {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    color: #0a0a0f;
    background: linear-gradient(135deg, #f5e6c8, #c4a46a);
    box-shadow: 0 8px 32px rgba(196, 164, 106, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-drama:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(196, 164, 106, 0.45);
    color: #0a0a0f;
}

.btn-drama-outline {
    background: transparent;
    color: #f5e6c8 !important;
    border: 2px solid rgba(196, 164, 106, 0.6);
    box-shadow: none;
}

.btn-drama--sm {
    padding: 0.5rem 1.15rem;
    font-size: 0.88rem;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.site-footer {
    padding: 2rem 20px;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.85rem;
    opacity: 0.55;
    text-align: center;
}

.page-detail .detail-hero {
    padding: 2.5rem 20px 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-hero-inner {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 2rem;
    align-items: start;
}

.detail-poster img,
.detail-poster-placeholder {
    width: 100%;
    border-radius: 14px;
    aspect-ratio: 2/3;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-poster-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: rgba(255, 255, 255, 0.06);
}

.detail-type {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #c4a46a;
    margin-bottom: 0.5rem;
}

.detail-meta h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    margin-bottom: 0.75rem;
}

.detail-badges {
    margin-bottom: 1rem;
}

.detail-desc {
    opacity: 0.88;
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.detail-body {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.episode-list {
    list-style: none;
}

.episode-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.muted {
    opacity: 0.65;
}

.btn-ep {
    flex-shrink: 0;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    background: linear-gradient(135deg, #c4a46a, #9a7b4f);
    color: #0a0a0f;
}

.btn-ep-muted {
    background: rgba(255, 255, 255, 0.12);
    color: #e8e6ed;
}

.checkbox-row label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-row input {
    width: auto;
}

@media (max-width: 640px) {
    .detail-hero-inner {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 200px;
    }
}

.movie-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.movie-info {
    padding: 20px;
}

.movie-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.movie-desc {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 15px;
    line-height: 1.4;
}

.watch-btn {
    display: inline-block;
    background: #667eea;
    color: #fff;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.watch-btn:hover {
    background: #5a67d8;
}

/* Auth Forms */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    color: #333;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #667eea;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #5a67d8;
}

.btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background: #48bb78;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #38a169;
}

.btn-small {
    display: inline-block;
    padding: 5px 15px;
    background: #667eea;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-small:hover {
    background: #5a67d8;
}

.btn-danger {
    background: #e53e3e;
}

.btn-danger:hover {
    background: #c53030;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
}

.auth-link a {
    color: #667eea;
    text-decoration: none;
}

/* Alerts */
.alert {
    padding: 12px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.alert-success {
    background: #48bb78;
    color: #fff;
}

.alert-error {
    background: #e53e3e;
    color: #fff;
}

.alert-info {
    background: #4299e1;
    color: #fff;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
}

.stat-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #667eea;
}

.status-active {
    color: #48bb78;
    font-size: 1.2rem;
}

.status-inactive {
    color: #e53e3e;
    font-size: 1.2rem;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    height: 10px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-fill {
    background: #667eea;
    height: 100%;
    transition: width 0.3s;
}

/* Plans Grid */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.plan-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s;
}

.plan-card:hover {
    transform: translateY(-5px);
}

.plan-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.price {
    font-size: 2rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 20px;
}

.plan-features {
    margin: 20px 0;
    text-align: left;
}

.plan-features p {
    margin: 10px 0;
    padding: 5px 0;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* Data Table */
.data-table {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
}

.data-table thead {
    background: rgba(0, 0, 0, 0.3);
}

.data-table th,
.data-table td {
    padding: 12px 15px;
    text-align: left;
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Upload Form */
.upload-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
}

/* Video Player */
.video-container {
    max-width: 1000px;
    margin: 0 auto;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
}

.video-player {
    width: 100%;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .dashboard-stats,
    .plans-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .data-table {
        font-size: 0.9rem;
        overflow-x: auto;
        display: block;
    }
}

/* —— Shared app shell (dashboard, plans, detail, watch, auth) —— */
.page-auth {
    background: #0a0a0f;
    min-height: 100vh;
}

.page-app {
    background: #0a0a0f;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-app .page-inner {
    flex: 1;
}

.nav-back {
    opacity: 0.9;
    font-size: 0.9rem;
}

.auth-layout {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1.25rem 3rem;
    min-height: calc(100vh - 140px);
}

.auth-card--drama {
    width: 100%;
    max-width: 440px;
    background: rgba(18, 18, 26, 0.88);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem 2rem 2.25rem;
    color: #e8e6ed;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.auth-card--drama h2 {
    font-family: 'Outfit', sans-serif;
    text-align: left;
    margin-bottom: 0.5rem;
    color: #f5e6c8;
    font-size: 1.65rem;
}

.auth-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #c4a46a;
    margin: 0 0 0.35rem;
}

.auth-lead {
    margin: 0 0 1.5rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(232, 230, 237, 0.72);
}

.auth-card--drama .form-group label {
    color: rgba(255, 255, 255, 0.75);
}

.auth-card--drama .form-group input {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.auth-card--drama .form-group input:focus {
    border-color: #c4a46a;
}

.auth-card--drama .btn-primary {
    background: linear-gradient(135deg, #f5e6c8, #c4a46a);
    color: #0a0a0f;
    width: 100%;
    padding: 0.85rem;
    border-radius: 12px;
    font-weight: 700;
}

.auth-card--drama .btn-primary:hover {
    filter: brightness(1.06);
}

.auth-card--drama .alert {
    border-radius: 12px;
}

.auth-card--drama .auth-link {
    color: rgba(255, 255, 255, 0.65);
}

.auth-card--drama .auth-link a {
    color: #f5e6c8;
    font-weight: 600;
}

.page-inner {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

.page-inner--narrow {
    max-width: 960px;
}

.page-head {
    margin-bottom: 2rem;
}

.page-head__kicker {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #c4a46a;
    margin: 0 0 0.35rem;
}

.page-head__title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #fff;
}

.page-head__title--player {
    margin-bottom: 0.75rem;
}

.page-head__lead {
    margin: 0;
    max-width: 40rem;
    color: rgba(232, 230, 237, 0.72);
    line-height: 1.55;
    font-size: 0.95rem;
}

.alert--drama {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-dashboard .dashboard-stats {
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card--drama {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem 1.5rem 1.75rem;
    text-align: left;
}

.stat-card--drama h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #f5e6c8;
}

.stat-card__line {
    margin: 0.35rem 0;
    font-size: 0.95rem;
    color: rgba(232, 230, 237, 0.88);
}

.stat-card__muted {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(232, 230, 237, 0.55);
    line-height: 1.5;
}

.status-pill {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.status-pill--ok {
    background: rgba(72, 187, 120, 0.2);
    color: #9ae6b4;
    border: 1px solid rgba(72, 187, 120, 0.35);
}

.status-pill--off {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-bar--drama {
    margin-top: 1rem;
    height: 8px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.progress-bar--drama .progress-fill {
    background: linear-gradient(90deg, #c4a46a, #f5e6c8);
    height: 100%;
    border-radius: 999px;
}

.quick-actions--drama {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.plans-grid--drama {
    gap: 1.25rem;
    margin-top: 0;
}

.plan-card--drama {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
    color: #e8e6ed;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.plan-card--drama h3 {
    font-family: 'Outfit', sans-serif;
    color: #fff;
    margin-bottom: 0.5rem;
}

.plan-card__price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f5e6c8;
    margin-bottom: 1rem;
}

.plan-card__features {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    flex: 1;
    font-size: 0.9rem;
    color: rgba(232, 230, 237, 0.75);
}

.plan-card__features li {
    padding: 0.35rem 0;
    padding-left: 1.1rem;
    position: relative;
}

.plan-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #c4a46a;
}

.plan-card__btn {
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.video-shell {
    background: #08080c;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.watch-player-card .video-shell {
    box-shadow: none;
    border-radius: 12px;
}

.video-el {
    width: 100%;
    display: block;
    vertical-align: middle;
}

.watch-player-card .video-el {
    width: 100%;
    max-height: min(70vh, 720px);
    object-fit: contain;
    background: #000;
}

.page-watch__note {
    font-size: 0.88rem;
    color: rgba(232, 230, 237, 0.55);
    margin: 0 0 1rem;
}

/* —— Watch / play (series: player + episode sidebar + meta) —— */
.page-watch .watch-main {
    font-family: 'Inter', 'DM Sans', system-ui, sans-serif;
    background: #ececf0;
    padding: 1.5rem 0 max(3rem, calc(1.5rem + env(safe-area-inset-bottom, 0px)));
    flex: 1;
}

.watch-main__inner {
    max-width: 1200px;
}

.watch-layout {
    display: grid;
    gap: 1.25rem;
    align-items: start;
}

.page-watch--series .watch-layout {
    grid-template-columns: 1fr minmax(240px, 300px);
}

.watch-player-card {
    background: #fff;
    border-radius: 20px;
    padding: 1rem 1.1rem 1.15rem;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

/* Player wrapper: context-menu / tab-hidden shield (does not block OS screenshots). */
.watch-player-wrap {
    position: relative;
    -webkit-user-select: none;
    user-select: none;
}

.watch-player-wrap .video-shell {
    position: relative;
    z-index: 0;
}

.watch-privacy-shield {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(5, 5, 8, 0.94);
    color: #e8e6ed;
    text-align: center;
}

.watch-privacy-shield[hidden] {
    display: none !important;
}

.watch-privacy-shield__title {
    font-weight: 800;
    font-size: 1.05rem;
    margin: 0 0 0.5rem;
}

.watch-privacy-shield__text {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(232, 230, 237, 0.75);
    line-height: 1.45;
    max-width: 22rem;
}

.watch-meta-card {
    margin-top: 1.15rem;
    background: #fff;
    border-radius: 20px;
    padding: 1.25rem 1.35rem 1.4rem;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.watch-meta {
    margin-top: 0;
    padding: 0;
}

.watch-meta__title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.watch-meta__premium-callout {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.12);
}

.watch-meta__premium-callout-inner {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
}

.watch-meta__premium-icon {
    flex-shrink: 0;
    width: 1.65rem;
    height: 1.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(251, 191, 36, 0.35);
    color: #b45309;
    font-size: 0.85rem;
    line-height: 1;
    font-weight: 700;
}

.watch-meta__premium-callout-text {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.5;
    color: #78350f;
    font-weight: 500;
}

.watch-meta__premium-cta {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1.35rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(90deg, #ec4899, #f97316);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

.watch-meta__premium-cta:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 26px rgba(249, 115, 22, 0.38);
}

.watch-meta__premium-cta:focus-visible {
    outline: 3px solid rgba(168, 85, 247, 0.45);
    outline-offset: 2px;
}

@media (min-width: 540px) {
    .watch-meta__premium-callout {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem 1rem;
    }

    .watch-meta__premium-callout-inner {
        flex: 1;
        min-width: 12rem;
    }

    .watch-meta__premium-cta {
        align-self: center;
    }
}

@media (max-width: 539px) {
    .watch-meta__premium-cta {
        align-self: stretch;
        justify-content: center;
        width: 100%;
    }
}

.watch-meta__premium-ok {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.85rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: #166534;
    line-height: 1.45;
}

.watch-meta__premium-ok-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.25);
    flex-shrink: 0;
}

.watch-meta__ep-title {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}

.watch-meta__desc {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #475569;
}

.watch-autonext {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
    margin: 0 0 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
}

.watch-autonext__label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.watch-autonext__label input {
    width: 1.05rem;
    height: 1.05rem;
    accent-color: #6366f1;
    cursor: pointer;
}

.watch-autonext__label input:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.watch-autonext__hint {
    font-size: 0.78rem;
    font-weight: 600;
    color: #6366f1;
}

.watch-autonext__hint--muted {
    font-weight: 500;
    color: #94a3b8;
}

.watch-meta__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.watch-meta__tag {
    display: inline-block;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.watch-meta__share {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    padding-top: 0.35rem;
    border-top: 1px solid #f1f5f9;
    margin-top: 0.25rem;
}

.watch-meta__share-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
}

.watch-meta__share-btns {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.page-watch .show-share__btn--fb:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.page-watch .show-share__btn--x:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.page-watch .show-share__btn--wa:hover {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
}

.watch-sidebar {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.watch-sidebar__head {
    margin: 0;
    padding: 0.75rem 1rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0c4a6e;
    background: linear-gradient(90deg, #e0f2fe 0%, #f0f9ff 55%, #f8fafc 100%);
    border-bottom: 1px solid #bae6fd;
}

.watch-sidebar__head span {
    font-weight: 700;
    color: #0369a1;
    letter-spacing: 0.02em;
}

.watch-ep-tabs {
    display: flex;
    gap: 0.35rem;
    padding: 0.5rem 0.65rem;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.watch-ep-tab {
    flex: 1;
    text-align: center;
    padding: 0.45rem 0.5rem;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    font-family: inherit;
}

.watch-ep-tab:hover {
    background: #f8fafc;
}

.watch-ep-tab.is-active {
    background: #fce7f3;
    color: #9d174d;
    border-color: #fbcfe8;
}

.watch-ep-pane {
    display: none;
    padding: 0.65rem 0.65rem 0.85rem;
}

.watch-ep-pane.is-active {
    display: block;
}

.watch-ep-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.watch-ep-cell {
    position: relative;
    aspect-ratio: 1;
    min-height: 2.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.85rem;
    font-weight: 800;
    color: #334155;
    text-decoration: none;
    transition: background 0.12s, border-color 0.12s, color 0.12s, transform 0.12s;
}

a.watch-ep-cell:hover {
    background: #f1f5f9;
}

a.watch-ep-cell:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.watch-ep-cell--current {
    background: linear-gradient(145deg, #fce7f3, #fbcfe8);
    border-color: #ec4899;
    color: #831843;
    box-shadow:
        0 0 0 2px rgba(244, 114, 182, 0.22),
        0 6px 16px rgba(236, 72, 153, 0.18);
    pointer-events: none;
}

.watch-ep-cell--current .watch-ep-cell__play {
    display: flex;
}

.watch-ep-cell__play {
    display: none;
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 10px;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
}

.watch-ep-cell__play i {
    display: block;
    width: 3px;
    border-radius: 1px;
    background: #db2777;
}

.watch-ep-cell__play i:nth-child(1) {
    height: 40%;
}

.watch-ep-cell__play i:nth-child(2) {
    height: 70%;
}

.watch-ep-cell__play i:nth-child(3) {
    height: 100%;
}

.watch-ep-cell--locked {
    color: #94a3b8;
    background: linear-gradient(160deg, #f8fafc, #f1f5f9);
    border-style: dashed;
    border-color: #cbd5e1;
}

a.watch-ep-cell--locked:hover {
    border-color: #f59e0b;
    border-style: solid;
    background: #fffbeb;
    color: #78716c;
}

.watch-ep-cell__lock {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 1.2rem;
    height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    line-height: 1;
    color: #b45309;
    background: linear-gradient(145deg, #fef3c7, #fde68a);
    border-radius: 50%;
    border: 1px solid #fbbf24;
    box-shadow: 0 1px 3px rgba(180, 83, 9, 0.15);
}

.page-watch .site-footer {
    background: #0a0a0f;
    opacity: 0.65;
    color: rgba(232, 230, 237, 0.75);
}

@media (max-width: 900px) {
    .page-watch--series .watch-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .watch-meta-card {
        padding: 1.1rem 1rem 1.2rem;
        border-radius: 16px;
    }

    .watch-ep-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.55rem;
    }

    .watch-ep-cell {
        min-height: 3rem;
        font-size: 0.92rem;
        border-radius: 14px;
    }

    .watch-ep-cell__lock {
        width: 1.35rem;
        height: 1.35rem;
        font-size: 0.62rem;
        top: 5px;
        right: 5px;
    }
}

.site-footer--compact {
    margin-top: auto;
    padding: 1.5rem 20px;
    opacity: 0.5;
}

.page-auth {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* —— Home catalog (Must-sees / Trending + search) — dark theme to match original bg —— */
.home-hub {
    flex: 1;
    background: transparent;
    padding: 1.5rem 0 3rem;
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
}

.home-hub__inner {
    max-width: 1280px;
}

.home-hub__intro {
    margin-bottom: 1.25rem;
}

.home-hub__title {
    font-family: 'Outfit', system-ui, sans-serif;
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 0.35rem;
}

.home-hub__subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(232, 230, 237, 0.72);
    max-width: 36rem;
    line-height: 1.5;
}

.home-search {
    margin-bottom: 2rem;
}

.home-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.home-search__row {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    align-items: stretch;
}

.home-search__input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.06);
    color: #f1f5f9;
    box-shadow: none;
}

.home-search__input::placeholder {
    color: rgba(241, 245, 249, 0.45);
}

.home-search__input:focus {
    outline: none;
    border-color: rgba(196, 164, 106, 0.55);
    box-shadow: 0 0 0 3px rgba(196, 164, 106, 0.12);
}

.home-search__submit {
    padding: 0.75rem 1.35rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #f5e6c8, #c4a46a);
    color: #0a0a0f;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    font-family: inherit;
    transition: filter 0.15s, transform 0.1s;
}

.home-search__submit:hover {
    filter: brightness(1.06);
}

.home-search__hint {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: rgba(232, 230, 237, 0.55);
}

.home-search__hint a {
    color: #f5e6c8;
    font-weight: 600;
}

.home-section {
    margin-bottom: 2.5rem;
}

.home-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.home-section__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
    font-family: 'Outfit', system-ui, sans-serif;
}

.home-section__more {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(196, 164, 106, 0.9);
    text-decoration: none;
}

.home-section__more:hover {
    color: #f5e6c8;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem 1rem;
}

.home-card {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.home-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    border-color: rgba(196, 164, 106, 0.35);
}

.home-card__poster {
    position: relative;
    aspect-ratio: 2 / 3;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.home-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-card__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.home-card__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 55%);
    pointer-events: none;
}

.home-card__brand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
    text-align: center;
    max-width: 90%;
    line-height: 1.3;
    pointer-events: none;
}

.home-card__ep {
    position: absolute;
    left: 0.55rem;
    bottom: 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    pointer-events: none;
}

.home-card__meta {
    padding: 0.65rem 0.7rem 0.85rem;
    background: rgba(10, 10, 15, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.home-card__title {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-empty {
    padding: 2rem 1.25rem;
    text-align: center;
    color: rgba(232, 230, 237, 0.65);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
}

.home-empty--warn {
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(127, 29, 29, 0.25);
}

@media (max-width: 1200px) {
    .home-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

@media (max-width: 600px) {
    .home-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .home-section__head {
        flex-wrap: wrap;
    }
}

/* —— Title detail / series (light hero + episode grid) —— */
.page-show .show-main {
    font-family: 'Inter', 'DM Sans', system-ui, sans-serif;
    background: #ececf0;
    padding: 1.5rem 0 3rem;
    min-height: 50vh;
}

.show-main__inner {
    max-width: 1200px;
}

.show-hero-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.75rem 2rem;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    margin-bottom: 2rem;
}

.show-hero-card__grid {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 2rem;
    align-items: start;
}

.show-poster {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #e2e8f0;
}

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

.show-poster__ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(160deg, #e2e8f0, #cbd5e1);
}

.show-title {
    margin: 0 0 0.35rem;
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.show-ep-count {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: #64748b;
}

.show-desc {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: #475569;
    text-align: justify;
}

.show-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.show-pill {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.show-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
}

.show-btn-play {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(90deg, #ec4899, #f97316);
    box-shadow: 0 8px 28px rgba(236, 72, 153, 0.35);
    transition: transform 0.15s, box-shadow 0.15s;
}

.show-btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(249, 115, 22, 0.35);
    color: #fff;
}

.show-btn-play:focus-visible {
    outline: 3px solid rgba(168, 85, 247, 0.55);
    outline-offset: 3px;
}

.show-share {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.show-share__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
}

.show-share__btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.show-share__btn:hover {
    background: #e2e8f0;
}

.show-share__btn:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

.show-share__btn:active {
    transform: scale(0.96);
}

.show-episodes {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem 1.75rem 2rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
}

.show-episodes__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.show-episodes__title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
}

.show-episodes__count {
    font-weight: 500;
    color: #64748b;
    font-size: 0.95rem;
}

.show-ep-filter-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.show-ep-filter__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.show-ep-filter {
    padding: 0.45rem 2rem 0.45rem 0.75rem;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 0.88rem;
    font-weight: 500;
    color: #0f172a;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
}

.show-empty {
    color: #64748b;
    font-size: 0.95rem;
}

.show-ep-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.show-ep-grid--extra.is-hidden {
    display: none;
}

.show-ep-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e8ec;
    background: #fafafa;
    transition: box-shadow 0.2s, transform 0.2s;
}

.show-ep-card:not(.show-ep-card--more):hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}

.show-ep-card--more {
    border-style: dashed;
    background: #f1f5f9;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    font-family: inherit;
}

.show-ep-card--more__inner {
    font-weight: 700;
    color: #64748b;
    font-size: 0.95rem;
}

.show-ep-card--more__arrow {
    display: block;
    text-align: center;
    margin-top: 0.35rem;
    font-size: 0.85rem;
}

.show-ep-card__thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #e2e8f0;
}

.show-ep-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.show-ep-card__thumb-ph {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

.show-ep-card__lock {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: rgba(15, 23, 42, 0.45);
}

.show-ep-card__text {
    padding: 0.6rem 0.65rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.show-ep-card__series-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.show-ep-card__ep-label {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
}

.page-show .site-footer {
    opacity: 0.65;
    color: rgba(232, 230, 237, 0.75);
}

@media (max-width: 1024px) {
    .show-ep-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .page-show .show-main {
        padding: 1rem 0 4.5rem;
        padding-bottom: max(4.5rem, calc(env(safe-area-inset-bottom, 0px) + 3.5rem));
    }

    .page-show .show-main .container {
        padding-left: max(1rem, env(safe-area-inset-left, 0px));
        padding-right: max(1rem, env(safe-area-inset-right, 0px));
    }

    .show-hero-card {
        padding: 1.2rem 1.1rem 1.35rem;
        border-radius: 18px;
        margin-bottom: 1.5rem;
    }

    .show-hero-card__grid {
        grid-template-columns: 1fr;
        gap: 1.15rem;
        max-width: none;
        margin: 0;
    }

    .show-poster {
        max-width: min(260px, 72vw);
        margin: 0 auto;
        border-radius: 16px;
        box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
    }

    .show-hero-meta {
        text-align: center;
    }

    .show-title {
        font-size: clamp(1.35rem, 5vw, 1.85rem);
        line-height: 1.2;
    }

    .show-ep-count {
        margin-bottom: 0.75rem;
    }

    .show-desc {
        text-align: center;
        max-width: 34rem;
        margin-left: auto;
        margin-right: auto;
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .show-pills {
        justify-content: center;
        margin-bottom: 1.2rem;
        gap: 0.45rem;
    }

    .show-pill {
        padding: 0.42rem 0.9rem;
        font-size: 0.8rem;
    }

    .show-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        width: 100%;
    }

    .show-btn-play {
        width: 100%;
        max-width: 22rem;
        margin: 0 auto;
        min-height: 3rem;
        padding: 0.95rem 1.5rem;
        font-size: 1.05rem;
        -webkit-tap-highlight-color: transparent;
    }

    .show-share {
        display: grid;
        grid-template-columns: repeat(4, auto);
        justify-content: center;
        justify-items: center;
        column-gap: 0.55rem;
        row-gap: 0.45rem;
        width: 100%;
        max-width: 22rem;
        margin: 0 auto;
    }

    .show-share__label {
        grid-column: 1 / -1;
        font-size: 0.82rem;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        text-align: center;
    }

    .show-share__btn {
        width: 2.85rem;
        height: 2.85rem;
        min-width: 44px;
        min-height: 44px;
        font-size: 0.88rem;
        -webkit-tap-highlight-color: transparent;
    }

    .show-ep-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .show-episodes {
        padding: 1.15rem 1rem 1.5rem;
        border-radius: 18px;
    }

    .show-episodes__head {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .show-ep-filter-wrap {
        width: 100%;
    }

    .show-ep-filter {
        width: 100%;
        padding: 0.55rem 0.85rem;
        min-height: 2.75rem;
    }

    .page-watch .watch-main .container {
        padding-left: max(1rem, env(safe-area-inset-left, 0px));
        padding-right: max(1rem, env(safe-area-inset-right, 0px));
    }

    .watch-meta__share {
        flex-direction: column;
        align-items: center;
        gap: 0.65rem;
    }

    .watch-meta__share-btns {
        justify-content: center;
    }

    .watch-meta__share-label {
        text-align: center;
    }

    .watch-meta__share-btns .show-share__btn {
        width: 2.75rem;
        height: 2.75rem;
        min-width: 44px;
        min-height: 44px;
        font-size: 0.85rem;
        -webkit-tap-highlight-color: transparent;
    }
}

@media (max-width: 480px) {
    .show-hero-card {
        padding: 1rem 0.9rem 1.2rem;
    }

    .show-poster {
        max-width: min(220px, 78vw);
    }

    .show-btn-play {
        max-width: none;
    }

    .show-share {
        max-width: none;
    }

    .show-ep-grid {
        gap: 0.6rem;
    }
}

/* Paywall modal (show.php) */
.paywall-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.paywall-modal[hidden] {
    display: none;
}

.paywall-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 10, 0.72);
    backdrop-filter: blur(6px);
}

.paywall-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(165deg, #1a1528 0%, #12101c 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

.paywall-modal__close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #e8e6ed;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.paywall-modal__close:hover {
    background: rgba(255, 255, 255, 0.14);
}

.paywall-modal__title {
    font-size: 1.25rem;
    margin: 0 2rem 1rem 0;
    line-height: 1.25;
}

.paywall-modal__lead {
    margin: 0 0 0.5rem;
    color: #e8e6ed;
    font-size: 0.98rem;
}

.paywall-modal__hint {
    margin: 0 0 1.25rem;
    color: rgba(232, 230, 237, 0.65);
    font-size: 0.88rem;
}

.paywall-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.paywall-modal__plans {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 0.5rem 0 1rem;
}

.paywall-plan {
    padding: 1rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

.paywall-plan__name {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.paywall-plan__price {
    margin: 0 0 0.35rem;
    font-weight: 700;
    color: #c4a46a;
}

.paywall-plan__meta {
    margin: 0 0 0.75rem;
    font-size: 0.82rem;
    color: rgba(232, 230, 237, 0.6);
}

.paywall-plan__btn {
    width: 100%;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
}

.paywall-modal__footer-link {
    margin: 0;
    font-size: 0.85rem;
}

.paywall-modal__footer-link a {
    color: #a5b4fc;
}

/* Account page */
.page-account .account-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-bottom: 2rem;
}

.page-account .account-card h3 {
    margin: 0 0 1rem;
    font-size: 1.05rem;
}

.page-account .account-card__subhint {
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.page-account .account-subscribe-actions {
    margin-top: 1.1rem;
}

.page-account .account-subscribe-actions .btn-drama {
    display: inline-block;
    text-align: center;
}

@media (max-width: 520px) {
    .page-account .account-subscribe-actions .btn-drama {
        width: 100%;
    }
}

.account-dl {
    display: grid;
    grid-template-columns: minmax(6.75rem, 9.25rem) minmax(0, 1fr);
    column-gap: 1.25rem;
    row-gap: 0.75rem;
    font-size: 0.92rem;
    align-items: baseline;
}

.account-dl dt {
    color: rgba(232, 230, 237, 0.55);
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.account-dl dd {
    margin: 0;
    font-weight: 600;
    color: #f0eef6;
    word-break: break-word;
}

.account-form .form-group {
    margin-bottom: 1rem;
}

.account-back {
    margin-top: 0.5rem;
}

.account-back .btn-drama {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Mobile app-style bottom navigation */
.app-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    /* Top bar + site footer hidden on phone — navigation is the bottom tab bar */
    .navbar.navbar-drama {
        display: none !important;
    }

    .site-footer {
        display: none !important;
    }

    body.page-home,
    body.page-app,
    body.page-auth {
        padding-bottom: calc(4.35rem + env(safe-area-inset-bottom, 0px));
    }

    .app-bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 4500;
        justify-content: space-around;
        align-items: stretch;
        min-height: calc(3.65rem + env(safe-area-inset-bottom, 0px));
        padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
        background: linear-gradient(180deg, rgba(22, 20, 32, 0.97) 0%, rgba(10, 10, 18, 0.99) 100%);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(12px);
    }

    .app-bottom-nav__item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.15rem;
        min-width: 0;
        text-decoration: none;
        color: rgba(232, 230, 237, 0.55);
        font-size: 0.65rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        border-radius: 10px;
        -webkit-tap-highlight-color: transparent;
    }

    .app-bottom-nav__item.is-active {
        color: #e8e6ed;
        background: rgba(99, 102, 241, 0.18);
    }

    .app-bottom-nav__icon {
        font-size: 1.25rem;
        line-height: 1.2;
    }

    .app-bottom-nav__label {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
}