/* ========================================================
   DoroDoroPhim - Commercial Cinema Portal Stylesheet
   Design Language: Cinematic Dark, Netflix Red & VIP Gold
   ======================================================== */

:root {
    --bg-main: #0b0d13;
    --bg-surface: #121520;
    --bg-card: #161b2a;
    --bg-card-hover: #1e2538;
    --bg-elevated: #222a3d;

    --brand-red: #e50914;
    --brand-red-hover: #f40612;
    --brand-red-glow: rgba(229, 9, 20, 0.45);

    --accent-gold: #f59e0b;
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;

    --border-subtle: #20273a;
    --border-hover: rgba(229, 9, 20, 0.4);

    --text-pure: #ffffff;
    --text-primary: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-cinema: 0 20px 60px rgba(0, 0, 0, 0.85);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

button, a, input, select, textarea {
    touch-action: manipulation;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
}

/* Typography Headings */
h1, h2, h3, h4, .brand-logo, .section-badge {
    font-family: 'Montserrat', sans-serif;
}

/* Cinema Overlay (Tắt đèn) */
.cinema-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

body.cinema-mode-active .cinema-overlay {
    opacity: 1;
    pointer-events: auto;
}

body.cinema-mode-active .video-card-wrapper {
    position: relative;
    z-index: 100;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.95), 0 0 60px var(--brand-red-glow);
}

/* ========================================================
   Top Announcement Bar
   ======================================================== */
.top-announcement {
    background: linear-gradient(90deg, #141724 0%, #1c2133 50%, #141724 100%);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.76rem;
    padding: 6px 0;
    color: var(--text-muted);
}

.announcement-content {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-socials {
    display: flex;
    gap: 14px;
}

.top-socials a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.top-socials a:hover {
    color: var(--text-pure);
}

.text-gold { color: var(--accent-gold) !important; }
.text-danger { color: var(--brand-red) !important; }
.text-primary { color: var(--brand-red) !important; }

/* ========================================================
   Main Navigation Bar
   ======================================================== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(11, 13, 19, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.nav-container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
}

/* Brand Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
}

.logo-symbol {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--brand-red) 0%, #990000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 4px 15px var(--brand-red-glow);
    transition: var(--transition);
}

.brand-logo:hover .logo-symbol {
    transform: scale(1.08) rotate(4deg);
}

.logo-brandname {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.logo-primary {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #ffffff;
}

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

.logo-sub {
    font-size: 0.82rem;
    font-weight: 800;
    background: var(--brand-red);
    color: white;
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Nav Menu Links */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    color: white;
    background: var(--brand-red);
    box-shadow: 0 2px 10px var(--brand-red-glow);
}

/* Search Box */
.search-box {
    flex: 1;
    max-width: 380px;
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 3px 14px;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
    background: var(--bg-card);
}

.search-icon {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-right: 8px;
}

.search-box input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 0.85rem;
    font-family: inherit;
}

.search-box input::placeholder {
    color: var(--text-dim);
}

.search-clear-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 4px;
}

.search-clear-btn:hover {
    color: white;
}

/* User Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-vip {
    display: flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, var(--brand-red) 0%, #b80710 100%);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    padding: 8px 16px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--brand-red-glow);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-vip:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(229, 9, 20, 0.6);
}

.btn-admin-nav {
    background: #181f30;
    border: 1px solid #2b364e;
    color: #f59e0b !important;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.btn-admin-nav:hover {
    background: #202a40;
    border-color: #f59e0b;
    color: #fbbf24 !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

.nav-icon-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.nav-icon-btn:hover {
    background: var(--bg-card);
    color: white;
    border-color: var(--border-hover);
}

.badge-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background: var(--brand-red);
    border-radius: 50%;
}

.user-avatar-btn img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-subtle);
    cursor: pointer;
}

/* ========================================================
   Cinema Watch Section
   ======================================================== */
.cinema-section {
    padding: 24px 0 40px 0;
    background: #08090e;
    border-bottom: 1px solid var(--border-subtle);
}

.cinema-container {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 24px;
}

.watch-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

