/* MovieFlix Watch & Cinema Player Stylesheet */
/* Clean clearance and 100% responsive viewport boundary */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

body.subpage-body {
    padding-top: 88px !important;
}

/* 🛡️ Scroll Clearance & Margin for Fixed Header */
html {
    scroll-padding-top: 85px !important;
}
@media (max-width: 768px) {
    html {
        scroll-padding-top: 75px !important;
    }
}

#cinemaTheaterSection {
    position: relative !important;
    z-index: 40 !important;
    scroll-margin-top: 85px !important;
    padding-bottom: 3rem !important;
}

#streamingDownloadSection,
#seriesNavigatorSection {
    position: relative !important;
    z-index: 10 !important;
    scroll-margin-top: 85px !important;
}

section[id],
.cinejoy-hero-stage,
.cinejoy-cast-section,
.cinejoy-series-episodes {
    scroll-margin-top: 85px !important;
}
@media (max-width: 768px) {
    section[id],
    #cinemaTheaterSection,
    #seriesNavigatorSection,
    #streamingDownloadSection,
    .cinejoy-hero-stage,
    .cinejoy-cast-section,
    .cinejoy-series-episodes {
        scroll-margin-top: 75px !important;
    }
}

/* 🛡️ Frosted Glass Header Fix: Prevent Scrolled Text Bleed / Overlay */
.header-cinejoy {
    position: fixed !important;
    background: rgba(10, 10, 13, 0.92) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6) !important;
    transition: background 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease !important;
}

@media (max-width: 768px) {
    body.subpage-body {
        padding-top: max(82px, calc(72px + env(safe-area-inset-top, 0px))) !important;
    }
    .header-cinejoy {
        padding: 10px 14px !important;
    }
    .watch-page-content {
        padding-bottom: calc(95px + env(safe-area-inset-bottom, 20px)) !important;
    }
    .cinejoy-cast-section {
        padding-bottom: 1.5rem !important;
    }
}
@media (max-width: 576px) {
    .cinejoy-hero-stage {
        padding-top: 0.25rem !important;
        padding-bottom: 1.25rem !important;
    }
    .cinejoy-poster-wrapper {
        max-width: 175px !important;
        border-radius: 14px !important;
        margin-bottom: 0.5rem;
    }
    h1.display-5 {
        font-size: clamp(22px, 5.8vw, 29px) !important;
        line-height: 1.2 !important;
        margin-bottom: 0.5rem !important;
    }
    .breadcrumb {
        font-size: 12px !important;
        white-space: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .breadcrumb::-webkit-scrollbar { display: none; }
}

/* 🌌 Full-Page Continuous Ambient Poster Atmosphere (Cinejoy Style) */
.cinejoy-global-ambient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background-color: #07070a;
}
.cinejoy-global-ambient .ambient-poster-layer {
    position: absolute;
    inset: -100px;
    width: calc(100% + 200px);
    height: calc(100% + 200px);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: blur(90px) saturate(220%) brightness(0.65);
    -webkit-filter: blur(90px) saturate(220%) brightness(0.65);
    transform: scale(1.2);
    opacity: 0.75;
    will-change: transform;
}
.cinejoy-global-ambient .ambient-gradient-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 120% 90% at 50% 40%, rgba(8, 8, 12, 0.25) 0%, rgba(8, 8, 12, 0.48) 55%, rgba(7, 7, 10, 0.62) 100%),
        linear-gradient(180deg, rgba(8, 8, 12, 0.2) 0%, rgba(8, 8, 12, 0.35) 50%, rgba(7, 7, 10, 0.55) 100%);
}
.cinejoy-global-ambient .ambient-radial-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-width: 1400px;
    height: 700px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.08) 0%, transparent 70%);
    filter: blur(70px);
}

/* 🌟 Atmospheric Cinema Backdrop Stage (Continuous & Seamless, Zero Elevation) */
.cinejoy-hero-stage {
    position: relative;
    background-color: transparent !important;
    background: transparent !important;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    border: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}
.cinejoy-hero-stage::after {
    display: none !important;
}
.cinejoy-backdrop-art {
    display: none !important;
}
.cinejoy-backdrop-gradient {
    display: none !important;
}
.cinejoy-hero-content {
    position: relative;
    z-index: 3;
}

