:root {
    --bg-dark: #080808;
    --bg-card: #121212;
    --accent: #e50914;
    /* Netflix Red */
    --gold: #ffb400;
    --text-white: #ffffff;
    --text-gray: #b3b3b3;
    --gradient: linear-gradient(135deg, #e50914 0%, #9b060d 100%);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    padding-bottom: 60px;
    /* Space for Fixed Footer */
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

header {
    background: rgba(8, 8, 8, 0.95);
    backdrop-filter: blur(10px);
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #222;
}

.header-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent);
}

.search-bar {
    flex: 0 1 400px;
    display: flex;
    background: #1a1a1a;
    border-radius: 50px;
    padding: 5px 15px;
    border: 1px solid #333;
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    padding: 8px;
    width: 100%;
    outline: none;
}

.search-bar button {
    background: transparent;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
}

nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
}

nav a {
    font-weight: 500;
    color: var(--text-gray);
}

nav a:hover,
nav a.active {
    color: var(--accent);
}

/* Hero */
.hero {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #080808 20%, transparent 100%), url('https://images.unsplash.com/photo-1626814026160-2237a95fc5a0?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.hero-content {
    max-width: 600px;
}

.trending-tag {
    background: var(--accent);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-block;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    color: var(--gold);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    /* Fast response */
    transition: all 0.1s ease-out;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.btn:active {
    transform: scale(0.98) translateZ(0);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(5px);
}

.btn-gold {
    background: var(--gold);
    color: #000;
}

/* VPN Banner */
.vpn-banner {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid #00d2ff;
    border-left: none;
    border-radius: 0 10px 10px 0;
    padding: 20px 5px;
    z-index: 999;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.2);
    transition: 0.3s;
    width: 45px;
    overflow: hidden;
    white-space: nowrap;
}

.vpn-banner:hover {
    width: 200px;
    background: #00d2ff;
}

.vpn-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.vpn-icon {
    font-size: 1.5rem;
    color: #00d2ff;
    width: 30px;
    text-align: center;
    animation: pulse-blue 2s infinite;
}

.vpn-banner:hover .vpn-icon {
    color: #000;
    animation: none;
}

.vpn-text {
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.vpn-banner:hover .vpn-text {
    color: #000;
}

@keyframes pulse-blue {
    0% {
        text-shadow: 0 0 0 rgba(0, 210, 255, 0.4);
    }

    50% {
        text-shadow: 0 0 20px rgba(0, 210, 255, 1);
    }

    100% {
        text-shadow: 0 0 0 rgba(0, 210, 255, 0.4);
    }
}

@media (max-width: 768px) {
    .vpn-banner {
        display: none;
    }
}

/* Footer Donate */
.footer-donate {
    display: none;
    /* Hidden in fixed footer */
    text-align: center;
    margin: 30px auto;
    max-width: 600px;
    padding: 20px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
    justify-content: center;
    gap: 20px;
    transition: 0.3s;
}

.footer-donate:hover {
    border-color: var(--gold);
    background: rgba(255, 180, 0, 0.05);
}

.footer-donate p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin: 0;
}

.footer-donate i.fa-mug-hot {
    color: var(--gold);
    margin-right: 5px;
}

.btn-donate {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 6px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-donate:hover {
    background: var(--gold);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 180, 0, 0.2);
}

@media (max-width: 600px) {
    .footer-donate {
        flex-direction: column;
        border-radius: 20px;
        gap: 15px;
        padding: 20px;
    }
}

/* Filters */
.top-filters,
.advanced-filters {
    padding: 25px 0;
    background: #0d0d0d;
    border-bottom: 1px solid #222;
}

.filter-group-wrap {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold);
    min-width: 80px;
    text-transform: uppercase;
}

.type-list,
.genre-list,
.country-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: wrap;
}

.type-list::-webkit-scrollbar,
.genre-list::-webkit-scrollbar,
.country-list::-webkit-scrollbar {
    display: none;
}

