
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg: #09090c;
    --surface: #111116;
    --surface-hover: #19191f;
    --text: #f5f5f7;
    --muted: #9c9ca6;
    --accent: #f52b43;
    --accent-hover: #ff465b;
    --border: rgba(255,255,255,.09);
    --radius: 16px;
    --max-width: 1320px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body, button, input {
    font-family: 'Manrope', sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% -25%, rgba(245,43,67,.11), transparent 55%);
}

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

button {
    color: inherit;
}

button, input {
    font-size: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

::selection {
    background: var(--accent);
    color: white;
}

[hidden] {
    display: none !important;
}

/* HEADER */

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    padding: 17px max(5%, calc((100% - var(--max-width)) / 2));
    background: rgba(9,9,12,.88);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -1.3px;
}

.logo-icon {
    display: grid;
    place-items: center;
    width: 35px;
    height: 35px;
    padding-left: 2px;
    border-radius: 10px;
    background: var(--accent);
    color: white;
    font-size: 13px;
    box-shadow: 0 5px 24px rgba(245,43,67,.25);
}

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

.top-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    position: relative;
    padding: 8px 0;
    color: #9999a2;
    font-size: 12px;
    font-weight: 700;
    transition: color .2s;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -18px;
    left: 0;
    height: 2px;
    border-radius: 5px;
    background: var(--accent);
}

.nav-heart {
    color: var(--accent);
    margin-right: 4px;
}

.theme-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
    color: var(--muted);
    font-size: 12px;
    transition: .2s;
}

.theme-button:hover {
    border-color: var(--accent);
    color: white;
}

/* HERO */

main {
    overflow: hidden;
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 540px;
    max-width: var(--max-width);
    margin: 25px auto 0;
    padding: 70px 7%;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 23px;
    background:
        radial-gradient(ellipse at 80% 48%, rgba(245,43,67,.23), transparent 34%),
        radial-gradient(ellipse at 75% 100%, rgba(84,24,41,.3), transparent 50%),
        linear-gradient(115deg, #141419 0%, #101014 52%, #1b0e14 100%);
}

.hero-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(9,9,12,.25), transparent 85%);
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 570px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #a3a3ad;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.status-dot,
.hero-meta i {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 13px rgba(245,43,67,.7);
}

.hero-kicker {
    margin: 32px 0 12px;
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
}

.hero h1 {
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(42px, 5.2vw, 70px);
    font-weight: 700;
    letter-spacing: -3.8px;
    line-height: 1.04;
}

.hero h1 span {
    color: var(--accent);
}

.hero-description {
    max-width: 440px;
    margin: 23px 0 28px;
    color: #a3a3ad;
    font-size: 13px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 45px;
    padding: 0 19px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s, background .2s, border-color .2s;
}

.primary-button {
    background: var(--accent);
    color: white;
    box-shadow: 0 8px 28px rgba(245,43,67,.17);
}

.primary-button:hover {
    transform: translateY(-2px);
    background: var(--accent-hover);
}

.secondary-button {
    background: rgba(255,255,255,.035);
    border-color: var(--border);
    color: #e2e2e8;
}

.secondary-button:hover {
    border-color: rgba(245,43,67,.55);
    background: rgba(245,43,67,.08);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 23px;
    margin-top: 37px;
    color: #777780;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-meta i {
    width: 5px;
    height: 5px;
}

.hero-art {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 48%;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.hero-ring {
    position: absolute;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(245,43,67,.23);
    border-radius: 50%;
    box-shadow: inset 0 0 60px rgba(245,43,67,.035);
}

.ring-two {
    width: 250px;
    height: 250px;
    border-color: rgba(255,255,255,.12);
}

.ring-three {
    width: 170px;
    height: 170px;
    border-color: rgba(245,43,67,.38);
    background: radial-gradient(circle, rgba(245,43,67,.1), transparent 70%);
}

.hero-monogram {
    position: relative;
    z-index: 1;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(120px, 18vw, 220px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -20px;
    color: rgba(255,255,255,.055);
    text-shadow: 0 0 90px rgba(245,43,67,.1);
}

.hero-monogram span {
    color: rgba(245,43,67,.6);
}

.hero-art-caption {
    position: absolute;
    right: 8%;
    bottom: 25%;
    color: rgba(255,255,255,.45);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 3px;
    line-height: 2;
}

.hero-bottom {
    position: absolute;
    right: 7%;
    bottom: 22px;
    left: 7%;
    display: flex;
    align-items: center;
    gap: 13px;
    color: #777780;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.2px;
}

.hero-line {
    width: 55px;
    height: 1px;
    background: var(--accent);
}

/* SECTIONS */

.trending-section,
.catalog-section,
.favorites-section,
.about-section {
    max-width: var(--max-width);
    margin-right: auto;
    margin-left: auto;
    padding-right: 5%;
    padding-left: 5%;
}

.trending-section {
    padding-top: 80px;
}

.catalog-section {
    padding-top: 100px;
    padding-bottom: 75px;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-heading h2,
.favorites-section h2,
.about-section h2 {
    margin: 9px 0 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 3.2vw, 39px);
    font-weight: 700;
    letter-spacing: -1.6px;
    line-height: 1.2;
}

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

.section-description {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.text-link {
    color: #b7b7c0;
    font-size: 11px;
    font-weight: 800;
    transition: color .2s;
}

.text-link:hover {
    color: var(--accent);
}

/* MOOD CARDS */

.mood-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.mood-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 145px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #141419;
    transition: transform .2s, border-color .2s;
}

.mood-card::before {
    content: "";
    position: absolute;
    top: -45px;
    right: -25px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: var(--mood-glow, rgba(245,43,67,.2));
    filter: blur(30px);
}

.mood-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245,43,67,.45);
}

