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

:root {
    --red: #E50914;
    --red-dark: #b20710;
    --dark: #141414;
    --dark2: #181818;
    --dark3: #222;
    --light: #fff;
    --gray: #808080;
    --gray2: #b3b3b3;
    --font: 'Barlow', sans-serif;
    --display: 'Bebas Neue', cursive;
}

html,
body {
    height: 100%;
    background: var(--dark);
    color: var(--light);
    font-family: var(--font);
    overflow-x: hidden
}

body {
    transition: background .3s
}

a {
    color: inherit;
    text-decoration: none
}

img {
    display: block
}

button {
    cursor: pointer;
    font-family: var(--font);
    border: none;
    outline: none
}

input {
    font-family: var(--font);
    outline: none
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
    width: 6px;
    height: 6px
}

::-webkit-scrollbar-track {
    background: transparent
}

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px
}

/* ─── NAVBAR ─── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 40px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .9), transparent);
    transition: background .4s;
}

#navbar.scrolled {
    background: var(--dark)
}

#navbar .logo {
    font-family: var(--display);
    font-size: 36px;
    color: var(--red);
    letter-spacing: 2px;
    margin-right: 12px
}

#navbar nav {
    display: flex;
    gap: 18px
}

#navbar nav a {
    font-size: 14px;
    color: var(--gray2);
    transition: color .2s
}

#navbar nav a:hover,
#navbar nav a.active {
    color: var(--light)
}

#navbar .nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 18px
}

#navbar .search-icon {
    width: 20px;
    height: 20px;
    cursor: pointer;
    opacity: .8;
    transition: opacity .2s
}

#navbar .search-icon:hover {
    opacity: 1
}

#navbar .notif-btn {
    background: none;
    color: var(--light);
    font-size: 20px;
    padding: 0;
    line-height: 1
}

#navbar .notif-btn img,
#search-bar img,
.player-back img,
.card-btn img,
.modal-btns img {
    display: block;
    width: 18px;
    height: 18px;
}

.card-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .7);
    background: rgba(42, 42, 42, .7);
    color: var(--light);
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    flex-shrink: 0;
}

.card-btn:hover {
    background: rgba(80, 80, 80, .8);
    border-color: var(--light);
}

#navbar .avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    position: relative
}

#navbar .dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(20, 20, 20, .95);
    border: 1px solid #333;
    border-radius: 4px;
    min-width: 160px;
    padding: 8px 0;
}

#navbar .avatar:hover .dropdown {
    display: block
}

#navbar .dropdown a,
#navbar .dropdown button {
    display: block;
    width: 100%;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--gray2);
    background: none;
    text-align: left;
    transition: color .15s;
}

#navbar .dropdown a:hover,
#navbar .dropdown button:hover {
    color: var(--light)
}

/* ─── SEARCH BAR ─── */
#search-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 950;
    background: rgba(10, 10, 10, .97);
    padding: 14px 40px;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #333;
}

#search-bar.open {
    display: flex
}

#search-bar svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--gray2)
}

#search-bar input {
    flex: 1;
    background: none;
    border: none;
    color: var(--light);
    font-size: 18px;
    caret-color: var(--red);
}

#search-bar input::placeholder {
    color: #555
}

#search-bar .close-search {
    background: none;
    color: var(--gray2);
    font-size: 22px;
    padding: 0
}

#search-bar .close-search:hover {
    color: var(--light)
}

/* ─── LANDING PAGE ─── */
#landing {
    display: none;
    min-height: 100vh;
    flex-direction: column
}

#landing.active {
    display: flex
}

.hero-bg {
    flex: 1;
    background: url('assets/images/hero-bg.svg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    border-bottom: 8px solid #222;
}

.hero-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 48px
}

.hero-logo {
    font-family: var(--display);
    font-size: 52px;
    color: var(--red);
    letter-spacing: 3px
}

.hero-nav-btn {
    background: var(--red);
    color: var(--light);
    padding: 8px 20px;
    border-radius: 3px;
    font-size: 15px;
    font-weight: 500;
}

.hero-nav-btn:hover {
    background: var(--red-dark)
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    background: rgba(0, 0, 0, .55);
}

.hero-content h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px
}

.hero-content p {
    font-size: clamp(16px, 2vw, 26px);
    font-weight: 400;
    margin-bottom: 28px;
    max-width: 600px
}

.hero-cta {
    display: flex;
    gap: 8px;
    align-items: center
}

.hero-cta input {
    padding: 14px 18px;
    font-size: 16px;
    border-radius: 3px 0 0 3px;
    background: rgba(255, 255, 255, .15);
    border: 1px solid #aaa;
    color: var(--light);
    width: 340px;
}