.type-tag,
.genre-tag,
.country-tag {
    white-space: nowrap;
    padding: 6px 16px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: #aaa;
    transition: 0.3s;
}

.type-tag:hover,
.type-tag.active,
.genre-tag:hover,
.genre-tag.active,
.country-tag:hover,
.country-tag.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
}

@media (max-width: 768px) {
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .type-list,
    .genre-list,
    .country-list {
        flex-wrap: nowrap;
        width: 100%;
        padding-bottom: 5px;
    }
}

/* Card Grid */
.movie-section {
    padding: 60px 0;
}

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

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.movie-grid.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    padding-bottom: 20px;
    grid-template-columns: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.movie-grid.horizontal-scroll .movie-card {
    width: 200px;
    min-width: 200px;
    flex-shrink: 0;
}

.movie-grid.horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.movie-grid.horizontal-scroll::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

/* Cards */
.movie-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    /* Faster transition for less delay */
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    /* GPU acceleration */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.movie-card:hover {
    transform: translateY(-10px) translateZ(0);
    /* Only use will-change on hover */
    will-change: transform;
}

.movie-card:not(:hover) {
    will-change: auto;
}

.poster-wrap {
    position: relative;
    aspect-ratio: 2/3;
    background-color: #222;
    overflow: hidden;
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.poster-wrap img.loaded {
    opacity: 1;
}

.rating-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--gold);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.movie-info {
    padding: 15px;
}

.movie-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-info p {
    color: var(--text-gray);
    font-size: 0.85rem;
}

.source-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--accent);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.direct-watch-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: linear-gradient(45deg, #e50914, #b20710);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.direct-watch-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6);
    background: linear-gradient(45deg, #ff0f1b, #d40813);
}

/* Vertical Satellite Skyscraper */
.satellite-skyscraper {
    position: fixed !important;
    top: 15% !important;
    right: 20px !important;
    width: 200px !important;
    height: 50vh !important;
    background: #000 url('images/satellite-vertical.png') center/cover no-repeat !important;
    border-radius: 15px !important;
    border: 2px solid rgba(255, 173, 0, 0.6) !important;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 173, 0, 0.3) !important;
    z-index: 99999 !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding: 20px 15px !important;
    overflow: hidden !important;
    text-decoration: none !important;
}

.satellite-skyscraper:hover {
    transform: scale(1.05) translateX(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 173, 0, 0.4);
    border-color: #ffad00;
}

.skyscraper-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.skyscraper-content h4 {
    color: #ffad00;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    line-height: 1.3;
}

.skyscraper-content p {
    color: #fff;
    font-size: 0.75rem;
    margin-bottom: 12px;
    opacity: 0.9;
    font-weight: 500;
    text-shadow: 1px 1px 2px #000;
}

.skyscraper-btn {
    background: linear-gradient(135deg, #ffad00, #ff8c00);
    color: #000 !important;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 900;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.satellite-skyscraper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    z-index: 1;
}

.close-sky {
    position: absolute;
    top: 8px;
    right: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.4rem;
    z-index: 3;
    transition: 0.3s;
}

.close-sky:hover {
    color: #ffad00;
    transform: rotate(90deg);
}

/* Mobile Optimization for Sky Ad (Horizontal/Horizontal on Phone) */
@media (max-width: 800px) {
    .satellite-skyscraper {
        width: 66vw !important;
        height: 95px !important;
        /* Increased height */
        right: 85px !important;
        /* Positioned left of move-up button */
        bottom: 18px !important;
        top: auto !important;
        flex-direction: column !important;
        /* Back to column to allow stacking if needed, or keep row with absolute btn */
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 12px 15px !important;
        border-radius: 12px !important;
        border-width: 1px !important;
        background: #000 url('images/satellite-banner.png') center/cover no-repeat !important;
        /* Use horizontal image if possible */
    }

    .satellite-skyscraper::after {
        height: 100% !important;
        width: 100% !important;
        background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 60%, transparent 100%) !important;
    }

    .skyscraper-content {
        text-align: left !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        width: 70% !important;
    }

    .skyscraper-content h4 {
        font-size: 0.85rem !important;
        margin-bottom: 2px !important;
        white-space: nowrap !important;
    }

    .skyscraper-content p {
        font-size: 0.65rem !important;
        margin-bottom: 0 !important;
        white-space: nowrap !important;
    }

    .skyscraper-btn {
        width: auto !important;
        min-width: 80px !important;
        font-size: 0.7rem !important;
        padding: 5px 12px !important;
        position: absolute !important;
        right: 8px !important;
        bottom: 8px !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        text-transform: uppercase !important;
    }
}

