:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.78);
    --bg-card-strong: rgba(15, 23, 42, 0.95);
    --line: rgba(34, 211, 238, 0.20);
    --line-strong: rgba(34, 211, 238, 0.45);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --purple: #a855f7;
    --pink: #f472b6;
    --yellow: #facc15;
    --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

button,
input,
select {
    font: inherit;
}

.container {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.90);
    backdrop-filter: blur(16px);
}

.site-header__inner {
    width: min(1240px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand__icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 12px 30px rgba(34, 211, 238, 0.25);
}

.brand__text {
    font-size: 22px;
    line-height: 1;
    color: transparent;
    background: linear-gradient(90deg, var(--cyan), #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    position: relative;
    padding: 10px 14px;
    color: var(--muted-strong);
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.10);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    background: rgba(15, 23, 42, 0.82);
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
}

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hero-slide.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0.22;
    transform: scale(1.04);
}

.hero-slide__shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 28%, rgba(34, 211, 238, 0.20), transparent 28%),
        radial-gradient(circle at 76% 34%, rgba(59, 130, 246, 0.18), transparent 30%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.20), #020617 95%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-particles span {
    position: absolute;
    top: var(--top);
    left: var(--left);
    width: var(--size);
    height: var(--size);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    animation: starPulse var(--duration) ease-in-out var(--delay) infinite;
}

.hero-slide__content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 48px;
    align-items: center;
    padding: 120px 0 74px;
}

.hero-copy {
    max-width: 780px;
    text-align: left;
}

.eyebrow,
.section-heading__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(48px, 8vw, 92px);
    line-height: 0.95;
    letter-spacing: -0.06em;
    color: transparent;
    background: linear-gradient(90deg, var(--cyan), #60a5fa, var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-copy__lead {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 800;
}

.hero-copy__desc {
    max-width: 700px;
    margin: 0 0 28px;
    color: var(--muted-strong);
    font-size: 18px;
    line-height: 1.8;
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn--primary {
    color: #ffffff;
    background: linear-gradient(90deg, #06b6d4, #2563eb);
    box-shadow: 0 15px 38px rgba(34, 211, 238, 0.26);
}

.btn--ghost {
    color: var(--cyan);
    border-color: var(--line-strong);
    background: rgba(15, 23, 42, 0.58);
}

.btn--full {
    width: 100%;
    margin-top: 18px;
}

.hero-feature {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 460px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.74);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.hero-feature:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
}

.hero-feature img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.28), rgba(59, 130, 246, 0.20));
}

img.is-missing {
    min-height: 100%;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.28), rgba(59, 130, 246, 0.20));
}

.hero-feature strong,
.hero-feature small {
    display: block;
    padding: 0 20px;
}

.hero-feature strong {
    margin-top: 18px;
    font-size: 22px;
    line-height: 1.25;
}

.hero-feature small {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.6;
}

.hero-feature__badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    background: rgba(2, 6, 23, 0.74);
    backdrop-filter: blur(10px);
}

.hero-dots {
    position: absolute;
    z-index: 4;
    bottom: 26px;
    left: 50%;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 38px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.45);
}

.hero-dots button.is-active {
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.search-strip {
    position: relative;
    z-index: 5;
    margin-top: -34px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-strip__form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.search-strip input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 46px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    color: var(--text);
    outline: none;
    background: rgba(2, 6, 23, 0.58);
    padding: 0 14px;
}

.search-strip input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--line-strong);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.search-strip__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
}

.search-strip__meta span {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}

.section-block {
    padding: 64px 0 0;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading a {
    color: var(--cyan);
    font-weight: 800;
    white-space: nowrap;
}

.movie-grid,
.poster-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.movie-grid--featured {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.movie-grid--wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.movie-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.10);
    border-radius: 20px;
    background: var(--bg-card);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: var(--line-strong);
    background: rgba(15, 23, 42, 0.96);
}

.movie-card__poster {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(59, 130, 246, 0.12));
}