/* 3D Framed Poster Card */
.cinejoy-poster-wrapper {
    position: relative;
    border-radius: 18px;
    box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.95), 0 0 32px rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.14);
    overflow: hidden;
    background: #141416;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.cinejoy-poster-wrapper:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 35px 80px -12px rgba(0, 0, 0, 0.98), 0 0 40px rgba(245, 158, 11, 0.35);
    border-color: rgba(245, 158, 11, 0.4);
}

/* Action Buttons */
.btn-cinejoy-primary {
    background: #f59e0b;
    color: #0c0c0c !important;
    font-weight: 800;
    font-size: 15px;
    padding: 13px 30px;
    border-radius: 50rem;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    box-shadow: 0 0 26px rgba(245, 158, 11, 0.45);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    cursor: pointer;
}
.btn-cinejoy-primary:hover {
    background: #fbbf24;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 0 38px rgba(245, 158, 11, 0.7);
    color: #000000 !important;
}
.btn-cinejoy-primary:active {
    transform: scale(0.97);
}

.btn-cinejoy-glass {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 22px;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    text-decoration: none;
}
.btn-cinejoy-glass:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(245, 158, 11, 0.5);
    color: #f59e0b !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.btn-cinejoy-glass:active {
    transform: scale(0.97);
}

/* 🌟 Hero Action Buttons - Dynamic Responsive Layout */
.hero-actions-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.hero-secondary-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
@media (max-width: 576px) {
    .hero-actions-container {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .btn-cinejoy-primary {
        width: 100% !important;
        justify-content: center !important;
        padding: 13px 20px !important;
        font-size: 15px !important;
        min-height: 48px;
        border-radius: 14px !important;
    }
    .hero-secondary-actions {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .btn-cinejoy-glass {
        width: 100% !important;
        justify-content: center !important;
        padding: 10px 4px !important;
        font-size: 12px !important;
        min-height: 44px;
        border-radius: 12px !important;
        gap: 5px !important;
    }
    .btn-cinejoy-glass i {
        font-size: 16px !important;
    }
}

/* 🎬 Cinema Theater Player Container */
.theater-wrapper {
    position: relative;
    width: 100%;
}
.ambilight-glow-layer {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle at 50% 50%, rgba(245, 158, 11, 0.25) 0%, rgba(20, 20, 24, 0.1) 60%, transparent 80%);
    filter: blur(60px);
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}
.ambilight-glow-layer.glow-off {
    opacity: 0;
}
.theater-stage-container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.theater-stage-container.theater-wide {
    max-width: 1360px;
}
.custom-cinema-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000000;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 70px -15px rgba(0, 0, 0, 0.85);
    z-index: 2;
}
.custom-cinema-player:fullscreen,
.custom-cinema-player:-webkit-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    aspect-ratio: auto !important;
    box-shadow: none !important;
}
.custom-cinema-player:fullscreen video,
.custom-cinema-player:-webkit-full-screen video {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: contain !important;
}
.custom-cinema-player video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    pointer-events: auto;
}
.custom-cinema-player video::-webkit-media-controls {
    display: none !important;
}
.custom-cinema-player video::-webkit-media-controls-enclosure {
    display: none !important;
}

