/* ShortFlix Myanmar - Cinematic Dark Theme */
:root {
    --bg-main: #0b0d14;
    --bg-card: #131722;
    --bg-card-hover: #1c2233;
    --bg-glass: rgba(19, 23, 34, 0.85);
    --primary: #e50914;
    --primary-glow: rgba(229, 9, 20, 0.35);
    --gold: #ffb800;
    --gold-glow: rgba(255, 184, 0, 0.35);
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #23293b;
    --border-glow: rgba(229, 9, 20, 0.5);
    --font-mm: 'Pyidaungsu', 'Padauk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-white);
    font-family: var(--font-mm);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    user-select: none; /* Anti-scraping */
    -webkit-user-select: none;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #080a0f;
}
::-webkit-scrollbar-thumb {
    background: #2a3146;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Navbar */
.navbar-custom {
    background: rgba(11, 13, 20, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
}
.brand-logo .brand-badge {
    background: linear-gradient(135deg, var(--primary) 0%, #ff3b30 100%);
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    box-shadow: 0 0 15px var(--primary-glow);
}
.brand-logo .brand-mm {
    font-size: 0.85rem;
    color: var(--gold);
    font-weight: 600;
    margin-left: 4px;
}
.brand-logo-img {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    object-fit: cover;
    box-shadow: 0 0 12px rgba(229, 9, 20, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.lang-switch-pill {
    display: inline-flex;
    align-items: center;
    background: #181d2c;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2px;
    font-size: 0.78rem;
    font-weight: 600;
}
.lang-btn {
    padding: 0.25rem 0.55rem;
    border-radius: 16px;
    color: var(--text-muted);
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.lang-btn:hover {
    color: #fff;
}
.lang-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 8px var(--primary-glow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}
.nav-link {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.nav-link:hover, .nav-link.active {
    color: #fff;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

/* Buttons */
.btn-cinema {
    background: linear-gradient(135deg, var(--primary) 0%, #b8000b 100%);
    color: #fff;
    border: none;
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-cinema:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6);
    color: #fff;
}

.btn-gold {
    background: linear-gradient(135deg, #ffb800 0%, #d48800 100%);
    color: #000;
    border: none;
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px var(--gold-glow);
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 184, 0, 0.6);
    color: #000;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.55rem 1.15rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}
.btn-glass:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* Hero Section */
.hero-banner {
    position: relative;
    width: 100%;
    min-height: 480px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center top;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0b0d14 0%, rgba(11, 13, 20, 0.85) 45%, rgba(11, 13, 20, 0.3) 100%),
                linear-gradient(0deg, #0b0d14 0%, transparent 60%);
}
.hero-content {
    position: relative;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    z-index: 2;
}
.hero-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.badge-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.65rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}
.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}
.hero-desc {
    max-width: 620px;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sections */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.25rem 3.5rem;
    width: 100%;
    flex: 1;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.section-title i {
    color: var(--primary);
}

/* Series Grid */
.series-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}
@media (max-width: 600px) {
    .series-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }
}

.series-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}
.series-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 20px var(--primary-glow);
}

.card-poster {
    position: relative;
    width: 100%;
    padding-top: 140%; /* 1:1.4 aspect ratio */
    overflow: hidden;
    background: #181d2c;
}
.card-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.series-card:hover .card-poster img {
    transform: scale(1.05);
}

.card-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}
.badge-recap {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #000;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.4);
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.3px;
}
.badge-subtitle {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(2, 132, 199, 0.4);
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.3px;
}
.badge-vip {
    background: linear-gradient(135deg, #ffb800 0%, #ff8800 100%);
    color: #000;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.badge-free {
    background: rgba(34, 197, 94, 0.9);
    color: #fff;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}
.badge-channel {
    background: rgba(14, 165, 233, 0.9);
    color: #fff;
    font-weight: 700;
    font-size: 0.65rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.card-info {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card-title-mm {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-title-en {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: auto;
}
.meta-rating {
    color: var(--gold);
    font-weight: 700;
}

/* App Download Banner Promo */
.download-promo-card {
    background: linear-gradient(135deg, #1b0709 0%, #171b29 100%);
    border: 1px solid #4a151b;
    border-radius: 16px;
    padding: 2rem;
    margin: 3rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
@media (max-width: 768px) {
    .download-promo-card {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
}
.promo-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #fff;
}
.promo-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 550px;
}
.promo-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Player & Watch Page */
.player-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.25rem 3rem;
}
.player-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.5rem;
}
@media (max-width: 992px) {
    .player-layout {
        grid-template-columns: 1fr;
    }
}

.video-player-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    aspect-ratio: 16 / 9;
}
@media (max-width: 600px) {
    .video-player-wrapper {
        aspect-ratio: 9 / 16;
        max-height: 80vh;
        margin: 0 auto;
    }
}

.video-player-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    outline: none;
}

/* Watermark Shield */
.video-watermark {
    position: absolute;
    top: 16px;
    right: 16px;
    pointer-events: none;
    z-index: 20;
    opacity: 0.45;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.5px;
}

/* Episode Drawer / Sidebar */
.episode-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    max-height: 700px;
}
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}
.episode-scroll-list {
    overflow-y: auto;
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 0.6rem;
    padding-right: 4px;
}
.ep-btn {
    background: #181d2c;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.65rem 0.25rem;
    color: var(--text-white);
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}
.ep-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}
.ep-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 12px var(--primary-glow);
}
.ep-btn.locked {
    background: #10131d;
    color: #64748b;
    border-color: #1e2433;
}
.ep-btn.locked i {
    color: var(--gold);
}

/* VIP Download Modal */
.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-backdrop-custom.show {
    display: flex;
}
.vip-modal-box {
    background: #131722;
    border: 1px solid #36141a;
    border-radius: 18px;
    max-width: 480px;
    width: 100%;
    padding: 2.25rem 2rem;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(229, 9, 20, 0.25);
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes modalPop {
    from { transform: scale(0.85); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}
.modal-close-btn:hover {
    color: #fff;
}
.vip-crown-icon {
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px var(--gold-glow));
}

/* Footer */
footer {
    background: #080a0f;
    border-top: 1px solid var(--border-color);
    padding: 3rem 1.5rem 2rem;
    margin-top: auto;
}
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2rem;
}
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
    }
}
.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid #161a26;
    text-align: center;
    color: #64748b;
    font-size: 0.85rem;
}