/* Play Controls & Cinema Mode */
.server-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
    border-radius: 12px 12px 0 0;
}

.btn-mini,
.btn-server,
.btn-tool {
    background: rgba(255, 255, 255, 0.05);
    color: #ddd;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-server:hover,
.btn-tool:hover,
.btn-mini:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-1px);
}

.btn-server.active {
    background: var(--gold);
    color: #000;
    font-weight: 700;
    border-color: var(--gold);
    box-shadow: 0 4px 12px rgba(255, 180, 0, 0.25);
}

.player-tools {
    margin-left: auto;
}

/* FIX ZOOM: Cinema Mode Strong Overrides */
.modal-content.cinema-mode-modal {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    margin: 0 !important;
    border-radius: 0 !important;
    top: 0 !important;
    left: 0 !important;
    position: fixed !important;
    border: none !important;
    background: #000 !important;
    z-index: 9999 !important;
}

.cinema-mode-modal #modal-details {
    height: 100% !important;
    display: flex;
    display: flex;
    flex-direction: column;
}

.cinema-mode-modal .video-container {
    height: 100% !important;
    width: 100% !important;
    flex: 1;
    max-height: none !important;
    padding: 0 !important;
}

.cinema-mode-modal .server-controls {
    padding: 10px 20px;
    background: #111;
    z-index: 10;
}

.cinema-mode-modal iframe {
    height: 100% !important;
    flex-grow: 1;
}

/* Footer (Fixed/Sticky for Infinite Scroll) */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background: rgba(8, 8, 8, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid #333;
    padding: 10px 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
    margin-top: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
    color: var(--text-gray);
    align-items: center;
}

/* Hide bulky sections to keep it a thin bar, only show Logo, Links, Contact */
.footer-donate,
.footer-disclaimer,
.copyright,
.tmdb-attribution {
    display: none;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-info p,
.footer-info div {
    display: none;
    /* Hide tagline blocks */
}

/* Keep Logo Visible */
.footer-info .logo {
    font-size: 1.2rem;
    display: block;
}

.footer-contact {
    text-align: right;
    display: flex;
    gap: 15px;
    align-items: center;
}

.footer-contact h4 {
    display: none;
}

.footer-contact p {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin: 0;
}

/* Responsive Footer */
@media (max-width: 768px) {
    footer {
        padding: 5px 0;
    }

    .footer-content {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
    }

    .footer-links {
        gap: 15px;
        font-size: 0.8rem;
    }

    /* Hide Logo/Contact on mobile to focus on Links per request */
    .footer-info,
    .footer-contact {
        display: none;
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: var(--bg-card);
    margin: 5% auto;
    padding: 0;
    border: 1px solid #333;
    width: 90%;
    max-width: 1000px;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    margin-bottom: 80px;
    /* Space for fixed footer */
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    z-index: 10;
    text-shadow: 0 0 5px black;
}

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

.modal-hero {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.modal-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-card) 100%);
}

.play-trailer-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(229, 9, 20, 0.9);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    z-index: 5;
}

.play-trailer-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.6);
}

/* QR Modal */
.qr-modal-overlay {
    z-index: 2200;
    /* Above Footer */
}

.qr-modal-content {
    background: #1a1a1a;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid var(--gold);
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 30px rgba(255, 180, 0, 0.2);
}