/* Controls Overlay */
.cinema-controls-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 1;
    transition: opacity 0.3s ease;
    background: linear-gradient(180deg, rgba(12,12,12,0.92) 0%, transparent 24%, transparent 68%, rgba(12,12,12,0.96) 100%);
    pointer-events: none;
}
.cinema-controls-overlay.controls-hidden {
    opacity: 0;
    pointer-events: none;
}
.cinema-controls-overlay > * {
    pointer-events: auto;
}
.player-top-bar {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.player-bottom-bar {
    padding: 14px 24px 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.scrubber-container {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 4px;
    cursor: pointer;
    transition: height 0.15s ease;
}
.scrubber-container:hover {
    height: 10px;
}
.scrubber-buffer {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.38);
    border-radius: 4px;
    width: 0%;
    pointer-events: none;
}
.scrubber-played {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #d97706);
    border-radius: 4px;
    width: 0%;
    pointer-events: none;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.9);
}
.scrubber-thumb {
    position: absolute;
    top: 50%;
    right: -6px;
    transform: translateY(-50%) scale(0);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 10px #f59e0b;
    transition: transform 0.15s ease;
}
.scrubber-container:hover .scrubber-thumb {
    transform: translateY(-50%) scale(1);
}
.player-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 20px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}
.player-btn:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #f59e0b;
}
.player-popover-menu {
    position: absolute;
    bottom: 65px;
    right: 20px;
    background: rgba(18, 18, 22, 0.96);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 10px;
    min-width: 230px;
    z-index: 25;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    display: none;
}
.player-popover-menu.menu-open {
    display: block;
    animation: popFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes popFade {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.player-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 8px;
    color: #cbd5e1;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.player-menu-item:hover {
    background: rgba(245, 158, 11, 0.15);
    color: #ffffff;
}
.player-menu-item.active {
    background: #f59e0b;
    color: #0c0c0c;
    font-weight: 700;
}

/* Double Tap Touch Feedback */
.double-tap-feedback {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(0,0,0,0.8);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 15;
}
.double-tap-left { left: 15%; }
.double-tap-right { right: 15%; }
.double-tap-feedback.show-ripple {
    opacity: 1;
    animation: seekRipple 0.5s ease;
}
@keyframes seekRipple {
    0% { transform: translateY(-50%) scale(0.8); }
    50% { transform: translateY(-50%) scale(1.1); }
    100% { transform: translateY(-50%) scale(1); }
}

.custom-volume-range {
    -webkit-appearance: none;
    width: 75px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.35);
    outline: none;
}
.custom-volume-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f59e0b;
    cursor: pointer;
    box-shadow: 0 0 8px #f59e0b;
}

/* ==========================================================================
   🎬 MINIMALIST CINEMA THEATER & CONTROLS SYSTEM
   ========================================================================== */

/* Minimal Header */
.theater-stage-header {
    padding: 0 4px;
}
.live-stream-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f59e0b;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.9);
    flex-shrink: 0;
    animation: livePulse 2s infinite ease-in-out;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.85); }
}

.theater-head-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #cbd5e1;
    font-size: 12.5px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.theater-head-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
}
.theater-head-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.3);
}

/* Minimalist Stream Toolbar (Dropdown Architecture) */
.theater-stream-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(18, 18, 22, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 7px 12px;
    position: relative !important;
    z-index: 60 !important;
}

.toolbar-label {
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
    margin-right: 2px;
}

/* Minimalist Server Dropdown Trigger */
.server-dropdown-container {
    position: relative !important;
    z-index: 100 !important;
}

.server-dropdown-trigger {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 6px 10px;
    color: #ffffff;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 36px;
    white-space: nowrap !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    -webkit-user-select: none;
}

.server-dropdown-trigger:hover,
.server-dropdown-trigger:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

#activeServerDropdownLabel {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap !important;
}

.server-active-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.85);
    display: inline-block;
    flex-shrink: 0;
}

.server-name-text {
    font-weight: 600;
    color: #ffffff;
    font-size: 12px;
    letter-spacing: -0.2px;
    white-space: nowrap !important;
}

.server-tag-badge {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1.5px 5px;
    border-radius: 4px;
    background: rgba(245, 158, 11, 0.16);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
    letter-spacing: 0.3px;
    white-space: nowrap !important;
}

.server-dropdown-caret {
    font-size: 11px;
    color: #94a3b8;
    transition: transform 0.25s ease;
}

.server-dropdown-caret.rotate {
    transform: rotate(180deg);
}

.server-dropdown-backdrop {
    display: none;
}

/* Floating Dropdown Menu */
.server-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 280px;
    max-width: 330px;
    width: max-content;
    background: #141418 !important;
    backdrop-filter: blur(28px) saturate(1.4);
    -webkit-backdrop-filter: blur(28px) saturate(1.4);
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 1px rgba(255, 255, 255, 0.2) !important;
    padding: 6px;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.server-dropdown-menu.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    pointer-events: auto !important;
    display: block !important;
    z-index: 9999 !important;
}

.server-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 4px;
}

.server-menu-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
}

.server-count-pill {
    font-size: 9.5px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.server-dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.server-dropdown-item {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px 10px;
    color: #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    transition: all 0.15s ease;
    text-align: left;
}

.server-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.06);
}

.server-dropdown-item.active {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
    color: #ffffff;
}

.server-num-badge {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #e2e8f0;
    flex-shrink: 0;
}

