
:root {
    color-scheme: light;
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --emerald: #10b981;
    --teal: #0d9488;
    --cyan: #0891b2;
    --orange: #f97316;
    --red: #dc2626;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 52%, #f8fafc 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header-home {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

.site-header-solid,
.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #ffffff;
    font-size: 21px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.35);
    transform: translateZ(0);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark,
.footer-brand:hover .brand-mark {
    transform: scale(1.08);
}

.brand-copy {
    display: grid;
    line-height: 1.15;
}

.brand-copy strong {
    font-size: 20px;
    letter-spacing: 0.02em;
}

.brand-copy small {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.82;
}

.site-header-home:not(.is-scrolled) .brand-copy,
.site-header-home:not(.is-scrolled) .desktop-nav a,
.site-header-home:not(.is-scrolled) .mobile-menu-button {
    color: #ffffff;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 15px;
    border-radius: 12px;
    color: #334155;
    font-size: 15px;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    transform: translateY(-1px);
}

.site-header-home:not(.is-scrolled) .nav-link:hover,
.site-header-home:not(.is-scrolled) .nav-link.active {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-menu-button.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-button.is-open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 14px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--soft-shadow);
}

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.75s ease;
}

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

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(16, 185, 129, 0.34), rgba(16, 185, 129, 0) 30%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.62) 43%, rgba(2, 6, 23, 0.24) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.2) 50%, rgba(2, 6, 23, 0.48) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 118px 0 260px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    color: #ffffff;
}

.hero-labels,
.hero-tags,
.detail-tags,
.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-labels span,
.hero-tags span,
.detail-tags span,
.movie-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-labels span:first-child,
.detail-tags span:first-child,
.movie-tags span:first-child {
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
}

.hero-labels span:not(:first-child),
.hero-tags span {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.hero-content h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(44px, 7vw, 92px);
    line-height: 0.96;
    letter-spacing: -0.06em;
    font-weight: 900;
    text-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(18px, 2.1vw, 25px);
    line-height: 1.7;
}

.hero-actions,
.section-heading,
.footer-bottom,
.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 26px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    box-shadow: 0 16px 40px rgba(16, 185, 129, 0.32);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 224px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 42px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 72px;
    background: #ffffff;
}

.hero-search-card {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 38px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: minmax(280px, 420px) 1fr;
    gap: 18px;
    align-items: stretch;
}

.hero-search-card form,
.filter-panel {
    display: flex;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-search-card label,
.search-box {
    flex: 1;
    display: grid;
    gap: 6px;
}

.hero-search-card label span,
.search-box span {
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.hero-search-card input,
.filter-panel input,
.filter-select {
    width: 100%;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--text);
    background: #ffffff;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.hero-search-card input:focus,
.filter-panel input:focus,
.filter-select:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.13);
}

.hero-search-card button[type="submit"] {
    align-self: end;
    height: 46px;
    border: 0;
    border-radius: 14px;
    padding: 0 18px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    cursor: pointer;
}

.hero-thumb-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.content-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.section-heading {
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-heading span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--teal);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

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

.section-heading a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--teal);
    font-weight: 800;
    background: #ecfdf5;
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--soft-shadow);
    isolation: isolate;
    transform: translateZ(0);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-tile span {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.82));
    z-index: 1;
}

.category-tile strong,
.category-tile em {
    position: relative;
    z-index: 2;
    display: block;
    color: #ffffff;
}

.category-tile strong {
    margin: 130px 18px 6px;
    font-size: 20px;
    font-weight: 900;
}

.category-tile em {
    margin: 0 18px 18px;
    font-size: 13px;
    line-height: 1.55;
    font-style: normal;
    color: rgba(255, 255, 255, 0.82);
}

.category-tile:hover img {
    transform: scale(1.12);
}

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

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

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

.movie-card {
    min-width: 0;
}

.movie-card[hidden],
.movie-card.is-hidden {
    display: none;
}

