/**
 * Film Français VF — Dark Cinema Modern Theme & Responsive Grid
 * Palette :
 *   --bg-primary  : #0b0d13
 *   --bg-elevated : #151a28
 *   --bg-card     : #1b2234
 *   --accent      : #ff8d1b
 *   --accent-hover: #ffa347
 *   --text-main   : #f3f5f9
 *   --text-muted  : #9ca6ba
 *   --border-col  : rgba(255, 255, 255, 0.08)
 */
:root {
    --bg-primary: #0b0d13;
    --bg-elevated: #151a28;
    --bg-card: #1b2234;
    --accent: #ff8d1b;
    --accent-hover: #ffa347;
    --text-main: #f3f5f9;
    --text-muted: #9ca6ba;
    --border-col: rgba(255, 255, 255, 0.08);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body.vf-cinema-body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary) !important;
    color: var(--text-main) !important;
    font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    line-height: 1.6;
}

body.vf-cinema-body .wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background-color: var(--bg-primary);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==================== HEADER ==================== */
.vf-header {
    background-color: rgba(11, 13, 19, 0.96);
    border-bottom: 1px solid var(--border-col);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.vf-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.vf-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.vf-logo {
    display: block;
    height: 34px;
    width: auto;
    max-width: 150px;
}

.vf-nav {
    display: flex;
    align-items: center;
}

.vf-nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.vf-nav-link {
    display: inline-block;
    padding: 7px 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background-color 0.15s ease;
}

.vf-nav-link:hover,
.vf-nav-link:focus,
.vf-nav-link.active {
    color: #fff;
    background-color: rgba(255, 141, 27, 0.15);
    text-decoration: none;
}

.vf-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vf-search-form {
    display: flex;
    align-items: center;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-col);
    border-radius: 999px;
    padding: 3px 10px 3px 14px;
    max-width: 260px;
}

.vf-search-form input[type="search"] {
    background: transparent;
    border: 0;
    color: var(--text-main);
    font-size: 13px;
    outline: none;
    width: 165px;
    max-width: 100%;
    padding: 4px 0;
}

.vf-search-form input[type="search"]::placeholder {
    color: var(--text-muted);
}

.vf-search-form button {
    background: transparent;
    border: 0;
    color: var(--accent);
    cursor: pointer;
    padding: 4px 6px;
    font-size: 14px;
}

.vf-mobile-menu-btn {
    display: none;
    background: var(--bg-elevated);
    border: 1px solid var(--border-col);
    color: var(--text-main);
    border-radius: var(--radius-sm);
    padding: 7px 11px;
    font-size: 16px;
    cursor: pointer;
}

/* ==================== MAIN & HERO SPOTLIGHT ==================== */
.vf-main {
    flex: 1 0 auto;
    padding-bottom: 48px;
}

.vf-hero-spotlight {
    padding: 28px 0 12px;
}

.vf-hero-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 28px;
    background: linear-gradient(135deg, var(--bg-elevated) 0%, #1c2438 100%);
    border: 1px solid var(--border-col);
    border-radius: var(--radius-lg);
    padding: 24px;
    align-items: center;
}

.vf-hero-poster {
    width: 100%;
}

.vf-hero-img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: var(--radius-md);
    display: block;
    background-color: var(--bg-card);
}

.vf-hero-kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}

.vf-hero-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.25;
}

.vf-hero-title a {
    color: var(--text-main);
    text-decoration: none;
}

.vf-hero-title a:hover {
    color: var(--accent);
}

.vf-hero-desc {
    color: var(--text-muted);
    font-size: 15px;
    margin: 12px 0 18px;
    max-width: 760px;
}

/* ==================== BADGES & BUTTONS ==================== */
.vf-movie-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.vf-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.vf-badge-accent {
    background-color: var(--accent);
    color: #0b0d13;
    font-weight: 700;
}

.vf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    border: 1px solid transparent;
}

.vf-btn-primary {
    background-color: var(--accent);
    color: #0b0d13 !important;
}

.vf-btn-primary:hover,
.vf-btn-primary:focus {
    background-color: var(--accent-hover);
    color: #0b0d13 !important;
    text-decoration: none;
}