.poster-grid .movie-card__poster,
.detail-poster {
    aspect-ratio: 3 / 4;
}

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

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

.movie-card__poster::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.84));
    transition: opacity 0.22s ease;
}

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

.movie-card__score,
.movie-card__duration {
    position: absolute;
    z-index: 2;
    top: 12px;
    padding: 5px 8px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(2, 6, 23, 0.74);
    backdrop-filter: blur(10px);
}

.movie-card__score {
    left: 12px;
    color: var(--yellow);
}

.movie-card__duration {
    right: 12px;
}

.movie-card__play {
    position: absolute;
    z-index: 2;
    right: 14px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .movie-card__play {
    opacity: 1;
    transform: translateY(0);
}

.movie-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.movie-card h3 {
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card:hover h3 {
    color: var(--cyan);
}

.movie-card__meta,
.movie-card__desc {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.movie-card__desc {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card__tags,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
}

.movie-card__tags span,
.tag-cloud span {
    padding: 4px 8px;
    border: 1px solid rgba(34, 211, 238, 0.16);
    border-radius: 999px;
    color: var(--cyan);
    font-size: 12px;
    background: rgba(34, 211, 238, 0.08);
}

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

.category-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.62));
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--line-strong);
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.18), rgba(37, 99, 235, 0.12));
}

.category-card__icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.category-card h3,
.category-card p {
    margin: 0;
}

.category-card h3 {
    font-size: 22px;
}

.category-card p {
    color: var(--muted);
    line-height: 1.7;
}

.category-card strong {
    margin-top: auto;
    color: var(--cyan);
}

.two-column-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
}

.ranking-panel,
.prose-card,
.info-card,
.filter-panel,
.table-wrap {
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 24px;
    background: var(--bg-card);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.16);
}

.ranking-panel {
    position: sticky;
    top: 92px;
    padding: 20px;
}

.ranking-panel__head {
    margin-bottom: 16px;
}

.ranking-panel__head span {
    color: var(--yellow);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.ranking-panel__head h2 {
    margin: 5px 0 0;
    font-size: 32px;
}

.ranking-list {
    display: grid;
    gap: 10px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 42px 54px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.34);
    transition: background 0.2s ease;
}

.ranking-item:hover {
    background: rgba(34, 211, 238, 0.10);
}

.ranking-item img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(59, 130, 246, 0.15));
}

.ranking-item__num {
    color: var(--yellow);
    font-weight: 900;
}

.ranking-item__main {
    min-width: 0;
}

.ranking-item__main strong,
.ranking-item__main small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-item__main small {
    color: var(--muted);
}

.ranking-item__score {
    color: var(--cyan);
    font-weight: 900;
}

.page-main {
    padding-top: 68px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 28%, rgba(34, 211, 238, 0.18), transparent 32%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.96));
}

.page-hero .container {
    padding: 84px 0 58px;
}

.page-hero h1,
.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: var(--muted-strong);
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--cyan);
}

.filter-panel {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 18px;
    margin-bottom: 18px;
}

.filter-panel--search {
    grid-template-columns: 2fr repeat(4, minmax(150px, 1fr));
}

.filter-panel label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 800;
}

.result-summary {
    margin: 0 0 18px;
    color: var(--muted);
}

.empty-state {
    padding: 28px;
    border: 1px dashed var(--line-strong);
    border-radius: 20px;
    color: var(--muted-strong);
    text-align: center;
}

.table-wrap {
    overflow-x: auto;
}

.ranking-table {
    width: 100%;
    min-width: 840px;
    border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
    text-align: left;
}

.ranking-table th {
    color: var(--muted-strong);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(2, 6, 23, 0.32);
}

.ranking-table a {
    color: #ffffff;
    font-weight: 800;
}

.ranking-table a:hover {
    color: var(--cyan);
}

.rank-pill {
    display: inline-flex;
    min-width: 46px;
    justify-content: center;
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--yellow);
    background: rgba(250, 204, 21, 0.10);
    font-weight: 900;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--detail-image);
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    filter: blur(2px);
    transform: scale(1.04);
}