.mood-action {
    --mood-glow: rgba(245,43,67,.3);
}

.mood-drama {
    --mood-glow: rgba(95,67,190,.27);
}

.mood-comedy {
    --mood-glow: rgba(221,131,52,.23);
}

.mood-space {
    --mood-glow: rgba(45,115,220,.28);
}

.mood-symbol {
    position: absolute;
    top: 12px;
    right: 17px;
    color: rgba(255,255,255,.22);
    font-size: 32px;
}

.mood-name {
    position: relative;
    font-size: 15px;
    font-weight: 800;
}

.mood-caption {
    position: relative;
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

/* CATALOG */

.catalog-total {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255,255,255,.025);
}

.total-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
}

.total-label {
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.7;
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #111116;
    transition: border-color .2s, box-shadow .2s;
}

.search-box:focus-within {
    border-color: rgba(245,43,67,.55);
    box-shadow: 0 0 0 3px rgba(245,43,67,.06);
}

.search-icon {
    color: #a5a5af;
    font-size: 25px;
    line-height: 1;
}

.search-box input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 12px;
}

.search-box input::placeholder {
    color: #686872;
}

.search-box input:focus-visible {
    outline: 0;
}

.search-shortcut {
    flex-shrink: 0;
    color: #777780;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
}

.genre-area {
    margin-bottom: 28px;
}

.genre-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 13px;
}

.genre-label,
.genre-hint {
    color: #9999a2;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.genre-hint {
    color: #5f5f69;
    font-size: 8px;
}

.genre-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.genre-button {
    padding: 9px 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #121217;
    color: #a5a5ae;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

.genre-button:hover {
    border-color: rgba(245,43,67,.5);
    color: white;
}

.genre-button.selected {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 16px rgba(245,43,67,.14);
}

.results-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 0;
    margin-bottom: 8px;
    border-top: 1px solid var(--border);
    color: #c8c8d0;
    font-size: 11px;
    font-weight: 700;
}

.results-line > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.results-marker {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.results-count {
    color: #777780;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
}

.results-count b {
    color: white;
    font-size: 11px;
}

/* MOVIE CARDS */

.movie-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 25px 17px;
}

.movie-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    animation: card-in .35s both;
    transition: transform .23s, border-color .23s, background .23s;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: var(--border);
    background: #111116;
}

@keyframes card-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.poster {
    position: relative;
    isolation: isolate;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 10px;
    background:
        radial-gradient(circle at 50% 35%, rgba(245,43,67,.24), transparent 45%),
        linear-gradient(145deg, #202027, #101014);
}

.poster::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 35% 0 0;
    pointer-events: none;
    background: linear-gradient(transparent, rgba(0,0,0,.65));
}

.poster img {
    position: absolute;
    z-index: 0;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s, filter .3s;
}

.movie-card:hover .poster img {
    transform: scale(1.055);
    filter: brightness(.78);
}

.poster-symbol {
    position: absolute;
    z-index: 0;
    top: 50%;
    left: 50%;
    color: rgba(255,255,255,.15);
    font-size: 30px;
    transform: translate(-50%, -50%);
}

.poster-number {
    position: absolute;
    z-index: 2;
    top: 10px;
    left: 10px;
    padding: 5px 7px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 5px;
    background: rgba(8,8,12,.64);
    color: rgba(255,255,255,.9);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .7px;
    backdrop-filter: blur(6px);
}

