/* ============================================================
   SERRA'S CUBBIES — VIDEO CINEMA (módulo independiente)
   ============================================================ */

body.cinema-active #main-header,
body.cinema-active #main-footer,
body.cinema-active .public-mobile-menu:not(.cinema-internal) {
    display: none !important;
}

body.cinema-active #public-view {
    margin-top: 0 !important;
}

#videos-page.page-section {
    padding: 0;
    margin: 0;
    max-width: none;
}

.video-cinema-app {
    --cinema-bg: #050506;
    --cinema-surface: #0e0e12;
    --cinema-glass: rgba(22, 12, 12, 0.55);
    --cinema-border: rgba(255, 255, 255, 0.08);
    --cinema-red: #800404;
    --cinema-red-bright: #ff3b45;
    --cinema-red-glow: rgba(255, 55, 65, 0.42);
    --cinema-red-glow-soft: rgba(255, 80, 90, 0.18);
    min-height: 100vh;
    background: var(--cinema-bg);
    color: #f2f2f2;
    font-family: 'Roboto', sans-serif;
    position: relative;
    overflow-x: hidden;
}

.video-cinema-app::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(128, 4, 4, 0.18), transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 100%, rgba(128, 4, 4, 0.12), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.video-cinema-app > * {
    position: relative;
    z-index: 1;
}

/* --- Header flotante exclusivo --- */
.cinema-header {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: min(960px, calc(100% - 32px));
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px 10px 18px;
    background: rgba(12, 12, 14, 0.82);
    backdrop-filter: blur(18px);
    border: 1px solid var(--cinema-border);
    border-radius: 999px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(128, 4, 4, 0.15);
    animation: cinemaFadeDown 0.6s ease;
}

.cinema-header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #fff;
    text-transform: uppercase;
    white-space: nowrap;
}

.cinema-header-brand img {
    height: 28px;
    filter: drop-shadow(0 0 8px var(--cinema-red-glow));
}

.cinema-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.cinema-nav-btn {
    background: transparent;
    border: none;
    color: #aaa;
    font-family: 'Oswald', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.25s, background 0.25s, box-shadow 0.25s;
    text-transform: uppercase;
}

.cinema-nav-btn:hover:not(.active) {
    color: #f0f0f0;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.cinema-nav-btn.active {
    color: #fff;
    font-weight: 600;
    background: linear-gradient(145deg, rgba(255, 70, 80, 0.22) 0%, rgba(128, 4, 4, 0.42) 100%);
    border: 1px solid rgba(255, 100, 110, 0.55);
    box-shadow:
        0 0 0 1px rgba(255, 120, 130, 0.2),
        0 0 14px var(--cinema-red-glow-soft),
        0 0 22px var(--cinema-red-glow);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

.cinema-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cinema-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--cinema-border);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}

.cinema-icon-btn:hover {
    border-color: var(--cinema-red);
    box-shadow: 0 0 16px var(--cinema-red-glow);
}

.cinema-exit-btn {
    font-family: 'Oswald', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 1px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--cinema-border);
    background: transparent;
    color: #ccc;
    cursor: pointer;
    transition: 0.25s;
    text-transform: uppercase;
}

.cinema-exit-btn:hover {
    color: #fff;
    border-color: var(--cinema-red);
}

/* --- Paneles --- */
.cinema-panel {
    display: none;
    padding: 100px 0 60px;
    animation: cinemaFadeIn 0.45s ease;
}

.cinema-panel.active {
    display: block;
}

/* --- Hero cinematográfico --- */
.cinema-hero {
    position: relative;
    min-height: 72vh;
    margin: 0 4% 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.cinema-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    transition: transform 8s ease;
}

.cinema-hero:hover .cinema-hero-bg {
    transform: scale(1.06);
}

.cinema-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0.25) 100%),
        linear-gradient(0deg, rgba(5, 5, 6, 1) 0%, transparent 40%);
}

.cinema-hero-content {
    position: relative;
    z-index: 2;
    max-width: 560px;
    padding: 12% 6% 8%;
}

.cinema-hero-badge {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--cinema-red);
    font-family: 'Oswald', sans-serif;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.cinema-hero h1 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.05;
    margin-bottom: 16px;
    text-transform: uppercase;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.cinema-hero p {
    color: #ccc;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 480px;
}

.cinema-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cinema-btn-play {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--cinema-red);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    letter-spacing: 1px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 0 8px 30px var(--cinema-red-glow);
    transition: transform 0.25s, box-shadow 0.25s;
}

.cinema-btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(128, 4, 4, 0.6);
}

.cinema-btn-ghost {
    padding: 14px 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-family: 'Oswald', sans-serif;
    cursor: pointer;
    transition: 0.25s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cinema-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* --- Filas horizontales --- */
.cinema-row {
    margin-bottom: 36px;
    padding-left: 4%;
    animation: cinemaSlideUp 0.5s ease backwards;
}

.cinema-row-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.35rem;
    letter-spacing: 2px;
    margin-bottom: 16px;
    padding-right: 4%;
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
}

.cinema-row-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--cinema-red), transparent);
    opacity: 0.5;
}

.cinema-row-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 4% 20px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--cinema-red) transparent;
}

.cinema-row-track::-webkit-scrollbar {
    height: 6px;
}

.cinema-row-track::-webkit-scrollbar-thumb {
    background: var(--cinema-red);
    border-radius: 3px;
}

/* --- Video cards --- */
.cinema-card {
    flex: 0 0 292px;
    scroll-snap-align: start;
    cursor: pointer;
    border-radius: 14px;
    overflow: hidden;
    background: var(--cinema-surface);
    border: 1px solid var(--cinema-border);
    transition: transform 0.32s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.32s, border-color 0.32s;
    outline: none;
}

