/* ==========================================================================
   FILMYBAZAAR HUB - CINEMA MARQUE / FILM-THEATER DESIGN SYSTEM
   Ultra-premium lobby aesthetic - espresso - warm gold - curtain crimson
   ========================================================================== */

:root {
    --bg-base: #090807;
    --bg-surface: #14110f;
    --bg-surface-elevated: #1c1814;
    --bg-surface-hover: #26201a;
    --bg-velvet: #0c0908;
    --bg-curtain: #1a0a10;

    --glass-bg: rgba(20, 17, 15, 0.82);
    --glass-border: rgba(243, 238, 228, 0.08);
    --glass-border-hover: rgba(201, 162, 39, 0.35);

    --accent-gold: #c9a227;
    --accent-gold-soft: rgba(201, 162, 39, 0.22);
    --accent-gold-glow: rgba(201, 162, 39, 0.18);
    --accent-crimson: #9f1239;
    --accent-crimson-soft: rgba(159, 18, 57, 0.28);
    --accent-ivory: #f3eee4;
    --accent-taupe: #a39888;

    --accent-cyan: var(--accent-gold);
    --accent-cyan-glow: var(--accent-gold-glow);
    --accent-purple: #7a2848;
    --accent-purple-glow: rgba(122, 40, 72, 0.28);
    --accent-blue: #8b7355;
    --accent-green: #6b8f71;
    --accent-amber: #c9a227;
    --accent-rose: #9f1239;

    --text-main: #f3eee4;
    --text-muted: #a39888;
    --text-dim: #6e655a;

    --sidebar-width: 260px;
    --sidebar-collapsed-width: 72px;
    --header-height: 70px;
    --mobile-nav-height: 64px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --font-display: 'Bebas Neue', 'Impact', sans-serif;
    --font-title: 'Syne', 'Segoe UI', sans-serif;
    --font-body: 'DM Sans', 'Segoe UI', sans-serif;

    --shadow-soft: 0 12px 40px rgba(0, 0, 0, 0.55);
    --shadow-poster: 0 18px 48px rgba(0, 0, 0, 0.65);
    --edge-gold: 0 0 0 1px rgba(201, 162, 39, 0.45);

    --ease-cinema: cubic-bezier(0.22, 1, 0.36, 1);
    --transition: color 0.25s var(--ease-cinema),
                  background 0.25s var(--ease-cinema),
                  border-color 0.25s var(--ease-cinema),
                  transform 0.3s var(--ease-cinema),
                  opacity 0.25s var(--ease-cinema),
                  box-shadow 0.3s var(--ease-cinema);
    --transition-spring: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1),
                         box-shadow 0.35s var(--ease-cinema);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-base);
    color: var(--text-main);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    line-height: 1.55;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

button, input, select, textarea {
    font-family: inherit;
}

a {
    color: var(--accent-gold);
    transition: var(--transition);
}

::selection {
    background: rgba(201, 162, 39, 0.35);
    color: var(--accent-ivory);
}

.hidden { display: none !important; }

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

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb {
    background: rgba(163, 152, 136, 0.35);
    border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(201, 162, 39, 0.55); }
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(163, 152, 136, 0.4) var(--bg-base);
}

#app-background {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    background-color: var(--bg-base);
    background-image:
        radial-gradient(ellipse 70% 55% at 18% 12%, rgba(201, 162, 39, 0.09) 0%, transparent 55%),
        radial-gradient(ellipse 55% 50% at 88% 78%, rgba(159, 18, 57, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(20, 17, 15, 0.9) 0%, transparent 65%),
        linear-gradient(180deg, #0c0a08 0%, #090807 45%, #0a0807 100%);
}

#app-background::before {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle 42vmin at 30% 25%, rgba(201, 162, 39, 0.07) 0%, transparent 55%),
        radial-gradient(circle 36vmin at 72% 60%, rgba(159, 18, 57, 0.06) 0%, transparent 50%);
    animation: spotlightDrift 22s ease-in-out infinite alternate;
    will-change: transform;
}

#app-background::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.045;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 3px,
            rgba(243, 238, 228, 0.03) 3px,
            rgba(243, 238, 228, 0.03) 4px
        );
    background-size: 180px 180px, 100% 8px;
    mix-blend-mode: overlay;
    pointer-events: none;
}

@keyframes spotlightDrift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    50%  { transform: translate3d(4%, 3%, 0) scale(1.05); }
    100% { transform: translate3d(-3%, 5%, 0) scale(1.02); }
}

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

@keyframes posterReveal {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes marqueeScroll {
    0%   { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

@keyframes slideUpBottomSheet {
    from { transform: translateY(100%); opacity: 0.85; }
    to   { transform: translateY(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    #app-background::before,
    .ticker-content,
    .skeleton-card::after,
    .announcement-banner,
    .movie-card {
        animation: none !important;
    }
}

.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(18px) saturate(1.05);
    -webkit-backdrop-filter: blur(18px) saturate(1.05);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 1px 0 rgba(243, 238, 228, 0.04);
}

.neon-highlight {
    color: var(--accent-gold);
    background: none;
    -webkit-text-fill-color: unset;
    letter-spacing: 0.02em;
}

.neon-text {
    color: var(--accent-gold);
    font-weight: 600;
}

.app-shell {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
}

.desktop-sidebar {
    width: var(--sidebar-width);
    background:
        linear-gradient(180deg, rgba(159, 18, 57, 0.14) 0%, transparent 28%),
        linear-gradient(90deg, #0e0a0c 0%, #120e0d 55%, #0c0908 100%);
    border-right: 1px solid rgba(201, 162, 39, 0.12);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 90;
    transition: width 0.3s var(--ease-cinema);
    flex-shrink: 0;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.35);
}

.desktop-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(159, 18, 57, 0.55) 20%,
        rgba(201, 162, 39, 0.4) 50%,
        rgba(159, 18, 57, 0.55) 80%,
        transparent 100%
    );
    opacity: 0.7;
    pointer-events: none;
}

.desktop-sidebar.collapsed { width: var(--sidebar-collapsed-width); }

.sidebar-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-bottom: 1px solid rgba(243, 238, 228, 0.06);
    gap: 8px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--accent-ivory);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    letter-spacing: 0.06em;
    overflow: hidden;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    text-transform: uppercase;
}