.btn-demo-test {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-demo-test:hover {
    color: white;
    background: rgba(229, 9, 20, 0.2);
    border-color: var(--brand-red);
}

/* Video Card Wrapper */
.video-card-wrapper {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-cinema);
}

.player-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#main-video, #embed-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    border: none;
    z-index: 5;
}

/* Standby Screen */
.player-standby-screen {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, #1a2030 0%, #0a0d14 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px;
    text-align: center;
    z-index: 8;
}

.standby-icon {
    font-size: 3.5rem;
    color: var(--brand-red);
    filter: drop-shadow(0 0 20px var(--brand-red-glow));
    animation: cinema-pulse 2s infinite;
}

.player-standby-screen h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: white;
}

.player-standby-screen p {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 520px;
    line-height: 1.5;
}

.standby-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Big Center Play Overlay */
.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.25s ease;
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-pulse-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--brand-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    padding-left: 5px;
    box-shadow: 0 0 35px var(--brand-red-glow);
    animation: cinema-pulse 2s infinite;
    transition: var(--transition);
}

.video-overlay:hover .play-pulse-btn {
    transform: scale(1.15);
}

@keyframes cinema-pulse {
    0% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(229, 9, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); }
}

/* Player Loader */
.player-loader {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 20;
}

.cinema-spinner {
    width: 44px;
    height: 44px;
    border: 4px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--brand-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

#loader-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Custom Cinema Controls Bar */
.cinema-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 65%, transparent 100%);
    padding: 24px 16px 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 15;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cinema-controls.autohide {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.player-screen:hover .cinema-controls {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Seek Bar */
.seek-bar-track {
    position: relative;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    cursor: pointer;
    transition: height 0.15s ease;
}

.seek-bar-track:hover {
    height: 8px;
}

.seek-buffered {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 4px;
    width: 0%;
    pointer-events: none;
}

.seek-played {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--brand-red);
    border-radius: 4px;
    width: 0%;
    pointer-events: none;
}

.seek-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%) scale(0);
    width: 13px;
    height: 13px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    transition: transform 0.15s ease;
}

.seek-bar-track:hover .seek-thumb {
    transform: translate(-50%, -50%) scale(1);
}

.seek-tooltip {
    position: absolute;
    bottom: 14px;
    transform: translateX(-50%);
    background: rgba(18, 21, 32, 0.95);
    border: 1px solid var(--border-subtle);
    padding: 3px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    border-radius: 4px;
    display: none;
    pointer-events: none;
}

/* Toolbar */
.controls-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toolbar-left, .toolbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.c-btn {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.c-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.08);
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 4px;
}

.volume-bar {
    width: 70px;
    height: 4px;
    accent-color: var(--brand-red);
    cursor: pointer;
}

.time-readout {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-left: 6px;
    font-variant-numeric: tabular-nums;
}

.time-readout span:first-child {
    color: white;
}

.server-status-pill {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Dropdown */
.c-dropdown {
    position: relative;
}

.dropdown-list {
    position: absolute;
    bottom: 42px;
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    padding: 6px;
    display: none;
    flex-direction: column;
    min-width: 140px;
    z-index: 30;
}

.dropdown-list.show {
    display: flex;
}

.dropdown-list button {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 7px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: left;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-list button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.dropdown-list button.active {
    color: var(--brand-red);
    background: rgba(229, 9, 20, 0.15);
}

/* Watch Info Panel */
.watch-info-panel {
    padding: 20px 24px;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.active-movie-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 6px;
}

.active-movie-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--bg-elevated);
    color: var(--text-muted);
}

.badge.red {
    background: var(--brand-red);
    color: white;
}

.badge.gold {
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-gold);
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.info-interactions {
    display: flex;
    gap: 8px;
}

.interaction-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.interaction-btn:hover {
    background: var(--bg-elevated);
    color: white;
    border-color: var(--border-hover);
}

/* Commercial Server Switcher */
.servers-selector-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    flex-wrap: wrap;
}