.cinema-card:hover {
    transform: scale(1.04) translateY(-4px);
    border-color: rgba(128, 4, 4, 0.55);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 24px var(--cinema-red-glow);
    z-index: 5;
}

.cinema-card:focus-visible {
    border-color: var(--cinema-red-bright);
    box-shadow: 0 0 0 2px rgba(255, 55, 65, 0.35), 0 12px 32px rgba(0, 0, 0, 0.45);
    transform: translateY(-2px);
}

.cinema-card:active {
    transform: scale(0.98);
    transition-duration: 0.12s;
}

.cinema-card-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #111;
}

.cinema-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.cinema-card:hover .cinema-card-thumb img {
    transform: scale(1.08);
}

.cinema-card-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

.cinema-card-featured-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, rgba(128, 4, 4, 0.95), rgba(90, 2, 2, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 14px rgba(128, 4, 4, 0.35);
}

.cinema-card-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.3s;
}

.cinema-card:hover .cinema-card-play-icon {
    opacity: 1;
}

.cinema-card-play-icon i {
    font-size: 2.5rem;
    color: #fff;
    filter: drop-shadow(0 0 12px var(--cinema-red-glow));
}

.cinema-card-body {
    padding: 14px 16px 16px;
}

.cinema-card-body h4 {
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    margin-bottom: 6px;
    line-height: 1.2;
    text-transform: uppercase;
}

.cinema-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #888;
}

.cinema-card-meta .cat {
    color: var(--cinema-red);
    font-weight: bold;
    letter-spacing: 0.5px;
}

.cinema-card-hover-extra {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    font-size: 0.8rem;
    color: #aaa;
    line-height: 1.4;
    transition: max-height 0.35s, opacity 0.35s, margin 0.35s;
}

.cinema-card:hover .cinema-card-hover-extra {
    max-height: 80px;
    opacity: 1;
    margin-top: 10px;
}

/* --- Skeleton --- */
.cinema-skeleton {
    flex: 0 0 280px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(90deg, #141418 25%, #1e1e24 50%, #141418 75%);
    background-size: 200% 100%;
    animation: cinemaShimmer 1.2s infinite;
    aspect-ratio: 16/9;
}

/* --- Highlights vertical --- */
.cinema-highlights-wrap {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 16px 40px;
}

.cinema-highlight-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    aspect-ratio: 9/14;
    max-height: 75vh;
    cursor: pointer;
    border: 1px solid var(--cinema-border);
    animation: cinemaSlideUp 0.5s ease backwards;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cinema-highlight-card:hover {
    transform: scale(1.02);
    box-shadow: 0 16px 40px var(--cinema-red-glow);
}

.cinema-highlight-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cinema-highlight-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.cinema-highlight-overlay h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    text-transform: uppercase;
}

/* --- Library --- */
.cinema-library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    padding: 0 4% 40px;
}

.cinema-player-folder {
    cursor: pointer;
    border-radius: 16px;
    overflow: hidden;
    background: var(--cinema-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--cinema-border);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.cinema-player-folder:hover {
    transform: translateY(-8px);
    border-color: var(--cinema-red);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 24px var(--cinema-red-glow);
}

.cinema-folder-cover {
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    position: relative;
}

.cinema-folder-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85), transparent 60%);
}

.cinema-folder-info {
    padding: 16px;
}

.cinema-folder-info h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.cinema-folder-count {
    font-size: 0.85rem;
    color: #888;
    margin-top: 4px;
}

.cinema-library-back {
    margin: 0 4% 20px;
}

/* --- Search --- */
.cinema-search-wrap {
    max-width: 720px;
    margin: 0 auto 32px;
    padding: 0 16px;
}

.cinema-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--cinema-glass);
    border: 1px solid var(--cinema-border);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.cinema-search-input-wrap i {
    color: var(--cinema-red);
}

.cinema-search-input-wrap input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

.cinema-search-input-wrap input::placeholder {
    color: #666;
}

.cinema-search-results {
    padding: 0 4%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.cinema-search-empty {
    text-align: center;
    color: #666;
    padding: 60px 20px;
    font-size: 1.1rem;
}

.cinema-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 72px 24px 88px;
    animation: cinemaFadeIn 0.4s ease;
}

.cinema-empty-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(128, 4, 4, 0.12);
    border: 1px solid rgba(128, 4, 4, 0.35);
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.cinema-empty-icon i {
    font-size: 2rem;
    color: var(--cinema-red-bright);
    opacity: 0.9;
}

.cinema-empty-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 12px;
}

.cinema-empty-desc {
    max-width: 420px;
    color: #999;
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

.cinema-hero.cinema-hero-empty .cinema-hero-bg {
    background: linear-gradient(135deg, #0d0d10 0%, #1a1012 50%, #0a0a0c 100%) !important;
}

.cinema-hero.cinema-hero-empty .cinema-hero-title,
.cinema-hero.cinema-hero-empty #cinema-hero-title {
    color: #fff;
}

.cinema-hero-actions.hidden {
    display: none !important;
}

.cinema-card-admin-actions {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.25s;
}

.cinema-card:hover .cinema-card-admin-actions,
.cinema-card:focus-within .cinema-card-admin-actions {
    opacity: 1;
}

.cinema-card-edit,
.cinema-card-delete {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s, border-color 0.25s;
}

.cinema-card-edit:hover {
    background: var(--cinema-red);
    transform: scale(1.08);
}

.cinema-card-delete:hover {
    background: #8b1010;
    border-color: rgba(255, 80, 80, 0.45);
    transform: scale(1.08);
}

/* --- Player modal --- */
.cinema-player-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: cinemaFadeIn 0.35s ease;
}

.cinema-player-modal.hidden {
    display: none !important;
}