.sidebar-logo i {
    font-size: 18px;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.sidebar-logo span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-logo span b {
    color: var(--accent-gold);
    font-weight: 400;
}

.desktop-sidebar.collapsed .sidebar-logo span { display: none; }

.sidebar-toggle-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-dim);
    font-size: 14px;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.sidebar-toggle-btn:hover {
    color: var(--accent-gold);
    background: rgba(201, 162, 39, 0.08);
    border-color: rgba(201, 162, 39, 0.2);
}

.desktop-sidebar.collapsed .sidebar-toggle-btn i { transform: rotate(180deg); }

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 18px 10px;
    gap: 4px;
    flex: 1;
    overflow-y: auto;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    border: 1px solid transparent;
}

.sidebar-nav-item i {
    font-size: 17px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-nav-item:hover {
    color: var(--accent-ivory);
    background: rgba(243, 238, 228, 0.04);
    border-color: rgba(243, 238, 228, 0.05);
}

.sidebar-nav-item.active {
    color: var(--accent-gold);
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.12) 0%, rgba(201, 162, 39, 0.03) 100%);
    border-color: rgba(201, 162, 39, 0.18);
    font-weight: 600;
}

.sidebar-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 3px;
    border-radius: 0 2px 2px 0;
    background: var(--accent-gold);
    box-shadow: 0 0 12px rgba(201, 162, 39, 0.35);
}

.sidebar-badge {
    margin-left: auto;
    background: rgba(201, 162, 39, 0.14);
    color: var(--accent-gold);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.04em;
}

.desktop-sidebar.collapsed .sidebar-nav-item span { display: none; }
.desktop-sidebar.collapsed .sidebar-badge { display: none; }

.desktop-sidebar.collapsed .sidebar-nav-item.active::before {
    left: 50%;
    top: auto;
    bottom: 6px;
    width: 16px;
    height: 2px;
    transform: translateX(-50%);
    border-radius: 1px;
}

.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.2), transparent);
    margin: 14px 6px;
}

.app-main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.app-header {
    height: var(--header-height);
    background: rgba(9, 8, 7, 0.88);
    border-bottom: 1px solid rgba(243, 238, 228, 0.06);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 80;
    gap: 20px;
}

.header-search-wrap {
    flex: 1;
    max-width: 520px;
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-wrap i.search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-dim);
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
}

.header-search-input {
    width: 100%;
    padding: 11px 88px 11px 40px;
    background: rgba(20, 17, 15, 0.9);
    border: 1px solid rgba(243, 238, 228, 0.1);
    border-radius: var(--radius-md);
    color: var(--accent-ivory);
    font-size: 14px;
    font-family: var(--font-body);
    transition: var(--transition);
}

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

.header-search-input:focus {
    outline: none;
    border-color: rgba(201, 162, 39, 0.5);
    background: rgba(28, 24, 20, 0.95);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}

.header-search-kbd {
    position: absolute;
    right: 108px;
    font-size: 10px;
    font-family: var(--font-body);
    color: var(--text-dim);
    background: rgba(243, 238, 228, 0.05);
    border: 1px solid rgba(243, 238, 228, 0.1);
    padding: 3px 7px;
    border-radius: 3px;
    pointer-events: none;
    letter-spacing: 0.04em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.custom-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.custom-select {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(20, 17, 15, 0.9);
    border: 1px solid rgba(243, 238, 228, 0.1);
    color: var(--text-main);
    padding: 9px 34px 9px 14px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
}

.custom-select:hover,
.custom-select:focus {
    border-color: rgba(201, 162, 39, 0.45);
    outline: none;
}

.custom-select option {
    background: #14110f;
    color: var(--accent-ivory);
}

.custom-select-wrap i.arrow {
    position: absolute;
    right: 12px;
    font-size: 10px;
    color: var(--text-dim);
    pointer-events: none;
}

.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(180deg, #d4b03a 0%, #c9a227 45%, #a8861c 100%);
    color: #1a1408;
    font-weight: 700;
    font-size: 13.5px;
    font-family: var(--font-body);
    letter-spacing: 0.04em;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 230, 160, 0.25);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-spring);
    box-shadow: 0 4px 16px rgba(201, 162, 39, 0.22);
    min-height: 44px;
    text-transform: uppercase;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.32);
    filter: brightness(1.06);
}

.primary-btn:active {
    transform: translateY(0);
    filter: brightness(0.96);
}

.primary-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(243, 238, 228, 0.22);
    color: var(--accent-ivory);
    font-weight: 500;
    font-size: 13.5px;
    font-family: var(--font-body);
    padding: 10px 18px;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    min-height: 44px;
}

.secondary-btn:hover {
    background: rgba(243, 238, 228, 0.06);
    border-color: rgba(243, 238, 228, 0.4);
    color: #fff;
}