.hero-cta input::placeholder {
    color: #ccc
}

.hero-cta button {
    background: var(--red);
    color: var(--light);
    padding: 14px 24px;
    border-radius: 0 3px 3px 0;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-cta button:hover {
    background: var(--red-dark)
}

.features {
    border-bottom: 8px solid #222
}

.feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 60px 48px;
    border-bottom: 8px solid #222;
    flex-wrap: wrap;
}

.feature:nth-child(even) {
    flex-direction: row-reverse
}

.feature-text h2 {
    font-size: clamp(28px, 4vw, 52px);
    font-weight: 700;
    margin-bottom: 16px
}

.feature-text p {
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 400;
    max-width: 480px
}

.feature-img {
    width: min(500px, 90vw);
    animation: float 4s ease-in-out infinite
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-12px)
    }
}

.landing-faq {
    padding: 60px 48px;
    border-bottom: 8px solid #222
}

.landing-faq h2 {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px
}

.faq-item {
    border-bottom: 8px solid #222;
    margin-bottom: 2px;
    cursor: pointer;
    background: #303030;
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    font-size: 20px;
    font-weight: 500;
}

.faq-q .arrow {
    transition: transform .3s;
    font-size: 28px;
    color: var(--light)
}

.faq-item.open .faq-q .arrow {
    transform: rotate(45deg)
}

.faq-a {
    display: none;
    padding: 16px 24px;
    font-size: 18px;
    line-height: 1.6;
    background: #303030
}

.faq-item.open .faq-a {
    display: block
}

/* ─── PROFILE PICKER ─── */
#profile-page {
    display: none;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 40px;
    background: var(--dark);
}

#profile-page.active {
    display: flex
}

#profile-page h1 {
    font-size: 48px;
    font-weight: 400;
    color: var(--gray2)
}

.profile-grid {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    transition: all .15s;
    border: 3px solid transparent;
}

.profile-card:hover .profile-avatar {
    border-color: var(--light)
}

.profile-name {
    font-size: 14px;
    color: var(--gray2)
}

.profile-card:hover .profile-name {
    color: var(--light)
}

.add-profile .profile-avatar {
    background: #222;
    border: 3px solid #444;
    font-size: 56px;
    color: var(--gray)
}

/* ─── BROWSE PAGE ─── */
#browse {
    display: none;
    padding-top: 80px;
    min-height: 100vh;
    background: var(--dark)
}

#browse.active {
    display: block
}

#search-results-page {
    display: none;
    padding: 80px 40px 40px;
    min-height: 100vh
}

#search-results-page.active {
    display: block
}

#search-results-page h2 {
    font-size: 24px;
    color: var(--gray2);
    margin-bottom: 24px
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px
}

/* ─── HERO BILLBOARD ─── */
.billboard {
    position: relative;
    height: 70vh;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    padding: 40px 48px;
    background: linear-gradient(to top, var(--dark) 0%, transparent 50%);
}

.billboard-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center 20%;
    mask-image: linear-gradient(to right, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 50%, transparent 100%);
}

.billboard-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--dark) 0%, rgba(0, 0, 0, .1) 60%);
}

.billboard-content {
    position: relative;
    z-index: 1;
    max-width: 600px
}

.billboard-title {
    font-family: var(--display);
    font-size: clamp(44px, 7vw, 88px);
    line-height: .9;
    margin-bottom: 16px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, .7)
}

.billboard-desc {
    font-size: 17px;
    line-height: 1.5;
    color: #ddd;
    margin-bottom: 24px;
    max-width: 480px
}

.billboard-btns {
    display: flex;
    gap: 12px
}

.btn-play {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--light);
    color: #000;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background .2s;
}

.btn-play:hover {
    background: #e0e0e0
}

.btn-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(109, 109, 110, .7);
    color: var(--light);
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background .2s;
}

.btn-info:hover {
    background: rgba(109, 109, 110, .9)
}

.maturity-badge {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid rgba(255, 255, 255, .5);
    font-size: 13px
}

/* ─── ROWS ─── */
.row {
    padding: 16px 0;
    margin-bottom: 8px
}

.row h3 {
    font-size: 20px;
    font-weight: 600;
    padding: 0 48px;
    margin-bottom: 12px;
    color: var(--gray2);
    transition: color .2s;
    cursor: default
}

.row h3:hover {
    color: var(--light)
}

.row-track-wrap {
    position: relative;
    padding: 0 40px
}

.row-track {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.row-track::-webkit-scrollbar {
    display: none
}

.scroll-btn {
    display: none;
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 10;
    width: 40px;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 20, .7);
    border: none;
    color: var(--light);
    font-size: 22px;
    cursor: pointer;
    transition: background .2s;
}