.server-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.server-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.server-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.server-btn:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.server-btn.active {
    background: linear-gradient(135deg, var(--brand-red) 0%, #b80710 100%);
    color: white;
    border-color: var(--brand-red);
    box-shadow: 0 2px 10px var(--brand-red-glow);
}

/* Episodes Container Card */
.episodes-container-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.episodes-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.episodes-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.episodes-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(229, 9, 20, 0.15);
    color: var(--brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.episodes-title-text {
    font-size: 1rem;
    font-weight: 800;
    color: white;
}

.ep-count-tag {
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(245, 158, 11, 0.2);
    color: var(--accent-gold);
    border: 1px solid rgba(245, 158, 11, 0.4);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.episodes-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-ep-nav {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-ep-nav:hover:not(:disabled) {
    color: white;
    background: var(--bg-elevated);
    border-color: var(--border-hover);
}

.btn-ep-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.btn-add-episode-inline {
    background: linear-gradient(135deg, var(--brand-red) 0%, #b80710 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 7px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 10px var(--brand-red-glow);
    transition: var(--transition);
}

.btn-add-episode-inline:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.6);
}

.btn-add-ep-nav {
    background: rgba(245, 158, 11, 0.15) !important;
    color: var(--accent-gold) !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    box-shadow: none !important;
}

.btn-add-ep-nav:hover {
    background: rgba(245, 158, 11, 0.25) !important;
    color: white !important;
}

/* Episodes Buttons Grid */
.episodes-buttons-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    padding: 4px 2px;
}

.ep-btn-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 7px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.ep-btn-item:hover {
    background: var(--bg-elevated);
    color: white;
    border-color: var(--border-hover);
}

.ep-btn-item.active {
    background: var(--brand-red);
    color: white;
    border-color: var(--brand-red);
    box-shadow: 0 2px 10px var(--brand-red-glow);
}

.ep-btn-item .ep-delete-btn {
    opacity: 0.4;
    color: white;
    font-size: 0.72rem;
    padding: 2px 4px;
    border-radius: 2px;
    transition: var(--transition);
}

.ep-btn-item:hover .ep-delete-btn {
    opacity: 1;
}

.ep-btn-item .ep-delete-btn:hover {
    color: #ff4d4f;
    background: rgba(0, 0, 0, 0.4);
}

/* Synopsis Box */
.movie-synopsis-box {
    background: rgba(0, 0, 0, 0.25);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
}

.synopsis-heading {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.synopsis-text {
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.5;
}

/* Comments Section */
.comments-card {
    margin-top: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 22px;
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.comments-header h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rating-stars-badge {
    font-size: 0.84rem;
    color: var(--text-muted);
}

.comment-input-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.comment-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-input-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-input-box textarea {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    color: white;
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    resize: none;
    transition: var(--transition);
}

.comment-input-box textarea:focus {
    border-color: var(--brand-red);
}

.comment-input-actions {
    display: flex;
    justify-content: flex-end;
}

.btn-submit-comment {
    background: var(--brand-red);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    padding: 7px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-submit-comment:hover {
    background: var(--brand-red-hover);
}

/* Comments Feed */
.comments-feed {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comment-user-info {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.comment-author {
    font-size: 0.86rem;
    font-weight: 700;
    color: white;
}

.comment-time {
    font-size: 0.74rem;
    color: var(--text-dim);
}

.comment-rating {
    color: var(--accent-gold);
    font-size: 0.75rem;
}

.comment-body {
    font-size: 0.85rem;
    color: #cbd5e1;
    line-height: 1.45;
}

/* Side Trending Column */
.side-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 18px;
}

.side-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: white;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.side-movie-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-movie-item {
    display: flex;
    gap: 12px;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.side-movie-item:hover {
    background: var(--bg-card-hover);
}

.side-thumb-wrap {
    position: relative;
    width: 80px;
    height: 105px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.side-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.side-item-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: white;
    line-height: 1.3;
}

.side-item-meta {
    font-size: 0.74rem;
    color: var(--text-dim);
}

.side-item-rating {
    font-size: 0.75rem;
    color: var(--accent-gold);
    font-weight: 700;
}

/* ========================================================
   Main Movie Catalog Section
   ======================================================== */
.section-title-wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.section-badge {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-dim);
    text-transform: uppercase;
}

.section-badge.red {
    color: var(--brand-red);
}

.section-heading h2 {
    font-size: 1.45rem;
    font-weight: 900;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ========================================================
   Main Movie Catalog Grid
   ======================================================== */
.catalog-section {
    max-width: 1480px;
    margin: 0 auto;
    padding: 20px 24px 60px 24px;
}

.movie-count-badge {
    font-size: 0.82rem;
    color: var(--text-dim);
    font-weight: 600;
}

.commercial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 22px;
}

.c-movie-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
}

.c-movie-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.6), 0 0 20px var(--brand-red-glow);
}

.c-poster-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    background: #151926;
    overflow: hidden;
}

.c-poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.c-movie-card:hover .c-poster-img {
    transform: scale(1.06);
}

.card-top-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
}

.c-quality-tag {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.85);
    color: var(--accent-gold);
    border: 1px solid rgba(245, 158, 11, 0.5);
    backdrop-filter: blur(4px);
}