.secondary-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.neon-ticker-bar {
    width: 100%;
    background:
        linear-gradient(90deg, rgba(159, 18, 57, 0.18), rgba(20, 17, 15, 0.95) 30%, rgba(20, 17, 15, 0.95) 70%, rgba(201, 162, 39, 0.1));
    border-bottom: 1px solid rgba(201, 162, 39, 0.15);
    border-top: 1px solid rgba(243, 238, 228, 0.04);
    padding: 9px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 10;
}

.neon-ticker-bar::before,
.neon-ticker-bar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    z-index: 2;
    pointer-events: none;
}

.neon-ticker-bar::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg-base), transparent);
}

.neon-ticker-bar::after {
    right: 0;
    background: linear-gradient(270deg, var(--bg-base), transparent);
}

.ticker-content {
    display: inline-block;
    font-family: var(--font-title);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    animation: marqueeScroll 36s linear infinite;
}

.ticker-content span {
    color: var(--accent-gold);
    margin: 0 14px;
}

.main-content-scroll {
    flex: 1;
    padding: 32px 40px;
    max-width: 1560px;
    width: 100%;
    margin: 0 auto;
}

.results-section { margin-bottom: 8px; }

.announcement-banner {
    position: relative;
    overflow: hidden;
    padding: 48px 48px 40px;
    margin-bottom: 28px;
    background:
        linear-gradient(135deg, rgba(159, 18, 57, 0.22) 0%, transparent 42%),
        linear-gradient(180deg, rgba(28, 24, 20, 0.95) 0%, rgba(14, 11, 10, 0.92) 100%);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(243, 238, 228, 0.06);
    animation: marqueFadeUp 0.85s var(--ease-cinema) both;
}

.announcement-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 100% 0%, rgba(201, 162, 39, 0.12) 0%, transparent 55%),
        repeating-linear-gradient(
            90deg,
            transparent 0,
            transparent 11px,
            rgba(0, 0, 0, 0.12) 11px,
            rgba(0, 0, 0, 0.12) 12px
        );
    opacity: 0.35;
    pointer-events: none;
}

.announcement-banner::after {
    content: 'FILMYBAZAAR';
    position: absolute;
    right: -2%;
    bottom: -18%;
    font-family: var(--font-display);
    font-size: clamp(72px, 14vw, 160px);
    letter-spacing: 0.04em;
    color: rgba(243, 238, 228, 0.03);
    line-height: 1;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}

.banner-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    border-left: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    font-family: var(--font-title);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    padding: 2px 0 2px 14px;
    border-radius: 0;
    margin-bottom: 18px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.banner-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 400;
    line-height: 0.95;
    color: var(--accent-ivory);
    margin-bottom: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    max-width: 16ch;
}

.banner-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 52ch;
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

.genre-pills-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 18px;
    margin-bottom: 12px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.genre-pills-bar::-webkit-scrollbar { display: none; }

.genre-pill {
    padding: 8px 16px;
    background: rgba(20, 17, 15, 0.85);
    border: 1px solid rgba(243, 238, 228, 0.1);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 12.5px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    letter-spacing: 0.02em;
}

.genre-pill:hover {
    color: var(--accent-ivory);
    border-color: rgba(201, 162, 39, 0.35);
    background: rgba(201, 162, 39, 0.08);
}

.genre-pill.active {
    background: rgba(201, 162, 39, 0.16);
    color: var(--accent-gold);
    border-color: rgba(201, 162, 39, 0.45);
    font-weight: 600;
    box-shadow: none;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    gap: 12px;
    flex-wrap: wrap;
}

.section-header h2 {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-ivory);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.02em;
}

.results-count {
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px 20px;
    margin-bottom: 40px;
}

.movie-card {
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    overflow: visible;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    animation: posterReveal 0.55s var(--ease-cinema) both;
}

.movie-card:nth-child(1) { animation-delay: 0.02s; }
.movie-card:nth-child(2) { animation-delay: 0.05s; }
.movie-card:nth-child(3) { animation-delay: 0.08s; }
.movie-card:nth-child(4) { animation-delay: 0.11s; }
.movie-card:nth-child(5) { animation-delay: 0.14s; }
.movie-card:nth-child(6) { animation-delay: 0.17s; }

.movie-card:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: none;
}

.poster-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    background: #1a1612;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(243, 238, 228, 0.08);
    box-shadow: var(--shadow-poster);
    transition: var(--transition);
}

.card-poster-veil {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 42%, rgba(9, 8, 7, 0.82) 100%);
    z-index: 1;
}

.movie-card:hover .poster-wrap {
    border-color: rgba(201, 162, 39, 0.55);
    box-shadow:
        var(--shadow-poster),
        var(--edge-gold),
        0 0 28px rgba(201, 162, 39, 0.12);
}

.poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s var(--ease-cinema), filter 0.4s ease;
    filter: contrast(1.04) saturate(0.95);
}

.movie-card:hover .poster-img {
    transform: scale(1.04);
    filter: contrast(1.06) saturate(1.02);
}