.poster-genre {
    position: absolute;
    z-index: 2;
    bottom: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    padding: 5px 8px;
    overflow: hidden;
    border-radius: 5px;
    background: rgba(245,43,67,.92);
    color: white;
    font-size: 8px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.poster-play-button {
    position: absolute;
    z-index: 4;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    padding-left: 4px;
    border: 1px solid rgba(255,255,255,.55);
    border-radius: 50%;
    background: rgba(245,43,67,.92);
    color: white;
    font-size: 17px;
    opacity: 0;
    cursor: pointer;
    transform: translate(-50%, -42%) scale(.85);
    box-shadow: 0 8px 30px rgba(0,0,0,.35);
    transition: opacity .2s, transform .2s, background .2s;
}

.movie-card:hover .poster-play-button,
.poster-play-button:focus-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.poster-play-button:hover {
    background: #ff4057;
}

.movie-info {
    padding: 12px 3px 11px;
}

.movie-year {
    margin-bottom: 5px;
    color: #777780;
    font-size: 9px;
    font-weight: 700;
}

.movie-title {
    margin: 0;
    overflow: hidden;
    color: #f0f0f3;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
    text-overflow: ellipsis;
}

.movie-description {
    display: -webkit-box;
    min-height: 34px;
    margin: 7px 0 12px;
    overflow: hidden;
    color: #85858f;
    font-size: 10px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.card-genre {
    overflow: hidden;
    color: #85858f;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.details-button {
    flex-shrink: 0;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: #d6d6dd;
    font-size: 9px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s;
}

.details-button:hover {
    border-color: var(--accent);
    color: white;
    background: rgba(245,43,67,.1);
}

.empty-state {
    padding: 70px 20px;
    text-align: center;
    border: 1px dashed var(--border);
    border-radius: 15px;
}

.empty-icon {
    color: var(--accent);
    font-size: 42px;
}

.empty-state h3 {
    margin: 12px 0 5px;
    font-size: 20px;
}

.empty-state p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 12px;
}

/* FAVORITES INTRO */

.favorites-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding-top: 35px;
    padding-bottom: 35px;
    margin-bottom: 80px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(ellipse at 12% 50%, rgba(245,43,67,.1), transparent 45%);
}

.favorites-inner {
    display: flex;
    align-items: center;
    gap: 22px;
}

.favorites-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(245,43,67,.25);
    border-radius: 16px;
    background: rgba(245,43,67,.1);
    color: var(--accent);
    font-size: 25px;
}

.favorites-section h2 {
    font-size: 27px;
}

.favorites-section p {
    max-width: 520px;
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.8;
}

/* ABOUT + FOOTER */

.about-section {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-top: 10px;
    padding-bottom: 80px;
}

.about-mark {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 92px;
    height: 92px;
    border: 1px solid rgba(245,43,67,.25);
    border-radius: 23px;
    background: linear-gradient(145deg, #1b1117, #111116);
    color: rgba(255,255,255,.9);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -5px;
}

.about-mark span {
    color: var(--accent);
}

.about-section h2 {
    font-size: 25px;
}

.about-section p {
    max-width: 640px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.9;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 5%;
    border-top: 1px solid var(--border);
    background: #08080a;
}

.footer-logo {
    font-size: 17px;
}

.footer-logo .logo-icon {
    width: 29px;
    height: 29px;
    border-radius: 8px;
    font-size: 10px;
}

.footer-copy,
.footer-up {
    color: #777780;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1px;
}

.footer-up {
    transition: color .2s;
}

.footer-up:hover {
    color: var(--accent);
}

/* MODAL */

.modal {
    position: fixed;
    z-index: 500;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 22px;
}

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

.modal-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr);
    gap: 28px;
    width: min(900px, 100%);
    max-height: min(88vh, 850px);
    padding: 30px;
    overflow: auto;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 19px;
    background: #121217;
    box-shadow: 0 30px 100px rgba(0,0,0,.5);
    animation: modal-in .22s ease-out;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    z-index: 5;
    top: 13px;
    right: 13px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(0,0,0,.5);
    color: white;
    font-size: 25px;
    cursor: pointer;
    transition: .2s;
}

.modal-close:hover {
    background: var(--accent);
}

.modal-poster {
    position: relative;
    align-self: start;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 11px;
    background: #202027;
}

.modal-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-poster-symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    color: rgba(255,255,255,.25);
    font-size: 35px;
    transform: translate(-50%, -50%);
}

.modal-info {
    min-width: 0;
    padding-top: 12px;
}

.modal-info h2 {
    margin: 12px 0 7px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.15;
    letter-spacing: -1px;
}

.modal-year {
    color: #9999a2;
    font-size: 11px;
}

.modal-description {
    margin: 20px 0;
    color: #c2c2ca;
    font-size: 12px;
    line-height: 1.9;
}

.modal-watch {
    margin-bottom: 15px;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 20px 0 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #000;
}

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

.modal-note {
    color: #8f8f99;
    font-size: 10px;
    line-height: 1.8;
}

/* LIGHT THEME */

body.light-theme {
    --bg: #f3f3f6;
    --surface: #ffffff;
    --surface-hover: #ececf1;
    --text: #17171c;
    --muted: #686875;
    --border: rgba(0,0,0,.1);
}

body.light-theme::before {
    background: radial-gradient(ellipse at 50% -25%, rgba(245,43,67,.08), transparent 55%);
}

body.light-theme .topbar {
    background: rgba(248,248,251,.9);
}