.server-dropdown-item.active .server-num-badge {
    background: #f59e0b;
    color: #0c0c0c;
}

.server-item-name {
    font-size: 12.5px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.2;
}

.server-item-sub {
    font-size: 10.5px;
    color: #94a3b8;
    line-height: 1.2;
    margin-top: 2px;
}

.server-item-tag {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 1.5px 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}

.server-item-tag.tag-primary {
    background: rgba(16, 185, 129, 0.18);
    color: #10b981;
}

.server-item-tag.tag-accent {
    background: rgba(56, 189, 248, 0.18);
    color: #38bdf8;
}

.server-item-check {
    font-size: 14px;
    transition: opacity 0.18s ease;
}

.toolbar-tool-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.toolbar-tool-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
}

/* Fallback Compatibility for legacy switchers */
.server-switch-pill {
    display: none;
}

/* ==========================================================================
   ✨ Minimalist Releases & Downloads Surface
   ========================================================================== */
.minimal-release-box {
    background: rgba(16, 16, 20, 0.55);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.minimal-release-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.18s ease;
}
.minimal-release-row:last-child {
    border-bottom: none;
}
.minimal-release-row:hover {
    background: rgba(255, 255, 255, 0.035);
}

/* 🏷️ Minimal Resolution Tag */
.minimal-release-lead {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.minimal-res-pill {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 3.5px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    line-height: 1.3;
    flex-shrink: 0;
}
.minimal-res-pill.res-4k {
    background: rgba(255, 215, 0, 0.12);
    color: #ffd700;
    border: 1px solid rgba(255, 215, 0, 0.28);
}
.minimal-res-pill.res-1080p {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.28);
}
.minimal-res-pill.res-720p {
    background: rgba(56, 189, 248, 0.1);
    color: #7dd3fc;
    border: 1px solid rgba(56, 189, 248, 0.25);
}
.minimal-res-pill.res-480p {
    background: rgba(255, 255, 255, 0.05);
    color: #a1a1aa;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 📋 Clean Dot-Separated Meta */
.minimal-release-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #a1a1aa;
}
.minimal-release-meta .meta-item-bold {
    color: #ffffff;
    font-weight: 600;
}
.minimal-release-meta .meta-item {
    color: #cbd5e1;
}
.minimal-release-meta .meta-dot {
    color: #52525b;
    font-weight: 700;
    font-size: 11px;
}
.minimal-release-meta .meta-size {
    color: #f59e0b;
    font-weight: 600;
    font-size: 12.5px;
}

/* ⚡ Action Buttons */
.btn-minimal-stream {
    background: #f59e0b;
    color: #09090b !important;
    font-size: 12.5px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 8px;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
.btn-minimal-stream:hover {
    background: #abff70;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-minimal-download {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #d4d4d8 !important;
    font-size: 12.5px;
    font-weight: 500;
    padding: 6px 13px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
.btn-minimal-download:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.meta-size-badge {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.28);
    color: #f59e0b;
    font-weight: 700;
    font-size: 11.5px;
    padding: 3px 8px;
    border-radius: 6px;
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .minimal-release-box {
        border-radius: 12px;
        background: rgba(14, 14, 18, 0.7);
    }
    .minimal-release-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px;
    }
    .minimal-release-info {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 10px;
    }
    .minimal-release-lead {
        display: flex;
        align-items: center;
        gap: 12px;
        min-width: 0;
    }
    .minimal-release-meta {
        font-size: 12.5px;
        gap: 7px;
    }
    .minimal-release-row-actions {
        width: 100%;
        display: flex;
        gap: 8px;
    }
    .minimal-release-row-actions .btn-minimal-stream,
    .minimal-release-row-actions .btn-minimal-download {
        flex: 1;
        justify-content: center;
        padding: 8px 12px;
        font-size: 13px;
        min-height: 40px;
        border-radius: 8px;
    }
}