.card-quality-tag {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(180deg, #2a2210 0%, #1a1408 100%);
    border: none;
    border-bottom-left-radius: 4px;
    color: var(--accent-gold);
    font-size: 10px;
    font-weight: 800;
    font-family: var(--font-title);
    padding: 5px 10px 5px 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.card-quality-tag::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 3px;
    bottom: 3px;
    width: 3px;
    background: repeating-linear-gradient(
        180deg,
        #090807 0 2px,
        transparent 2px 5px
    );
    opacity: 0.7;
}

.card-server-tag {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(9, 8, 7, 0.72);
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(243, 238, 228, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.card-info {
    padding: 12px 4px 4px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    background: transparent;
}

.card-title {
    font-family: var(--font-title);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--accent-ivory);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-dim);
    margin-top: auto;
}

.card-action-hint {
    color: var(--accent-gold);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.85;
    transition: var(--transition);
}

.movie-card:hover .card-action-hint {
    opacity: 1;
    gap: 8px;
}

.skeleton-card {
    background: linear-gradient(180deg, #1a1612 0%, #12100e 100%);
    border: 1px solid rgba(243, 238, 228, 0.05);
    border-radius: var(--radius-sm);
    aspect-ratio: 2 / 3.35;
    position: relative;
    overflow: hidden;
}

.skeleton-card::after {
    content: '';
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.06), transparent);
    animation: shimmer 1.6s infinite;
}

.loader-container {
    text-align: center;
    padding: 48px 20px;
    margin-bottom: 24px;
}

.loader-container .neon-text {
    font-family: var(--font-title);
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    margin: 28px auto;
    max-width: 420px;
}

.page-indicator-wrapper {
    font-family: var(--font-title);
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 0.06em;
}


#downloads-manager-view { margin-bottom: 40px; }

.dl-dashboard-card {
    padding: 28px;
    margin-bottom: 24px;
}

.dl-section-title {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-ivory);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.02em;
}

.dl-table-container {
    width: 100%;
    overflow-x: auto;
}

.dl-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    text-align: left;
}

.dl-table th {
    padding: 12px 16px;
    color: var(--text-dim);
    border-bottom: 1px solid rgba(201, 162, 39, 0.15);
    font-weight: 600;
    font-family: var(--font-title);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dl-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(243, 238, 228, 0.04);
    color: var(--text-main);
    vertical-align: middle;
}

.dl-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(243, 238, 228, 0.08);
    border-radius: 1px;
    overflow: hidden;
    margin-top: 6px;
}

.dl-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #a8861c, var(--accent-gold));
    border-radius: 1px;
    transition: width 0.3s ease;
}

.dl-mobile-card {
    background: rgba(20, 17, 15, 0.9);
    border: 1px solid rgba(243, 238, 228, 0.08);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dl-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.dl-mobile-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--accent-ivory);
    font-family: var(--font-title);
}

.dl-mobile-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-dim);
}

.empty-state-box {
    text-align: center;
    padding: 56px 24px;
}

.empty-state-icon {
    font-size: 44px;
    color: var(--text-dim);
    margin-bottom: 18px;
    opacity: 0.55;
}

.empty-state-title {
    font-family: var(--font-title);
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-ivory);
    margin-bottom: 8px;
}

.empty-state-desc {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 440px;
    margin: 0 auto 22px;
    line-height: 1.65;
}

.modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 4, 3, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-xl);
    padding: 36px;
    z-index: 2;
    background: linear-gradient(165deg, rgba(36, 28, 24, 0.98) 0%, rgba(14, 11, 10, 0.98) 100%);
    border: 1px solid rgba(201, 162, 39, 0.28);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.75),
        inset 0 1px 0 rgba(243, 238, 228, 0.06);
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0.7;
    pointer-events: none;
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(243, 238, 228, 0.06);
    border: 1px solid rgba(243, 238, 228, 0.1);
    color: var(--accent-ivory);
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.close-modal:hover {
    background: var(--accent-crimson);
    border-color: var(--accent-crimson);
    color: #fff;
    transform: rotate(90deg);
}

.modal-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 32px;
}

.poster-container {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-poster);
    border: 1px solid rgba(201, 162, 39, 0.25);
}

.modal-img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
}

.modal-badges {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.modal-badge-item {
    background: rgba(201, 162, 39, 0.12);
    color: var(--accent-gold);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(201, 162, 39, 0.25);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.modal-badge-item.rating-badge {
    background: rgba(243, 238, 228, 0.06);
    color: var(--accent-ivory);
    border-color: rgba(243, 238, 228, 0.12);
}

.modal-right h2 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 400;
    color: var(--accent-ivory);
    line-height: 1.05;
    margin-bottom: 12px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding-right: 36px;
}

.modal-metadata {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.meta-dot {
    color: var(--accent-gold);
    opacity: 0.7;
}

.modal-description {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(243, 238, 228, 0.78);
    margin-bottom: 24px;
    max-height: 140px;
    overflow-y: auto;
}

.modal-actions-tabs {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.modal-tab-btn {
    padding: 9px 16px;
    background: transparent;
    border: 1px solid rgba(243, 238, 228, 0.14);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    font-family: var(--font-body);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.modal-tab-btn:hover {
    border-color: rgba(201, 162, 39, 0.35);
    color: var(--accent-ivory);
}

.modal-tab-btn.active {
    background: var(--accent-gold);
    color: #1a1408;
    border-color: var(--accent-gold);
}

.modal-wishlist-btn {
    padding: 9px 16px;
    background: rgba(159, 18, 57, 0.12);
    border: 1px solid rgba(159, 18, 57, 0.35);
    color: #e8a0b4;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
}

.modal-wishlist-btn:hover,
.modal-wishlist-btn.active {
    background: var(--accent-crimson);
    color: #fff;
    border-color: var(--accent-crimson);
}

.quality-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.tab-btn {
    padding: 7px 14px;
    background: rgba(243, 238, 228, 0.04);
    border: 1px solid rgba(243, 238, 228, 0.12);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.04em;
}

.tab-btn:hover {
    border-color: rgba(201, 162, 39, 0.35);
    color: var(--accent-ivory);
}

.tab-btn.active {
    background: rgba(201, 162, 39, 0.18);
    color: var(--accent-gold);
    font-weight: 700;
    border-color: rgba(201, 162, 39, 0.5);
}

.links-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 240px;
    overflow-y: auto;
}

.link-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 14px;
    background: rgba(9, 8, 7, 0.55);
    border: 1px solid rgba(243, 238, 228, 0.07);
    border-radius: var(--radius-sm);
    font-size: 13px;
    gap: 12px;
    transition: var(--transition);
}

.link-item:hover { border-color: rgba(201, 162, 39, 0.25); }

.link-hoster {
    color: var(--accent-gold);
    font-weight: 700;
    margin-right: 6px;
}

.dl-btn {
    padding: 6px 16px;
    background: var(--accent-gold);
    color: #1a1408;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 12px;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    min-height: 36px;
    letter-spacing: 0.03em;
}

.dl-btn:hover {
    filter: brightness(1.08);
    box-shadow: 0 4px 14px rgba(201, 162, 39, 0.3);
}

.trailer-iframe-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(201, 162, 39, 0.2);
    background: #000;
}

.trailer-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#theater-modal .modal-content {
    max-width: 960px;
    background: #090807;
}