.cinema-player-box {
    width: min(1100px, 100%);
    background: linear-gradient(180deg, #0c0c0f 0%, #08080a 100%);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--cinema-border);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.85),
        0 0 0 1px rgba(128, 4, 4, 0.2),
        0 0 48px rgba(128, 4, 4, 0.08);
    animation: cinemaScaleIn 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.cinema-player-video {
    position: relative;
    padding-bottom: 56.25%;
    background: #000;
}

.cinema-player-stage::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 4;
    background: linear-gradient(90deg, transparent, var(--cinema-red-bright), var(--cinema-red), var(--cinema-red-bright), transparent);
    pointer-events: none;
}

.cinema-player-stage::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, transparent 22%, transparent 78%, rgba(0, 0, 0, 0.55) 100%);
}

.cinema-player-loader {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
}

.cinema-player-stage.is-loading .cinema-player-loader {
    display: flex;
}

.cinema-player-loader-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--cinema-red-bright);
    animation: cinemaPlayerSpin 0.9s linear infinite;
}

@keyframes cinemaPlayerSpin {
    to { transform: rotate(360deg); }
}

.cinema-player-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 1;
}

.cinema-player-info {
    padding: 24px 28px 28px;
}

.cinema-player-info h2,
#cinema-player-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #FFFFFF;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.cinema-player-info-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.cinema-player-info-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cinema-player-edit-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--cinema-border);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.cinema-player-edit-btn:hover {
    background: rgba(128, 4, 4, 0.45);
    border-color: var(--cinema-red);
    transform: scale(1.05);
}

.cinema-player-delete-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--cinema-border);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.cinema-player-delete-btn:hover {
    background: rgba(139, 16, 16, 0.55);
    border-color: rgba(255, 80, 80, 0.45);
    transform: scale(1.05);
}

.cinema-player-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    transition: 0.25s;
}

.cinema-player-close:hover {
    background: var(--cinema-red);
}

/* --- Admin bar --- */
.cinema-admin-bar {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 150;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cinema-admin-bar.hidden {
    display: none !important;
}

.cinema-admin-btn {
    padding: 12px 20px;
    border-radius: 999px;
    border: none;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.85rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: 0.25s;
}

.cinema-admin-btn.primary {
    background: var(--cinema-red);
    color: #fff;
}

.cinema-admin-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid var(--cinema-border);
}

.cinema-admin-btn:hover {
    transform: translateY(-2px);
}

/* --- Admin form modal (premium) --- */
.cinema-form-modal {
    position: fixed;
    inset: 0;
    z-index: 600;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
}

.cinema-form-modal.hidden {
    display: none !important;
}

.cinema-form-panel-premium {
    position: relative;
    width: min(720px, 100%);
    max-width: calc(100vw - 32px);
    max-height: min(92dvh, 900px);
    display: flex;
    flex-direction: column;
    background: linear-gradient(165deg, #141418 0%, #0c0c0e 45%, #101014 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(128, 4, 4, 0.08);
    overflow: hidden;
    box-sizing: border-box;
    min-width: 0;
    animation: cinemaScaleIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.cinema-form-accent-bar {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 3px;
    margin: 0;
    flex-shrink: 0;
    box-sizing: border-box;
    background: linear-gradient(90deg, transparent, rgba(128, 4, 4, 0.4) 20%, var(--cinema-red) 50%, rgba(128, 4, 4, 0.4) 80%, transparent);
    box-shadow: 0 0 16px rgba(128, 4, 4, 0.5);
}

.cinema-form-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.cinema-form-close:hover {
    background: var(--cinema-red);
    border-color: var(--cinema-red);
    transform: scale(1.05);
}

.cinema-form-header {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 18px 48px 10px;
    transform: none;
    translate: none;
    z-index: 1;
    background: transparent;
    border-bottom: none;
    display: block;
    text-align: center;
    flex-shrink: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.cinema-form-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.cinema-form-logo {
    max-height: 44px;
    width: auto;
    max-width: min(160px, 100%);
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.5));
}

.cinema-form-heading {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.cinema-form-shell {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    width: 100%;
}

.cinema-form-body {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 4px 28px 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--cinema-red) transparent;
    -webkit-overflow-scrolling: touch;
}

.cinema-form-body::-webkit-scrollbar {
    width: 6px;
}

.cinema-form-body::-webkit-scrollbar-thumb {
    background: rgba(128, 4, 4, 0.55);
    border-radius: 999px;
}

.cinema-form-fields {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.cinema-form-field {
    margin-bottom: 16px;
    width: 100%;
    min-width: 0;
}

.cinema-form-field-preview {
    margin-bottom: 8px;
}

.cinema-form-field-preview:empty,
.cinema-form-field-preview:not(:has(.cinema-thumb-preview.visible)) {
    margin-bottom: 0;
}

.cinema-form-field-sm {
    min-width: 0;
}

.cinema-form-field label {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 8px;
}

.cinema-form-field input,
.cinema-form-field textarea,
.cinema-form-field select,
.cinema-form-panel-premium .cinema-form-file {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 15px;
    color: #f5f5f5;
    background: rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.cinema-form-field input:hover,
.cinema-form-field textarea:hover,
.cinema-form-field select:hover {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.42);
}

.cinema-form-field input:focus,
.cinema-form-field textarea:focus,
.cinema-form-field select:focus {
    outline: none;
    border-color: rgba(128, 4, 4, 0.65);
    box-shadow: 0 0 0 3px rgba(128, 4, 4, 0.18), inset 0 1px 2px rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

.cinema-form-field textarea {
    min-height: 112px;
    resize: vertical;
}

.cinema-form-field select {
    cursor: pointer;
}

.cinema-form-panel-premium .cinema-form-file {
    padding: 10px 12px;
    font-size: 14px;
}

.cinema-thumb-section-title {
    display: block;
    font-family: 'Oswald', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 10px;
}

.cinema-thumb-drop {
    border: 2px dashed rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    min-height: 148px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 12px;
}

.cinema-thumb-drop:hover,
.cinema-thumb-drop:focus-visible,
.cinema-thumb-drop.drag-over {
    border-color: rgba(128, 4, 4, 0.75);
    background: rgba(128, 4, 4, 0.08);
    box-shadow: 0 0 0 3px rgba(128, 4, 4, 0.12);
    outline: none;
}

.cinema-thumb-drop.has-file {
    border-color: rgba(128, 4, 4, 0.45);
}

.cinema-thumb-drop-inner {
    padding: 18px 16px;
    pointer-events: none;
}

.cinema-thumb-drop-icon {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 8px;
}

.cinema-thumb-drop-label {
    margin: 0 0 8px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    letter-spacing: 2px;
    color: #f5f5f5;
}

.cinema-thumb-drop-hint {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.5);
    white-space: pre-line;
}

.cinema-form-row {
    display: grid;
    gap: 16px;
    width: 100%;
    min-width: 0;
}

.cinema-form-row--split {
    grid-template-columns: minmax(0, 1fr) minmax(108px, 132px);
}

.cinema-form-row--equal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cinema-form-row > .cinema-form-field {
    margin-bottom: 16px;
    min-width: 0;
}

.cinema-form-checks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 4px 0 8px;
}

.cinema-form-check {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    cursor: pointer;
}

.cinema-form-check input {
    width: 18px;
    height: 18px;
    min-height: 18px;
    flex-shrink: 0;
    accent-color: var(--cinema-red);
}

.cinema-form-footer {
    flex-shrink: 0;
    padding: 14px 28px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(180deg, rgba(12, 12, 14, 0) 0%, rgba(12, 12, 14, 0.92) 18%, #0c0c0e 100%);
}

.cinema-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    min-width: 0;
}

.cinema-form-btn {
    padding: 13px 26px;
    border-radius: 999px;
    font-family: 'Oswald', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
    border: none;
    box-sizing: border-box;
}

.cinema-form-btn-save {
    background: var(--cinema-red);
    color: #fff;
    box-shadow: 0 8px 24px rgba(128, 4, 4, 0.35);
    min-width: 140px;
}

.cinema-form-btn-save:hover {
    background: #fff;
    color: var(--cinema-red);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(128, 4, 4, 0.28);
}

.cinema-form-btn-cancel {
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.18);
    min-width: 120px;
}