.qr-container {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin: 20px auto;
    width: fit-content;
}

.qr-container img {
    display: block;
    width: 250px;
    height: 250px;
}

.close-qr {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
}

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

.donate-info {
    font-size: 1.2rem;
    color: var(--gold);
    margin: 10px 0 5px 0;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        height: auto;
    }

    .header-wrap {
        flex-direction: column;
        padding: 15px 0;
    }

    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 15px;
        flex: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .server-controls {
        justify-content: space-between;
    }

    .player-tools {
        display: none;
    }

    .server-list {
        display: flex;
        gap: 5px;
        overflow-x: auto;
    }
}

.modal-body {
    padding: 30px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

.modal-poster img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.modal-info h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.1;
}

.modal-meta {
    display: flex;
    gap: 20px;
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.modal-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tag {
    background: #333;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.modal-overview .tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.modal-overview h3 {
    color: var(--gold);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.modal-overview p {
    color: #ddd;
    line-height: 1.7;
    margin-bottom: 20px;
}

.cast-list,
.similar-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.cast-item img,
.similar-item img {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 5px;
}

.cast-item p,
.similar-item p {
    font-size: 0.8rem;
    color: #ccc;
}

.modal-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .modal-poster {
        display: none;
    }
}

/* Scroll Top */
.scroll-top {
    position: fixed;
    bottom: 60px;
    /* Above Footer */
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.3s;
    z-index: 2001;
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.4);
}

.scroll-top:hover {
    transform: translateY(-5px);
    background: #f40612;
}