/* Fallback Compatibility */
.matrix-stream-card {
    background: rgba(20, 20, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.btn-matrix-stream {
    background: #f59e0b;
    color: #0c0c0c !important;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-matrix-download {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Series Episode Rows */
.cinejoy-season-pill {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a1a1aa;
    font-weight: 700;
    font-size: 14px;
    padding: 9px 22px;
    border-radius: 9999px;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}
.cinejoy-season-pill:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}
.cinejoy-season-pill.active {
    background: #f59e0b !important;
    color: #0c0c0c !important;
    border-color: #f59e0b !important;
    box-shadow: 0 0 18px rgba(245, 158, 11, 0.45);
}
.cinejoy-episode-row {
    background: rgba(18, 18, 24, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 14px 20px;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.cinejoy-episode-row:hover {
    background: rgba(28, 28, 36, 0.75);
    border-color: rgba(245, 158, 11, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 0 0 18px rgba(245, 158, 11, 0.12);
}
.cinejoy-episode-row.active-playing {
    border-color: #f59e0b !important;
    background: rgba(22, 32, 22, 0.8) !important;
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.25) !important;
}
.cinejoy-ep-num-box {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f59e0b;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.cinejoy-episode-row:hover .cinejoy-ep-num-box,
.cinejoy-episode-row.active-playing .cinejoy-ep-num-box {
    background: #f59e0b;
    color: #0c0c0c;
    border-color: #f59e0b;
}
.cinejoy-ep-thumb-compact {
    width: 120px;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    background: #18181b;
    flex-shrink: 0;
}
.cinejoy-ep-thumb-compact img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.cinejoy-episode-row:hover .cinejoy-ep-thumb-compact img {
    transform: scale(1.06);
}

/* Cast Avatars */
.cinejoy-cast-item {
    text-align: center;
    width: 120px;
    flex-shrink: 0;
}
.cinejoy-cast-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(28, 28, 36, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 2px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    color: #f59e0b;
    margin: 0 auto 10px auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cinejoy-cast-item:hover .cinejoy-cast-avatar {
    border-color: #f59e0b;
    transform: scale(1.08);
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.45);
    background: rgba(36, 36, 46, 0.85);
}

/* Technical Specs Cards */
.cinejoy-spec-card {
    background: rgba(18, 18, 24, 0.55);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.45);
    border-radius: 16px;
    padding: 20px 18px;
    transition: all 0.25s ease;
    height: 100%;
}
.cinejoy-spec-card:hover {
    border-color: rgba(245, 158, 11, 0.35);
    background: rgba(24, 24, 32, 0.75);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

/* Modern Floating Toast */
#cinejustToast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    background: rgba(18, 18, 22, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 158, 11, 0.2);
    border-radius: 50rem;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}
#cinejustToast.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
@media (max-width: 576px) {
    #cinejustToast {
        bottom: 85px;
        right: 15px;
        left: 15px;
        justify-content: center;
    }

    /* 📱 Cinema Theater Player Mobile Optimization */
    .theater-stage-container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    .custom-cinema-player {
        border-radius: 12px !important;
    }
    .theater-stage-header {
        margin-bottom: 6px !important;
    }
    #theaterHeaderTitle {
        font-size: 13.5px !important;
        max-width: 170px !important;
    }
    .theater-head-btn {
        padding: 5px 10px !important;
        font-size: 11.5px !important;
        min-height: 36px;
    }

    /* Stream Toolbar Mobile Ergonomics (Single Sleek Minimalist Row) */
    .theater-stream-toolbar {
        padding: 6px 8px !important;
        gap: 8px !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    .server-dropdown-container {
        flex-grow: 1 !important;
        max-width: calc(100% - 44px) !important;
    }
    .server-dropdown-trigger {
        width: 100% !important;
        padding: 5px 10px !important;
        font-size: 11.5px !important;
        min-height: 34px !important;
        white-space: nowrap !important;
    }
    .server-dropdown-backdrop {
        display: block !important;
        position: fixed !important;
        inset: 0 !important;
        background: rgba(0, 0, 0, 0.75) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        z-index: 999998 !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
        pointer-events: none;
    }
    .server-dropdown-backdrop.show {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* Mobile OTT Bottom Sheet Drawer */
    .server-dropdown-menu {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        border-bottom: none !important;
        border-left: none !important;
        border-right: none !important;
        border-top: 1px solid rgba(255, 255, 255, 0.16) !important;
        background: #141418 !important;
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.95) !important;
        padding: 12px 16px max(24px, env(safe-area-inset-bottom, 24px)) 16px !important;
        z-index: 999999 !important;
        transform: translateY(100%) !important;
        opacity: 1 !important;
        visibility: visible !important;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
        pointer-events: none;
    }
    .server-dropdown-menu.show {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    .server-sheet-handle {
        width: 38px;
        height: 4px;
        background: rgba(255, 255, 255, 0.25);
        border-radius: 99px;
        margin: 0 auto 12px auto;
    }
    .server-close-btn {
        background: rgba(255, 255, 255, 0.08);
        border: none;
        color: #94a3b8;
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        cursor: pointer;
    }
    .server-close-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        color: #ffffff;
    }
    .toolbar-tool-btn {
        width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
        flex-shrink: 0 !important;
    }

    /* Player Loading Overlay Scaled for Mobile 16/9 Frame */
    #playerLoadingOverlay .spinner-border {
        width: 2.2rem !important;
        height: 2.2rem !important;
        border-width: 0.22em !important;
        margin-bottom: 0.5rem !important;
    }
    #playerStatusTitle {
        font-size: 13px !important;
        margin-bottom: 2px !important;
    }
    #playerLoadingOverlay .badge {
        font-size: 8.5px !important;
        padding: 2px 6px !important;
    }
    #playerLoadingOverlay span {
        font-size: 10px !important;
    }

    /* Player Direct Fallback Overlay */
    #playerFallbackOverlay {
        padding: 14px 10px !important;
    }
    #playerFallbackOverlay .rounded-circle {
        width: 44px !important;
        height: 44px !important;
        margin-bottom: 6px !important;
    }
    #playerFallbackOverlay h5 {
        font-size: 14px !important;
        margin-bottom: 4px !important;
    }
    #playerFallbackOverlay p {
        font-size: 11px !important;
        line-height: 1.35 !important;
        margin-bottom: 10px !important;
    }
    #playerFallbackOverlay .btn {
        width: 100% !important;
        padding: 8px 12px !important;
        font-size: 12px !important;
        min-height: 40px;
    }

    /* In-player Controls */
    .player-top-bar {
        padding: 8px 10px !important;
    }
    .player-bottom-bar {
        padding: 6px 10px 10px 10px !important;
    }
    #activePlayingTitle {
        max-width: 130px !important;
        font-size: 12px !important;
    }
    #timeDisplay {
        font-size: 10px !important;
        margin-left: 2px !important;
    }
    .player-btn {
        padding: 5px 6px !important;
        font-size: 17px !important;
    }
    .player-popover-menu {
        bottom: 46px !important;
        right: 8px !important;
        max-width: 210px !important;
        max-height: 135px !important;
        overflow-y: auto !important;
        padding: 6px !important;
        border-radius: 10px !important;
    }
    .player-menu-item {
        padding: 6px 8px !important;
        font-size: 11.5px !important;
    }

    /* Cast & Creators Avatars (Touch-Smooth Scroll Snap Track) */
    .cinejoy-cast-section .overflow-x-auto {
        display: flex !important;
        gap: 12px !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        padding-bottom: 10px !important;
    }
    .cinejoy-cast-item {
        width: 72px !important;
        scroll-snap-align: start !important;
        flex-shrink: 0 !important;
    }
    .cinejoy-cast-avatar {
        width: 52px !important;
        height: 52px !important;
        font-size: 15px !important;
        margin-bottom: 6px !important;
    }
    .cinejoy-cast-item .font-size-13 {
        font-size: 11px !important;
    }
    .cinejoy-cast-item .small {
        font-size: 9.5px !important;
    }

    /* Technical Specifications Grid */
    .cinejoy-spec-card {
        padding: 12px 8px !important;
        border-radius: 12px !important;
    }
    .cinejoy-spec-card .font-size-15 {
        font-size: 12px !important;
        letter-spacing: -0.2px;
    }
    .cinejoy-spec-card .small {
        font-size: 10px !important;
    }

    /* Web Series Episode Rows (Zero-Overflow Responsive Touch Cards) */
    .cinejoy-episode-row {
        padding: 8px 10px !important;
        border-radius: 12px !important;
        gap: 8px !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    .cinejoy-ep-num-box {
        width: 26px !important;
        height: 26px !important;
        font-size: 10.5px !important;
        border-radius: 6px !important;
    }
    .cinejoy-ep-thumb-compact {
        width: 58px !important;
        height: 36px !important;
        border-radius: 6px !important;
    }
    .btn-matrix-stream {
        padding: 6px 12px !important;
        font-size: 11.5px !important;
        min-height: 34px !important;
        border-radius: 8px !important;
    }

    /* Download Matrix Mobile Stacking */
    .minimal-release-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 10px 12px !important;
    }
    .minimal-release-info {
        width: 100% !important;
    }
    .minimal-release-row-actions {
        width: 100% !important;
        display: flex !important;
        gap: 8px !important;
    }
    .btn-minimal-stream, .btn-minimal-download {
        flex: 1 1 50% !important;
        justify-content: center !important;
        padding: 7px 10px !important;
        font-size: 12px !important;
    }
}

