/*
* Archivo: main.css
* Tema: Master Pelis HD - Premium UI
* Descripción: Rediseño visual completo.
*/

:root {
    /* Color Palette */
    --primary-color: #E50914;
    /* Netflix Red */
    --primary-hover: #b20710;
    --secondary-color: #46d369;
    /* Success Green for Match/Quality */
    --bg-dark: #141414;
    --bg-darker: #0d0d0d;
    --bg-card: #1f1f1f;
    --bg-lighter: #262626;
    /* Missing variable for widgets */
    --bg-header: rgba(20, 20, 20, 0.95);

    /* Text Colors */
    --text-main: #ffffff;
    --text-muted: #b3b3b3;
    --text-dark: #000000;

    /* Spacing & Borders */
    --border-radius: 4px;
    --card-radius: 8px;
    --transition-speed: 0.3s;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.8);
}

/* ==========================================================================
RESET & GLOBAL
========================================================================== */

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    /* Standard Premium Font Stack */
    background-color: var(--bg-dark);
    color: var(--text-muted);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-weight: 700;
    margin-top: 0;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    display: block;
}

/* ==========================================================================
HEADER & NAVIGATION
========================================================================== */

.site-header {
    background-color: transparent;
    padding: 20px 4%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease;
    box-sizing: border-box;
}

/* Adjust for Admin Bar */
.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }

}
.site-header.site-header-sticky {
    background-color: var(--bg-dark);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    padding: 12px 4%;
}

/* Glassmorphism Effect for Header (Optional) */
@supports (backdrop-filter: blur(10px)) {
    .site-header.site-header-sticky {
        background-color: rgba(20, 20, 20, 0.85);
        backdrop-filter: blur(12px);
    }

}
.header-main-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

/* Brand */
.site-title a {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--primary-color);
}

.site-title .highlight {
    color: var(--text-main);
}

/* Navigation */
.menu-toggle {
    display: none;
}

.mobile-only-menu-extras {
    display: none;
}