.cinema-form-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.cinema-form-panel-premium .cinema-thumb-preview {
    width: 100%;
    max-width: 100%;
    max-height: 160px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
}

.cinema-form-panel-premium .cinema-thumb-preview.visible {
    display: block;
}

@media (max-width: 768px) {
    .cinema-form-row--split,
    .cinema-form-row--equal {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 640px) {
    .cinema-form-modal {
        padding: 12px;
        align-items: flex-start;
    }

    .cinema-form-panel-premium {
        max-width: calc(100vw - 24px);
        max-height: calc(100dvh - 24px);
        margin-top: 8px;
    }

    .cinema-form-header {
        padding: 16px 40px 8px;
    }

    .cinema-form-body {
        padding: 4px 18px 10px;
    }

    .cinema-form-footer {
        padding: 12px 18px 18px;
    }

    .cinema-form-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .cinema-form-btn-save,
    .cinema-form-btn-cancel {
        width: 100%;
        min-width: 0;
    }
}

/* --- Delete video confirmation (cinema only) --- */
.cinema-delete-modal {
    position: fixed;
    inset: 0;
    z-index: 650;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    overflow-x: hidden;
    box-sizing: border-box;
}

.cinema-delete-modal.hidden {
    display: none !important;
}

.cinema-delete-panel {
    position: relative;
    width: min(480px, 100%);
    max-width: calc(100vw - 32px);
    background: linear-gradient(165deg, #141418 0%, #0c0c0e 45%, #101014 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(128, 4, 4, 0.08);
    overflow: hidden;
    box-sizing: border-box;
    animation: cinemaScaleIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.cinema-delete-body {
    padding: 28px 28px 24px;
    text-align: center;
}

.cinema-delete-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(128, 4, 4, 0.18);
    border: 1px solid rgba(128, 4, 4, 0.35);
    color: #ff6b6b;
    font-size: 1.35rem;
}

.cinema-delete-heading {
    margin: 0 0 12px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}

.cinema-delete-message {
    margin: 0 0 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}

.cinema-delete-video-title {
    margin: 0 0 24px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.45;
    word-break: break-word;
}

.cinema-delete-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.cinema-form-btn-delete {
    background: #8b1010;
    color: #fff;
    border: 1px solid rgba(255, 80, 80, 0.25);
    box-shadow: 0 8px 24px rgba(128, 4, 4, 0.35);
    min-width: 150px;
}

.cinema-form-btn-delete:hover {
    background: #fff;
    color: #8b1010;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(128, 4, 4, 0.28);
}

@media (max-width: 640px) {
    .cinema-delete-body {
        padding: 24px 18px 20px;
    }

    .cinema-delete-actions {
        flex-direction: column-reverse;
    }

    .cinema-form-btn-delete,
    .cinema-delete-actions .cinema-form-btn-cancel {
        width: 100%;
        min-width: 0;
    }
}

.cinema-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 180;
    background: rgba(5, 5, 6, 0.97);
    padding-top: 90px;
    animation: cinemaFadeIn 0.3s ease;
}

.cinema-search-overlay.hidden {
    display: none !important;
}

.cinema-edit-pick-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 4%;
    animation: cinemaSlideUp 0.35s ease backwards;
}