/* 🎬 Trailer Modal Stacking & Interaction Fix */
.modal-backdrop {
    z-index: 1050 !important;
}
#trailerModal {
    z-index: 1060 !important;
}
#trailerModal .modal-dialog {
    z-index: 1065 !important;
    position: relative;
}
#trailerModal .btn-close {
    cursor: pointer !important;
    position: relative;
    z-index: 1070 !important;
    opacity: 0.85;
    transition: all 0.2s ease;
}
#trailerModal .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* ==========================================================================
   🎛️ STREAMING SERVER PICKER MODAL & OTT BOTTOM SHEET DRAWER
   ========================================================================== */
.server-picker-modal {
    z-index: 1060 !important;
}

.server-picker-modal.modal {
    padding-right: 0 !important;
}

.server-picker-dialog {
    max-width: 440px;
    margin: 1.75rem auto;
    z-index: 1065 !important;
}

.server-picker-content {
    background: #141418 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 18px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 1px rgba(255, 255, 255, 0.25) !important;
    color: #ffffff;
    overflow: hidden;
}

.server-sheet-handle {
    display: none;
}

.server-picker-modal-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.server-count-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.server-picker-modal .modal-body {
    padding: 12px 14px !important;
}

.server-picker-modal .server-dropdown-item {
    background: rgba(255, 255, 255, 0.035) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    min-height: 56px;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
    cursor: pointer;
    width: 100%;
}