.c-rating-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    color: var(--accent-gold);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.c-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.c-hover-play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--brand-red);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding-left: 3px;
    box-shadow: 0 4px 15px var(--brand-red-glow);
    transform: scale(0.8);
    transition: var(--transition);
}

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

.c-card-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.c-card-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.c-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.74rem;
    color: var(--text-dim);
    margin-top: 4px;
}

.c-card-genre {
    color: var(--text-muted);
}

/* ========================================================
   Modals
   ======================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    transition: opacity 0.25s ease;
}

.modal-backdrop.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 560px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    animation: modal-scale 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modal-scale {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    padding: 16px 22px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.15rem;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

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

.btn-clear-history {
    background: transparent;
    border: none;
    color: var(--brand-red);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    margin-right: 12px;
}

.modal-body {
    padding: 22px;
    max-height: 75vh;
    overflow-y: auto;
}

.input-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.input-field label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.req {
    color: var(--brand-red);
}

.input-field input, .input-field select, .input-field textarea {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.input-field input:focus, .input-field select:focus, .input-field textarea:focus {
    border-color: var(--brand-red);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

.field-tip {
    font-size: 0.74rem;
    color: var(--text-dim);
}

.input-row {
    display: flex;
    gap: 12px;
}

.flex-1 {
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
}

.btn-confirm-publish {
    background: linear-gradient(135deg, var(--brand-red) 0%, #b80710 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 10px 22px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px var(--brand-red-glow);
}

.btn-cancel {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

/* History / Favorites List in Modal */
.history-list-box, .favorites-list-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.modal-item-row:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-dim);
}

.empty-state i {
    font-size: 2.2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* ========================================================
   Commercial Footer
   ======================================================== */
.commercial-footer {
    background: #07080c;
    border-top: 1px solid var(--border-subtle);
    padding: 50px 0 24px 0;
}

.footer-top {
    max-width: 1480px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.brand-col p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 14px 0 20px 0;
    max-width: 380px;
}

.footer-apps {
    display: flex;
    gap: 10px;
}

.app-badge {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.84rem;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: white;
    padding-left: 4px;
}

.footer-social-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.footer-social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social-icons a:hover {
    background: var(--brand-red);
    color: white;
    border-color: var(--brand-red);
}

.contact-email {
    font-size: 0.82rem;
    color: var(--text-dim);
}

.footer-bottom {
    max-width: 1480px;
    margin: 0 auto;
    padding: 20px 24px 0 24px;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
}

/* ========================================================
   Toast Notification
   ======================================================== */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-surface);
    color: white;
    border: 1px solid var(--border-subtle);
    border-left: 4px solid var(--brand-red);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.hidden {
    display: none;
}

.hidden {
    display: none !important;
}

/* Guide Box in Sidebar */
.guide-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    background: rgba(0, 0, 0, 0.3);
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand-red);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.guide-step p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.guide-step strong {
    color: white;
}

.guide-step em {
    color: var(--accent-gold);
    font-style: normal;
}

.btn-sidebar-add {
    width: 100%;
    background: linear-gradient(135deg, var(--brand-red) 0%, #b80710 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 11px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px var(--brand-red-glow);
    transition: var(--transition);
}

.btn-sidebar-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6);
}