.cinema-edit-pick-row .cinema-card {
    flex: 1;
    max-width: 420px;
}

.cinema-edit-pick-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

@keyframes cinemaFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes cinemaFadeDown {
    from { opacity: 0; transform: translateX(-50%) translateY(-12px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes cinemaSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cinemaScaleIn {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes cinemaShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- Favorites & progress on cards --- */
.cinema-card-fav {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: transform 0.2s, background 0.2s, color 0.2s;
}

.cinema-card-fav.is-favorite,
.cinema-card-fav.is-favorite i {
    color: #ffd700;
}

.cinema-card-fav:active {
    transform: scale(0.92);
}

.cinema-card-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 2;
}

.cinema-card-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cinema-red-bright), var(--cinema-red));
    box-shadow: 0 0 8px var(--cinema-red-glow);
    transition: width 0.4s ease;
}

.cinema-card-date {
    font-size: 0.72rem;
    color: #999;
}

.cinema-card-player {
    font-size: 0.78rem;
    color: #aaa;
    margin-top: 4px;
}

/* --- Player modal enhancements --- */
.cinema-player-fav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--cinema-border);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s, color 0.2s;
}

.cinema-player-fav-btn.is-favorite {
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.4);
}

.cinema-player-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.cinema-player-desc {
    color: #ccc;
    line-height: 1.6;
}

.cinema-player-progress-wrap {
    margin: 12px 0 16px;
}

.cinema-player-progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
}

.cinema-player-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cinema-red-bright), var(--cinema-red));
    transition: width 0.3s ease;
}

.cinema-player-progress-label {
    font-size: 0.78rem;
    color: #aaa;
}

/* --- Bottom navigation (mobile/tablet) --- */
.cinema-bottom-nav {
    display: none;
}

.cinema-panel-exit {
    animation: cinemaFadeOut 0.28s ease forwards;
}

@keyframes cinemaFadeOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-12px); }
}

.cinema-panel.active {
    animation: cinemaSlideIn 0.38s ease;
}

@keyframes cinemaSlideIn {
    from { opacity: 0; transform: translateX(16px); }
    to { opacity: 1; transform: translateX(0); }
}

/* --- Settings panel --- */
.cinema-settings-wrap {
    max-width: 520px;
    margin: 0 auto;
    padding: 0 4%;
}

.cinema-settings-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.cinema-settings-desc {
    color: #888;
    margin-bottom: 24px;
}

.cinema-settings-cards {
    display: grid;
    gap: 12px;
    margin-bottom: 28px;
}

.cinema-settings-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid var(--cinema-border);
    background: var(--cinema-surface);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
    cursor: pointer;
    transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}

.cinema-settings-card:active {
    transform: scale(0.98);
}

.cinema-settings-card i {
    font-size: 1.1rem;
    color: var(--cinema-red-bright);
}

.cinema-settings-exit-card {
    border-color: rgba(128, 4, 4, 0.4);
}

