/* ====== RESET & BASE ====== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #14141f;
    --bg-card: #1a1a2e;
    --bg-elevated: #22223a;
    --gold: #f5c518;
    --gold-dark: #c99c11;
    --red: #e50914;
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --text-muted: #7a7a90;
    --border: rgba(255, 255, 255, 0.08);
    --gradient: linear-gradient(135deg, #f5c518 0%, #e50914 100%);
    --gradient-dark: linear-gradient(180deg, rgba(10,10,15,0) 0%, rgba(10,10,15,0.95) 100%);
    --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(245, 197, 24, 0.3);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.light-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #f6f7fb;
    --bg-card: #ffffff;
    --bg-elevated: #f1f3f8;
    --gold: #d9961f;
    --gold-dark: #a86d12;
    --red: #c82333;
    --text-primary: #10131a;
    --text-secondary: #485061;
    --text-muted: #7d8492;
    --border: rgba(16, 19, 26, 0.12);
    --gradient: linear-gradient(135deg, #f4bc44 0%, #f05a28 100%);
    --gradient-dark: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
    --shadow: 0 18px 44px rgba(16, 19, 26, 0.1);
    --shadow-glow: 0 0 32px rgba(217, 150, 31, 0.18);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; color: inherit; font-family: inherit; }
ul { list-style: none; }
input { font-family: inherit; }

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

/* ====== SCROLLBAR ====== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ====== HEADER ====== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 220px;
    height: 62px;
    overflow: hidden;
}

.logo img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center;
}

/* Nav */
.nav { flex: 1; display: flex; justify-content: center; }

.nav-list {
    display: flex;
    gap: 4px;
}

.nav-item { position: relative; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link i { font-size: 10px; transition: transform 0.3s ease; }

.nav-item:hover .nav-link {
    color: var(--text-primary);
    background: var(--bg-elevated);
}

.nav-item:hover .nav-link i { transform: rotate(180deg); }

.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    box-shadow: var(--shadow);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown li a {
    display: block;
    padding: 10px 14px;
    font-size: 14px;
    color: #f5f5fb;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 600;
}

.dropdown li a:hover {
    background: var(--bg-elevated);
    color: var(--gold);
    padding-left: 18px;
}

/* Header right */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.search-toggle,
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-toggle:hover,
.theme-toggle:hover {
    background: var(--gold);
    color: var(--bg-primary);
}

.search-toggle:hover {
    transform: rotate(90deg);
}

.theme-toggle:hover { transform: translateY(-2px); }

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

.auth-actions[hidden] { display: none; }

.mobile-auth-actions { display: none; }

.auth-link,
.auth-cta {
    min-height: 38px;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 800;
    transition: var(--transition);
    white-space: nowrap;
}

.auth-link {
    background: var(--bg-elevated);
    color: var(--text-secondary);
}

.auth-cta {
    background: linear-gradient(135deg, #ffd36a 0%, #ff9f1c 52%, #f05a28 100%);
    color: #101015;
}

.auth-link:hover,
.auth-cta:hover {
    transform: translateY(-2px);
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 38px;
    padding: 6px 8px 6px 6px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.user-chip[hidden] { display: none; }

.user-chip span {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: #101015;
    font-size: 12px;
    font-weight: 900;
}

.user-chip strong {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

.user-chip button {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.user-chip button:hover {
    background: var(--bg-card);
    color: var(--red);
}

body.light-theme .header {
    background: rgba(255, 255, 255, 0.9);
    border-bottom-color: rgba(16, 19, 26, 0.1);
}

body.light-theme .header.scrolled {
    background: rgba(255, 255, 255, 0.98);
}

body.light-theme .dropdown {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(16, 19, 26, 0.1);
    box-shadow: 0 18px 44px rgba(16, 19, 26, 0.12);
}

body.light-theme .dropdown li a {
    color: var(--text-primary);
}

body.light-theme .search-bar {
    background: var(--bg-card);
}

body.light-theme .mobile-toggle span {
    background: var(--text-primary);
}

body.light-theme .movie-card,
body.light-theme .mood-btn,
body.light-theme .custom-form,
body.light-theme .feedback-form,
body.light-theme .modal-content {
    background: #ffffff;
    border-color: rgba(16, 19, 26, 0.1);
}

body.light-theme .movie-poster,
body.light-theme .mobile-quick-actions,
body.light-theme .mobile-quick-actions a {
    background: #f1f3f8;
}

body.light-theme .mobile-quick-actions {
    border-top-color: rgba(16, 19, 26, 0.1);
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--gradient);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px;
}

.mobile-toggle span {
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Search bar */
.search-bar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.search-bar.active { max-height: 100px; }

.search-bar form {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
}

.search-bar i.fa-search {
    color: var(--gold);
    font-size: 20px;
}

.search-bar input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    outline: none;
}

.search-bar input::placeholder { color: var(--text-muted); }

#searchClose {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

#searchClose:hover { background: var(--red); color: white; }

/* ====== SLIDER ====== */
.slider {
    position: relative;
    height: min(820px, 92vh);
    min-height: 620px;
    padding: 0;
    overflow: hidden;
    background: var(--bg-primary);
    isolation: isolate;
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center 38%;
    transform: scale(1.035);
    transition: transform 7s ease;
}

.slide.active .slide-bg {
    transform: scale(1);
}

.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 34%, rgba(255, 184, 92, 0.12), transparent 28%),
        linear-gradient(90deg, rgba(10, 10, 15, 0.9) 0%, rgba(10, 10, 15, 0.62) 36%, rgba(10, 10, 15, 0.1) 68%, rgba(10, 10, 15, 0.56) 100%);
    z-index: 1;
}

body.light-theme .slide::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.58) 36%, rgba(255, 255, 255, 0.16) 68%, rgba(255, 255, 255, 0.48) 100%);
}