@media screen and (max-width: 991px) {
    .header-main-container {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .site-branding {
        flex: 1;
    }

    .site-title a {
        font-size: 1.4rem;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 5px;
        z-index: 1001;
        position: relative;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 2px;
        background-color: var(--text-main);
        transition: 0.3s;
    }

    .menu-container {
        display: none;
        /* Controlled by JS slideToggle */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-darker);
        padding: 20px 4%;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        z-index: 1000;
    }

    .main-navigation ul.main-menu {
        flex-direction: column;
        gap: 15px !important;
        align-items: flex-start !important;
    }

    .main-navigation a {
        display: block;
        width: 100%;
        font-size: 1.1rem !important;
        padding: 10px 0 !important;
    }

    .header-right-panel {
        width: 100%;
        justify-content: space-between;
        gap: 10px !important;
        margin-top: 5px;
    }

    .header-search {
        flex: 1;
    }

    .header-search .search-form {
        width: 100%;
        justify-content: space-between;
        padding: 8px 12px;
    }

    .header-search input.search-field {
        width: 100% !important;
        font-size: 1rem;
    }

    .header-login-button {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

}
.main-navigation ul.main-menu {
    display: flex;
    gap: 35px;
    align-items: center;
}

.main-navigation a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-navigation a:hover {
    color: var(--text-main);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.main-navigation a i {
    margin-right: 8px;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.main-navigation a:hover i {
    transform: scale(1.2);
    color: var(--text-main);
}

/* Animated Underline */
.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-hover));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* Right Panel */
.header-right-panel {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-search .search-form {
    background: transparent;
    border: 1px solid var(--text-main);
    padding: 5px 10px;
    border-radius: 0;
    /* Square borders can look more cinematic/minimal */
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

.header-search .search-form:focus-within {
    background: black;
    border-color: var(--primary-color);
}

.header-search input.search-field {
    background: transparent;
    border: none;
    color: white;
    width: 0;
    /* Hidden by default effect, expand on click could be added later */
    width: 150px;
    /* Default for now */
    transition: width 0.4s;
}

.header-search input.search-field:focus {
    outline: none;
}

.header-search .search-submit {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Login Button */
.header-login-button {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
}

.header-login-button:hover {
    background-color: var(--primary-hover);
    color: white;
}

/* ==========================================================================
HERO SECTION
========================================================================== */

.hero-section {
    position: relative;
    height: 80vh;
    /* High impact */
    min-height: 500px;
    background-size: cover;
    background-position: center top;
    display: flex;
    align-items: center;
    margin-bottom: -50px;
    /* Overlap content slightly */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-dark) 5%, transparent 60%),
    linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-left: 5%;
    max-width: 600px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}
.hero-tag {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: 3.5rem;
    margin: 15px 0;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-meta {
    display: flex;
    gap: 15px;
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-main);
    align-items: center;
}

.meta-item.quality {
    border: 1px solid var(--text-muted);
    padding: 0 5px;
    font-size: 0.8rem;
    line-height: 1.4;
}

.meta-item.duration,
.meta-item.year {
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.btn {
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, background-color 0.2s;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-primary {
    background-color: var(--text-main);
    color: var(--text-dark);
}

.btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--text-dark);
    /* Maintain contrast */
}

.btn-secondary {
    background-color: rgba(109, 109, 110, 0.7);
    color: var(--text-main);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: rgba(109, 109, 110, 0.4);
}


/* ==========================================================================
MAIN CONTENT
========================================================================== */

.site-main {
    padding: 0 4%;
    position: relative;
    z-index: 2;
}

.content-grid-section {
    margin-bottom: 60px;
}

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

.content-grid-section h2 {
    font-size: 1.5rem;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 0;
}

.view-more {
    font-size: 0.9rem;
    color: #54b9c5;
    font-weight: 600;
}

.view-more:hover {
    text-decoration: underline;
}

/* Grid Layout (5 columns as requested) */
.content-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px 20px;
}

/* Smaller grid for recommended section */
.recommended-section .content-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    justify-content: center;
    gap: 20px 15px;
}

/* ==========================================================================
MOVIE CARD UI
========================================================================== */

.movie-card {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.movie-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

.card-poster {
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    aspect-ratio: 2/3;
    background-color: #2a2a2a;
    box-shadow: var(--shadow-sm);
}

.card-poster img {
    width: 100%;
    height: auto;
    aspect-ratio: 2/3;
    object-fit: cover;
    transition: filter 0.3s;
}

.movie-card:hover .card-poster img {
    filter: brightness(0.6);
}

/* Quality Stripe */
.card-quality-stripe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 2px solid var(--primary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    text-align: center;
    padding: 4px 0;
    z-index: 5;
    text-transform: uppercase;
}

/* Poster Footer (Flags & Year) */
.card-poster-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    z-index: 5;
    box-sizing: border-box;
}

.card-flags {
    display: flex;
    gap: 5px;
}

.flag-item {
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 6px;
    border-radius: 50px;
    color: #fff;
    backdrop-filter: blur(4px);
    font-weight: 600;
}

.card-year-badge {
    background: #000;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Action Overlay (Play Icon) */
.card-action-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.movie-card:hover .card-action-overlay {
    opacity: 1;
}

.play-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.6);
    transform: scale(0.8);
    transition: transform 0.3s;
}

.movie-card:hover .play-icon {
    transform: scale(1);
}

.card-badges {
    display: none;
}

/* Card Info */
.card-info {
    margin-top: 12px;
}

.movie-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 8px 0 0;
    color: var(--text-main);
    line-height: 1.3;
}

.card-meta {
    display: none;
}

/* Moved meta to poster */