.mobile-top-bar {
    display: none;
    height: 60px;
    padding: 0 16px;
    background: rgba(9, 8, 7, 0.94);
    border-bottom: 1px solid rgba(201, 162, 39, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    padding-top: env(safe-area-inset-top, 0px);
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 400;
    color: var(--accent-ivory);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mobile-logo i {
    color: var(--accent-gold);
    font-size: 16px;
}

.mobile-logo span b {
    color: var(--accent-gold);
    font-weight: 400;
}

.mobile-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mobile-search-drawer {
    display: none !important;
    margin: 12px 16px;
    padding: 12px;
    gap: 8px;
}

.mobile-bottom-nav {
    display: none !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(9, 8, 7, 0.96);
    border-top: 1px solid rgba(201, 162, 39, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    justify-content: space-around;
    align-items: center;
}

.mob-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 500;
    font-family: var(--font-body);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    flex: 1;
    height: 100%;
    min-height: 48px;
    position: relative;
    transition: var(--transition);
}

.mob-nav-btn i { font-size: 18px; }

.mob-nav-btn.active {
    color: var(--accent-gold);
    font-weight: 700;
}

.mob-nav-btn.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 0 0 2px 2px;
}

.mob-nav-badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 16px);
    background: var(--accent-gold);
    color: #1a1408;
    font-size: 10px;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


.seo-trending-section {
    margin-top: 40px;
    margin-bottom: 30px;
}

.seo-block {
    padding: 28px;
    margin-bottom: 24px;
}

.seo-heading {
    font-family: var(--font-title);
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-ivory);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.02em;
}

.seo-subtext {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 20px;
}

.quality-grid-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.q-card {
    background: rgba(20, 17, 15, 0.7);
    border: 1px solid rgba(243, 238, 228, 0.08);
    border-radius: var(--radius-md);
    padding: 18px;
    transition: var(--transition);
}

.q-card:hover {
    border-color: rgba(201, 162, 39, 0.4);
    transform: translateY(-2px);
    background: rgba(28, 24, 20, 0.85);
}

.q-badge {
    display: inline-block;
    background: rgba(201, 162, 39, 0.12);
    color: var(--accent-gold);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(201, 162, 39, 0.2);
}

.q-card h4 {
    font-size: 15px;
    color: var(--accent-ivory);
    margin-bottom: 6px;
    font-family: var(--font-title);
}

.q-card p {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.55;
}