.vf-btn-outline {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.22);
    color: var(--text-main) !important;
}

.vf-btn-outline:hover,
.vf-btn-outline:focus {
    border-color: var(--accent);
    color: var(--accent) !important;
    text-decoration: none;
}

/* ==================== CATALOG & GENRE PILLS ==================== */
.vf-catalog-section {
    padding: 24px 0;
}

.vf-catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.vf-catalog-h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 4px;
}

.vf-catalog-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.vf-genre-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.vf-pill {
    display: inline-block;
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-col);
    text-decoration: none;
    transition: all 0.15s ease;
}

.vf-pill:hover,
.vf-pill.is-active {
    color: #0b0d13;
    background-color: var(--accent);
    border-color: var(--accent);
    text-decoration: none;
}

/* ==================== RESPONSIVE MOVIE GRID ==================== */
/* Mobile: 2 cards | Tablet: 3-4 cards | Desktop: 6 cards */
.vf-movie-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
}

@media (min-width: 576px) {
    .vf-movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (min-width: 768px) {
    .vf-movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (min-width: 1100px) {
    .vf-movie-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 18px;
    }
}

.vf-card {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-col);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.vf-card-poster-link {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    background-color: var(--bg-card);
    overflow: hidden;
}

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

.vf-card-year {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: rgba(11, 13, 19, 0.85);
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
}

.vf-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(11, 13, 19, 0.45);
    color: #fff;
    font-size: 22px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.vf-card-poster-link:hover .vf-card-play {
    opacity: 1;
}

.vf-card-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.vf-card-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vf-card-title a {
    color: var(--text-main);
    text-decoration: none;
}

.vf-card-title a:hover {
    color: var(--accent);
}

.vf-card-meta {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vf-card-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==================== PAGINATION ==================== */
.vf-pagination {
    margin-top: 36px;
    display: flex;
    justify-content: center;
}

.vf-pagination-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.vf-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-col);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.vf-page-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

.vf-page-link.is-current {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #0b0d13;
    font-weight: 700;
}

/* ==================== MOVIE DETAIL PAGE ==================== */
.vf-breadcrumb-bar {
    background-color: var(--bg-elevated);
    border-bottom: 1px solid var(--border-col);
    padding: 10px 0;
}

.vf-breadcrumb-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.vf-breadcrumb-list li + li::before {
    content: "/";
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.25);
}

.vf-breadcrumb-list a {
    color: var(--text-main);
    text-decoration: none;
}

.vf-breadcrumb-list a:hover {
    color: var(--accent);
}

.vf-movie-hero {
    padding: 28px 0;
}

.vf-movie-hero-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    align-items: start;
}

.vf-movie-poster-wrap {
    width: 100%;
}

.vf-movie-poster-img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-col);
    background-color: var(--bg-card);
    display: block;
}

.vf-movie-h1 {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 12px;
    line-height: 1.25;
}

.vf-movie-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.vf-genre-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-col);
    color: var(--accent);
    text-decoration: none;
}

.vf-genre-pill:hover {
    background-color: var(--accent);
    color: #0b0d13;
    text-decoration: none;
}

.vf-movie-synopsis-box {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-col);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.vf-sub-heading {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vf-movie-synopsis {
    font-size: 15px;
    color: var(--text-main);
    margin: 0;
    line-height: 1.65;
}

.vf-movie-specs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 0 0 22px;
    padding: 16px 20px;
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-col);
    border-radius: var(--radius-md);
}

.vf-spec-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
}

.vf-spec-row dt {
    font-weight: 700;
    color: var(--text-muted);
    min-width: 120px;
}

.vf-spec-row dd {
    margin: 0;
    color: var(--text-main);
    flex: 1 1 200px;
}

.vf-movie-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

/* ==================== YOUTUBE FACADE ==================== */
.vf-yt-panel {
    margin-top: 16px;
    max-width: 640px;
}

.vf-yt-facade {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-col);
}

.vf-yt-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    display: block;
}

.vf-yt-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    text-align: center;
}

.vf-yt-play-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #ff0000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.vf-yt-label {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 4px 12px;
    border-radius: 999px;
}