.hub-status {
    font-size: 0.76rem;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 6px;
}

.text-success {
    color: #10b981 !important;
}

.empty-catalog-card {
    grid-column: 1 / -1;
    background: var(--bg-card);
    border: 1px dashed var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 48px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.empty-catalog-card i {
    font-size: 3rem;
    color: var(--brand-red);
    opacity: 0.8;
}

.empty-catalog-card h3 {
    font-size: 1.25rem;
    color: white;
}

.empty-catalog-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.5;
}

.btn-empty-add {
    background: var(--brand-red);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 12px 26px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px var(--brand-red-glow);
    transition: var(--transition);
}

.btn-empty-add:hover {
    background: var(--brand-red-hover);
    transform: translateY(-2px);
}

/* ========================================================
   Chặn nút Pop-out Google Drive & Thanh Chọn Đa Server
   ======================================================== */

#player-card {
  position: relative;
}

.drive-popout-blocker, #drive-popout-blocker {
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  z-index: 99;
  background: transparent;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: auto !important;
  touch-action: none !important;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drive-popout-blocker::after {
  content: "VIP";
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--accent-gold);
  background: rgba(11, 13, 19, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

/* Resume Playback Banner (TASK-2026-02) */
.resume-playback-banner {
  position: absolute;
  bottom: 74px;
  left: 20px;
  background: rgba(15, 18, 25, 0.96);
  border: 1px solid var(--accent-red);
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 80;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(229, 9, 20, 0.25);
  animation: resumeSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.resume-banner-text {
  font-size: 0.84rem;
  color: #f8fafc;
  font-weight: 600;
}

.resume-banner-time {
  color: var(--accent-gold);
  font-weight: 800;
  letter-spacing: 0.5px;
}

.btn-resume-action {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-hover));
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
  transition: all 0.2s;
}

.btn-resume-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(229, 9, 20, 0.6);
}

.btn-resume-restart {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-resume-restart:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

@media (max-width: 640px) {
  .resume-playback-banner {
    left: 10px;
    right: 10px;
    bottom: 60px;
    padding: 8px 12px;
    font-size: 0.78rem;
    gap: 8px;
    justify-content: space-between;
  }
  .resume-banner-text {
    font-size: 0.76rem;
  }
}

.server-switch-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.server-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
}