.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 10, 15, 0.28) 0%, rgba(10, 10, 15, 0.04) 34%, rgba(10, 10, 15, 0.92) 100%),
        linear-gradient(0deg, var(--bg-primary) 0%, rgba(10, 10, 15, 0) 23%);
    z-index: 1;
}

body.light-theme .slide::after {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.04) 34%, rgba(255, 255, 255, 0.9) 100%),
        linear-gradient(0deg, #ffffff 0%, rgba(255, 255, 255, 0) 23%);
}

.slide-content {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: min(1280px, 100%);
    padding: 0 clamp(24px, 5vw, 72px);
    transform: translate(-50%, -50%);
}

.slide-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    align-items: center;
    gap: clamp(34px, 5vw, 72px);
}

.slide-content-inner {
    max-width: 100%;
    filter: drop-shadow(0 22px 46px rgba(0, 0, 0, 0.42));
}

.slide-badge {
    display: inline-block;
    padding: 7px 13px;
    background: rgba(255, 184, 92, 0.14);
    color: #ffd36a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.8px;
    border: 1px solid rgba(255, 211, 106, 0.34);
    border-radius: 999px;
    margin-bottom: 18px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.slide-title {
    font-size: clamp(2.4rem, 4.9vw, 5.05rem);
    font-weight: 800;
    line-height: 1.08;
    margin: -0.04em 0 20px;
    padding-bottom: 0.08em;
    max-width: 700px;
    text-wrap: balance;
    text-shadow: 0 14px 38px rgba(0, 0, 0, 0.72);
    overflow: visible;
}

body.light-theme .slide-title,
body.light-theme .slide-desc {
    color: var(--text-primary);
    text-shadow: none;
}

body.light-theme .slide-content-inner {
    filter: none;
}

body.light-theme .slide-badge,
body.light-theme .slide-btn,
body.light-theme .slide-btn:hover {
    box-shadow: none;
}

body.light-theme .slide-meta span {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(16, 19, 26, 0.1);
    color: var(--text-secondary);
}

.slide-title.is-long {
    font-size: clamp(2.2rem, 4.1vw, 4.25rem);
    line-height: 1.1;
}

.slide-title.is-extra-long {
    font-size: clamp(1.9rem, 3.35vw, 3.35rem);
    line-height: 1.12;
    max-width: 720px;
}

.slide-title-nowrap {
    white-space: nowrap;
}

.slide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
}