.guides-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.guide-preview-card {
    background: rgba(20, 17, 15, 0.7);
    border: 1px solid rgba(243, 238, 228, 0.08);
    border-radius: var(--radius-md);
    padding: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.guide-preview-card:hover {
    transform: translateY(-3px);
    border-color: rgba(159, 18, 57, 0.45);
    background: rgba(159, 18, 57, 0.08);
}

.guide-cat {
    font-size: 11px;
    color: var(--accent-crimson);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.guide-preview-card h3 {
    font-family: var(--font-title);
    font-size: 15px;
    color: var(--accent-ivory);
    line-height: 1.4;
    margin-bottom: 8px;
}

.guide-preview-card p {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.55;
}

.seo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.seo-tag {
    background: rgba(20, 17, 15, 0.8);
    border: 1px solid rgba(243, 238, 228, 0.1);
    color: var(--text-muted);
    font-size: 12px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.seo-tag:hover {
    background: rgba(201, 162, 39, 0.1);
    border-color: rgba(201, 162, 39, 0.4);
    color: var(--accent-gold);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.faq-item {
    background: rgba(20, 17, 15, 0.6);
    border: 1px solid rgba(243, 238, 228, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.faq-item summary {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 15px;
    color: var(--accent-ivory);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-title);
    gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 18px;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.faq-item[open] summary::after { content: '-'; }

.faq-item[open] { border-color: rgba(201, 162, 39, 0.25); }

.faq-item p {
    padding: 0 20px 16px;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.app-footer-master {
    background:
        linear-gradient(180deg, transparent 0%, rgba(159, 18, 57, 0.06) 100%),
        rgba(12, 9, 8, 0.98);
    border-top: 1px solid rgba(201, 162, 39, 0.14);
    padding: 52px 0 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    color: var(--accent-ivory);
    margin-bottom: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-logo span { color: var(--accent-gold); }

.footer-desc {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.footer-heading {
    font-family: var(--font-title);
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-ivory);
    margin-bottom: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 10px; }

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

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 4px;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(243, 238, 228, 0.05);
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.35);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--text-dim);
}

.ssr-catalog-container {
    margin-top: 36px;
    padding: 24px;
    background: rgba(20, 17, 15, 0.7);
    border: 1px solid rgba(243, 238, 228, 0.08);
    border-radius: var(--radius-lg);
}

.ssr-catalog-heading {
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-ivory);
    margin-bottom: 16px;
}

.ssr-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.ssr-catalog-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    padding: 8px 12px;
    background: rgba(9, 8, 7, 0.5);
    border: 1px solid rgba(243, 238, 228, 0.06);
    border-radius: var(--radius-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition);
}

.ssr-catalog-link:hover {
    color: var(--accent-gold);
    border-color: rgba(201, 162, 39, 0.4);
    background: rgba(201, 162, 39, 0.06);
}

.ssr-catalog-noscript {
    padding: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ssr-movie-summary { box-shadow: var(--shadow-soft); }

.trending-chips-container {
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.trending-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: var(--font-title);
}

.trending-chips-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0;
}

.trending-chips-scroll::-webkit-scrollbar { display: none; }

.trending-chip {
    background: rgba(9, 8, 7, 0.55);
    border: 1px solid rgba(243, 238, 228, 0.12);
    color: var(--accent-ivory);
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font-body);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.trending-chip i {
    font-size: 11px;
    color: var(--accent-gold);
}

.trending-chip:hover {
    background: rgba(201, 162, 39, 0.12);
    border-color: rgba(201, 162, 39, 0.45);
    color: var(--accent-gold);
    transform: translateY(-1px);
}

.search-autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(20, 17, 15, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(201, 162, 39, 0.25);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65);
    z-index: 1000;
    max-height: 420px;
    overflow-y: auto;
    padding: 6px;
}

.autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
    color: inherit;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: rgba(201, 162, 39, 0.1);
}

.autocomplete-poster {
    width: 36px;
    height: 50px;
    border-radius: 3px;
    object-fit: cover;
    background: #111;
    flex-shrink: 0;
    border: 1px solid rgba(243, 238, 228, 0.1);
}

.autocomplete-info {
    flex: 1;
    min-width: 0;
}

.autocomplete-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-ivory);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-title);
}

.autocomplete-meta {
    font-size: 11px;
    color: var(--text-dim);
    display: flex;
    gap: 8px;
    margin-top: 2px;
    flex-wrap: wrap;
}

.autocomplete-tag {
    background: rgba(201, 162, 39, 0.14);
    color: var(--accent-gold);
    padding: 1px 6px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: 600;
}

.scroll-top-btn {
    position: fixed;
    right: 22px;
    bottom: 88px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(201, 162, 39, 0.35);
    background: rgba(20, 17, 15, 0.92);
    color: var(--accent-gold);
    font-size: 16px;
    cursor: pointer;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.scroll-top-btn.visible,
.scroll-top-btn.visible-on-scroll.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--accent-gold);
    color: #1a1408;
    border-color: var(--accent-gold);
}

#wishlist-section .section-header { margin-bottom: 20px; }


/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1023px) {
    .desktop-sidebar { display: none !important; }
    .app-header { display: none !important; }
    .mobile-top-bar { display: flex !important; }
    .mobile-bottom-nav { display: flex !important; }

    .mobile-search-drawer.active {
        display: flex !important;
        flex-direction: column;
    }

    .main-content-scroll {
        padding: 20px 22px;
        padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px) + 24px);
    }

    .grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 18px 14px;
    }

    .announcement-banner { padding: 32px 24px 28px; }

    .banner-title {
        font-size: clamp(32px, 8vw, 44px);
        max-width: none;
    }

    .announcement-banner::after {
        font-size: 96px;
        bottom: -12%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .scroll-top-btn {
        bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px) + 16px);
        right: 16px;
    }

    .modal-layout {
        grid-template-columns: 200px 1fr;
        gap: 22px;
    }
}

@media (max-width: 600px) {
    .main-content-scroll {
        padding: 16px;
        padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom, 0px) + 28px);
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px 10px;
    }

    .announcement-banner {
        padding: 28px 18px 24px;
        margin-bottom: 20px;
    }

    .banner-title { font-size: 30px; }
    .banner-subtitle { font-size: 13px; }

    .banner-badge {
        font-size: 10px;
        letter-spacing: 0.14em;
    }

    .trending-chips-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .trending-chips-scroll { width: 100%; }

    .card-info { padding: 10px 2px 2px; }
    .card-title { font-size: 12.5px; }

    .modal {
        padding: 0;
        align-items: flex-end;
    }

    .modal-content {
        max-width: 100%;
        max-height: 88vh;
        max-height: 88dvh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        padding: 24px 16px;
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
        border-bottom: none;
        animation: slideUpBottomSheet 0.35s var(--ease-cinema);
    }

    .modal-content::before {
        left: 40%;
        right: 40%;
        top: 10px;
        height: 3px;
        border-radius: 2px;
        background: rgba(243, 238, 228, 0.25);
        opacity: 1;
    }

    .modal-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .poster-container {
        display: flex !important;
        align-items: center;
        gap: 14px;
        background: rgba(9, 8, 7, 0.55);
        padding: 10px;
        border-radius: var(--radius-md);
        border: 1px solid rgba(201, 162, 39, 0.2);
        overflow: visible;
    }

    .poster-container .modal-img {
        width: 78px;
        min-width: 78px;
        height: 116px;
        aspect-ratio: auto;
        border-radius: var(--radius-sm);
        object-fit: cover;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
    }

    .poster-container .modal-badges {
        margin-top: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .modal-right h2 {
        font-size: 24px;
        padding-right: 28px;
    }

    .modal-actions-tabs { gap: 8px; }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }

    .dl-dashboard-card { padding: 18px; }
    .seo-block { padding: 20px; }
    .section-header h2 { font-size: 17px; }
    .header-search-kbd { display: none; }
}