body.light-theme .nav-link:hover,
body.light-theme .nav-link.active {
    color: #17171c;
}

body.light-theme .hero {
    background:
        radial-gradient(ellipse at 80% 48%, rgba(245,43,67,.13), transparent 34%),
        linear-gradient(115deg, #fff 0%, #f5f3f5 55%, #f7e9ed 100%);
}

body.light-theme .hero h1 {
    color: #17171c;
}

body.light-theme .hero-description,
body.light-theme .hero-meta,
body.light-theme .hero-bottom {
    color: #666671;
}

body.light-theme .hero-monogram {
    color: rgba(0,0,0,.055);
}

body.light-theme .mood-card,
body.light-theme .search-box,
body.light-theme .genre-button {
    background-color: #fff;
}

body.light-theme .mood-name,
body.light-theme .movie-title,
body.light-theme .results-count b,
body.light-theme .section-heading h2,
body.light-theme .about-section h2 {
    color: #17171c;
}

body.light-theme .movie-card:hover {
    background: #fff;
}

body.light-theme .movie-title {
    color: #17171c;
}

body.light-theme .details-button {
    color: #34343b;
}

body.light-theme .modal-panel {
    background: #fff;
}

body.light-theme .modal-description {
    color: #44444d;
}

body.light-theme .footer {
    background: #ececf1;
}

/* RESPONSIVE */

@media (min-width: 1500px) {
    .hero {
        margin-top: 32px;
    }
}

@media (max-width: 1100px) {
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hero {
        min-height: 490px;
    }

    .hero-art {
        opacity: .75;
    }

    .hero-ring {
        width: 280px;
        height: 280px;
    }

    .ring-two {
        width: 215px;
        height: 215px;
    }

    .ring-three {
        width: 145px;
        height: 145px;
    }
}

@media (max-width: 760px) {
    .topbar {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 5%;
    }

    .logo {
        font-size: 20px;
    }

    .logo-icon {
        width: 31px;
        height: 31px;
    }

    .top-nav {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 12px;
        overflow-x: auto;
    }

    .nav-link {
        flex-shrink: 0;
        font-size: 10px;
    }

    .nav-link.active::after {
        bottom: -5px;
    }

    .theme-button {
        margin-left: auto;
    }

    .hero {
        min-height: 490px;
        margin: 14px 12px 0;
        padding: 48px 25px 60px;
        border-radius: 17px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: clamp(43px, 10vw, 62px);
        letter-spacing: -2.8px;
    }

    .hero-description {
        max-width: 340px;
        font-size: 12px;
    }

    .hero-art {
        right: -23%;
        width: 75%;
        opacity: .34;
    }

    .hero-ring {
        width: 260px;
        height: 260px;
    }

    .ring-two {
        width: 200px;
        height: 200px;
    }

    .ring-three {
        width: 140px;
        height: 140px;
    }

    .hero-monogram {
        font-size: 160px;
    }

    .hero-art-caption {
        display: none;
    }

    .hero-bottom {
        right: 25px;
        left: 25px;
        font-size: 7px;
    }

    .trending-section {
        padding-top: 55px;
    }

    .catalog-section {
        padding-top: 70px;
        padding-bottom: 55px;
    }

    .trending-section,
    .catalog-section,
    .favorites-section,
    .about-section {
        padding-right: 18px;
        padding-left: 18px;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .mood-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mood-card {
        min-height: 115px;
        padding: 14px;
    }

    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px 11px;
    }

    .poster-number {
        top: 6px;
        left: 6px;
        padding: 4px 5px;
        font-size: 6px;
    }

    .poster-genre {
        bottom: 6px;
        left: 6px;
        padding: 4px 5px;
        font-size: 7px;
    }

    .poster-play-button {
        width: 43px;
        height: 43px;
        opacity: .95;
        transform: translate(-50%, -50%) scale(.9);
    }

    .movie-info {
        padding-top: 9px;
    }

    .movie-title {
        font-size: 10px;
    }

    .movie-description {
        font-size: 9px;
    }

    .card-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .details-button {
        width: 100%;
    }

    .favorites-section {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 55px;
    }

    .favorites-inner {
        align-items: flex-start;
        gap: 14px;
    }

    .favorites-icon {
        width: 45px;
        height: 45px;
        border-radius: 12px;
        font-size: 20px;
    }

    .about-section {
        align-items: flex-start;
        gap: 18px;
        padding-bottom: 55px;
    }

    .about-mark {
        width: 57px;
        height: 57px;
        border-radius: 14px;
        font-size: 30px;
    }

    .about-section h2 {
        font-size: 21px;
    }

    .footer {
        flex-wrap: wrap;
        padding: 20px 5%;
    }

    .footer-copy {
        order: 3;
        width: 100%;
    }

    .modal {
        padding: 10px;
    }

    .modal-panel {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 17px;
        padding: 18px;
        max-height: 92vh;
        border-radius: 14px;
    }

    .modal-info {
        padding-top: 4px;
    }

    .modal-info h2 {
        padding-right: 10px;
        font-size: 23px;
    }

    .modal-description {
        margin: 12px 0;
        font-size: 11px;
    }

    .modal-poster {
        margin-top: 5px;
    }

    .modal-close {
        top: 8px;
        right: 8px;
        width: 30px;
        height: 30px;
    }

    .video-container {
        grid-column: 1 / -1;
    }
}

@media (max-width: 420px) {
    .hero {
        min-height: 460px;
        padding-right: 19px;
        padding-left: 19px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        max-width: 240px;
    }

    .hero-actions a {
        width: 100%;
    }

    .hero-meta {
        gap: 12px;
    }

    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 12px;
    }

    .movie-title {
        font-size: 12px;
    }

    .card-bottom {
        flex-direction: row;
        align-items: center;
    }

    .details-button {
        width: auto;
    }

    .catalog-total {
        gap: 7px;
        padding: 8px;
    }

    .total-number {
        font-size: 22px;
    }

    .total-label {
        font-size: 7px;
    }

    .search-shortcut {
        display: none;
    }

    .results-count {
        font-size: 7px;
    }

    .modal-panel {
        grid-template-columns: 1fr;
    }

    .modal-poster {
        width: 105px;
    }

    .modal-info {
        padding-top: 0;
    }

    .video-container {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

.favorite-button {
    position: absolute;
    z-index: 5;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(8, 12, 20, 0.78);
    color: #ffffff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, background 0.2s ease,
                color 0.2s ease;
}

.favorite-button:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.18);
}