.detail-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.96));
}

.detail-hero__content {
    position: relative;
    z-index: 2;
    padding: 94px 0 58px;
}

.detail-hero__grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 36px;
    align-items: end;
}

.detail-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.24), rgba(59, 130, 246, 0.16));
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-poster span {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--yellow);
    background: rgba(2, 6, 23, 0.76);
    font-weight: 900;
}

.detail-info__line {
    max-width: 840px;
    margin: 0 0 18px;
    color: var(--muted-strong);
    font-size: 19px;
    line-height: 1.8;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta span {
    padding: 8px 12px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.66);
}

.tag-cloud {
    margin: 0 0 24px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: #000000;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.player-video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle, rgba(34, 211, 238, 0.22), transparent 34%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.36), rgba(2, 6, 23, 0.78));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.is-hidden {
    visibility: hidden;
    opacity: 0;
}

.player-overlay span {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 50px rgba(34, 211, 238, 0.32);
    font-size: 28px;
}

.player-overlay strong {
    font-size: 24px;
}

.player-overlay small {
    color: var(--muted-strong);
}

.player-status {
    position: absolute;
    right: 16px;
    bottom: 14px;
    margin: 0;
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(2, 6, 23, 0.72);
    font-size: 13px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.prose-card,
.info-card {
    padding: 26px;
}

.prose-card h2,
.info-card h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 26px;
}

.prose-card p {
    margin: 0 0 22px;
    color: var(--muted-strong);
    font-size: 17px;
    line-height: 1.9;
}

.info-card dl {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px 14px;
    margin: 0;
}

.info-card dt {
    color: var(--muted);
}

.info-card dd {
    margin: 0;
    color: #ffffff;
    line-height: 1.7;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.feature-grid div {
    padding: 18px;
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.36);
}

.feature-grid strong,
.feature-grid span {
    display: block;
}

.feature-grid span {
    margin-top: 6px;
    color: var(--muted);
}

.site-footer {
    margin-top: 82px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.70);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 30px;
    padding: 42px 0;
}

.site-footer p,
.site-footer a,
.site-footer li {
    color: var(--muted);
    line-height: 1.8;
}

.site-footer a:hover {
    color: var(--cyan);
}

.site-footer h3 {
    margin: 0 0 12px;
    color: #ffffff;
}

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

.brand--footer {
    margin-bottom: 12px;
}

@keyframes starPulse {
    0%, 100% {
        opacity: 0.15;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.8);
    }
}

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

    .filter-panel--search {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filter-panel__wide {
        grid-column: 1 / -1;
    }

    .two-column-layout,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }
}

@media (max-width: 860px) {
    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(2, 6, 23, 0.96);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        border-radius: 12px;
    }

    .hero-slide__content {
        grid-template-columns: 1fr;
        padding-top: 104px;
        text-align: center;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-actions,
    .detail-actions {
        justify-content: center;
    }

    .hero-feature {
        width: min(360px, 100%);
        min-height: 0;
        margin: 0 auto;
    }

    .hero-feature img {
        height: 240px;
    }

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

    .detail-poster {
        width: min(260px, 70vw);
    }

    .movie-grid,
    .movie-grid--featured,
    .movie-grid--wide,
    .poster-grid,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .container,
    .site-header__inner {
        width: min(100% - 22px, 1240px);
    }

    .brand__text {
        font-size: 18px;
    }

    .hero {
        min-height: 78vh;
    }

    .hero-copy__desc,
    .page-hero p,
    .detail-info__line {
        font-size: 16px;
    }

    .search-strip__form {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .movie-grid--featured,
    .movie-grid--wide,
    .poster-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .ranking-item {
        grid-template-columns: 34px 48px minmax(0, 1fr);
    }

    .ranking-item__score {
        display: none;
    }

    .player-overlay span {
        width: 62px;
        height: 62px;
    }

    .footer-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }
}