.row-track-wrap:hover .scroll-btn {
    display: flex
}

.scroll-btn:hover {
    background: rgba(20, 20, 20, .95)
}

.scroll-left {
    left: 0;
    border-radius: 0 4px 4px 0
}

.scroll-right {
    right: 0;
    border-radius: 4px 0 0 4px
}

/* ─── CARDS ─── */
.card {
    flex-shrink: 0;
    width: 230px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition: transform .3s, z-index 0s;
    transform-origin: center center;
}

.card:first-child {
    transform-origin: left center
}

.card:last-child {
    transform-origin: right center
}

.card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    background: #2a2a2a
}

.card:hover {
    transform: scale(1.3);
    z-index: 50;
    transition: transform .3s .2s
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .9) 0%, transparent 60%);
    padding: 24px 10px 10px;
    opacity: 0;
    transition: opacity .3s;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.card:hover .card-overlay {
    opacity: 1;
    transition-delay: .2s
}

.card-title {
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.card-actions {
    display: flex;
    gap: 6px;
    align-items: center
}

.card-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .7);
    background: rgba(42, 42, 42, .7);
    color: var(--light);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    flex-shrink: 0;
}

.card-btn:hover {
    background: rgba(80, 80, 80, .8);
    border-color: var(--light)
}

.card-btn.add-list.added {
    background: var(--light);
    color: #000;
    border-color: var(--light)
}

.card-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap
}

.card-match {
    color: #46d369;
    font-size: 11px;
    font-weight: 600
}

.card-rating {
    font-size: 11px;
    border: 1px solid #ccc;
    padding: 0 3px;
    line-height: 1.5
}

.card-year {
    font-size: 11px;
    color: var(--gray2)
}

/* ─── DETAIL MODAL ─── */
#modal-bg {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, .75);
    overflow-y: auto;
}

#modal-bg.open {
    display: block
}

#modal {
    background: #181818;
    border-radius: 6px;
    max-width: 860px;
    margin: 30px auto 80px;
    overflow: hidden;
    position: relative;
}

.modal-hero {
    position: relative;
    height: 400px
}

.modal-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.modal-hero-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #181818 0%, transparent 50%);
}

.modal-hero-content {
    position: absolute;
    bottom: 24px;
    left: 32px;
    right: 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-title {
    font-family: var(--display);
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1
}

.modal-btns {
    display: flex;
    gap: 10px;
    align-items: center
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(20, 20, 20, .8);
    border: 2px solid #555;
    color: var(--light);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.modal-body {
    padding: 0 32px 32px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap
}

.modal-info {
    flex: 1;
    min-width: 260px
}

.modal-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap
}

.modal-match {
    color: #46d369;
    font-weight: 600
}

.modal-year,
.modal-dur {
    font-size: 14px;
    color: var(--gray2)
}

.modal-qual {
    border: 1px solid #ddd;
    padding: 1px 5px;
    font-size: 12px
}

.modal-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 12px
}

.modal-cast {
    font-size: 13px;
    color: var(--gray2)
}

.modal-cast span {
    color: var(--light)
}

.modal-side {
    width: 220px
}

.modal-side-tag {
    font-size: 13px;
    color: var(--gray2);
    margin-bottom: 6px
}

.modal-side-tag span {
    color: var(--light)
}

.similar-row {
    padding: 0 32px 32px
}

.similar-row h3 {
    font-size: 20px;
    margin-bottom: 16px
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 8px
}

.similar-card {
    background: #2a2a2a;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s
}

.similar-card:hover {
    transform: scale(1.03)
}

.similar-card img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover
}

.similar-card .sc-body {
    padding: 10px
}

.similar-card .sc-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px
}

.similar-card .sc-desc {
    font-size: 12px;
    color: var(--gray2);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden
}

/* ─── VIDEO PLAYER ─── */
#player-bg {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: #000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#player-bg.open {
    display: flex
}

.player-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent);
    z-index: 1
}

.player-back {
    background: none;
    color: var(--light);
    font-size: 28px;
    cursor: pointer;
    line-height: 1
}

.player-title {
    font-size: 20px;
    font-weight: 600
}

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

.player-fake-video {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: var(--gray2);
    font-size: 18px;
}

.player-fake-video svg {
    width: 80px;
    height: 80px;
    opacity: .3
}

.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, .1);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.player-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, .8), transparent);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #555;
    border-radius: 2px;
    cursor: pointer;
    position: relative
}

.progress-fill {
    height: 100%;
    background: var(--red);
    border-radius: 2px;
    transition: width .5s linear
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: calc(100% - var(--p, 0%));
    top: 50%;
    transform: translate(50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--red);
}