.cinema-settings-admin {
    padding-top: 20px;
    border-top: 1px solid var(--cinema-border);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cinema-settings-admin-label {
    width: 100%;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.cinema-schedule-group {
    margin-bottom: 32px;
    padding-left: 4%;
    animation: cinemaSlideUp 0.5s ease backwards;
}

/* --- Mobile / Tablet Netflix layout (≤1024px) --- */
@media (max-width: 1024px) {
    .cinema-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 250;
        justify-content: space-around;
        align-items: stretch;
        padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0px));
        background: rgba(8, 8, 10, 0.94);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--cinema-border);
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
    }

    .cinema-bottom-nav-btn {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-height: 52px;
        min-width: 0;
        padding: 6px 2px;
        border: none;
        background: transparent;
        color: #777;
        font-size: 0.58rem;
        font-family: 'Oswald', sans-serif;
        letter-spacing: 0.3px;
        text-transform: uppercase;
        cursor: pointer;
        transition: color 0.25s, transform 0.2s;
        position: relative;
    }

    .cinema-bottom-nav-btn span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        line-height: 1.1;
    }

    .cinema-bottom-nav-btn i {
        font-size: 1.15rem;
        transition: transform 0.25s, color 0.25s;
    }

    .cinema-bottom-nav-btn.active {
        color: #fff;
    }

    .cinema-bottom-nav-btn.active i {
        color: var(--cinema-red-bright);
        transform: scale(1.08);
        filter: drop-shadow(0 0 6px var(--cinema-red-glow));
    }

    .cinema-bottom-nav-btn.active::after {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 28px;
        height: 3px;
        border-radius: 0 0 3px 3px;
        background: var(--cinema-red-bright);
        box-shadow: 0 0 10px var(--cinema-red-glow);
    }

    .cinema-bottom-nav-btn:active i {
        transform: scale(0.92);
    }

    body.cinema-mobile .cinema-desktop-only {
        display: none !important;
    }

    body.cinema-mobile .cinema-nav,
    body.cinema-mobile .cinema-header-tabs {
        display: none !important;
    }

    body.cinema-mobile .cinema-header {
        top: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        padding: 10px 14px 12px;
        padding-top: calc(10px + env(safe-area-inset-top, 0px));
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "brand actions"
            "search search";
        gap: 10px 12px;
        align-items: center;
    }

    body.cinema-mobile .cinema-header-brand {
        grid-area: brand;
        justify-self: start;
        min-width: 0;
    }

    body.cinema-mobile .cinema-header-brand span {
        display: none;
    }

    body.cinema-mobile .cinema-header-brand img {
        height: 34px;
    }

    body.cinema-mobile .cinema-header-actions {
        grid-area: actions;
        justify-self: end;
        flex-shrink: 0;
        gap: 6px;
    }

    body.cinema-mobile .cinema-mobile-search-btn {
        display: none !important;
    }

    body.cinema-mobile .cinema-header-search-wrap {
        grid-area: search;
        display: flex !important;
        align-items: center;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 10px 14px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid var(--cinema-border);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
        transition: border-color 0.25s, box-shadow 0.25s;
    }

    body.cinema-mobile .cinema-header-search-wrap:focus-within {
        border-color: rgba(128, 4, 4, 0.5);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.04),
            0 0 0 3px var(--cinema-red-glow-soft);
    }

    body.cinema-mobile .cinema-header-search-wrap i {
        flex-shrink: 0;
        color: #888;
        font-size: 0.88rem;
    }

    body.cinema-mobile #cinema-header-search {
        flex: 1;
        width: 100%;
        min-width: 0;
        border: none;
        background: transparent;
        color: #fff;
        font-size: 0.9rem;
        outline: none;
        -webkit-appearance: none;
        appearance: none;
    }

    body.cinema-mobile #cinema-header-search::placeholder {
        color: #777;
        opacity: 1;
    }

    body.cinema-mobile #cinema-header-search::-webkit-search-cancel-button {
        -webkit-appearance: none;
    }

    body.cinema-mobile .cinema-exit-btn {
        padding: 9px 12px;
        font-size: 0.68rem;
        white-space: nowrap;
    }

    body.cinema-mobile .cinema-desktop-layout {
        display: flex !important;
        flex-direction: column;
        gap: 0;
    }

    body.cinema-mobile .cinema-filter-sidebar {
        display: flex !important;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scroll-snap-type: x proximity;
        position: static;
        max-height: none;
        margin: 0 0 4px;
        padding: 4px 16px 14px;
        gap: 8px;
        scrollbar-width: none;
        border: none;
        background: transparent;
        mask-image: linear-gradient(
            to right,
            transparent 0,
            #000 14px,
            #000 calc(100% - 14px),
            transparent 100%
        );
        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0,
            #000 14px,
            #000 calc(100% - 14px),
            transparent 100%
        );
    }

    body.cinema-mobile .cinema-filter-sidebar::-webkit-scrollbar {
        display: none;
    }

    body.cinema-mobile .cinema-filter-title {
        display: none;
    }

    body.cinema-mobile .cinema-filter-btn {
        appearance: none;
        -webkit-appearance: none;
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: auto;
        white-space: nowrap;
        margin: 0;
        padding: 10px 16px;
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.04);
        color: #aaa;
        font-family: 'Oswald', sans-serif;
        font-size: 0.72rem;
        font-weight: 400;
        letter-spacing: 1px;
        text-transform: uppercase;
        line-height: 1.2;
        cursor: pointer;
        scroll-snap-align: start;
        box-shadow:
            0 4px 14px rgba(0, 0, 0, 0.28),
            inset 0 1px 0 rgba(255, 255, 255, 0.05);
        transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.2s;
    }

    body.cinema-mobile .cinema-filter-btn:active {
        transform: scale(0.97);
    }

    body.cinema-mobile .cinema-filter-btn.active {
        color: #fff;
        font-weight: 600;
        background: linear-gradient(145deg, rgba(255, 70, 80, 0.22) 0%, rgba(128, 4, 4, 0.42) 100%);
        border-color: rgba(255, 100, 110, 0.55);
        box-shadow:
            0 0 0 1px rgba(255, 120, 130, 0.2),
            0 0 14px var(--cinema-red-glow-soft),
            0 0 22px var(--cinema-red-glow),
            0 4px 14px rgba(0, 0, 0, 0.35);
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
    }

    body.cinema-mobile .cinema-filter-btn i {
        font-size: 0.7rem;
        color: var(--cinema-red-bright);
    }

    body.cinema-mobile .cinema-main-content {
        width: 100%;
        min-width: 0;
    }

    body.cinema-mobile .cinema-panel {
        padding: 118px 0 calc(88px + env(safe-area-inset-bottom, 0px));
    }

    body.cinema-mobile .cinema-hero {
        min-height: 52vh;
        margin: 0 0 24px;
        border-radius: 0;
    }

    body.cinema-mobile .cinema-row {
        padding-left: 16px;
        margin-bottom: 28px;
    }

    body.cinema-mobile .cinema-row-track {
        padding-right: 16px;
        gap: 12px;
    }

    body.cinema-mobile .cinema-card {
        flex: 0 0 200px;
    }

    body.cinema-mobile .cinema-card:hover {
        transform: none;
    }

    body.cinema-mobile .cinema-card-play-icon {
        opacity: 0.85;
    }

    body.cinema-mobile .cinema-card-admin-actions {
        opacity: 1;
    }

    body.cinema-mobile .cinema-admin-bar {
        bottom: calc(72px + env(safe-area-inset-bottom, 0px));
        right: 12px;
        left: 12px;
        justify-content: center;
    }

    body.cinema-mobile .cinema-admin-bar .cinema-admin-btn {
        flex: 1;
        font-size: 0.72rem;
        padding: 10px 14px;
        text-align: center;
    }

    body.cinema-mobile .cinema-search-overlay {
        padding-top: calc(64px + env(safe-area-inset-top, 0px));
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    body.cinema-mobile .cinema-library-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        padding: 0 16px;
    }

    body.cinema-mobile .cinema-player-modal {
        padding: 0;
        align-items: stretch;
    }

    body.cinema-mobile .cinema-player-box {
        width: 100%;
        max-width: none;
        min-height: 100vh;
        min-height: 100dvh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    body.cinema-mobile .cinema-player-video {
        border-radius: 0;
        flex-shrink: 0;
    }

    body.cinema-mobile .cinema-player-info {
        flex: 1;
        overflow-y: auto;
        padding: 20px 16px calc(24px + env(safe-area-inset-bottom, 0px));
    }

    body.cinema-mobile .cinema-highlights-wrap {
        padding: 0 16px;
    }

    body.cinema-mobile .cinema-filtered-results {
        display: block;
        padding: 0 16px 24px;
    }

    body.cinema-mobile .cinema-filtered-results.hidden {
        display: none !important;
    }

    body.cinema-mobile .cinema-filtered-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    body.cinema-mobile .cinema-filtered-grid .cinema-card {
        flex: none;
        width: 100%;
    }

    body.cinema-mobile .cinema-all-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
        padding: 0 16px 24px;
    }
}