.slide-meta span {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.slide-meta i { color: #ffd36a; }

.slide-desc {
    font-size: clamp(15px, 1.25vw, 18px);
    color: rgba(255, 255, 255, 0.76);
    margin-bottom: 28px;
    max-width: 620px;
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 24px;
    background: linear-gradient(135deg, #ffd36a 0%, #ff9f1c 52%, #f05a28 100%);
    color: #101015;
    font-weight: 800;
    border-radius: 999px;
    box-shadow: 0 18px 46px rgba(240, 90, 40, 0.22), 0 10px 30px rgba(255, 211, 106, 0.14);
    transition: var(--transition);
}

.slide-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.slide-trailer {
    position: relative;
    display: block;
    width: min(100%, 520px);
    aspect-ratio: 16 / 9;
    justify-self: end;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(10, 10, 15, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.slide-trailer iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.slide-trailer-link {
    background-size: cover;
    background-position: center;
}

.slide-trailer-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.72));
}

.slide-trailer-link span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd36a 0%, #ff9f1c 52%, #f05a28 100%);
    color: #101015;
    box-shadow: 0 18px 44px rgba(240, 90, 40, 0.34);
    transition: var(--transition);
}

.slide-trailer-link:hover span {
    transform: translate(-50%, -50%) scale(1.08);
}

.slide-trailer-link span i {
    margin-left: 4px;
    font-size: 22px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: rgba(15, 15, 24, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.slider-btn:hover {
    background: linear-gradient(135deg, #ffd36a 0%, #ff9f1c 54%, #f05a28 100%);
    color: #101015;
    border-color: rgba(255, 211, 106, 0.82);
    box-shadow: 0 22px 48px rgba(240, 90, 40, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.slider-btn:focus-visible {
    outline: 2px solid #ffd36a;
    outline-offset: 4px;
}

.slider-btn i { transition: transform 0.3s ease; }
.slider-prev:hover i { transform: translateX(-2px); }
.slider-next:hover i { transform: translateX(2px); }

.slider-prev { left: clamp(18px, 2.5vw, 44px); }
.slider-next { right: clamp(18px, 2.5vw, 44px); }

.slider-dots {
    position: absolute;
    bottom: 42px;
    left: max(clamp(24px, 5vw, 72px), calc((100vw - 1280px) / 2 + 72px));
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
}

.slider-dots button {
    width: 9px;
    height: 9px;
    background: rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    transition: var(--transition);
}

.slider-dots button.active {
    background: #ffd36a;
    width: 44px;
    box-shadow: 0 0 22px rgba(255, 211, 106, 0.42);
}

/* ====== SECTIONS ====== */
section:not(.slider) {
    position: relative;
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(245, 197, 24, 0.1);
    color: var(--gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: 4px;
    margin-bottom: 16px;
    border: 1px solid rgba(245, 197, 24, 0.3);
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* ====== MOOD SECTION ====== */
section.mood-section {
    background:
        linear-gradient(180deg, var(--bg-primary) 0%, #11111b 58%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
    padding-bottom: 82px;
}

body.light-theme section.mood-section {
    background:
        linear-gradient(180deg, #ffffff 0%, #f8f9fc 58%, #f6f7fb 100%);
}

.mood-section::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245, 197, 24, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.mood-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 90px;
    background:
        linear-gradient(180deg, rgba(20, 20, 31, 0) 0%, var(--bg-primary) 100%);
    pointer-events: none;
}

.mood-section .container {
    position: relative;
    z-index: 1;
}

.mood-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 50px;
    position: relative;
}

.mood-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 12px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.mood-btn:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    background: var(--bg-elevated);
    box-shadow: 0 12px 30px rgba(245, 197, 24, 0.15);
}

.mood-btn.active {
    background: var(--gradient);
    border-color: var(--gold);
    transform: scale(1.05);
}

.mood-btn.active .label { color: var(--bg-primary); font-weight: 700; }

.mood-btn .emoji {
    font-size: 40px;
    transition: transform 0.3s ease;
}

.mood-btn:hover .emoji { transform: scale(1.2) rotate(-10deg); }

.mood-btn .label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Custom mood */
.mood-custom { position: relative; }

.custom-divider {
    text-align: center;
    margin-bottom: 24px;
    position: relative;
}

.custom-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.custom-divider span {
    position: relative;
    background: var(--bg-primary);
    padding: 0 20px;
    color: var(--text-muted);
    font-size: 14px;
}

section.recommendations {
    position: relative;
    margin-top: -34px;
    padding-top: 74px;
    background:
        linear-gradient(180deg, rgba(10, 10, 15, 0) 0%, var(--bg-primary) 74px);
}

section.movies-section {
    background:
        linear-gradient(180deg, rgba(10, 10, 15, 0.72) 0%, var(--bg-primary) 120px, var(--bg-primary) 100%);
}

body.light-theme section.movies-section {
    background:
        linear-gradient(180deg, #f6f7fb 0%, #ffffff 120px, #ffffff 100%);
}

#trending {
    padding-top: 110px;
}

#top-rated {
    background:
        linear-gradient(180deg, var(--bg-primary) 0%, #0c0c13 48%, var(--bg-primary) 100%);
}

body.light-theme #top-rated {
    background:
        linear-gradient(180deg, #ffffff 0%, #f7f8fb 48%, #ffffff 100%);
}

.custom-form {
    display: flex;
    gap: 12px;
    max-width: 860px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 8px;
    border-radius: 50px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.custom-form:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.1);
}

.custom-form input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    padding: 14px 20px;
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
}

.custom-form input::placeholder { color: var(--text-muted); }

.recommend-count {
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 0;
    flex-shrink: 0;
}

.recommend-count span { display: none; }

.recommend-count select {
    min-width: 74px;
    height: 52px;
    padding: 0 34px 0 16px;
    border: 1px solid rgba(255, 211, 106, 0.28);
    border-radius: 8px;
    appearance: none;
    background:
        linear-gradient(45deg, transparent 50%, var(--text-primary) 50%) right 18px center / 6px 6px no-repeat,
        linear-gradient(135deg, var(--text-primary) 50%, transparent 50%) right 13px center / 6px 6px no-repeat,
        var(--bg-elevated);
    color: var(--text-primary);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    outline: none;
    cursor: pointer;
}

.recommend-count select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.14);
}

body.light-theme .recommend-count {
    background: transparent;
}

.custom-form button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 132px;
    padding: 14px 26px;
    background: linear-gradient(135deg, #fff0a6 0%, #ffc247 38%, #ff7a1a 100%);
    color: #111018;
    font-weight: 800;
    border-radius: 999px;
    border: 1px solid rgba(255, 240, 166, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42), 0 12px 28px rgba(255, 122, 26, 0.22);
    transition: var(--transition);
    white-space: nowrap;
}

.custom-form button:hover {
    transform: translateY(-2px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 18px 36px rgba(255, 122, 26, 0.28);
}

.custom-form button:active {
    transform: translateY(0);
}

.custom-form .btn-star {
    width: 17px;
    height: 17px;
    fill: currentColor;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.28));
}

/* ====== LOADER ====== */
.loader {
    text-align: center;
    padding: 60px 20px;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 3px solid var(--border);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loader p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ====== MOVIES GRID ====== */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.movie-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.movie-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    background: var(--bg-elevated);
}

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

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

.movie-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.8) 100%);
    opacity: 0;
    transition: var(--transition);
}