.favorite-button.is-favorite {
    color: #ff3158;
    background: rgba(20, 10, 20, 0.9);
}

.favorites-tab {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.favorites-tab span {
    display: inline-grid;
    place-items: center;
    min-width: 21px;
    height: 21px;
    margin-left: 4px;
    padding: 0 5px;
    border-radius: 20px;
    background: rgba(255, 49, 88, 0.15);
    color: #ff3158;
    font-size: 12px;
}

.favorites-tab.active {
    color: #ff3158;
}

@media (max-width: 600px) {
    .top-nav {
        gap: 10px;
    }

    .nav-link {
        font-size: 13px;
    }

    .favorite-button {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
    }
}

/* BLEIZER SERIES */

.series-section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 80px 24px;
    scroll-margin-top: 90px;
}

.series-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 56px;
    padding: clamp(28px, 6vw, 64px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 26px;
    background:
        radial-gradient(ellipse at 85% 15%, rgba(125, 80, 255, 0.23), transparent 45%),
        linear-gradient(135deg, #17151f, #0d0d13);
}

.series-hero h2 {
    max-width: 700px;
    margin: 16px 0;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.series-hero h2 span {
    color: var(--accent, #a78bfa);
}

.series-hero p {
    max-width: 580px;
    color: var(--muted, #a5a5b5);
    line-height: 1.8;
}

.series-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.series-card {
    overflow: hidden;
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    background: var(--card-bg, #15151d);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.series-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent, #a78bfa);
}

.series-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(145deg, #242034, #101017);
}

.series-poster img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.series-card:hover .series-poster img {
    transform: scale(1.04);
}

.series-poster-fallback::after {
    content: "BLEIZER SERIES";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 800;
    letter-spacing: 3px;
}

.series-poster-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    font-size: 10px;
    letter-spacing: 1.5px;
    backdrop-filter: blur(8px);
}

.series-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    font-size: 25px;
    cursor: pointer;
}

.series-favorite.is-favorite {
    color: #ff4167;
}

.series-card-info {
    padding: 20px;
}

.series-card-meta {
    margin-bottom: 10px;
    color: var(--muted, #a5a5b5);
    font-size: 12px;
    line-height: 1.6;
}

.series-card-info h3 {
    margin: 0 0 12px;
    font-size: 21px;
}

.series-card-info p {
    min-height: 96px;
    color: var(--muted, #a5a5b5);
    font-size: 14px;
    line-height: 1.7;
}

.series-open-button {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    cursor: pointer;
}

.series-details {
    margin-top: 36px;
    scroll-margin-top: 90px;
}

.series-detail-hero {
    display: grid;
    grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    margin: 28px 0 42px;
}

.series-detail-hero > img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 18px;
    background: #17151f;
}

.series-detail-info h2 {
    margin: 12px 0;
    font-size: clamp(28px, 4vw, 42px);
}

.series-detail-info > p {
    color: var(--muted, #a5a5b5);
    line-height: 1.8;
}

.series-season-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.series-season-button {
    padding: 11px 16px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 10px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.series-season-button:hover,
.series-season-button.selected {
    border-color: var(--accent, #a78bfa);
    background: var(--accent, #a78bfa);
    color: #fff;
}

.series-episodes-heading {
    margin-bottom: 20px;
}

.series-episodes-heading h3 {
    margin: 8px 0;
    font-size: 25px;
}

.series-episodes {
    display: grid;
    gap: 12px;
}

.series-episode {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 14px;
    background: var(--card-bg, #15151d);
}

.series-episode-number {
    color: var(--accent, #a78bfa);
    font-size: 13px;
    font-weight: 800;
}

.series-episode-info h4 {
    margin: 0 0 6px;
}

.series-episode-info p {
    margin: 0;
    color: var(--muted, #a5a5b5);
    font-size: 13px;
    line-height: 1.5;
}

.series-episode-play {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.series-episode-play:hover {
    border-color: var(--accent, #a78bfa);
    color: var(--accent, #a78bfa);
}

.series-player {
    margin-top: 36px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: var(--card-bg, #15151d);
}

.series-player-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.series-player-heading h3 {
    margin: 0;
}

.series-video-container {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background: #000;
}

.series-video-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

@media (max-width: 900px) {
    .series-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .series-section {
        padding: 48px 16px;
    }

    .series-grid {
        grid-template-columns: 1fr;
    }

    .series-detail-hero {
        grid-template-columns: 1fr;
    }

    .series-detail-hero > img {
        max-width: 260px;
    }

    .series-episode {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 12px;
    }

    .series-episode-play {
        grid-column: 2;
        justify-self: start;
    }

    .series-player-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* Переключение отдельных страниц */
[hidden] {
    display: none !important;
}

.page-section {
    min-height: 70vh;
    padding-top: 30px;
}

.top-nav .nav-link {
    cursor: pointer;
    font: inherit;
    color: inherit;
    background: transparent;
    border: none;
}

.top-nav .nav-link.active {
    color: #ff4545;
}

#seriesPage .series-section {
    padding: 30px 5%;
}

#seriesPage .series-hero {
    margin-bottom: 50px;
}

#seriesPage .series-hero h1 {
    margin-top: 18px;
}

#genresPage .catalog-section,
#favoritesPage .catalog-section {
    padding: 40px 5%;
}

#genresPage .genre-filters {
    margin-bottom: 30px;
}

.footer-up {
    color: inherit;
    background: transparent;
    border: none;
    cursor: pointer;
    font: inherit;
}


/* BLEIZER: softer interactions and motion */
html { scroll-behavior: smooth; }
button, a, .movie-card, .series-card, .mood-card, .genre-button,
.favorite-button, .primary-button, .secondary-button, .text-link {
    transition: color .24s ease, background-color .24s ease, border-color .24s ease,
                box-shadow .28s ease, transform .28s cubic-bezier(.2,.75,.25,1),
                opacity .24s ease, filter .28s ease;
}
button:active, .genre-button:active, .mood-card:active {
    transform: scale(.975);
}
.movie-card, .series-card { animation: bleizerCardIn .42s ease both; }
@keyframes bleizerCardIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}


/* Личный кабинет и авторизация */
.account-section { max-width: 1120px; margin: 0 auto; }
.account-panel { max-width: 680px; margin: 28px auto 64px; padding: clamp(22px,4vw,42px); border: 1px solid rgba(255,255,255,.12); border-radius: 24px; background: rgba(255,255,255,.035); box-shadow: 0 24px 80px rgba(0,0,0,.18); }
.account-panel h2 { margin: 12px 0 8px; }
.account-avatar { width: 76px; height: 76px; border-radius: 50%; display:flex; align-items:center; justify-content:center; overflow:hidden; flex-shrink:0; background: linear-gradient(135deg,#e83d4d,#771a2a); color:white; font-size:27px; font-weight:800; border:2px solid rgba(255,255,255,.2); }
.account-avatar img { width:100%; height:100%; object-fit:cover; }
.auth-form { display:grid; gap:16px; margin-top:24px; }
.auth-form label { display:grid; gap:8px; font-size:13px; color:rgba(255,255,255,.76); }
.auth-form input { width:100%; box-sizing:border-box; padding:14px 15px; border-radius:12px; border:1px solid rgba(255,255,255,.15); background:rgba(0,0,0,.22); color:inherit; font:inherit; outline:none; }
.auth-form input:focus { border-color:#e83d4d; box-shadow:0 0 0 3px rgba(232,61,77,.12); }
.auth-actions { display:flex; gap:10px; flex-wrap:wrap; }
.google-button { margin-top:12px; width:100%; padding:14px 18px; border-radius:999px; border:1px solid rgba(255,255,255,.2); color:inherit; background:rgba(255,255,255,.06); font:inherit; font-weight:650; cursor:pointer; }
.google-button:hover,.secondary-button:hover { border-color:rgba(255,255,255,.4); }
.auth-message { min-height:1.4em; color:#ffb4bc; font-size:14px; }
.auth-small { color:rgba(255,255,255,.52); font-size:12px; line-height:1.6; }
.profile-top { display:flex; gap:18px; align-items:center; }
.profile-top h2 { margin-top:0; }
.profile-stats { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:24px 0; }
.profile-stats > div { padding:18px; border-radius:16px; background:rgba(255,255,255,.055); display:grid; gap:5px; }
.profile-stats strong { font-size:25px; }
.profile-stats span { color:rgba(255,255,255,.6); font-size:13px; }
.profile-subsection { margin:26px 0; }
.profile-subsection h3 { margin-bottom:12px; }
.history-list { display:grid; gap:10px; }
.history-item { display:flex; gap:12px; align-items:center; padding:10px; border-radius:12px; background:rgba(255,255,255,.04); }
.history-item img { width:54px; height:72px; object-fit:cover; border-radius:8px; }
.history-item strong { display:block; margin-bottom:4px; }
.history-item small { color:rgba(255,255,255,.55); }
@media(max-width:700px) { #accountButton span { display:none; } .account-panel { margin-left:0; margin-right:0; } .profile-top { align-items:flex-start; } .auth-actions > * { flex:1; } }


/* ============ BLEIZER v2: fixes + motion ============ */

/* кнопка «Весь каталог» была белой из-за дефолтного стиля button */
.text-link { background: none; border: 0; padding: 6px 2px; cursor: pointer; font-family: inherit; letter-spacing: .08em; }

/* прогресс прокрутки */
.scroll-progress { position: fixed; z-index: 200; top: 0; left: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent), #ff8a5c); box-shadow: 0 0 12px rgba(245,43,67,.7); pointer-events: none; }

/* шапка: стекло при скролле */
.topbar { transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease; }
.topbar.is-scrolled { background: rgba(9,9,12,.78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 10px 40px rgba(0,0,0,.35); }
body.light-theme .topbar.is-scrolled { background: rgba(243,243,246,.82); box-shadow: 0 10px 40px rgba(0,0,0,.08); }

/* вход на главном экране */
@keyframes fxUp { from { opacity: 0; transform: translateY(26px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fxPulse { 0%,100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.045); opacity: .5; } }
@keyframes fxFloat { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes fxGlow { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
.hero-content > * { animation: fxUp .8s cubic-bezier(.2,.75,.25,1) both; }
.hero-content > :nth-child(1) { animation-delay: .05s; }
.hero-content > :nth-child(2) { animation-delay: .15s; }
.hero-content > :nth-child(3) { animation-delay: .25s; }
.hero-content > :nth-child(4) { animation-delay: .38s; }
.hero-content > :nth-child(5) { animation-delay: .5s; }
.hero-content > :nth-child(6) { animation-delay: .6s; }
.hero-ring { animation: fxPulse 6s ease-in-out infinite; }
.hero-ring.ring-two { animation-delay: -2s; }
.hero-ring.ring-three { animation-delay: -4s; }
.hero-art { animation: fxFloat 7s ease-in-out infinite; }
.status-dot { animation: fxGlow 1.8s ease-in-out infinite; }
.hero h1 span, .section-heading h2 .red-dot { text-shadow: 0 0 28px rgba(245,43,67,.45); }

/* свет за курсором в hero и карточках настроения */
.mood-card { --mx: 50%; --my: 50%; }
.mood-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; opacity: 0; transition: opacity .35s ease;
    background: radial-gradient(520px circle at var(--mx) var(--my), rgba(245,43,67,.16), transparent 60%); }
.mood-card:hover::after { opacity: 1; }
.mood-card { position: relative; overflow: hidden; }
.mood-card:hover { transform: translateY(-6px); }

/* кнопки: блик */
.primary-button { position: relative; overflow: hidden; }
.primary-button::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); transition: transform .7s ease; pointer-events: none; }
.primary-button:hover::after { transform: translateX(120%) skewX(-20deg); }
.primary-button:hover { box-shadow: 0 10px 34px rgba(245,43,67,.45); transform: translateY(-2px); }

/* появление карточек и блоков при прокрутке (управляется fx.js) */
.movie-card, .series-card { animation: none; }
.fx-pre { opacity: 0; }

/* карточки фильмов: 3D-наклон постера и блик */
.poster { transition: box-shadow .3s ease; }
.poster img { transition: transform .2s ease-out, filter .3s; will-change: transform; }
.movie-card:hover .poster { box-shadow: 0 18px 44px rgba(0,0,0,.55), 0 0 0 1px rgba(245,43,67,.35); }
.poster .fx-glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .25s ease;
    background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.22), transparent 60%); mix-blend-mode: overlay; }
.movie-card:hover .poster .fx-glare { opacity: 1; }
/* кнопка play: центрирование через translate/scale, чтобы :active не сбивал позицию */
.poster-play-button { padding: 0; font-size: 0; line-height: 0; transform: none !important; translate: -50% -50%; scale: .85;
    transition: scale .3s cubic-bezier(.2,.75,.25,1), opacity .25s ease, background .2s ease, box-shadow .25s ease; }
.poster-play-button::before { content: ""; width: 0; height: 0; margin-left: 4px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
.movie-card:hover .poster-play-button, .poster-play-button:focus-visible { scale: 1; }
.poster-play-button:hover { scale: 1.07 !important; background: #ff4057; }
.poster-play-button:active { scale: .94 !important; }
@media (max-width: 760px) { .poster-play-button::before { border-width: 7px 0 7px 12px; margin-left: 3px; } .poster-play-button { scale: .9; } }

/* сердечко: «пульс» при добавлении */
@keyframes fxHeart { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }
.favorite-button.is-favorite { animation: fxHeart .5s ease; color: var(--accent); }

/* окно фильма */
.modal:not([hidden]) .modal-backdrop { animation: fxFade .3s ease both; }
@keyframes fxFade { from { opacity: 0; } to { opacity: 1; } }

/* возврат наверх */
.footer-up:hover { color: var(--accent); transform: translateY(-3px); }

/* ===== мобильная версия ===== */
@media (max-width: 760px) {
    .catalog-total { flex-direction: row; align-items: center; gap: 12px; padding: 14px 18px; }
    .total-number { font-size: 38px; line-height: 1; }
    .total-label { white-space: nowrap; font-size: 10px; line-height: 1.5; }
    .hero-art { animation: none; }
    .poster { will-change: auto; }
    .topbar.is-scrolled { backdrop-filter: blur(10px); }
}
@media (hover: none) {
    .movie-card:hover { transform: none; }
    .mood-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-content > *, .hero-ring, .hero-art, .status-dot { animation: none !important; }
    .fx-pre { opacity: 1; }
}
.text-link { white-space: nowrap; }
@media (max-width: 760px) {
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions > * { width: 100%; justify-content: center; }
}

.poster-play-button { width: 46px; height: 46px; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.poster-play-button::before { border-width: 8px 0 8px 13px; margin-left: 3px; }
@media (max-width: 760px) { .poster-play-button { width: 40px; height: 40px; } .poster-play-button::before { border-width: 7px 0 7px 11px; margin-left: 3px; } }

.hero-trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; border-radius: inherit; }

/* кнопка play: размер зависит от ширины постера, поэтому на узких карточках не выглядит огромной */
.poster { container-type: inline-size; }
.poster-play-button { width: clamp(30px, 19cqw, 46px); height: clamp(30px, 19cqw, 46px); }
.poster-play-button::before { border-width: clamp(5px, 3.6cqw, 8px) 0 clamp(5px, 3.6cqw, 8px) clamp(8px, 5.8cqw, 13px); margin-left: clamp(2px, 1.4cqw, 3px); }
@media (max-width: 760px) {
  .poster-play-button { width: clamp(30px, 19cqw, 40px); height: clamp(30px, 19cqw, 40px); }
  .poster-play-button::before { border-width: clamp(5px, 3.6cqw, 7px) 0 clamp(5px, 3.6cqw, 7px) clamp(8px, 5.8cqw, 11px); margin-left: clamp(2px, 1.4cqw, 3px); }
}

/* v8: кнопка play компактнее */
.poster-play-button { width: clamp(28px, 14cqw, 38px); height: clamp(28px, 14cqw, 38px); }
.poster-play-button::before { border-width: clamp(4px, 2.8cqw, 6.5px) 0 clamp(4px, 2.8cqw, 6.5px) clamp(7px, 4.6cqw, 11px); margin-left: 2px; }
@media (max-width: 760px) {
  .poster-play-button { width: clamp(28px, 14cqw, 34px); height: clamp(28px, 14cqw, 34px); }
  .poster-play-button::before { border-width: clamp(4px, 2.8cqw, 6px) 0 clamp(4px, 2.8cqw, 6px) clamp(7px, 4.6cqw, 10px); margin-left: 2px; }
}

/* v9: треугольник строго по центру круга (абсолютное позиционирование, без участия в grid) */
.poster-play-button { display: block; position: absolute; }
.poster-play-button::before { position: absolute; top: 50%; left: 50%; margin: 0 !important; translate: -38% -50%; }

/* v10: кнопка play крупнее */
.poster-play-button { width: clamp(36px, 19cqw, 46px); height: clamp(36px, 19cqw, 46px); }
.poster-play-button::before { border-width: clamp(7px, 3.8cqw, 9px) 0 clamp(7px, 3.8cqw, 9px) clamp(11px, 6.2cqw, 15px); }
@media (max-width: 760px) {
  .poster-play-button { width: clamp(34px, 19cqw, 42px); height: clamp(34px, 19cqw, 42px); }
  .poster-play-button::before { border-width: clamp(6px, 3.6cqw, 8px) 0 clamp(6px, 3.6cqw, 8px) clamp(10px, 6cqw, 13px); }
}