@media (max-width: 768px) {
    body.cinema-mobile .cinema-card {
        flex: 0 0 180px;
    }

    body.cinema-mobile .cinema-hero h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 430px) {
    body.cinema-mobile .cinema-header {
        padding-left: 12px;
        padding-right: 12px;
        gap: 8px 10px;
    }

    body.cinema-mobile .cinema-header-search-wrap {
        padding: 9px 12px;
    }

    body.cinema-mobile #cinema-header-search {
        font-size: 0.86rem;
    }

    body.cinema-mobile .cinema-filter-sidebar {
        padding-left: 12px;
        padding-right: 12px;
    }

    body.cinema-mobile .cinema-filter-btn {
        padding: 9px 14px;
        font-size: 0.7rem;
    }
}

@media (max-width: 390px) {
    body.cinema-mobile .cinema-panel {
        padding-top: 112px;
    }

    body.cinema-mobile .cinema-filter-btn {
        padding: 8px 12px;
        font-size: 0.66rem;
        letter-spacing: 0.8px;
    }
}

@media (max-width: 375px) {
    body.cinema-mobile .cinema-header-brand img {
        height: 30px;
    }

    body.cinema-mobile .cinema-exit-btn {
        padding: 8px 10px;
        font-size: 0.64rem;
    }
}

@media (max-width: 320px) {
    body.cinema-mobile .cinema-header {
        padding-left: 10px;
        padding-right: 10px;
    }

    body.cinema-mobile .cinema-header-search-wrap {
        padding: 8px 10px;
        gap: 8px;
    }

    body.cinema-mobile #cinema-header-search {
        font-size: 0.82rem;
    }

    body.cinema-mobile .cinema-filter-sidebar {
        padding-left: 10px;
        padding-right: 10px;
        gap: 6px;
    }

    body.cinema-mobile .cinema-filter-btn {
        padding: 8px 11px;
        font-size: 0.62rem;
    }

    body.cinema-mobile .cinema-panel {
        padding-top: 108px;
    }
}

/* --- Desktop premium (MLB TV / Hudl style) --- */
.cinema-header-search-wrap,
.cinema-filter-sidebar,
.cinema-filtered-results,
.cinema-desktop-only {
    display: none;
}

.cinema-all-wrap {
    padding: 0 4% 48px;
}

.cinema-all-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.cinema-all-grid .cinema-card {
    flex: none;
    width: 100%;
}

.cinema-settings-lang {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--cinema-border);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.cinema-settings-lang .cinema-lang-btn {
    border: none;
    background: transparent;
    color: #888;
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    padding: 8px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
}

.cinema-settings-lang .cinema-lang-btn.active {
    background: var(--cinema-red);
    color: #fff;
}

.cinema-row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 4%;
    margin-bottom: 16px;
}

.cinema-row-header .cinema-row-title {
    margin-bottom: 0;
    padding-right: 0;
}

.cinema-row-header .cinema-row-title::after {
    display: none;
}

.cinema-row-nav {
    display: flex;
    gap: 8px;
}

.cinema-row-prev,
.cinema-row-next {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--cinema-border);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.cinema-row-prev:hover,
.cinema-row-next:hover {
    background: rgba(128, 4, 4, 0.35);
    border-color: var(--cinema-red);
}

.cinema-row-prev:active,
.cinema-row-next:active {
    transform: scale(0.94);
}

.cinema-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.cinema-hero-meta-item {
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--cinema-border);
    color: #ccc;
    font-family: 'Oswald', sans-serif;
}

.cinema-hero-meta-item:first-child {
    color: var(--cinema-red-bright);
    border-color: rgba(255, 55, 65, 0.35);
}

.cinema-player-related {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--cinema-border);
}

.cinema-player-related-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: #ddd;
}

.cinema-player-related-track {
    padding-bottom: 8px;
}