/* ==========================================================================
RESPONSIVE DESIGN
========================================================================== */

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

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

}
@media (max-width: 768px) {
    .site-header {
        padding: 10px 15px;
        background-color: var(--bg-dark);
    }

    .header-main-container {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .site-branding {
        margin-bottom: 5px;
    }

    .site-title a {
        font-size: 1.4rem;
    }

    .header-right-panel {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .header-search {
        flex-grow: 1;
    }

    .header-search .search-form {
        width: 100%;
    }

    .header-search input.search-field {
        width: 100%;
    }

    .header-login-button {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .hero-actions {
        justify-content: center;
    }
}
/* ==========================================================================
Hero Slider Section (Swiper)
========================================================================== */

.hero-slider-section {
    padding-top: 0;
    margin-bottom: 40px;
    background-color: #000;
}

.hero-slide {
    height: 90vh;
    /* Increased height as requested */
    min-height: 600px;
    background-size: cover;
    background-position: center center;
    /* Optimized for horizontal backdrops */
    display: flex;
    align-items: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 10%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 30%);
    z-index: 1;
}

.hero-content {
    padding: 100px 8% 0;
    text-align: left;
    max-width: 900px;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-tag {
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 2px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-meta {
    margin-bottom: 25px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.meta-item {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.meta-item.quality {
    border: 1px solid #fff;
    padding: 1px 6px;
    font-size: 0.9rem;
    border-radius: 3px;
}

.hero-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
    max-width: 600px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-download-hero {
    padding: 18px 45px;
    font-size: 1.2rem;
    font-weight: 800;
    background: var(--primary-color) !important;
    color: #fff !important;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 10px 20px rgba(229, 9, 20, 0.3);
}

.btn-download-hero:hover {
    transform: scale(1.05);
    background: var(--primary-hover) !important;
}

/* Mobile Adjustments for Slider */

@media (max-width: 768px) {
    .hero-slide {
        height: 70vh;
        min-height: 400px;
    }

    .hero-content {
        text-align: center;
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1rem;
        margin: 0 auto 25px;
    }

    .hero-meta {
        justify-content: center;
    }

}
/* Premium Animated Section Headers */
.section-header-premium {
    position: relative;
    padding: 40px 0;
    margin-bottom: 30px;
    text-align: center;
    overflow: hidden;
}

.section-header-premium h2 {
    font-size: 2.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 4px;
    background: linear-gradient(to right, #fff 20%, var(--primary-color) 40%, var(--primary-color) 60%, #fff 80%);
    background-size: 200% auto;
    color: #000;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
    margin: 0;
    display: inline-block;
}

.section-header-premium::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    box-shadow: 0 0 15px var(--primary-color);
}

@keyframes shine {
    to {
        background-position: 200% center;
    }

}
/* ==========================================================================
FOOTER
========================================================================== */
.site-footer {
    background-color: #000;
    color: #808080;
    padding: 30px 4%;
    margin-top: 60px;
    font-size: 0.9rem;
}

/* ==========================================================================
SINGLE MOVIE / SERIES PAGE - PREMIUM DETAILS
========================================================================== */

/* --- Movie Hero (Backdrop & Info) --- */
.movie-hero-container {
    position: relative;
    padding: 160px 0 60px;
    background-size: cover;
    background-position: center top;
    margin-bottom: 40px;
    box-shadow: inset 0 -100px 100px var(--bg-dark);
}


.movie-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(20, 20, 20, 0.95) 20%, rgba(20, 20, 20, 0.7) 60%, rgba(20, 20, 20, 0.4) 100%);
    backdrop-filter: blur(5px);
    /* Cinematic blur */
    z-index: 1;
}

.movie-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 50px;
    padding: 0 4%;
    align-items: flex-start;
}

/* Poster */
.movie-hero-poster {
    flex-shrink: 0;
    width: 300px;
    position: relative;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

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

/* Details Text */
.movie-hero-details {
    flex-grow: 1;
    color: var(--text-main);
    animation: fadeInUp 1s ease-out;
}

.movie-title {
    font-size: 3rem;
    margin-bottom: 15px;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    align-items: center;
}

.meta-genres a {
    color: var(--primary-color);
    font-weight: 600;
}

.meta-views {
    color: var(--secondary-color) !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-views i {
    font-size: 0.9rem;
    opacity: 0.8;
}

.movie-score {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 15px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
}

.score-box {
    color: #46d369;
    /* Match score green */
    font-weight: 800;
    font-size: 1.2rem;
}

.movie-overview h3,
.movie-cast h3 {
    font-size: 1.3rem;
    color: var(--text-main);
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* TMDB Style centers or keeps left but clean. User specifically asked for detail sections centered */


.movie-hero-details h3 {
    text-align: left;
    /* Keep these aligned with description */
}

/* Actor list styling in Hero */
.actor-list {
    margin-top: 5px;
    font-size: 1rem;
    line-height: 1.6;
}

.actor-list a {
    color: var(--text-main);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.actor-list a:hover {
    color: var(--primary-color);
}

.actor-list a:first-child {
    color: var(--primary-color);
    /* Highlight the lead actor */
}

.single-content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4% 60px;
}

.content-section {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: var(--card-radius);
    margin-bottom: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.content-section h2 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: var(--text-main);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 15px;
    text-align: center !important;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.content-section img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.screenshots-gallery {
    text-align: center;
    width: 100%;
}

.single-image img {
    max-width: 1000px;
    width: 100%;
}

/* Technical Data Box */
.box-content {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 4px;
    color: var(--text-muted);
    font-family: monospace;
    white-space: pre-wrap;
    /* Preserve spacing */
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Trailer */
.trailer-box {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.trailer-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Screenshots */
.screenshots-gallery img {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
}

.screenshots-gallery img:hover {
    transform: scale(1.02);
}

/* --- Download Zones --- */
.download-links-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.download-box {
    flex: 1;
    min-width: 300px;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.download-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* VIP Box Styling */
.vip-box {
    background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
    border: 1px solid #ffd700;
    /* Gold border */
}

.vip-box .box-icon {
    font-size: 2.5rem;
    color: #ffd700;
}

.vip-box .box-title {
    color: #ffd700;
    margin-bottom: 5px;
}

.vip-box .box-button {
    background-color: #ffd700;
    color: #000;
    font-weight: bold;
}

/* Public Box Styling */
.public-box {
    background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
    border: 1px solid #01b4e4;
}

.public-box .box-icon {
    font-size: 2.5rem;
    color: #01b4e4;
}

.public-box .box-title {
    color: #01b4e4;
    margin-bottom: 5px;
}

.public-box .box-button {
    background-color: #01b4e4;
    color: #fff;
    font-weight: bold;
}

.box-main-content {
    flex-grow: 1;
}

.box-tags {
    font-size: 0.8rem;
    color: #888;
}

.box-button {
    padding: 10px 20px;
    border-radius: 30px;
    text-transform: uppercase;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Password Box */
.password-box {
    background-color: #000;
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.password-text {
    font-family: monospace;
    font-size: 1.2rem;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.copy-button {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.copy-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Responsive Single */
@media (max-width: 900px) {
    .movie-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .movie-hero-poster {
        width: 200px;
    }

    .movie-title {
        font-size: 2rem;
    }

    .content-section h2 {
        text-align: center !important;
        border-left: none;
        border-bottom: 2px solid var(--primary-color);
        display: inline-block;
        padding-bottom: 10px;
    }

    .download-links-wrapper {
        flex-direction: column;
    }

}
/* Header Icon Styling */
.content-section h2 i {
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 1.4rem;
    vertical-align: middle;
}

/* MKV File Icon Redesign (File + Play + Ribbon) */
.mkv-file-icon {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 70px;
}

.mkv-file-icon .fa-file {
    font-size: 60px;
    color: #e3e3e3;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.mkv-play-overlay {
    position: absolute !important;
    top: 42% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 18px !important;
    color: var(--primary-color) !important;
    z-index: 10 !important;
    margin: 0 !important;
}

.mkv-ribbon {
    position: absolute;
    bottom: 8px;
    left: -5px;
    right: -5px;
    background: var(--primary-color);
    color: #000;
    font-size: 11px;
    font-weight: 900;
    padding: 4px 0;
    text-align: center;
    border-radius: 2px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    z-index: 11;
    pointer-events: none;
}

.mkv-ribbon::before,
.mkv-ribbon::after {
    content: '';
    position: absolute;
    top: 100%;
    border-top: 5px solid #600202;
    /* Darker red for the fold */
    z-index: -1;
}

.mkv-ribbon::before {
    left: 0;
    border-left: 5px solid transparent;
}

.mkv-ribbon::after {
    right: 0;
    border-right: 5px solid transparent;
}

/* box-icon layout - ensure size covers new design */
.box-icon {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90px;
    height: 90px;
    margin-right: 25px;
    flex-shrink: 0;
}

.box-icon i {
    font-size: 45px;
}

/* Premium Filters Styling */
.filters-form {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.9), rgba(15, 15, 15, 0.95));
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin: 40px auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    max-width: 1100px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.filter-group {
    display: flex;
    gap: 15px;
    flex-grow: 1;
}

.filter-item {
    position: relative;
    flex: 1;
    min-width: 180px;
}

.filter-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 2;
}

.filter-select {
    width: 100%;
    background: #0a0a0a;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 15px 14px 45px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
}

.filter-select:hover {
    border-color: var(--primary-color);
    background-color: #121212;
}

.filter-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
    outline: none;
}

.filter-submit {
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 14px 45px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    font-size: 1rem;
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.4);
    letter-spacing: 0.5px;
}

.filter-submit:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(229, 9, 20, 0.6);
    filter: brightness(1.2);
}


@media (max-width: 850px) {
    .filters-form {
        padding: 20px;
    }

    .filter-group {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .filter-item {
        width: 100%;
        min-width: 0;
    }

    .filter-submit {
        width: 100%;
    }

}
/* Technical Data Box Styling (Unified Wrapper) */
.technical-data-wrapper {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px dashed rgba(255, 255, 255, 0.15);
    padding: 35px 25px !important;
    border-radius: 16px;
    margin: 30px auto;
    max-width: 850px;
    line-height: 2.2;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.3) !important;
    text-align: center !important;
}

.technical-data-wrapper i {
    width: 28px;
    text-align: center;
    margin-right: 10px;
    color: #fff;
    font-size: 1.1rem;
    display: inline-block;
    vertical-align: middle;
    opacity: 0.9;
}

/* Reset inner box to avoid duplicate styling */
.descarga6 {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    display: block !important;
}

.technical-data-wrapper strong {
    color: #fff !important;
    font-weight: 600 !important;
}

.technical-data-wrapper p {
    margin: 15px 0 0 !important;
}

/* Server Brand Icons (Mega & Mediafire) */
span[style*="color: #ff0000"],
span[style*="color: rgb(255, 0, 0)"],
span[style*="color:#ff0000"] {
    /* Mega */
    position: relative;
    padding-left: 28px;
    font-weight: 800;
    display: inline-block;
    vertical-align: middle;
}

span[style*="color: #ff0000"]::before,
span[style*="color: rgb(255, 0, 0)"]::before,
span[style*="color:#ff0000"]::before {
    content: 'M';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: #d92424;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    font-family: Arial, sans-serif;
    font-weight: 900;
    box-shadow: 0 0 10px rgba(217, 36, 36, 0.4);
}

span[style*="color: #00ffff"],
span[style*="color: rgb(0, 255, 255)"],
span[style*="color:#00ffff"] {
    /* Mediafire */
    position: relative;
    padding-left: 28px;
    font-weight: 800;
    display: inline-block;
    vertical-align: middle;
}

span[style*="color: #00ffff"]::before,
span[style*="color: rgb(0, 255, 255)"]::before,
span[style*="color:#00ffff"]::before {
    content: '\f0c2';
    /* Cloud icon */
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #00b4ff;
    font-size: 15px;
    text-shadow: 0 0 8px rgba(0, 180, 255, 0.5);
}

/* ==========================================================================
Home Layout & Sidebar
========================================================================== */

.home-layout-container {
    display: flex;
    gap: 40px;
    max-width: 98%;
    /* Use almost full width */
    margin: 30px auto 40px;
    padding: 0 10px;
}

/* View All Buttons Styling */
.view-all-container {
    text-align: right;
    margin-top: 25px;
    margin-bottom: 30px;
    padding-right: 15px;
}

.button-view-all {
    display: inline-block;
    padding: 10px 28px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.button-view-all:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.4);
    color: #fff !important;
}

/* Series Season Badge */
.card-season-info {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.card-season-info span {
    display: inline-block;
    background: rgba(229, 9, 20, 0.15);
    color: var(--primary-color);
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border: 1px solid rgba(229, 9, 20, 0.3);
    line-height: 1;
}

.home-main-content {
    flex: 1;
    /* Main content takes remaining space */
    min-width: 0;
}

.home-sidebar {
    width: 320px;
    /* Fixed width sidebar */
    flex-shrink: 0;
    margin-right: 15px;
    /* Push close to edge */
}


@media (max-width: 1200px) {
    .home-layout-container {
        flex-direction: column;
    }

    .home-sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .content-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

}
@media (max-width: 500px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}
/* Sidebar Widgets */
.widget,
.telegram-widget-box {
    background: var(--bg-lighter);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Prevent double padding when shortcode is inside a widget block */
.widget .telegram-widget-box {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 12px;
}

.widget ul li:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.widget ul li a {
    color: var(--text-muted);
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
}

.widget ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Telegram CTA Widget */
.telegram-widget-cta {
    text-align: center;
    padding: 10px 0;
}

.telegram-widget-cta i {
    font-size: 4rem;
    color: #24A1DE;
    margin-bottom: 15px;
    display: block;
    animation: tele-bounce 2s infinite;
}

.telegram-widget-cta p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.btn-telegram {
    display: inline-block;
    background: #24A1DE;
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(36, 161, 222, 0.3);
}

.btn-telegram:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(36, 161, 222, 0.5);
    background: #2094cc;
}

@keyframes tele-bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }

}
/* Hero Swiper Styles */
.hero-swiper {
    width: 100%;
}

.hero-swiper .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: #fff;
    transition: all 0.3s ease;
}

.hero-swiper .swiper-button-next:after,
.hero-swiper .swiper-button-prev:after {
    font-size: 24px;
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    color: var(--primary-color);
}

/* VIP Membership Page Styles */
.vip-page-container,
.vip-page-container .container {
    padding: 120px 20px 60px;
    max-width: 1400px !important;
    width: 100% !important;
    margin: 0 auto;
}

.vip-header {
    text-align: center;
    margin-bottom: 60px;
}

.vip-header h1 {
    color: #f39c12;
    text-transform: uppercase;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(243, 156, 18, 0.3);
}

.vip-description {
    color: #eee;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* Pricing Grid */
.vip-plans-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 80px;
    align-items: stretch;
}


@media (max-width: 600px) {
    .vip-plans-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

}
@media (max-width: 400px) {
    .vip-plans-grid {
        grid-template-columns: 1fr !important;
    }

}
.vip-plan-card {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px 5px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.vip-plan-card:hover {
    transform: translateY(-10px);
    background: #252525;
    border-color: #f39c12;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(243, 156, 18, 0.1);
}

.vip-plan-card.featured {
    border: 2px solid #f39c12;
    background: #1e1e1e;
}

.vip-plan-card h2 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.vip-plan-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: #f39c12;
    margin-bottom: 30px;
    display: block;
}

.vip-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    text-align: center;
    flex-grow: 1;
}

.vip-plan-features li {
    padding: 12px 0;
    color: #bbb;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.vip-plan-features li b {
    color: #f39c12;
}

.vip-plan-features li:last-child {
    border-bottom: none;
}

.vip-plan-btn {
    display: inline-block;
    padding: 15px 30px;
    background: transparent;
    border: 2px solid #f39c12;
    color: #f39c12;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s;
}

.vip-plan-card:hover .vip-plan-btn,
.vip-plan-card.featured .vip-plan-btn {
    background: #f39c12;
    color: #000;
}

/* Payment Methods Section */
.payment-methods-container {
    background: #111;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 50px;
}

.method-box {
    flex: 1;
    min-width: 300px;
    padding: 50px;
}

.cards-box {
    background: linear-gradient(135deg, #2a1a00 0%, #111 60%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.paypal-box {
    background: linear-gradient(135deg, #001a2a 0%, #111 60%);
}

.method-tag {
    background: #ff0000;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.method-box h3 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: 900;
}

.cards-box h3 {
    color: #f39c12;
    text-shadow: 0 0 20px rgba(255, 51, 51, 0.4);
}

.paypal-box h3 {
    color: #00aaff;
    text-shadow: 0 0 20px rgba(0, 170, 255, 0.4);
}

.price-list {
    list-style: none;
    padding: 0;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-label {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}

.price-value {
    font-weight: 900;
    font-size: 1.4rem;
}

.cards-box .price-value {
    color: #f39c12;
}

.paypal-box .price-value {
    color: #00aaff;
}

.extra-info {
    font-size: 0.85rem;
    color: #777;
    margin-top: 5px;
}

.payment-footer {
    width: 100%;
    padding: 60px 40px;
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.payment-footer p {
    color: #999;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.contact-email {
    display: inline-block;
    background: #ff0033;
    color: #fff;
    padding: 20px 60px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(255, 0, 51, 0.3);
    transition: all 0.3s;
}

.contact-email:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 0, 51, 0.5);
    color: #fff;
}


@media (max-width: 900px) {
    .payment-methods-container {
        flex-direction: column;
    }

    .cards-box {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

}
@media (max-width: 768px) {
    .method-box {
        padding: 30px;
    }

    .vip-header h1 {
        font-size: 1.8rem;
    }
}
/* ==========================================================================
FINAL MOBILE HEADER OVERRIDES (STRICT)
========================================================================== */

@media screen and (max-width: 991px) {
    .site-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        padding: 5px 4% !important;
        background-color: var(--bg-darker) !important;
        z-index: 2000 !important;
        height: auto !important;
    }

}

@media screen and (max-width: 991px) {
    /* Reduce content padding since header is now shorter */
    #content.site-content {
        padding-top: 70px !important;
    }

    .header-main-container {
        display: flex !important;
        flex-direction: row-reverse !important;
        /* Swaps Logo Right, Menu Left */
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0 !important;
        min-height: 50px !important;
    }

    .site-branding {
        flex: 1 !important;
        text-align: right !important;
    }

    .site-title a {
        font-size: 1.1rem !important;
        margin: 0 !important;
    }

    .main-navigation {
        flex: 0 0 auto !important;
    }

    /* Hide original panels on mobile */
    .header-right-panel {
        display: none !important;
    }

    /* --- Detailed Content Section Fixes (Download Boxes) --- */
    .single-content-container {
        padding: 0 10px 40px !important;
    }

    .content-section {
        padding: 20px 15px !important;
    }

    .download-links-wrapper {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 15px !important;
    }

    .download-box {
        flex-direction: column !important;
        text-align: center !important;
        min-width: 0 !important;
        padding: 20px !important;
        gap: 15px !important;
        flex: 1 1 100% !important;
    }

    .mkv-file-icon {
        margin: 0 auto !important;
    }

    .box-main-content {
        width: 100% !important;
    }

    .box-button {
        width: 100% !important;
        text-align: center !important;
        padding: 12px 0 !important;
    }

    /* Mobile Menu Drawer Styling */
    .menu-container {
        padding: 25px 5% !important;
    }

    .mobile-only-menu-extras {
        display: block !important;
        margin-top: 20px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        padding-top: 20px !important;
    }

    .mobile-search-wrapper {
        margin-bottom: 20px !important;
    }

    .mobile-search-wrapper .search-form {
        width: 100% !important;
        display: flex !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 30px !important;
        padding: 5px 15px !important;
    }

    .mobile-search-wrapper .search-field {
        background: transparent !important;
        border: none !important;
        color: #fff !important;
        padding: 8px !important;
        font-size: 1rem !important;
        width: 100% !important;
    }

    .mobile-search-wrapper .search-submit {
        background: var(--primary-color) !important;
        color: #fff !important;
        border-radius: 50% !important;
        width: 35px !important;
        height: 35px !important;
        padding: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        border: none !important;
    }

    .mobile-account-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .mobile-menu-btn {
        width: 100% !important;
        padding: 12px !important;
        border-radius: 8px !important;
        text-align: center !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        font-size: 0.85rem !important;
        text-decoration: none !important;
    }

    .mobile-menu-btn.login {
        background: var(--primary-color) !important;
        color: #fff !important;
        box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3) !important;
    }

    .mobile-menu-btn.logout {
        background: rgba(255, 255, 255, 0.1) !important;
        color: #fff !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .mobile-menu-btn i {
        margin-right: 10px !important;
    }

    /* --- Password Box Mobile Optimization --- */
    .password-box {
        flex-direction: column !important;
        padding: 15px !important;
        gap: 10px !important;
        text-align: center !important;
    }

    .password-text {
        font-size: 1rem !important;
        word-break: break-all !important;
        letter-spacing: 1px !important;
        margin: 0 !important;
    }

    .password-box i {
        display: none !important;
    }

    .copy-button {
        width: 100% !important;
        padding: 10px 0 !important;
        margin-top: 5px !important;
    }

    /* --- Section & Box Titles Optimization (Universal) --- */
    .content-section h2,
    .movie-overview h3,
    .movie-cast h3,
    .section-header-premium h2,
    .widget-title,
    .content-grid-section h2,
    .vip-plan-card h2,
    .method-box h3 {
        display: block !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        text-align: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-bottom: 12px !important;
        margin-bottom: 20px !important;
    }

    .content-grid-section h2 {
        border-bottom: 2px solid var(--primary-color);
        margin-top: 10px !important;
    }

    .section-header {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }

    .content-section h2,
    .section-header-premium h2 {
        font-size: 1.2rem !important;
    }

    .movie-overview h3,
    .movie-cast h3,
    .widget-title {
        font-size: 1.1rem !important;
    }

    .section-header-premium h2 {
        letter-spacing: 2px !important;
    }
}

/* ==========================================================================
GENRE EXPLORER SECTION
========================================================================== */

.genre-explorer-section {
    margin-bottom: 25px;
    padding: 0 5px;
}

.genre-scroll-container {
    display: flex;
    overflow-x: auto;
    padding: 20px 0 30px;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
    -webkit-overflow-scrolling: touch;
    min-height: 50px;
}

.genre-scroll-container::-webkit-scrollbar {
    height: 4px;
}

.genre-scroll-container::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
}

.genre-pill {
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 30px;
    padding: 12px 25px;
    display: flex !important;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #fff !important;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
}

.genre-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.genre-icon {
    font-size: 1.2rem;
}

.genre-name {
    white-space: nowrap;
}

/* Adjust Section Header for Genre Explorer */
.genre-explorer-section .section-header-premium h2 {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 700;
}