.movie-card:hover .movie-poster::after { opacity: 1; }

.movie-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    color: var(--gold);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
}

.movie-rating i { font-size: 11px; }

.movie-info {
    padding: 16px;
}

.movie-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-year {
    font-size: 13px;
    color: var(--text-muted);
}

.movie-card .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 2;
    transition: transform 0.3s ease;
}

.movie-card:hover .play-icon { transform: translate(-50%, -50%) scale(1); }

/* ====== ABOUT ====== */
section.about-section {
    background:
        linear-gradient(180deg, var(--bg-primary) 0%, rgba(20, 20, 31, 0.72) 72px, var(--bg-secondary) 150px);
    padding-top: 140px;
    padding-bottom: 34px;
}

body.light-theme section.about-section {
    background:
        linear-gradient(180deg, #ffffff 0%, #f8f9fc 72px, #f6f7fb 150px);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin: 16px 0;
    line-height: 1.2;
}

.about-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.about-stats {
    display: flex;
    gap: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat strong {
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
    line-height: 1;
}

.stat span {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-image {
    display: block;
    max-width: 680px;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ====== REVIEWS ====== */
section.reviews-section {
    background:
        linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding-top: 48px;
    padding-bottom: 92px;
}

body.light-theme section.reviews-section {
    background:
        linear-gradient(180deg, #f6f7fb 0%, #ffffff 100%);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.review-card {
    min-height: 260px;
    padding: 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

body.light-theme .review-card {
    background: #ffffff;
    border-color: rgba(16, 19, 26, 0.1);
    box-shadow: 0 10px 24px rgba(16, 19, 26, 0.07);
}

.review-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: #111018;
    font-weight: 800;
}

.review-top h3 {
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 4px;
}

.review-top span {
    color: var(--text-muted);
    font-size: 13px;
}

.review-stars {
    display: flex;
    gap: 4px;
    color: var(--gold);
    font-size: 14px;
    margin-bottom: 14px;
}

.review-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.75;
}

/* ====== SUPPORT / FEEDBACK ====== */
section.support-section {
    background:
        linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding-top: 96px;
    padding-bottom: 96px;
}

body.light-theme section.support-section {
    background:
        linear-gradient(180deg, #ffffff 0%, #f6f7fb 100%);
}

.support-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}

.support-copy h2 {
    font-size: clamp(1.8rem, 3.6vw, 2.7rem);
    line-height: 1.16;
    margin: 14px 0 16px;
}

.support-copy p {
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 24px;
}

.support-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.support-links a {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.support-links a:hover {
    background: var(--gradient);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.support-contact {
    display: grid;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.support-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.support-contact i { color: var(--gold); width: 18px; }

.feedback-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: clamp(20px, 3vw, 30px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.form-row,
.rating-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row-full,
.rating-field,
.feedback-submit,
.feedback-status {
    grid-column: 1 / -1;
}

.form-row label,
.rating-field legend {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
}

.feedback-form input,
.feedback-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text-primary);
    padding: 13px 14px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.feedback-form textarea {
    resize: vertical;
    min-height: 132px;
}

.feedback-form input::placeholder,
.feedback-form textarea::placeholder {
    color: var(--text-muted);
}

.feedback-form input:focus,
.feedback-form textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.12);
}

.rating-field {
    border: 0;
    padding: 0;
    margin: 0;
}

.rating-stars {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 6px;
}

.rating-stars input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rating-stars label {
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.rating-stars label:hover,
.rating-stars label:hover ~ label,
.rating-stars input:checked ~ label {
    color: var(--gold);
}

.rating-stars input:focus-visible + label {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
    border-radius: 4px;
}

.feedback-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 13px 22px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #fff0a6 0%, #ffc247 38%, #ff7a1a 100%);
    color: #111018;
    font-weight: 800;
    transition: var(--transition);
}

.feedback-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(255, 122, 26, 0.24);
}

.feedback-status {
    min-height: 20px;
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
}

/* ====== FAQ ====== */
section.faq-section {
    background:
        linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding-top: 88px;
    padding-bottom: 88px;
}

body.light-theme section.faq-section {
    background:
        linear-gradient(180deg, #f6f7fb 0%, #ffffff 100%);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

body.light-theme .faq-item {
    background: #ffffff;
    border-color: rgba(16, 19, 26, 0.1);
    box-shadow: 0 8px 20px rgba(16, 19, 26, 0.06);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    color: var(--text-primary);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

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

.faq-item summary::after {
    content: '+';
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    color: var(--gold);
    flex-shrink: 0;
    transition: var(--transition);
}

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

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

/* ====== FOOTER ====== */
.footer {
    background:
        linear-gradient(180deg, var(--bg-secondary) 0%, #101019 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 60px 0 20px;
}

body.light-theme .footer {
    background:
        linear-gradient(180deg, #f6f7fb 0%, #ffffff 100%);
    border-top-color: rgba(16, 19, 26, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col .logo {
    display: inline-flex;
    margin-bottom: 16px;
    width: 230px;
    height: 72px;
}

.footer-col .logo img {
    width: 100%;
    height: 100%;
    max-width: none;
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    max-width: 320px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--gold);
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: var(--transition);
}

.footer-col ul li a:hover { color: var(--gold); padding-left: 6px; }

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.contact-list i { color: var(--gold); width: 18px; }

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-bottom a { color: var(--gold); }

/* ====== MODAL ====== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active { display: flex; }

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

body.light-theme .modal-overlay {
    background: rgba(20, 25, 36, 0.58);
}

.modal-content {
    position: relative;
    max-width: 1000px;
    width: 100%;
    max-height: 90vh;
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    overflow-y: auto;
    z-index: 2001;
    border: 1px solid var(--border);
    animation: modalIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition);
}

.modal-close:hover { background: var(--red); transform: rotate(90deg); }

/* ====== AUTH MODAL ====== */
.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal.active { display: flex; }

.auth-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(10px);
}

body.light-theme .auth-overlay {
    background: rgba(16, 19, 26, 0.42);
}

.auth-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: var(--shadow);
}

body.light-theme .auth-dialog {
    background: #ffffff;
    border-color: rgba(16, 19, 26, 0.1);
}

.auth-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    transition: var(--transition);
}

.auth-close:hover {
    background: var(--red);
    color: #fff;
}

.auth-tabs {
    display: inline-flex;
    padding: 4px;
    margin-bottom: 22px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.auth-tabs button {
    min-height: 34px;
    padding: 8px 14px;
    border-radius: 7px;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 800;
}

.auth-tabs button.active {
    background: var(--gradient);
    color: #101015;
}

.auth-dialog h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.15;
    margin-bottom: 8px;
}

.auth-dialog > p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 22px;
}

.auth-form {
    display: none;
    gap: 9px;
}

.auth-form.active {
    display: grid;
}

.auth-form label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 700;
}

.auth-form input {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    color: var(--text-primary);
    outline: none;
}

.auth-form input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.12);
}

.auth-form button {
    min-height: 48px;
    margin-top: 6px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #ffd36a 0%, #ff9f1c 52%, #f05a28 100%);
    color: #101015;
    font-weight: 900;
}

.auth-status {
    min-height: 20px;
    margin-top: 14px;
    color: var(--gold);
    font-size: 14px;
    font-weight: 700;
}

.modal-backdrop {
    position: relative;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
}

.modal-backdrop::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, var(--bg-card) 100%);
}

.modal-info {
    padding: 30px;
    margin-top: -100px;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(26, 26, 46, 0) 0%, rgba(26, 26, 46, 0.94) 48%, var(--bg-card) 100%);
}

