:root {
    --primary-color: #ff3b5c;
    --bg-color: #ffffff;
    --text-color: #333333;
    --gray-light: #f5f5f5;
    --gray-medium: #999999;
    --container-width: 1440px;
    /* Wider container */
    --header-height: 70px;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

/* Base Loading Spinner */
.loading-spinner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    /* More breathing room on desktop */
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
        /* Standard mobile padding */
    }
}

/* Header */
.main-header {
    height: var(--header-height);
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header .container {
    display: flex;
    align-items: center;
    height: 100%;
    justify-content: space-between;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

/* Brand Text Shine Animation (Glint Effect) */
@keyframes shine {
    0% {
        background-position: -200% center;
    }

    20% {
        background-position: 200% center;
    }

    100% {
        background-position: 200% center;
    }

    /* Pause */
}

.brand-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    display: block;

    /* Shine Effect */
    background: linear-gradient(120deg, var(--primary-color) 40%, #ff8fa3 50%, var(--primary-color) 60%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

.main-nav ul {
    display: flex;
    gap: 20px;
}

.main-nav ul li a {
    font-weight: 500;
    font-size: 15px;
    color: #333;
    transition: color 0.3s;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #f0f0f0;
    border-radius: 20px;
    padding: 5px 15px;
    width: 250px;
}

.search-bar input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    padding: 5px;
    font-size: 14px;
}

.search-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #666;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.login-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
}

/* Hero Section & Carousel */
.hero-section {
    position: relative;
    width: 100%;
    /* Responsive Aspect Ratio 16:9 */
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 default */
    background: #000;
    overflow: hidden;
}

/* Mobile Logo Fix */
/* Mobile Logo Fix */
.mobile-logo a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.mobile-logo img {
    height: 32px;
    /* Slightly smaller for mobile header alignment */
    width: auto;
    object-fit: contain;
    display: block;
}

.mobile-logo .brand-text {
    font-size: 20px;
    display: block;
    color: #fff !important;

    /* White Shine Effect */
    background: linear-gradient(120deg, #ffffff 40%, #a4a4a4 50%, #ffffff 60%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 5s linear infinite;
}

@media (min-width: 1024px) {
    .hero-section {
        /* Limit height and width so it fits content below */
        height: 500px;
        /* Reduced from 600px for better fit */
        padding-bottom: 0;
        max-width: var(--container-width);
        /* Match content width */
        margin: 20px auto 0;
        /* Center and add top margin */
        border-radius: 12px;
        /* Nice rounded corners */
        overflow: hidden;
        /* contain radius */
    }
}

/* Ensure container takes full size */
.carousel-container,
.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-item {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover !important;
    /* Pas di layar, tidak gepeng */
    background-position: center top !important;
    background-repeat: no-repeat !important;
}

.carousel-item.active {
    opacity: 1;
    z-index: 1;
}

/* On Mobile, standard banner ratio */
@media (max-width: 768px) {
    .hero-section {
        aspect-ratio: 2.1 / 1 !important;
        height: auto;
        min-height: unset;
        margin-top: 10px;
        border-radius: 8px;
    }

    .carousel-content h2 {
        font-size: 24px !important;
        margin-bottom: 8px;
    }

    .carousel-content p.hero-desc {
        display: none;
        /* Hide desc on small mobile slides */
    }

    .btn-hero-play,
    .btn-hero-info {
        padding: 8px 20px;
        font-size: 13px;
    }
}

/* Detail Header Refinement */
.drama-header h1 {
    line-height: 1.5;
    margin-bottom: 20px;
    /* More space below title */
    word-wrap: break-word;
}

.drama-desc {
    margin-bottom: 30px;
    /* Space between description and episode list */
    line-height: 1.6;
    color: #666;
}

.episode-list-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    /* Visual separator */
}

.episode-list-container h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #333;
}