.vf-yt-facade iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ==================== PLAYER & STREAMING SERVERS ==================== */
.vf-player-section {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-col);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 12px 0 36px;
}

.vf-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 18px;
}

.vf-video-container {
    width: 100%;
    max-width: 860px;
    margin: 0 auto 24px;
    background-color: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.vf-video-element {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background-color: #000;
}

.vf-servers-box {
    max-width: 860px;
    margin: 0 auto;
}

.vf-servers-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 12px;
}

.vf-servers-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vf-server-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-col);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    text-decoration: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
    flex-wrap: wrap;
}

.vf-server-card:hover {
    border-color: var(--accent);
    background-color: rgba(255, 141, 27, 0.1);
    color: #fff;
    text-decoration: none;
}

.vf-server-left,
.vf-server-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vf-server-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--accent);
}

.vf-server-name {
    font-weight: 700;
    font-size: 14px;
}

.vf-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.vf-status-dot.is-online {
    background-color: #2ecc71;
}

.vf-status-dot.is-offline {
    background-color: #e74c3c;
}

.vf-status-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

/* ==================== 404 PAGE ==================== */
.vf-404-box {
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-col);
    border-radius: var(--radius-lg);
    padding: 40px 24px;
    text-align: center;
    margin: 32px 0;
}

.vf-404-code {
    display: block;
    font-size: 64px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 12px;
}

.vf-404-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px;
}

.vf-404-text {
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 24px;
}

.vf-404-search {
    display: flex;
    justify-content: center;
    gap: 8px;
    max-width: 480px;
    margin: 0 auto 20px;
    flex-wrap: wrap;
}

.vf-404-search input[type="search"] {
    flex: 1 1 220px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-col);
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-size: 14px;
}

/* ==================== FOOTER ==================== */
.vf-tags-bar {
    background-color: var(--bg-elevated);
    border-top: 1px solid var(--border-col);
    padding: 14px 0;
    font-size: 12px;
    color: var(--text-muted);
}

.vf-footer {
    background-color: #07090e;
    border-top: 1px solid var(--border-col);
    padding: 44px 0 24px;
    color: var(--text-muted);
    font-size: 14px;
}

.vf-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    margin-bottom: 28px;
}

.vf-footer-desc {
    margin: 12px 0 0;
    font-size: 13px;
    color: var(--text-muted);
}

.vf-footer-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vf-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vf-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
}

.vf-footer-links a:hover {
    color: var(--accent);
}

.vf-footer-bottom {
    border-top: 1px solid var(--border-col);
    padding-top: 18px;
    text-align: center;
    font-size: 13px;
}

.vf-footer-bottom a {
    color: var(--accent);
    text-decoration: none;
}

/* ==================== MOBILE BREAKPOINTS (320px -> 991px) ==================== */
@media (max-width: 991px) {
    .vf-mobile-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .vf-nav {
        display: none;
        width: 100%;
        order: 3;
        padding-top: 10px;
        border-top: 1px solid var(--border-col);
    }

    .vf-nav.is-open {
        display: block;
    }

    .vf-nav-list {
        flex-direction: column;
        align-items: stretch;
    }

    .vf-hero-card {
        grid-template-columns: 160px 1fr;
        gap: 18px;
        padding: 18px;
    }

    .vf-movie-hero-grid {
        grid-template-columns: 200px 1fr;
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .vf-header-inner {
        gap: 8px;
    }

    .vf-logo {
        max-width: 115px;
        height: 28px;
    }

    .vf-search-form {
        max-width: 155px;
        padding: 2px 8px;
    }

    .vf-search-form input[type="search"] {
        width: 100px;
        font-size: 12px;
    }

    .vf-hero-card {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .vf-hero-poster {
        max-width: 180px;
    }

    .vf-hero-title,
    .vf-movie-h1 {
        font-size: 22px;
    }

    .vf-movie-hero-grid {
        grid-template-columns: 1fr;
    }

    .vf-movie-poster-wrap {
        max-width: 220px;
        margin: 0 auto;
    }

    .vf-player-section {
        padding: 14px;
    }

    .vf-server-card {
        padding: 10px 12px;
    }
}