@media (min-width: 1025px) {
    .cinema-bottom-nav {
        display: none !important;
    }

    .cinema-mobile-search-btn {
        display: none !important;
    }

    .cinema-header-search-wrap,
    .cinema-filter-sidebar,
    .cinema-filtered-results,
    .cinema-desktop-only {
        display: flex;
    }

    .cinema-filtered-results {
        display: block;
        padding: 0 3% 32px;
        animation: cinemaFadeIn 0.3s ease;
    }

    .cinema-filtered-results.hidden {
        display: none !important;
    }

    body.cinema-desktop .cinema-header {
        top: 0;
        left: 0;
        right: 0;
        transform: none;
        width: 100%;
        max-width: none;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        padding: 12px 28px;
        gap: 16px;
        flex-wrap: nowrap;
        animation: cinemaFadeIn 0.35s ease;
    }

    body.cinema-desktop .cinema-header-brand img {
        height: 36px;
    }

    body.cinema-desktop .cinema-header-brand span {
        font-size: 0.95rem;
    }

    body.cinema-desktop .cinema-header-search-wrap {
        flex: 1;
        max-width: 360px;
        align-items: center;
        gap: 10px;
        padding: 8px 14px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid var(--cinema-border);
        transition: border-color 0.25s, box-shadow 0.25s;
    }

    body.cinema-desktop .cinema-header-search-wrap:focus-within {
        border-color: rgba(128, 4, 4, 0.5);
        box-shadow: 0 0 0 3px var(--cinema-red-glow-soft);
    }

    body.cinema-desktop .cinema-header-search-wrap i {
        color: #888;
        font-size: 0.9rem;
    }

    body.cinema-desktop #cinema-header-search {
        flex: 1;
        border: none;
        background: transparent;
        color: #fff;
        font-size: 0.9rem;
        outline: none;
        min-width: 0;
    }

    body.cinema-desktop #cinema-header-search::placeholder {
        color: #666;
    }

    body.cinema-desktop .cinema-header-tabs {
        flex: 1 1 auto;
        justify-content: center;
        gap: 4px;
        max-width: 520px;
    }

    body.cinema-desktop .cinema-nav-btn {
        padding: 8px 14px;
        font-size: 0.72rem;
    }

    body.cinema-desktop .cinema-lang-switch {
        gap: 4px;
        padding: 3px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--cinema-border);
    }

    body.cinema-desktop .cinema-lang-btn {
        border: none;
        background: transparent;
        color: #888;
        font-family: 'Oswald', sans-serif;
        font-size: 0.7rem;
        padding: 6px 10px;
        border-radius: 999px;
        cursor: pointer;
        transition: background 0.25s, color 0.25s;
    }

    body.cinema-desktop .cinema-lang-btn.active {
        background: var(--cinema-red);
        color: #fff;
    }

    body.cinema-desktop .cinema-user-profile {
        align-items: center;
        gap: 8px;
        padding: 6px 12px;
        border-radius: 999px;
        border: 1px solid var(--cinema-border);
        background: rgba(255, 255, 255, 0.04);
        font-size: 0.78rem;
        color: #ccc;
        max-width: 140px;
    }

    body.cinema-desktop .cinema-user-profile i {
        color: var(--cinema-red-bright);
        font-size: 1.1rem;
    }

    body.cinema-desktop .cinema-user-profile span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.cinema-desktop .cinema-panel {
        padding: 88px 0 48px;
    }

    body.cinema-desktop .cinema-desktop-layout {
        display: flex;
        gap: 0;
        max-width: 1920px;
        margin: 0 auto;
    }

    body.cinema-desktop .cinema-filter-sidebar {
        flex: 0 0 220px;
        flex-direction: column;
        padding: 24px 16px 24px 28px;
        position: sticky;
        top: 88px;
        align-self: flex-start;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    body.cinema-desktop .cinema-filter-title {
        font-family: 'Oswald', sans-serif;
        font-size: 0.85rem;
        letter-spacing: 2px;
        text-transform: uppercase;
        color: #aaa;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    body.cinema-desktop .cinema-filter-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        width: 100%;
        text-align: left;
        padding: 12px 14px;
        margin-bottom: 6px;
        border: 1px solid transparent;
        border-radius: 10px;
        background: transparent;
        color: #aaa;
        font-family: 'Oswald', sans-serif;
        font-size: 0.78rem;
        letter-spacing: 1px;
        text-transform: uppercase;
        cursor: pointer;
        transition: background 0.25s, color 0.25s, border-color 0.25s;
    }

    body.cinema-desktop .cinema-filter-btn:hover {
        background: rgba(255, 255, 255, 0.05);
        color: #fff;
    }

    body.cinema-desktop .cinema-filter-btn.active {
        background: rgba(128, 4, 4, 0.28);
        border-color: rgba(255, 80, 90, 0.4);
        color: #fff;
    }

    body.cinema-desktop .cinema-main-content {
        flex: 1;
        min-width: 0;
    }

    body.cinema-desktop .cinema-hero {
        min-height: 68vh;
        margin: 0 3% 40px;
        border-radius: 24px;
    }

    body.cinema-desktop .cinema-hero-content {
        max-width: 640px;
    }

    body.cinema-desktop .cinema-card {
        flex: 0 0 300px;
        transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s, border-color 0.3s;
    }

    body.cinema-desktop .cinema-card:hover {
        transform: scale(1.05) translateY(-8px);
        box-shadow: 0 24px 56px rgba(0, 0, 0, 0.65), 0 0 28px var(--cinema-red-glow-soft);
    }

    body.cinema-desktop .cinema-card-fav {
        opacity: 0;
        transition: opacity 0.25s, transform 0.2s;
    }

    body.cinema-desktop .cinema-card:hover .cinema-card-fav {
        opacity: 1;
    }

    body.cinema-desktop .cinema-filtered-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    body.cinema-desktop .cinema-filtered-grid .cinema-card {
        flex: none;
        width: 100%;
    }

    body.cinema-desktop .cinema-player-modal {
        padding: 32px;
        animation: cinemaFadeIn 0.3s ease;
    }

    body.cinema-desktop .cinema-player-box {
        max-width: min(1200px, 96vw);
        width: 100%;
        border-radius: 20px;
        overflow: hidden;
        border: 1px solid var(--cinema-border);
        box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
        animation: cinemaScaleIn 0.35s ease;
        max-height: 92vh;
        overflow-y: auto;
    }

    body.cinema-desktop .cinema-player-info {
        padding: 24px 28px 28px;
    }

    body.cinema-desktop .cinema-admin-bar {
        bottom: 28px;
        right: 28px;
    }
}

@media (min-width: 1440px) {
    body.cinema-desktop .cinema-card {
        flex: 0 0 320px;
    }

    body.cinema-desktop .cinema-hero {
        min-height: 72vh;
    }

    body.cinema-desktop .cinema-filter-sidebar {
        flex: 0 0 240px;
    }
}

@media (min-width: 1920px) {
    body.cinema-desktop .cinema-card {
        flex: 0 0 340px;
    }

    body.cinema-desktop .cinema-desktop-layout {
        max-width: 2200px;
    }
}