.movie-card-link {
    height: 100%;
    display: grid;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--soft-shadow);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card-link:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #334155);
}

.movie-card:not(.movie-card-compact) .poster-wrap {
    aspect-ratio: 16 / 10;
}

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

.movie-card-link:hover img {
    transform: scale(1.1);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0), rgba(2, 6, 23, 0.72));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--teal);
    background: rgba(255, 255, 255, 0.92);
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card-link:hover .poster-shade,
.movie-card-link:hover .poster-play {
    opacity: 1;
}

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

.movie-card-body {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.movie-card-compact .movie-card-body {
    padding: 14px;
}

.movie-tags span,
.detail-tags span {
    color: #0f766e;
    background: #ecfdf5;
}

.movie-card-body strong {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
    color: var(--text);
}

.movie-card-compact .movie-card-body strong {
    font-size: 15px;
}

.movie-card-body em {
    min-height: 44px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    font-style: normal;
}

.movie-card-compact .movie-card-body em {
    display: none;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.movie-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--surface-soft);
}

.ranking-band {
    background: linear-gradient(135deg, #ecfdf5, #f0fdfa 48%, #ecfeff);
}

.ranking-inner {
    padding-top: 64px;
    padding-bottom: 64px;
}

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

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

.mini-card {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 16px;
    align-items: stretch;
    min-height: 146px;
    overflow: hidden;
    padding: 12px;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.mini-poster {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    background: #0f172a;
}

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

.rank-number {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.38);
}

.mini-copy {
    display: grid;
    align-content: center;
    gap: 7px;
    min-width: 0;
}

.mini-copy strong {
    color: var(--text);
    font-size: 17px;
    line-height: 1.3;
    font-weight: 900;
}

.mini-copy em,
.mini-copy span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    font-style: normal;
}

.subpage {
    padding-top: 76px;
}

.page-hero {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    display: grid;
    align-items: center;
    color: #ffffff;
    background:
        radial-gradient(circle at 78% 18%, rgba(16, 185, 129, 0.28), rgba(16, 185, 129, 0) 28%),
        linear-gradient(135deg, #020617, #0f766e);
}

.page-hero.small-hero {
    min-height: 360px;
}

.page-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.36));
}

.page-hero > div {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    gap: 16px;
    justify-items: start;
}

.page-hero span {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
}