.server-btn {
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.server-btn:hover {
  color: var(--text-pure);
  border-color: rgba(255, 255, 255, 0.25);
}

.server-btn.active {
  background: linear-gradient(135deg, var(--brand-red) 0%, #b80710 100%);
  color: var(--text-pure);
  border-color: var(--brand-red);
  box-shadow: 0 4px 12px var(--brand-red-glow);
}

/* ========================================================
   Mobile & Responsive Optimization System
   ======================================================== */

/* 1. Large Tablets / Laptops */
@media (max-width: 1100px) {
    .watch-grid {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .cinema-container {
        padding: 0 20px;
    }
}

/* 2. Tablets & Small Screens */
@media (max-width: 860px) {
    .nav-menu {
        display: none !important;
    }
    .nav-container {
        padding: 10px 16px;
        gap: 12px;
    }
    .search-box {
        max-width: 240px;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .cinema-container {
        padding: 0 16px;
    }
    .section-title-wrap {
        padding: 0 16px;
    }
    .catalog-section {
        padding: 24px 16px;
    }
}

/* 3. Mobile Phones (Standard Smartphones) */
@media (max-width: 680px) {
    /* Prevent any horizontal screen wobbling / overflow */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }

    /* Top Announcement */
    .top-announcement {
        padding: 5px 8px;
        font-size: 0.72rem;
    }
    .announcement-content {
        flex-direction: column;
        gap: 2px;
        text-align: center;
        justify-content: center;
        padding: 0 8px;
    }
    .top-socials {
        display: none !important;
    }

    /* Main Navigation Header */
    .navbar {
        position: sticky;
        top: 0;
        z-index: 100;
    }
    .nav-container {
        padding: 8px 12px;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: space-between;
    }
    .brand-logo {
        order: 1;
        gap: 8px;
    }
    .logo-symbol {
        width: 34px;
        height: 34px;
        font-size: 1.05rem;
    }
    .logo-primary {
        font-size: 1.2rem;
    }
    .logo-sub {
        font-size: 0.72rem;
        padding: 1px 4px;
    }
    .nav-actions {
        order: 2;
        gap: 6px;
    }
    /* Hide text in nav action buttons on mobile, turn into compact touch icon buttons */
    .btn-vip span {
        display: none !important;
    }
    .btn-vip {
        padding: 8px 10px;
        min-width: 36px;
        height: 36px;
        justify-content: center;
        font-size: 0.95rem;
        border-radius: var(--radius-sm);
    }
    .btn-admin-nav {
        padding: 8px 10px;
    }
    .btn-add-ep-nav {
        padding: 8px 10px;
    }
    .nav-icon-btn {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
    /* Search box drops to second row full width on mobile for effortless typing */
    .search-box {
        order: 3;
        width: 100%;
        max-width: 100%;
        flex: 1 1 100%;
        margin-top: 2px;
        padding: 6px 14px;
    }
    .search-box input {
        font-size: 16px !important; /* Prevents auto-zoom on iOS */
    }

    /* Cinema Container & Watch Area */
    .cinema-section {
        padding: 12px 0 24px 0;
    }
    .cinema-container {
        padding: 0 10px;
    }
    .watch-grid {
        gap: 16px;
    }

    .btn-demo-test {
        width: 100%;
        justify-content: center;
        padding: 7px 10px;
    }

    /* Video Player & Standby Screen */
    .video-card-wrapper {
        border-radius: var(--radius-md);
    }
    .player-screen {
        border-radius: var(--radius-md);
    }
    .player-standby-screen {
        padding: 10px 12px;
        gap: 6px;
        justify-content: center;
    }
    .standby-icon {
        font-size: 2rem;
    }
    .player-standby-screen h3 {
        font-size: 0.95rem;
    }
    .player-standby-screen p {
        font-size: 0.74rem;
        line-height: 1.35;
        max-width: 100%;
        margin: 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .standby-actions {
        gap: 6px;
        margin-top: 4px;
        width: 100%;
        justify-content: center;
    }
    .standby-actions button {
        padding: 6px 12px;
        font-size: 0.75rem;
        border-radius: var(--radius-sm);
    }
    .play-pulse-btn {
        width: 56px;
        height: 56px;
        font-size: 1.4rem;
    }

    /* Player Custom Controls on Mobile */
    .cinema-controls {
        padding: 14px 10px 8px 10px;
        gap: 6px;
    }
    .seek-bar-track {
        height: 6px;
        position: relative;
    }
    .seek-bar-track::before {
        content: '';
        position: absolute;
        inset: -10px 0;
    }
    .seek-thumb {
        width: 12px;
        height: 12px;
        transform: translate(-50%, -50%) scale(1);
    }
    /* Hide volume slider and VIP pill to give essential playback buttons maximum room */
    .volume-container {
        display: none !important;
    }
    #server-status-pill {
        display: none !important;
    }
    .controls-toolbar {
        gap: 4px;
    }
    .toolbar-left {
        gap: 2px;
    }
    .toolbar-right {
        gap: 2px;
    }
    .c-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
    .time-readout {
        font-size: 0.72rem;
        margin-left: 2px;
    }

    /* Watch Info Panel */
    .watch-info-panel {
        padding: 14px 12px;
        gap: 12px;
    }
    .info-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .active-movie-title {
        font-size: 1.15rem;
        margin-bottom: 4px;
    }
    .active-movie-badges {
        gap: 6px;
    }
    .info-interactions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }
    .interaction-btn {
        justify-content: center;
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    /* Server Switcher */
    .servers-selector-bar {
        padding: 8px 10px;
        gap: 6px;
        flex-direction: column;
        align-items: stretch;
    }
    .server-pills {
        width: 100%;
    }
    .server-btn {
        width: 100%;
        justify-content: center;
        padding: 7px 12px;
        font-size: 0.78rem;
    }

    /* Episodes Selector Bar */
    .episodes-container-card {
        padding: 12px 10px;
        gap: 10px;
        border-radius: var(--radius-sm);
    }
    .episodes-header-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .episodes-header-left {
        justify-content: space-between;
        width: 100%;
    }
    .episodes-header-right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        width: 100%;
    }
    .btn-ep-nav {
        justify-content: center;
        padding: 7px 10px;
        font-size: 0.78rem;
    }
    .btn-add-episode-inline {
        grid-column: 1 / -1;
        justify-content: center;
        padding: 8px;
        font-size: 0.8rem;
    }
    .episodes-buttons-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 6px;
        max-height: 180px;
        -webkit-overflow-scrolling: touch;
    }
    .ep-btn-item {
        padding: 8px 4px;
        justify-content: center;
        font-size: 0.8rem;
        border-radius: var(--radius-sm);
        min-height: 38px;
    }

    /* Movie Synopsis Box */
    .movie-synopsis-box {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    /* Comments Section */
    .comments-card {
        padding: 14px 12px;
        gap: 12px;
    }
    .comment-input-row {
        gap: 0;
    }
    .comment-avatar {
        display: none !important;
    }
    .comment-input-box {
        width: 100%;
    }
    .comment-input-box textarea {
        font-size: 16px !important;
        padding: 8px 10px;
        min-height: 60px;
    }
    .btn-submit-comment {
        width: 100%;
        justify-content: center;
        padding: 9px;
        font-size: 0.85rem;
    }

    /* Sidebar Column */
    .sidebar-column {
        margin-top: 6px;
    }
    .side-card {
        padding: 14px 12px;
    }
    .side-card-title {
        font-size: 0.95rem;
    }
    .btn-sidebar-add {
        width: 100%;
        justify-content: center;
        padding: 10px;
    }
    .side-movie-list {
        max-height: 280px;
        -webkit-overflow-scrolling: touch;
    }

    /* Movie Catalog & Grid */
    .catalog-section {
        padding: 20px 10px;
    }
    .section-title-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 0;
    }
    .section-heading h2 {
        font-size: 1.15rem;
    }
    .commercial-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .c-movie-card {
        border-radius: var(--radius-sm);
    }
    .c-card-info {
        padding: 8px 10px;
    }
    .c-card-title {
        font-size: 0.85rem;
    }
    .c-card-meta {
        font-size: 0.7rem;
    }
    .c-hover-overlay {
        display: none !important;
    }

    /* Modals */
    .modal-backdrop {
        padding: 8px;
    }
    .modal-card {
        width: 100%;
        max-height: 92vh;
        border-radius: var(--radius-md);
    }
    .modal-header {
        padding: 12px 14px;
    }
    .modal-header h3 {
        font-size: 1rem;
    }
    .modal-body {
        padding: 14px 12px;
        max-height: calc(92vh - 120px);
        -webkit-overflow-scrolling: touch;
    }
    .input-row {
        flex-direction: column;
        gap: 8px;
    }
    .input-field input, .input-field select, .input-field textarea {
        font-size: 16px !important;
        padding: 9px 12px;
    }
    .modal-footer {
        flex-direction: column-reverse;
        gap: 8px;
        padding-top: 12px;
    }
    .modal-footer button {
        width: 100%;
        justify-content: center;
        padding: 10px;
    }

    /* Commercial Footer */
    .commercial-footer {
        padding: 30px 12px 20px 12px;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-col h4 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    .footer-bottom {
        margin-top: 20px;
        padding-top: 14px;
        font-size: 0.76rem;
    }
}

/* 4. Ultra-compact / Small Mobile Phones (iPhone SE, Galaxy Fold screen, etc.) */
@media (max-width: 380px) {
    .commercial-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .nav-actions {
        gap: 4px;
    }
    .btn-vip, .nav-icon-btn {
        width: 34px;
        height: 34px;
        padding: 6px;
        font-size: 0.85rem;
    }
    .logo-primary {
        font-size: 1.05rem;
    }
    .episodes-buttons-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