.ctrl-row {
    display: flex;
    align-items: center;
    gap: 16px
}

.ctrl-btn {
    background: none;
    color: var(--light);
    font-size: 22px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: opacity .2s
}

.ctrl-btn:hover {
    opacity: .7
}

.ctrl-time {
    font-size: 13px;
    color: var(--gray2)
}

.ctrl-right {
    margin-left: auto;
    display: flex;
    gap: 16px;
    align-items: center
}

.volume-slider {
    width: 80px;
    accent-color: var(--light)
}

/* ─── AUTH MODAL ─── */
#auth-modal-bg {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(0, 0, 0, .8);
    align-items: center;
    justify-content: center;
}

#auth-modal-bg.open {
    display: flex
}

#auth-modal {
    background: rgba(0, 0, 0, .85);
    border-radius: 6px;
    padding: 48px 64px;
    width: min(450px, 95vw);
    position: relative;
}

#auth-modal h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 28px
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.auth-field {
    background: #333;
    border-radius: 4px;
    padding: 16px 12px 6px;
    position: relative;
    border: 1px solid transparent;
    transition: border-color .15s;
}

.auth-field:focus-within {
    border-color: #8c8c8c
}

.auth-field label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--gray2);
    pointer-events: none;
    transition: all .15s;
}

.auth-field.has-val label,
.auth-field:focus-within label {
    top: 8px;
    transform: none;
    font-size: 11px;
}

.auth-field input {
    background: none;
    border: none;
    width: 100%;
    color: var(--light);
    font-size: 16px;
    padding-top: 8px;
}

.auth-submit {
    background: var(--red);
    color: var(--light);
    padding: 14px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background .2s;
    margin-top: 8px;
}

.auth-submit:hover {
    background: var(--red-dark)
}

.auth-submit:disabled {
    background: #555;
    cursor: not-allowed
}

.auth-error {
    color: #e87c03;
    font-size: 13px;
    display: none
}

.auth-error.show {
    display: block
}

.auth-toggle {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--gray2)
}

.auth-toggle a {
    color: var(--light);
    text-decoration: underline;
    cursor: pointer
}

.auth-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    color: var(--gray2);
    font-size: 22px;
    cursor: pointer
}

.auth-modal-close:hover {
    color: var(--light)
}

.auth-loading {
    display: none;
    text-align: center;
    padding: 12px
}

.auth-loading.show {
    display: block
}

/* ─── MY LIST PAGE ─── */
#mylist-page {
    display: none;
    padding: 80px 40px 40px;
    min-height: 100vh
}

#mylist-page.active {
    display: block
}

#mylist-page h1 {
    font-size: 36px;
    margin-bottom: 24px
}

.mylist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px
}

.empty-state {
    text-align: center;
    color: var(--gray2);
    padding: 80px 0;
    font-size: 20px
}

/* ─── FOOTER ─── */
footer {
    background: var(--dark);
    padding: 48px;
    color: var(--gray);
    font-size: 13px;
    border-top: 1px solid #222
}

footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    max-width: 900px
}

footer .footer-links a {
    color: var(--gray);
    text-decoration: underline
}

footer .footer-links a:hover {
    color: var(--light)
}

/* ─── TOAST ─── */
#toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #000;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
    white-space: nowrap;
}

#toast.show {
    opacity: 1
}

/* ─── GENRE PAGE ─── */
#genre-page {
    display: none;
    padding: 80px 40px 40px;
    min-height: 100vh
}

#genre-page.active {
    display: block
}

#genre-page h1 {
    font-size: 36px;
    margin-bottom: 24px
}

.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px
}

/* RESPONSIVE */
@media(max-width:768px) {
    #navbar {
        padding: 12px 20px
    }

    #navbar nav {
        display: none
    }

    .billboard {
        padding: 24px 24px;
        height: 56vh
    }

    .billboard-title {
        font-size: 36px
    }

    .billboard-desc {
        font-size: 14px
    }

    .row h3 {
        padding: 0 24px
    }

    .row-track-wrap {
        padding: 0 16px
    }

    .card {
        width: 160px
    }

    .hero-content h1 {
        font-size: 32px
    }

    .hero-cta {
        flex-direction: column
    }

    .hero-cta input {
        width: 100%;
        border-radius: 3px
    }

    .hero-cta button {
        border-radius: 3px;
        width: 100%;
        justify-content: center
    }

    #auth-modal {
        padding: 32px 24px
    }

    .feature {
        padding: 40px 24px
    }

    .modal-body {
        flex-direction: column
    }

    .modal-side {
        width: 100%
    }
}