/* Prominent Load More Button */
.load-more-btn {
    background-color: #e50914 !important;
    /* Netflix Red */
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 12px 30px;
    border-radius: 4px;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: block;
    margin: 40px auto;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.load-more-btn:hover {
    background-color: #f40612 !important;
    /* Brighter Red */
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(229, 9, 20, 0.4);
    cursor: pointer;
}

.load-more-btn svg {
    fill: currentColor;
    margin-right: 8px;
}

/* Mobile Polish (iPhone/Small Screens) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* 2-Column Grid for Phones */
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .movie-card {
        border-radius: 8px;
    }

    .movie-info {
        padding: 10px;
    }

    .movie-info h3 {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }

    .movie-info p {
        font-size: 0.75rem;
    }

    .hero {
        height: 50vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.2rem;
    }

    /* Watch Page Mobile */
    .player-box {
        border-radius: 0;
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }

    .search-bar {
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .movie-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-links {
        gap: 15px;
        font-size: 0.85rem;
    }

    .poster-wrap .source-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
}

/* Floating Social Share Bar */
.social-share-floating {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.share-item {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-item:hover {
    transform: scale(1.15) translateX(5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.share-item span {
    position: absolute;
    left: 60px;
    background: #000;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    border: 1px solid #333;
}

.share-item:hover span {
    opacity: 1;
    left: 55px;
}

.share-fb {
    background: #1877F2;
}

.share-tg {
    background: #0088cc;
}

.share-zalo {
    background: #0068ff;
    font-weight: bold;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .social-share-floating {
        left: 10px;
        gap: 10px;
    }

    .share-item {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .share-item span {
        display: none;
    }
}

/* =========================================
   MOBILE APP UI MODE (Request: Giống App)
   ========================================= */
@media (max-width: 600px) {

    /* Fixed Bottom Nav - Premium Glassmorphism */
    .mobile-app-bar {
        display: flex;
        position: fixed;
        bottom: 16px;
        left: 16px;
        right: 16px;
        width: auto;
        height: 60px;
        background: rgba(15, 15, 15, 0.9);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        z-index: 9999;
        justify-content: space-around;
        align-items: center;
        padding-bottom: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-app-bar.nav-hidden {
        transform: translateY(120%);
    }

    .app-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #777;
        font-size: 0.65rem;
        gap: 6px;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        text-decoration: none;
        flex: 1;
        font-weight: 500;
    }

    .app-nav-item i {
        font-size: 1.3rem;
        transition: 0.2s;
    }

    .app-nav-item.active {
        color: var(--accent);
    }

    .app-nav-item.active i {
        transform: translateY(-2px);
        text-shadow: 0 0 10px rgba(229, 9, 20, 0.3);
    }

    /* Clearer "App" Body */
    body {
        padding-bottom: 80px !important;
        background-color: #050505 !important;
        /* Slightly darker for contrast */
    }

    /* Compact App Header */
    header {
        height: 60px !important;
        background: rgba(5, 5, 5, 0.95) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        padding: 0 !important;
        position: sticky !important;
        top: 0 !important;
    }

    .header-wrap {
        height: 100% !important;
        justify-content: center !important;
        position: relative !important;
    }

    .logo {
        font-size: 1.2rem !important;
        letter-spacing: 0px !important;
    }

    .search-bar {
        display: none !important;
    }

    nav {
        display: none !important;
    }

    /* Hero Section Polish */
    .hero-streaming {
        margin-top: 0 !important;
        margin-bottom: 25px !important;
        border-radius: 0 !important;
        min-height: 400px !important;
    }

    .hero-content {
        padding: 30px 15px !important;
        grid-template-columns: 1fr !important;
    }

    .hero-title {
        font-size: 22px !important;
        text-align: center !important;
    }

    .hero-subtitle,
    .hero-features,
    .hero-stats {
        display: none !important;
    }

    .hero-actions {
        justify-content: center !important;
        margin-top: 15px !important;
    }

    .hero-poster {
        display: none !important;
    }

    /* THE ITEM (MOVIE CARD) - "Rõ ràng hơn" */
    .movie-section {
        padding: 20px 0 !important;
    }

    .section-header h2 {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px !important;
    }

    .movie-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px 12px !important;
        padding: 0 5px !important;
    }

    .movie-card {
        background: transparent !important;
        border-radius: 15px !important;
        transform: none !important;
        box-shadow: none !important;
    }

    .poster-wrap {
        border-radius: 12px !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        overflow: hidden !important;
    }

    .movie-info {
        padding: 10px 0 5px 0 !important;
    }

    .movie-info h3 {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        margin-bottom: 3px !important;
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .movie-info p {
        font-size: 0.7rem !important;
        opacity: 0.6 !important;
        font-weight: 400 !important;
    }

    .watch-btn-hover {
        display: none !important;
    }

    /* Status Badges Overlay */
    .rating-badge {
        font-size: 0.65rem !important;
        padding: 3px 6px !important;
        border-radius: 6px !important;
        background: rgba(0, 0, 0, 0.7) !important;
        backdrop-filter: blur(4px) !important;
    }

    /* Hide Social Bar & Bulky Elements */
    .social-share-floating,
    .vpn-banner,
    footer,
    .satellite-skyscraper {
        display: none !important;
    }

    /* Adjust Scroll Top when Tab Bar is likely hidden */
    .scroll-top {
        bottom: 16px !important;
        right: 16px !important;
        width: 45px !important;
        height: 45px !important;
        z-index: 9998;
        /* Below visible tab bar, but visible when hidden */
    }
}

@media (min-width: 601px) {
    .mobile-app-bar {
        display: none !important;
    }
}

/* Mobile Search Overlay Styles */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}

.mobile-search-overlay.active {
    transform: translateY(0);
    visibility: visible;
}

.search-overlay-header {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 15px;
    background: #111;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.close-search-overlay,
.clear-search {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    padding: 5px;
    cursor: pointer;
}

#mobile-query {
    flex: 1;
    background: #222;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

#mobile-query:focus {
    border-color: var(--accent);
}

.search-overlay-body {
    flex: 1;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: #666;
}

.search-hint {
    text-align: center;
}

.search-hint i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.search-hint p {
    font-size: 0.9rem;
}

/* Ensure bottom bar is hidden when search is active */
body.search-active .mobile-app-bar {
    display: none !important;
}