@media (min-width: 1600px) {
    .grid { grid-template-columns: repeat(6, 1fr); }
    .main-content-scroll { max-width: 1600px; }
}

@media (max-width: 380px) {
    .grid { gap: 12px 8px; }

    .card-quality-tag {
        font-size: 9px;
        padding: 4px 7px;
    }

    .mob-nav-btn { font-size: 9px; }
    .mob-nav-btn i { font-size: 16px; }
}

@media print {
    #app-background,
    .desktop-sidebar,
    .mobile-bottom-nav,
    .neon-ticker-bar,
    .scroll-top-btn {
        display: none !important;
    }

    body {
        background: #fff;
        color: #111;
    }
}

/* ==========================================================================
   CINEMA HERO COMPOSITION (brand-first marque)
   ========================================================================== */

.cinema-hero {
    position: relative;
    overflow: hidden;
    min-height: min(72vh, 640px);
    display: flex;
    align-items: flex-end;
    padding: clamp(28px, 5vw, 56px) clamp(20px, 4vw, 48px) clamp(32px, 5vw, 52px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(180deg, transparent 0%, rgba(9, 8, 7, 0.35) 40%, rgba(9, 8, 7, 0.92) 100%),
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(201, 162, 39, 0.14), transparent 55%),
        radial-gradient(ellipse 50% 40% at 10% 80%, rgba(159, 18, 57, 0.18), transparent 50%),
        linear-gradient(135deg, #1a1410 0%, #0c0a08 55%, #140c10 100%);
    animation: marqueFadeUp 0.9s var(--ease-cinema) both;
}

.cinema-hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
    opacity: 0.07;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.cinema-hero-backdrop::after {
    content: '';
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle at 65% 30%, rgba(201, 162, 39, 0.2), transparent 42%);
    animation: spotlightDrift 14s ease-in-out infinite alternate;
}

.cinema-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.cinema-marque-brand {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 10vw, 6.5rem);
    line-height: 0.9;
    letter-spacing: 0.04em;
    color: var(--accent-ivory);
    text-transform: uppercase;
    margin: 6px 0 14px;
    text-shadow: 0 8px 40px rgba(0, 0, 0, 0.55);
}

.cinema-hero .banner-badge {
    display: inline-block;
    margin-bottom: 4px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 11px;
    color: var(--accent-gold);
    border: 1px solid rgba(201, 162, 39, 0.35);
    background: rgba(201, 162, 39, 0.08);
    padding: 6px 12px;
    border-radius: 999px;
}

.cinema-hero .banner-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: clamp(1.15rem, 2.4vw, 1.65rem);
    line-height: 1.35;
    max-width: 34ch;
    color: var(--text-main);
    margin-bottom: 12px;
}

.cinema-hero .banner-subtitle {
    max-width: 42ch;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.cinema-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.cinema-welcome-mark {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-gold-soft);
    color: var(--accent-gold);
    font-size: 22px;
    border: 1px solid rgba(201, 162, 39, 0.35);
}

.trending-chips-container {
    margin-top: 18px;
    margin-bottom: 6px;
}

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

@keyframes spotlightDrift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-4%, 3%, 0) scale(1.08); }
}

@media (max-width: 700px) {
    .cinema-hero {
        min-height: min(58vh, 480px);
        align-items: flex-end;
    }
    .cinema-marque-brand {
        font-size: clamp(2.6rem, 14vw, 3.6rem);
    }
}

/* ==========================================================================
   TITLE SHEET — ultra premium detail screen (tile click)
   ========================================================================== */

#details-modal.title-sheet {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
}

#details-modal .modal-ambient {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-size: cover;
    background-position: center top;
    filter: blur(42px) saturate(1.15) brightness(0.45);
    transform: scale(1.12);
    opacity: 0;
    transition: opacity 0.55s var(--ease-cinema);
}

#details-modal.is-open .modal-ambient {
    opacity: 0.55;
}

#details-modal .modal-ambient::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(9, 8, 7, 0.35) 0%, rgba(9, 8, 7, 0.82) 55%, #090807 100%),
        radial-gradient(ellipse 70% 50% at 20% 30%, rgba(201, 162, 39, 0.12), transparent 60%);
}

#details-modal .modal-backdrop {
    background: rgba(5, 4, 3, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 0;
}

#details-modal .title-sheet-panel {
    position: relative;
    z-index: 3;
    width: min(1120px, calc(100% - 48px));
    max-width: 1120px;
    max-height: calc(100vh - 48px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    border: 1px solid rgba(201, 162, 39, 0.22);
    background:
        linear-gradient(155deg, rgba(28, 22, 18, 0.94) 0%, rgba(12, 10, 9, 0.97) 48%, rgba(18, 10, 14, 0.96) 100%);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.78),
        0 0 0 1px rgba(243, 238, 228, 0.04),
        inset 0 1px 0 rgba(243, 238, 228, 0.08);
    transform: translateY(28px) scale(0.985);
    opacity: 0;
    transition: transform 0.45s var(--ease-cinema), opacity 0.4s var(--ease-cinema);
}

#details-modal.is-open .title-sheet-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

#details-modal .title-sheet-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 5%, var(--accent-gold) 50%, transparent 95%);
    opacity: 0.85;
    z-index: 5;
}