.server-picker-modal .server-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(255, 255, 255, 0.14) !important;
    transform: translateY(-1px);
}

.server-picker-modal .server-dropdown-item.active {
    background: rgba(245, 158, 11, 0.12) !important;
    border-color: rgba(245, 158, 11, 0.45) !important;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.15) !important;
}

.server-picker-modal .server-num-badge {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 800;
    color: #e2e8f0;
}

.server-picker-modal .server-dropdown-item.active .server-num-badge {
    background: #f59e0b;
    color: #0c0c0c;
}

.server-picker-modal .server-item-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
}

.server-picker-modal .server-item-sub {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.2;
    margin-top: 3px;
}

.server-picker-modal .server-item-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2.5px 7px;
    border-radius: 6px;
    letter-spacing: 0.4px;
}

.server-picker-modal .server-item-tag.tag-primary {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.server-picker-modal .server-item-tag.tag-accent {
    background: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
}

.server-picker-modal .server-item-check {
    font-size: 16px;
    transition: opacity 0.15s ease;
}

/* 📱 MOBILE OTT BOTTOM SHEET DRAWER (max-width: 768px) */
@media (max-width: 768px) {
    .server-picker-modal.modal {
        padding: 0 !important;
    }

    .server-picker-modal .modal-dialog {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        margin: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        transform: translateY(100%) !important;
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
        z-index: 1065 !important;
    }

    .server-picker-modal .modal-dialog::before {
        display: none !important;
        height: 0 !important;
        content: none !important;
    }

    .server-picker-modal.show .modal-dialog {
        transform: translateY(0) !important;
    }

    .server-picker-modal .server-picker-content {
        width: 100% !important;
        border-radius: 20px 20px 0 0 !important;
        border-bottom: none !important;
        border-left: none !important;
        border-right: none !important;
        padding-bottom: max(24px, calc(12px + env(safe-area-inset-bottom, 20px))) !important;
        box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.95) !important;
    }

    .server-picker-modal .server-sheet-handle {
        display: block !important;
        width: 40px;
        height: 4.5px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.3);
        margin: 10px auto 4px auto;
    }

    .server-picker-modal .modal-header {
        padding-top: 4px !important;
        padding-bottom: 8px !important;
    }
}