.modal-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.72);
}

.modal-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    color: #f4f4fb;
    font-size: 14px;
}

.modal-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(10, 10, 15, 0.54);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}
.modal-meta i { color: var(--gold); }

.modal-genres {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.modal-genres span {
    padding: 4px 12px;
    background: var(--bg-elevated);
    border-radius: 20px;
    font-size: 12px;
    color: #f4f4fb;
    font-weight: 600;
}

.modal-overview {
    color: #f0f0f6;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

body.light-theme .modal-title {
    color: var(--text-primary);
    text-shadow: none;
}

body.light-theme .modal-meta,
body.light-theme .modal-overview {
    color: var(--text-secondary);
}

body.light-theme .modal-meta span {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(20, 25, 36, 0.1);
}

body.light-theme .modal-genres span {
    color: var(--text-primary);
}

.trailer-frame,
.trailer-fallback {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    margin-top: 24px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #000;
}

.trailer-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.trailer-fallback {
    background-size: cover;
    background-position: center;
}

.trailer-fallback::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.72));
}

.trailer-fallback span {
    position: absolute;
    left: 24px;
    bottom: 22px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffd36a 0%, #ff9f1c 52%, #f05a28 100%);
    color: #101015;
    font-weight: 800;
}

.trailer-fallback i {
    font-size: 20px;
    color: #101015;
}