#details-modal .modal-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    max-height: calc(100vh - 48px);
}

#details-modal .title-sheet-poster {
    padding: 36px 28px 36px 36px;
    background:
        linear-gradient(180deg, rgba(201, 162, 39, 0.06), transparent 40%),
        rgba(0, 0, 0, 0.22);
    border-right: 1px solid rgba(243, 238, 228, 0.06);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: auto;
}

#details-modal .title-sheet-poster-frame {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(201, 162, 39, 0.35);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(0, 0, 0, 0.4);
}

#details-modal .title-sheet-poster-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(9, 8, 7, 0.45));
    pointer-events: none;
}

#details-modal .modal-img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
    animation: posterReveal 0.7s var(--ease-cinema) both;
}

@keyframes posterReveal {
    from { opacity: 0; transform: scale(1.04); }
    to { opacity: 1; transform: scale(1); }
}

#details-modal .modal-badges {
    margin-top: 16px;
    gap: 8px;
}

#details-modal .modal-badge-item {
    font-size: 11px;
    padding: 6px 12px;
    border-radius: 999px;
    letter-spacing: 0.08em;
}

#details-modal .modal-badge-item.rating-badge i {
    color: var(--accent-gold);
    margin-right: 4px;
}

#details-modal .title-sheet-body {
    padding: 40px 40px 36px 36px;
    overflow-y: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

#details-modal .title-sheet-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

#details-modal .title-sheet-kicker i {
    font-size: 12px;
}

#details-modal .modal-right h2,
#details-modal #modal-title {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.2vw, 3.35rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--accent-ivory);
    margin-bottom: 14px;
    padding-right: 48px;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

#details-modal .modal-metadata {
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(243, 238, 228, 0.08);
}

#details-modal .modal-description {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(243, 238, 228, 0.82);
    max-height: none;
    margin-bottom: 22px;
}

#details-modal .modal-actions-tabs {
    gap: 10px;
    margin-bottom: 20px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(9, 8, 7, 0.45);
    border: 1px solid rgba(243, 238, 228, 0.06);
}

#details-modal .title-sheet-tools {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

#details-modal .modal-tab-btn {
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.02em;
}

#details-modal .title-sheet-share {
    min-height: 40px;
    padding: 0 14px;
    font-size: 12px;
    border-radius: 999px;
}

#details-modal .title-sheet-panel-block {
    margin-top: 4px;
}

#details-modal .title-sheet-cta {
    width: 100%;
    min-height: 52px;
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(201, 162, 39, 0.28);
}

#details-modal .title-sheet-downloads {
    margin-top: 18px;
    animation: marqueFadeUp 0.45s var(--ease-cinema) both;
}

#details-modal .title-sheet-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin: 0 0 10px;
}

#details-modal .quality-tabs {
    margin-bottom: 18px;
    gap: 10px;
}

#details-modal .tab-btn {
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(243, 238, 228, 0.04);
}

#details-modal .tab-btn.active {
    background: var(--accent-gold);
    color: #1a1408;
    border-color: var(--accent-gold);
    box-shadow: 0 6px 18px rgba(201, 162, 39, 0.25);
}

#details-modal .links-list {
    max-height: min(320px, 38vh);
    gap: 10px;
    padding-right: 4px;
}

#details-modal .link-item {
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(243, 238, 228, 0.04), rgba(9, 8, 7, 0.55));
    border: 1px solid rgba(243, 238, 228, 0.08);
    gap: 16px;
}

#details-modal .link-item:hover {
    border-color: rgba(201, 162, 39, 0.4);
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.08), rgba(9, 8, 7, 0.6));
    transform: translateY(-1px);
}

#details-modal .link-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

#details-modal .link-hoster {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-right: 0;
}

#details-modal .link-label {
    color: var(--accent-ivory);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#details-modal .dl-btn {
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    min-height: 40px;
}

#details-modal .close-modal {
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(9, 8, 7, 0.65);
    border: 1px solid rgba(243, 238, 228, 0.14);
    backdrop-filter: blur(8px);
}

#details-modal .trailer-iframe-wrapper {
    border-radius: 14px;
    border: 1px solid rgba(201, 162, 39, 0.25);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

@media (max-width: 900px) {
    #details-modal.title-sheet {
        align-items: flex-end;
    }

    #details-modal .title-sheet-panel {
        width: 100%;
        max-width: none;
        max-height: 92vh;
        margin: 0;
        border-radius: 22px 22px 0 0;
        transform: translateY(100%);
    }

    #details-modal.is-open .title-sheet-panel {
        transform: translateY(0);
    }

    #details-modal .modal-layout {
        grid-template-columns: 1fr;
        max-height: 92vh;
    }

    #details-modal .title-sheet-poster {
        flex-direction: row;
        align-items: flex-end;
        gap: 16px;
        padding: 28px 20px 12px;
        border-right: none;
        border-bottom: 1px solid rgba(243, 238, 228, 0.06);
    }

    #details-modal .title-sheet-poster-frame {
        width: 118px;
        flex-shrink: 0;
        border-radius: 10px;
    }

    #details-modal .modal-badges {
        margin-top: 0;
        margin-bottom: 6px;
    }

    #details-modal .title-sheet-body {
        padding: 8px 20px 28px;
    }

    #details-modal #modal-title {
        font-size: clamp(1.7rem, 8vw, 2.4rem);
        padding-right: 40px;
    }

    #details-modal .title-sheet-tools {
        margin-left: 0;
        width: 100%;
    }

    #details-modal .modal-actions-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    #details-modal .title-sheet-tools {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}