.page-hero h1 {
    max-width: 850px;
    margin: 0;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

.filter-panel {
    align-items: end;
    margin-bottom: 28px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
}

.filter-controls {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 10px;
    flex: 2;
}

.empty-state {
    margin: 28px 0 0;
    padding: 28px;
    border-radius: var(--radius-md);
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

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

.category-card-large a {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    align-items: center;
    min-height: 220px;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card-large a:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-mosaic {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    overflow: hidden;
    border-radius: 18px;
}

.category-mosaic img {
    width: 100%;
    height: 92px;
    object-fit: cover;
}

.category-copy {
    display: grid;
    gap: 10px;
}

.category-copy strong {
    font-size: 26px;
    font-weight: 900;
}

.category-copy em {
    color: var(--muted);
    font-style: normal;
    line-height: 1.75;
}

.detail-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 0;
}

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

.breadcrumbs a {
    color: #0f766e;
    font-weight: 800;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
}

.detail-main {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.player-card,
.detail-content,
.side-poster-card,
.side-card-list {
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.player-card {
    overflow: hidden;
    background: #000000;
}

.movie-player {
    position: relative;
    background: #000000;
}

.player-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 28px;
    border: 0;
    color: #ffffff;
    text-align: center;
    cursor: pointer;
    background:
        radial-gradient(circle at 50% 45%, rgba(16, 185, 129, 0.22), rgba(16, 185, 129, 0) 32%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.82));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.movie-player.is-playing .player-cover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-orb {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--teal);
    font-size: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.32);
}

.player-cover strong {
    max-width: 720px;
    font-size: clamp(24px, 4vw, 46px);
    line-height: 1.1;
}

.player-cover em {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
    line-height: 1.65;
}

.detail-content {
    padding: 28px;
}

.detail-content h1 {
    margin: 18px 0 12px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.detail-content .lead {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta {
    align-items: stretch;
    margin: 0 0 28px;
    padding: 0;
}

.detail-meta div {
    min-width: 128px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--surface-soft);
}

.detail-meta dt {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.detail-meta dd {
    margin: 0;
    color: var(--text);
    font-weight: 900;
}

.detail-meta a {
    color: #0f766e;
}

.detail-content h2,
.side-card-list h2 {
    margin: 28px 0 12px;
    font-size: 24px;
    line-height: 1.3;
}

.detail-content p {
    margin: 0 0 16px;
    color: #334155;
    font-size: 16px;
    line-height: 1.9;
}

.detail-side {
    display: grid;
    align-content: start;
    gap: 22px;
}

.side-poster-card {
    overflow: hidden;
}

.side-poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.side-poster-card strong,
.side-poster-card span {
    display: block;
    margin: 16px 18px 0;
}

.side-poster-card strong {
    font-size: 20px;
    font-weight: 900;
}

.side-poster-card span {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

.side-card-list {
    padding: 18px;
}

.side-card-list h2 {
    margin-top: 0;
}

.side-card-list .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.related-section {
    padding-top: 54px;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #1e293b 52%, #0f172a);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 58px 0 38px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 42px;
}

.footer-brand {
    color: #ffffff;
    font-size: 22px;
}

.site-footer p {
    max-width: 480px;
    color: #94a3b8;
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: #94a3b8;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #5eead4;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    justify-content: space-between;
    padding: 24px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.24);
    color: #94a3b8;
    font-size: 14px;
}

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

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

    .hero-search-card,
    .detail-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .side-poster-card {
        display: none;
    }
}

@media (max-width: 820px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: inline-block;
    }

    .header-inner {
        height: 68px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand-copy strong {
        font-size: 18px;
    }

    .brand-copy small {
        display: none;
    }

    .hero-content {
        padding-top: 96px;
        padding-bottom: 360px;
    }

    .hero-dots {
        bottom: 304px;
    }

    .hero-search-card {
        bottom: 20px;
    }

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

    .hero-search-card form,
    .filter-panel {
        flex-direction: column;
    }

    .filter-controls {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .category-grid,
    .category-large-grid,
    .movie-grid,
    .featured-grid,
    .compact-grid,
    .library-grid,
    .ranking-list,
    .ranking-list-wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .category-card-large a {
        grid-template-columns: 1fr;
    }

    .category-mosaic img {
        height: 118px;
    }

    .mini-card {
        grid-template-columns: 92px 1fr;
    }

    .content-section {
        padding: 54px 0;
    }

    .page-hero {
        min-height: 340px;
    }

    .detail-content {
        padding: 22px;
    }

    .side-card-list .compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .header-inner,
    .content-section,
    .detail-shell,
    .footer-grid,
    .footer-bottom,
    .page-hero > div,
    .hero-content,
    .hero-dots,
    .hero-search-card {
        width: min(100% - 24px, 1180px);
    }

    .hero-content h1 {
        font-size: 42px;
    }

    .hero-content p,
    .page-hero p,
    .detail-content .lead {
        font-size: 16px;
    }

    .category-grid,
    .category-large-grid,
    .movie-grid,
    .featured-grid,
    .compact-grid,
    .library-grid,
    .ranking-list,
    .ranking-list-wide,
    .side-card-list .compact-grid {
        grid-template-columns: 1fr;
    }

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

    .movie-card:not(.movie-card-compact) .poster-wrap {
        aspect-ratio: 3 / 4;
    }

    .movie-card-body {
        padding: 14px;
    }

    .mini-card {
        min-height: 132px;
    }

    .footer-bottom {
        align-items: flex-start;
    }
}