/* ====== SCROLL TOP ====== */
.scroll-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

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

.scroll-top:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }

/* ====== MOBILE QUICK ACTIONS ====== */
.mobile-quick-actions {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 12px;
    justify-content: space-around;
    backdrop-filter: blur(20px);
}

.mobile-quick-actions a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 18px;
    transition: var(--transition);
}

.mobile-quick-actions a:hover {
    background: var(--gradient);
    color: var(--bg-primary);
}

/* ====== EMPTY STATE ====== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.empty-state i {
    font-size: 60px;
    color: var(--bg-elevated);
    margin-bottom: 20px;
}

.empty-state p { font-size: 16px; }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
    .slide-layout {
        grid-template-columns: minmax(0, 1fr) 340px;
        gap: 28px;
    }
    .slide-trailer {
        width: 340px;
        border-radius: 14px;
    }
    .mood-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-grid { gap: 40px; }
    .reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .support-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }
}

@media (max-width: 768px) {
    .header-container { height: 70px; gap: 12px; }

    .logo {
        width: 178px;
        height: 50px;
    }

    .logo img {
        width: 100%;
        height: 100%;
        max-width: none;
    }

    .nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 85%;
        max-width: 340px;
        height: calc(100vh - 70px);
        background: var(--bg-card);
        border-left: 1px solid var(--border);
        flex-direction: column;
        align-items: flex-start;
        padding: 110px 24px 24px;
        transition: right 0.4s ease;
        overflow-y: auto;
    }

    .header-auth-actions {
        display: none;
    }

    .mobile-auth-actions {
        display: flex;
        width: 100%;
        gap: 10px;
        margin-bottom: 18px;
    }

    .mobile-auth-actions .auth-link,
    .mobile-auth-actions .auth-cta {
        flex: 1;
        min-height: 42px;
        justify-content: center;
    }

    .nav::before {
        content: '';
        position: absolute;
        top: 22px;
        left: 24px;
        right: 24px;
        height: 64px;
        background: transparent url('dark-mode-logo.png') center / contain no-repeat;
        border: 1px solid rgba(255, 211, 106, 0.24);
        border-radius: 8px;
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
    }

    body.light-theme .nav::before {
        background-image: url('white-mode-logo.png');
        border-color: rgba(20, 25, 36, 0.12);
    }

    body.light-theme .nav {
        background: #ffffff;
        border-left-color: rgba(16, 19, 26, 0.1);
    }

    body.light-theme .dropdown {
        background: #f7f8fb;
        border-color: rgba(16, 19, 26, 0.08);
    }

    body.light-theme .dropdown li a {
        color: var(--text-primary);
    }

    .nav.active { right: 0; }

    .nav-list {
        flex-direction: column;
        gap: 4px;
        width: 100%;
    }

    .nav-item { width: 100%; }

    .nav-link {
        width: 100%;
        padding: 14px 16px;
        font-size: 15px;
        justify-content: space-between;
    }

    .nav-item.open .nav-link { background: var(--bg-elevated); color: var(--gold); }
    .nav-item.open .nav-link i { transform: rotate(180deg); }

    .dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.06);
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        min-width: 100%;
    }

    .nav-item:hover .dropdown {
        transform: none;
    }

    .nav-item.open .dropdown { max-height: 500px; padding: 4px 0; }

    .dropdown li a {
        padding: 10px 30px;
        font-size: 14px;
        color: #ffffff;
    }

    .dropdown li a:hover {
        padding-left: 30px;
    }

    .social-icons { display: none; }
    .user-chip strong {
        display: none;
    }
    .user-chip {
        gap: 5px;
        padding-right: 5px;
    }
    .mobile-toggle { display: flex; }

    .slider { height: 88vh; min-height: 560px; padding: 0; }
    .slide::before {
        background:
            linear-gradient(90deg, rgba(10, 10, 15, 0.92) 0%, rgba(10, 10, 15, 0.52) 58%, rgba(10, 10, 15, 0.62) 100%);
    }
    .slide-content {
        top: 50%;
        bottom: auto;
        padding: 0 24px;
    }
    .slide-layout {
        display: block;
    }
    .slide-content-inner {
        max-width: 560px;
        margin: 0 auto;
        text-align: center;
    }
    .slide-meta { justify-content: center; }
    .slide-desc { margin-left: auto; margin-right: auto; }
    .slide-btn { justify-content: center; }
    .slide-trailer {
        display: none;
    }
    .slider-btn {
        width: 42px;
        height: 42px;
        border-radius: 50%;
    }
    .slider-prev { left: 12px; }
    .slider-next { right: 12px; }
    .slider-dots {
        left: 50%;
        transform: translateX(-50%);
        bottom: 34px;
        justify-content: center;
    }

    section:not(.slider) { padding: 60px 0; }
    section.mood-section { padding-bottom: 72px; }
    section.recommendations {
        margin-top: -28px;
        padding-top: 66px;
    }
    #trending { padding-top: 88px; }
    section.about-section {
        padding-top: 104px;
        padding-bottom: 28px;
    }

    .mood-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .mood-btn { padding: 16px 8px; }
    .mood-btn .emoji { font-size: 32px; }
    .mood-btn .label { font-size: 12px; }

    .custom-form { flex-direction: column; padding: 16px; border-radius: var(--radius); }
    .custom-form input { padding: 10px 0; }
    .recommend-count {
        width: 100%;
    }
    .recommend-count select {
        width: 100%;
        min-width: 92px;
    }
    .custom-form button { width: 100%; justify-content: center; padding: 12px; }

    .movies-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
    .movie-info { padding: 12px; }
    .movie-title { font-size: 13px; }
    .movie-year { font-size: 11px; }

    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .about-image {
        max-width: 520px;
        width: 100%;
        aspect-ratio: 4 / 3;
        margin: 0 auto;
        overflow: hidden;
    }
    .about-image img {
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    .about-stats { gap: 24px; flex-wrap: wrap; }
    .stat strong { font-size: 28px; }

    section.support-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }
    section.reviews-section {
        padding-top: 42px;
        padding-bottom: 70px;
    }
    section.faq-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }
    .reviews-grid { grid-template-columns: 1fr; }
    .review-card {
        min-height: auto;
        padding: 20px;
    }
    .feedback-form {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .support-links a {
        width: 42px;
        height: 42px;
    }

    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-col .logo {
        width: 230px;
        height: 72px;
    }
    .footer-bottom { flex-direction: column; text-align: center; }

    .mobile-quick-actions { display: flex; }
    body { padding-bottom: 80px; }
    .scroll-top { bottom: 90px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .mood-grid { grid-template-columns: repeat(2, 1fr); }
    .slider {
        height: 82vh;
        min-height: 560px;
    }
    .slide-bg {
        background-position: center top;
    }
    .slide-content {
        top: 50%;
        bottom: auto;
        padding: 0 18px;
    }
    .slide-content-inner {
        max-width: 100%;
    }
    .slide-title {
        font-size: 2.15rem;
        line-height: 1.12;
    }
    .slide-title.is-long,
    .slide-title.is-extra-long {
        font-size: 1.75rem;
        line-height: 1.14;
    }
    .slide-desc {
        font-size: 14px;
        line-height: 1.6;
        -webkit-line-clamp: 2;
    }
    .slide-meta {
        gap: 7px;
        font-size: 12px;
    }
    .slide-meta span {
        min-height: 29px;
        padding: 5px 8px;
    }
    .slide-btn {
        min-height: 46px;
        padding: 12px 18px;
        font-size: 14px;
    }
    .slider-btn { display: none; }
    .slider-dots {
        left: 50%;
        transform: translateX(-50%);
        bottom: 28px;
    }
    .modal-info { padding: 20px; margin-top: -60px; }
    .modal-backdrop { aspect-ratio: 4/3; }
}