.carousel-item.active {
    display: flex;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Gradient Overlay for text readability - Horizontal fade */
.carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

.carousel-content {
    color: #fff;
    z-index: 2;
    max-width: 600px;
    position: relative;
    padding-left: 40px;
}

.hero-tag-pill {
    display: inline-block;
    background: #FF5722;
    /* Orange-ish dubbed tag color */
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.carousel-content h2 {
    font-family: var(--font-heading);
    font-size: 64px;
    /* Big premium title */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    background: linear-gradient(to right, #fff, #ddd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.carousel-content p.hero-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.btn-hero-play {
    background: var(--primary-color);
    color: white;
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, background 0.2s;
}

.btn-hero-play:hover {
    transform: scale(1.05);
    background: #e62e4d;
}

.btn-hero-info {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.2s;
}

.btn-hero-info:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Floating QR Code */
.hero-qr-float {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 5;
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
    animation: floatUp 3s ease-in-out infinite;
}

.hero-qr-float img {
    width: 100%;
    margin-bottom: 5px;
}

.hero-qr-float span {
    font-size: 12px;
    color: #333;
    font-weight: 600;
    text-align: center;
}

.hero-qr-play-icon {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--primary-color);
    font-size: 24px;
}

@keyframes floatUp {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 40px;
}

.carousel-next {
    right: 40px;
}

/* Responsive Hero */
@media (max-width: 768px) {
    .hero-section {
        height: 500px;
    }

    .carousel-item {
        justify-content: center;
        text-align: center;
        padding: 0 20px;
    }

    .carousel-item::before {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0) 100%);
    }

    .carousel-content {
        padding-left: 0;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-qr-float {
        display: none;
        /* Hide QR on mobile */
    }

    .carousel-content h2 {
        font-size: 36px;
    }

    .carousel-prev,
    .carousel-next {
        width: 36px;
        height: 36px;
        left: 10px;
        right: 10px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }
}

/* Promo Banner */
.promo-banner {
    background: linear-gradient(90deg, #fff7e6 0%, #ffebcc 100%);
    border-radius: 12px;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.promo-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.promo-icon {
    width: 40px;
}

.promo-content p {
    font-weight: 500;
    font-size: 16px;
}

.promo-content span {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 20px;
}

.recharge-btn {
    background: #ff7a45;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.recharge-btn:hover {
    transform: scale(1.05);
}

/* Sections */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    margin-top: 40px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
}

.view-more {
    font-size: 14px;
    color: #666;
}

/* Horizontal Cards (Popular Now) - Premium Redesign */
.horizontal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 Columns for wider cards */
    gap: 30px;
    /* More breathing room */
}

.card-horizontal {
    display: flex;
    gap: 20px;
    padding: 0;
    /* Clean look, no box padding if not needed */
    border-radius: 8px;
    transition: transform 0.2s;
    background: transparent;
}

.card-horizontal:hover {
    transform: translateY(-2px);
}

.card-horizontal .card-img {
    width: 130px;
    /* Larger portrait */
    aspect-ratio: 3/4;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    /* For tag */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card-horizontal .tag-exclusive {
    position: absolute;
    top: 0;
    right: 0;
    background: #FF3B5C;
    /* Explicit primary red */
    color: #fff;
    font-size: 10px;
    padding: 3px 8px;
    border-bottom-left-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.card-horizontal:hover .card-img img {
    transform: scale(1.05);
}

.card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card-info h4 {
    font-size: 18px;
    /* Prominent title */
    font-weight: 700;
    margin-bottom: 4px;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-text {
    font-size: 13px;
    color: #FF3B5C;
    /* Primary color */
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.card-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* Limit description */
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Grid Cards (Terbaru, Eksklusif, Rekomendasi) */
.vertical-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.card-vertical {
    border-radius: 8px;
    overflow: hidden;
}

.card-vertical .card-img {
    width: 100%;
    aspect-ratio: 3/4;
    border-radius: 8px;
    margin-bottom: 8px;
    position: relative;
}

.tag-exclusive {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-bottom-left-radius: 8px;
    font-weight: 700;
}

.card-vertical h4 {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-vertical .category {
    font-size: 12px;
    color: var(--primary-color);
}

/* App Banner */
.app-banner {
    background: linear-gradient(90deg, #fff0f3 0%, #ffe4e9 100%);
    border-radius: 15px;
    margin-top: 60px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-banner-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.app-preview {
    height: 300px;
}

.app-text h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.app-text p {
    font-size: 16px;
    color: #666;
    max-width: 500px;
}

.qr-code {
    text-align: center;
}

.qr-code img {
    width: 120px;
    margin-bottom: 10px;
}

.qr-code p {
    font-size: 12px;
    color: #999;
}

/* SEO Section */
.seo-section {
    padding: 60px 0;
    border-top: 1px solid #eee;
}

.seo-section h1 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.seo-section p {
    font-size: 14px;
    color: #888;
    line-height: 1.8;
}

/* Footer */
.main-footer {
    background: #000;
    color: #fff;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h3 {
    font-size: 16px;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #999;
    font-size: 14px;
}

.app-store-btns img {
    height: 40px;
    margin-bottom: 15px;
    display: block;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #666;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
    .vertical-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .horizontal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vertical-grid {
        grid-template-columns: repeat(3, 1fr);
        /* Tablet */
    }

    .horizontal-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 480px) {
    .vertical-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .container {
        padding: 0 12px;
    }

    /* Mobile Player Layout Refinement */
    .detail-view {
        flex-direction: column;
        gap: 20px;
        margin-top: 10px;
        margin-bottom: 30px;
    }

    .player-container {
        flex: auto;
        width: 100%;
        max-width: 100%;
        margin-bottom: 15px;
        /* Forced 9:16 Aspect Ratio */
        aspect-ratio: 9 / 16;
        background: #000;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    }

    /* Consolidate Player Wrapper Styles */
    .player-wrapper {
        width: 100%;
        height: 100%;
        position: relative;
        /* CRITICAL: Watermark positions relative to this */
        border-radius: 0;
    }

    /* Force video to fill the screen (zoomed) */
    /* Force video to fill the screen (zoomed) */
    .player-wrapper video {
        width: 100%;
        height: 100%;
        object-fit: cover !important;
        /* Removed scale(1.1) to prevent cutting off content */
        background: #000;
    }

    /* Watermark Positioning for Mobile */
    /* Watermark Positioning for Mobile - Cover GoodShort Logo */
    /* Watermark Positioning for Mobile - Cover GoodShort Logo */
    .player-watermark {
        position: absolute;
        top: 65px !important;
        /* Pushed down significantly */
        left: 30px !important;
        /* Pushed right */
        transform: scale(1.0);
        /* Full size to maximize coverage */
        transform-origin: top left;
        z-index: 100;
        pointer-events: none;
    }
}

.drama-header h1 {
    font-size: 18px;
    /* Reduced from 20px */
    line-height: 1.4;
    /* More breathing room */
    margin-bottom: 8px;
    /* Ensure spacing from metadata */
}

.drama-meta {
    flex-wrap: wrap;
    gap: 10px;
}

.episode-list-container {
    padding: 15px;
    border: none;
    background: transparent;
    /* Seamless look */
}

.episode-list-container h3 {
    font-size: 16px;
    font-weight: 600;
}

.episode-grid {
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    /* Smaller squares */
    gap: 8px;
}

.episode-item {
    height: 40px;
    font-size: 14px;
    border-radius: 6px;
}
}

/* Watermark */
.player-watermark {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 20;
    pointer-events: none;
    opacity: 0.8;
}

.player-watermark img {
    height: 30px;
    width: auto;
}

/* Download Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.download-modal {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.download-modal h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 18px;
}

.quality-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-quality {
    background: #f5f5f5;
    border: 1px solid #eee;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-quality:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.btn-quality span.size {
    font-size: 12px;
    opacity: 0.7;
    font-weight: 400;
}

.close-modal {
    margin-top: 15px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
}

font-size: 12px;
opacity: 0.7;
font-weight: 400;
}

.close-modal {
    margin-top: 15px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
}

/* Detail & Play View */
.detail-view {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 60px;
}

.player-container {
    flex: 0 0 350px;
    aspect-ratio: 9/16;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* For Desktop, cap height to reasonable desktop view */
    max-height: calc(100vh - 120px);
}

.player-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.drama-info-panel {
    flex: 1;
}

.drama-header {
    margin-bottom: 30px;
}

.drama-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.drama-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.drama-meta span {
    background: #eee;
    padding: 2px 10px;
    border-radius: 4px;
}

.drama-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

/* Premium Download Button */
.btn-premium-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #333333 100%);
    color: #fff;
    border: none;
    padding: 14px 20px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-premium-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #333333 0%, #444444 100%);
}

.btn-premium-download:active {
    transform: translateY(0);
}

.btn-premium-download svg {
    transition: transform 0.3s ease;
}

.btn-premium-download:hover svg {
    transform: translateY(2px);
}

.episode-list-container {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
}

.episode-list-container h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.episode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
}

.episode-item {
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.episode-item:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.episode-item.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Luxury Dropdown Menu */
.nav-item-dropdown {
    position: relative;
    padding-bottom: 20px;
    /* Bridge the gap */
    margin-bottom: -20px;
}

.kategori-label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 100%;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 20px;
    display: none;
    grid-template-columns: repeat(2, 120px);
    gap: 15px;
    z-index: 2000;
    border: 1px solid #eee;
    margin-top: -5px;
    /* Pull up to touch */
}

.nav-item-dropdown:hover .dropdown-menu {
    display: grid;
}

/* Category Page Chips */
.filter-chips .chip {
    transition: all 0.2s;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
}

.filter-chips .chip:hover {
    filter: brightness(0.95);
    transform: translateY(-1px);
}

.filter-chips .chip.active {
    box-shadow: 0 4px 10px rgba(255, 46, 78, 0.2);
}

.dropdown-item {
    font-size: 14px;
    color: #333;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.dropdown-item:hover {
    color: var(--primary-color);
    font-weight: 600;
}

/* Language Selector */
.language-selector {
    position: relative;
    cursor: pointer;
}

.lang-current {
    font-size: 14px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    width: 150px;
    padding: 10px 0;
    display: none;
    z-index: 2000;
    margin-top: 5px;
}

.language-selector:hover .lang-dropdown {
    display: block;
}

.lang-item {
    padding: 8px 15px;
    font-size: 13px;
    transition: background 0.2s;
}

.lang-item:hover {
    background: #f5f5f5;
    color: var(--primary-color);
}

/* Watermark */
.player-watermark {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    pointer-events: none;
}

.player-watermark img {
    height: 35px;
    opacity: 0.8;
}

/* Enhanced Carousel */
.hero-section {
    position: relative;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 30px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    cursor: pointer;
}

.indicator.active {
    background: #fff;
}

@media (max-width: 900px) {
    .detail-view {
        flex-direction: column;
        align-items: center;
    }

    .player-container {
        width: 100%;
        max-width: 400px;
    }
}

/* Drama Intro Page */
.intro-view {
    padding-top: 30px;
}

.intro-breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 25px;
}

.intro-breadcrumb span {
    margin: 0 5px;
}

.intro-main {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
}

.intro-cover {
    flex: 0 0 240px;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.intro-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
}

.intro-cover .tag-dubbed {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.intro-info {
    flex: 1;
}

.intro-info h1 {
    font-size: 32px;
    font-family: var(--font-heading);
    margin-bottom: 8px;
}

.intro-info .genre {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
    display: block;
}

.intro-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.stat-item span {
    display: block;
}

.stat-label {
    font-size: 12px;
    color: #999;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
}

.intro-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
}

.btn-nonton {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;

    /* Premium App Promo Banner */
    .app-promo-banner {
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .promo-content {
        background: linear-gradient(135deg, #ffe5ec 0%, #fff0f5 100%);
        border-radius: 20px;
        padding: 30px 40px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 30px;
        box-shadow: 0 10px 30px rgba(255, 100, 100, 0.1);
        position: relative;
        overflow: hidden;
    }

    .promo-image-wrapper {
        flex: 0 0 150px;
        height: 200px;
        position: relative;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        transform: rotate(-3deg);
        /* Slight tilt for style */
        border: 4px solid #fff;
    }

    .promo-img-main {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .promo-text {
        flex: 1;
    }

    .promo-text h2 {
        font-size: 26px;
        font-weight: 700;
        color: #333;
        margin-bottom: 15px;
    }

    .promo-text p {
        font-size: 15px;
        color: #666;
        line-height: 1.6;
        max-width: 500px;
    }

    .promo-qr {
        flex: 0 0 120px;
        text-align: center;
        background: #fff;
        padding: 10px;
        border-radius: 12px;
    }

    .promo-qr img {
        width: 100%;
        height: auto;
        display: block;
        margin-bottom: 8px;
    }

    .promo-qr span {
        font-size: 10px;
        color: #888;
        display: block;
        line-height: 1.3;
    }

    /* Mobile Responsive */
    @media (max-width: 768px) {
        .promo-content {
            flex-direction: column;
            text-align: center;
            padding: 30px 20px;
            gap: 20px;
        }

        /* Mobile Hero: Image & Buttons Only */
        .carousel-item {
            position: relative;
            /* Ensure overlay works */
            min-height: auto;
            /* Let image define height */
            height: auto !important;
        }

        .carousel-content {
            position: absolute;
            bottom: 20px;
            left: 0;
            right: 0;
            margin-top: 0;
            padding: 20px;
            background: transparent;
            /* No background */
            min-height: 0;
            justify-content: flex-end;
            /* Align bottom */
            align-items: center;
            text-align: center;
        }

        /* Hide Text on Mobile */
        .carousel-content h2,
        .carousel-content .hero-desc {
            display: none !important;
        }

        /* Buttons Only */
        .hero-actions {
            margin-top: 0;
            justify-content: center;
            width: 100%;
            gap: 12px;
            display: flex;
        }

        .btn-hero-play,
        .btn-hero-info {
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(4px);
            /* Slight visibility boost */
        }

        .promo-image-wrapper {
            height: 180px;
            flex: 0 0 auto;
            transform: rotate(0);
            /* Reset tilt */
            margin-bottom: 10px;
        }

        .promo-text h2 {
            font-size: 20px;
        }

        .promo-qr {
            margin-top: 10px;
        }
    }

    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
}

.btn-outline {
    border: 1px solid #ddd;
    background: #fff;
    color: #666;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.share-icons {
    display: flex;
    gap: 12px;
}

.share-icon {
    width: 24px;
    height: 24px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    cursor: pointer;
}

.intro-section-title {
    font-size: 20px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
}

.intro-synopsis {
    margin-bottom: 40px;
}

.intro-synopsis p {
    color: #666;
    font-size: 15px;
    line-height: 1.7;
}

.episode-thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.ep-thumb-card {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    background: #f9f9f9;
    padding-bottom: 8px;
    transition: transform 0.2s;
}

.ep-thumb-card:hover {
    transform: translateY(-5px);
}

.ep-thumb-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 8px;
}

.ep-thumb-info {
    padding: 0 10px;
}

.ep-thumb-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ep-thumb-num {
    font-size: 11px;
    color: #999;
}

@media (max-width: 768px) {
    .intro-main {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .intro-stats {
        justify-content: center;
    }

    .intro-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-nonton,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .episode-thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile UI Overhaul */

/* Visibility Utilities */
.mobile-only {
    display: none !important;
}

.desktop-only-flex {
    display: flex !important;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block !important;
    }

    .desktop-only-flex {
        display: none !important;
    }

    .app-promo-banner {
        display: none;
        /* Hide desktop promo banner on mobile to use sticky footer instead */
    }

    /* Dense List View for Mobile Content */
    .vertical-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .card-vertical {
        display: flex;
        gap: 15px;
        align-items: flex-start;
        width: 100%;
        background: #fff;
    }

    .card-vertical .card-img {
        width: 100px;
        /* Fixed width for thumb */
        aspect-ratio: 3/4;
        height: auto;
        flex: 0 0 auto;
        margin-bottom: 0;
        border-radius: 6px;
    }

    .card-vertical .card-info {
        /* Assuming card-info wrapper exists or will be implicit */
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: 5px;
    }

    /* Adjust headings in dense view */
    .card-vertical h4 {
        font-size: 16px;
        margin-bottom: 5px;
        white-space: normal;
        /* Allow wrapping */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .card-vertical .category {
        margin-bottom: 5px;
    }
}

/* Mobile Header */
.mobile-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 15px;
    gap: 15px;
    background: #FF3B5C;
    /* Pink Theme */
    color: #fff;
}

.mobile-logo img {
    height: 24px;
    width: auto;
}

.mobile-search-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 5px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-search-bar svg {
    color: #fff;
    opacity: 0.8;
}

.mobile-search-bar input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    width: 100%;
    outline: none;
}

.mobile-search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.mobile-user-icons {
    display: flex;
    gap: 12px;
}

/* Mobile Nav Scroller */
.mobile-nav-scroller {
    display: flex;
    overflow-x: auto;
    padding: 0 15px;
    background: #FF3B5C;
    scrollbar-width: none;
    /* Hide scrollbar */
}

.mobile-nav-scroller::-webkit-scrollbar {
    display: none;
}

.mobile-nav-scroller a {
    flex: 0 0 auto;
    padding: 10px 5px;
    margin-right: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding-bottom: 12px;
}

.mobile-nav-scroller a.active,
.mobile-nav-scroller a:hover {
    color: #fff;
    font-weight: 600;
}

.mobile-nav-scroller a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 3px 3px 0 0;
}

/* Sticky App Footer - Final Compact Fix */
/* Sticky App Footer - Strict Horizontal Layout */
.sticky-app-footer {
    position: fixed;
    bottom: 20px;
    left: 15px;
    right: 15px;
    height: auto;
    min-height: 80px;
    background: linear-gradient(90deg, #ff512f 0%, #dd2476 100%);
    border-radius: 12px;
    display: flex;
    flex-direction: row !important;
    /* Force Row */
    align-items: center;
    z-index: 9999;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(221, 36, 118, 0.4);
    animation: slideUpFooter 0.5s ease-out;
}

@keyframes slideUpFooter {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.saf-image {
    width: 60px;
    flex-shrink: 0;
    margin-right: 15px;
    margin-top: -25px;
    position: relative;
    z-index: 10000;
}

.saf-image img {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transform: rotate(-3deg);
}

.saf-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column !important;
    /* Stack text and button inside the wrapper */
    justify-content: center;
    gap: 5px;
    padding-right: 5px;
    min-width: 0;
    /* Prevent flex overflow */
}

.saf-text-promo {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    width: 100%;
    white-space: normal;
    text-align: left;
    padding-right: 25px;
    /* Clear close btn */
}

.saf-btn-tonton {
    background: #fff;
    color: #dd2476;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    align-self: flex-end;
    /* Align to right inside wrapper */
    width: auto;
}

.saf-close {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    line-height: 1;
}

/* Mobile Visibility Fixes */
@media (max-width: 768px) {
    .horizontal-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    body {
        padding-bottom: 120px;
    }

    /* Ensure list content isn't hidden and displays nicely */
    .vertical-grid,
    .horizontal-grid {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .card-vertical,
    .card-horizontal {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        width: 100%;
        background: #fff;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        margin-bottom: 5px;
        max-width: 100%;
        overflow: hidden;
    }

    .card-vertical .card-img,
    .card-horizontal .card-img {
        width: 80px;
        aspect-ratio: 10/14;
        height: auto;
        flex: 0 0 auto;
        margin-bottom: 0;
        border-radius: 6px;
        position: relative;
        overflow: hidden;
    }

    .card-horizontal .card-img {
        width: 75px;
        /* Even smaller for Trend cards */
    }

    .card-vertical .card-info,
    .card-horizontal .card-info {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 2px;
        gap: 2px;
        min-width: 0;
        overflow: hidden;
    }

    .card-vertical h4,
    .card-horizontal h4 {
        font-size: 14px;
        font-weight: 700;
        color: #111;
        margin: 0;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card-horizontal h4 {
        font-size: 13.5px;
    }

    .card-vertical .card-desc,
    .card-horizontal p {
        font-size: 11.5px;
        color: #777;
        margin: 0;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card-horizontal p {
        font-size: 11px;
    }

    .card-vertical .category,
    .card-horizontal .category-text {
        margin: 0;
        font-size: 11px;
        color: var(--primary-color);
        font-weight: 600;
        margin-top: 2px;
    }

    /* SPECIFIC FIX: Terbaru 3 Column Grid */
    .terbaru-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }

    .terbaru-grid .card-vertical {
        flex-direction: column !important;
        align-items: flex-start !important;
        border-bottom: none !important;
        padding-bottom: 0 !important;
        margin-bottom: 5px !important;
    }

    .terbaru-grid .card-vertical .card-img {
        width: 100% !important;
        aspect-ratio: 10/14 !important;
        border-radius: 6px !important;
    }

    .terbaru-grid .card-vertical .card-info {
        padding-top: 5px !important;
        gap: 0 !important;
    }

    .terbaru-grid .card-vertical h4 {
        font-size: 11px !important;
        -webkit-line-clamp: 2 !important;
        line-height: 1.2 !important;
        text-align: left !important;
    }

    .terbaru-grid .card-vertical .card-desc,
    .terbaru-grid .card-vertical .category {
        display: none !important;
    }

    /* Footer Mobile Alignment */
    .main-footer {
        text-align: center;
        padding: 40px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        gap: 30px !important;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col ul {
        padding: 0;
    }

    .footer-bottom {
        text-align: center;
        padding-bottom: 40px;
    }
}

/* Category Page Specifics */
.category-desc-box {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.pagination-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
}

.pagination-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.related-section-header {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 40px;
    color: #333;
}

/* Update style.css to include footer-popup styles */

.footer-popup {
    position: fixed;
    bottom: 20px;
    /* Float up */
    left: 15px;
    /* Margin left */
    right: 15px;
    /* Margin right */
    width: auto;
    /* Auto width based on left/right */
    background: linear-gradient(to right, #ff7e5f, #feb47b);
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    /* Stronger shadow */
    z-index: 999;
    display: flex !important;
    border-radius: 16px;
    /* Rounded corners */
}

/* Ensure it's hidden on desktop if using mobile-only class logic from elsewhere, 
   but here we define specific styles. 
   Existing .mobile-only in style.css usually hides on desktop. 
*/

.popup-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    /* Ensure full width usage */
}

.popup-image img {
    height: 100px;
    /* Readjusted size */
    margin-top: -50px;
    /* Pop out effect */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: auto;
    border: 2px solid #fff;
}

.popup-text {
    margin-left: 15px;
    color: white;
    flex: 1;
    /* Take remaining space */
    text-align: left;
    /* Explicitly left align */
}

.popup-text h3 {
    font-size: 14px;
    /* Scaled for mobile */
    margin: 0 0 8px;
    line-height: 1.3;
    font-weight: 600;
    color: #fff;
}

.popup-button {
    display: inline-block;
    background-color: white;
    color: #ff7e5f;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 11px;
    transition: background 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.popup-button:hover {
    background-color: #ffe1d6;
}

/* Specific overrides for very small screens to ensure horizontal layout */
@media (max-width: 600px) {
    .footer-popup {
        padding: 10px 0;
    }

    .popup-content {
        flex-direction: row;
        /* FORCE ROW */
        align-items: center;
        text-align: left;
        padding: 0 15px;
    }

    .popup-image img {
        height: 80px;
        /* Smaller on mobile */
        margin-top: -30px;
    }

    .popup-text {
        margin-left: 15px;
        max-width: unset;
        margin-top: 0;
    }

    .popup-text h3 {
        font-size: 13px;
    }
}

/* Video Player Styles - Mobile 9:16 Fix */
.player-container {
    width: 100%;
    display: flex;
    justify-content: center;
    background: #000;
    margin-bottom: 20px;
}

.player-wrapper {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 9 / 16;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .player-container {
        padding: 0;
    }

    .player-wrapper {
        border-radius: 0;
        max-width: 100%;
    }
}

#player-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #111;
    color: white;
    z-index: 100;
    pointer-events: none;
}

.loader-spinner {
    width: 45px;
    height: 45px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 0.8s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-main);
}

#video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* =========================================
   AUTH & ADMIN SYSTEM STYLES
   ========================================= */

/* =========================================
   PREMIUM AUTH & ADMIN SYSTEM (2026 EDITION)
   ========================================= */

/* Premium Background Variables */
root {
    --admin-bg: #0f0f1a;
    --admin-card-bg: rgba(255, 255, 255, 0.03);
    --admin-border: rgba(255, 255, 255, 0.08);
    --admin-text: #e1e1e6;
    --admin-text-muted: #888891;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Auth Pages (Login/Register) */
.auth-view {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top right, #1a1a2e, #0f0c29);
    padding: 20px;
}

.auth-card {
    background: rgba(20, 20, 35, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 50px 40px;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 440px;
    text-align: center;
}

.auth-card h2 {
    margin-bottom: 12px;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.auth-card p {
    color: #a0a0b8;
    margin-bottom: 35px;
    font-size: 15px;
}

/* User Profile */
.profile-view {
    padding: 60px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.profile-header-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    color: #fff;
}

/* Admin Dashboard Overhaul */
.admin-view {
    display: flex;
    min-height: calc(100vh - var(--header-height));
    background: #0a0a0f;
    color: #e1e1e6;
}

.admin-sidebar {
    width: 280px;
    background: #0f0f15;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-sidebar h3 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 25px;
    padding-left: 15px;
}

.admin-menu-item {
    padding: 14px 18px;
    border-radius: 12px;
    cursor: pointer;
    color: #a0a0b8;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-menu-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    transform: translateX(5px);
}

.admin-menu-item.active {
    background: linear-gradient(90deg, rgba(255, 59, 92, 0.15), transparent);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.admin-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    background: radial-gradient(circle at top right, rgba(255, 59, 92, 0.03), transparent);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.admin-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    margin-bottom: 30px;
    transition: 0.3s;
}

.dashboard-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #a0a0b8;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    color: #fff;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(255, 59, 92, 0.2);
}

.form-input::placeholder {
    color: #555;
}

/* Buttons in Admin */
.btn-auth-submit,
.btn-premium-download {
    background: linear-gradient(45deg, var(--primary-color), #ff6b81);
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 15px 30px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 59, 92, 0.3);
    transition: 0.3s;
    width: 100%;
}

.btn-auth-submit:hover,
.btn-premium-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 59, 92, 0.4);
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.data-table th {
    padding: 15px 20px;
    text-align: left;
    color: #a0a0b8;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.data-table tr td {
    background: rgba(255, 255, 255, 0.02);
    padding: 18px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.data-table tr td:first-child {
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px 0 0 12px;
}

.data-table tr td:last-child {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0 12px 12px 0;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

/* Mobile Admin */
@media (max-width: 992px) {
    .admin-view {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 15px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .admin-sidebar h3 {
        display: none;
    }

    .admin-menu-item {
        white-space: nowrap;
        padding: 10px 15px;
    }

    .admin-content {
        padding: 25px;
    }
}