:root {
    color-scheme: light;
    --bg: #f4f8ff;
    --surface: #ffffff;
    --surface-soft: #eef6ff;
    --text: #0f172a;
    --muted: #64748b;
    --line: rgba(37, 99, 235, 0.14);
    --blue: #2563eb;
    --cyan: #06b6d4;
    --deep: #0f1f45;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
    --radius: 24px;
    --max: 1800px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(6, 182, 212, 0.18), transparent 34rem),
        linear-gradient(135deg, #f8fbff 0%, #eef6ff 45%, #f7fbff 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.93);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(var(--max), calc(100% - 32px));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark,
.footer-brand span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.26);
}

.brand-text {
    display: grid;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 24px;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.nav-link {
    padding: 12px 18px;
    border-radius: 999px;
    color: #334155;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.nav-link:hover {
    transform: translateY(-1px);
    background: #eef6ff;
    color: var(--blue);
}

.nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: var(--blue);
    background: #e8f3ff;
    cursor: pointer;
}

.top-search {
    position: relative;
    width: min(310px, 22vw);
}

.top-search input,
.filter-card input {
    width: 100%;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    outline: 0;
    background: #f8fbff;
    color: var(--text);
    padding: 13px 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search input:focus,
.filter-card input:focus {
    border-color: rgba(37, 99, 235, 0.42);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.search-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(440px, 92vw);
    max-height: 520px;
    overflow: auto;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.search-panel.is-open {
    display: grid;
    gap: 8px;
}

.search-result {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.search-result:hover {
    background: #eef6ff;
    transform: translateX(2px);
}

.search-result img {
    width: 64px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #dbeafe, #e0f2fe);
}

.search-result strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text);
    font-size: 15px;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.search-result span {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

main {
    min-height: 60vh;
}

.hero-section {
    position: relative;
    width: min(var(--max), calc(100% - 32px));
    min-height: 84vh;
    margin: 0 auto;
    padding: 28px 0 54px;
    display: grid;
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
    gap: 24px;
    align-items: stretch;
}

.hero-copy-panel {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 620px;
    padding: clamp(28px, 4vw, 58px);
    border-radius: 34px;
    color: #fff;
    background:
        radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.45), transparent 20rem),
        linear-gradient(145deg, #0f1f45 0%, #1d4ed8 55%, #06b6d4 100%);
    box-shadow: var(--shadow);
}

.hero-copy-panel:before {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    pointer-events: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(14px);
}

.hero-copy-panel h1,
.page-hero h1 {
    margin: 24px 0 18px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-copy-panel p,
.page-hero p {
    margin: 0;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(16px, 1.45vw, 22px);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
    color: var(--blue);
    background: #fff;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.14);
}

.secondary-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.secondary-btn.dark {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.ghost-btn {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px);
}

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

.hero-card {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-radius: 34px;
    color: #fff;
    background: #dbeafe;
    box-shadow: var(--shadow);
    isolation: isolate;
}

.hero-card img,
.highlight-card img,
.category-tile img,
.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.hero-card:hover img,
.highlight-card:hover img,
.category-tile:hover img,
.movie-card:hover img,
.category-overview-card:hover img {
    transform: scale(1.08);
}

.hero-shade,
.highlight-overlay,
.category-tile span {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.04) 0%, rgba(15, 23, 42, 0.36) 36%, rgba(2, 6, 23, 0.94) 100%);
    z-index: 1;
}

.hero-label {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 2;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 13px;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.hero-card-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: clamp(22px, 3vw, 34px);
}

.hero-card-copy h2 {
    margin: 0 0 12px;
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(26px, 2.5vw, 42px);
    line-height: 1.12;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hero-card-copy p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hero-meta,
.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-meta span,
.movie-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 12px;
    font-weight: 800;
}

.hero-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    transform: translate(-50%, -50%);
    backdrop-filter: blur(14px);
    transition: transform 0.25s ease, background 0.25s ease;
}

.hero-card:hover .hero-play {
    transform: translate(-50%, -50%) scale(1.12);
    background: rgba(255, 255, 255, 0.28);
}

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

.soft-section {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100% - 1600px) / 2));
    padding-right: max(16px, calc((100% - 1600px) / 2));
    background: rgba(226, 239, 255, 0.68);
}

.section-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 28px;
}

.section-heading span {
    color: var(--blue);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
    line-height: 1.8;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 15px 45px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
}

.movie-card figure {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.movie-card-compact figure {
    aspect-ratio: 16 / 10;
}

.movie-card figure:after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent);
}

.movie-card figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.movie-type,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.movie-type {
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.rank-badge {
    top: 12px;
    right: 12px;
    min-width: 40px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.24);
}

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

.movie-card h3 {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.8em;
    margin: 0;
    color: #111827;
    font-size: 18px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

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

.movie-card p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.9em;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.movie-meta span {
    color: #475569;
    background: #eef6ff;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    color: #0369a1;
    background: #e0f2fe;
    font-size: 12px;
    font-weight: 800;
}

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

.highlight-card {
    position: relative;
    overflow: hidden;
    display: block;
    min-height: 500px;
    border-radius: 34px;
    color: #fff;
    box-shadow: var(--shadow);
    background: var(--deep);
}

.highlight-card div {
    position: absolute;
    left: clamp(24px, 5vw, 78px);
    right: clamp(24px, 5vw, 78px);
    bottom: clamp(24px, 5vw, 66px);
    z-index: 2;
    max-width: 820px;
}

.highlight-card h2 {
    margin: 18px 0 14px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.highlight-card p {
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.8;
}

.highlight-card strong {
    display: inline-flex;
    padding: 13px 22px;
    border-radius: 999px;
    color: var(--blue);
    background: #fff;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
}

.category-tile {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: 26px;
    border-radius: 28px;
    color: #fff;
    background: var(--deep);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

.category-tile strong,
.category-tile p {
    position: relative;
    z-index: 2;
}

.category-tile strong {
    font-size: 26px;
    line-height: 1;
}

.category-tile p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}

.full-ranking {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 340px);
    gap: 22px;
    overflow-x: auto;
    padding: 6px 2px 24px;
    scroll-snap-type: x proximity;
}

.scroll-row .movie-card {
    scroll-snap-align: start;
}

.center-actions {
    display: flex;
    justify-content: center;
    margin-top: 34px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    width: min(1600px, calc(100% - 32px));
    margin: 30px auto 0;
    padding: clamp(38px, 7vw, 88px);
    border-radius: 34px;
    color: #fff;
    background:
        radial-gradient(circle at 12% 20%, rgba(34, 211, 238, 0.45), transparent 18rem),
        linear-gradient(135deg, #0f1f45, #1d4ed8 62%, #06b6d4);
    box-shadow: var(--shadow);
}

.compact-hero h1,
.category-hero h1 {
    margin: 18px 0 14px;
    font-size: clamp(38px, 5vw, 68px);
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.chip-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 10px 16px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 800;
}

.chip-link.active {
    color: var(--blue);
    background: #fff;
}

.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

.category-overview-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 22px;
    min-height: 210px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-posters {
    position: relative;
    min-height: 170px;
}

.category-posters img {
    position: absolute;
    width: 104px;
    height: 150px;
    border: 5px solid #fff;
    border-radius: 18px;
    object-fit: cover;
    background: #dbeafe;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.14);
}

.category-posters img:nth-child(1) {
    left: 0;
    top: 18px;
    z-index: 3;
}

.category-posters img:nth-child(2) {
    left: 38px;
    top: 4px;
    z-index: 2;
}

.category-posters img:nth-child(3) {
    left: 76px;
    top: 30px;
    z-index: 1;
}

.category-overview-card h2 {
    margin: 12px 0 12px;
    font-size: 26px;
}

.category-overview-card p {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.7;
}

.category-overview-card span {
    color: var(--blue);
    font-weight: 900;
}

.filter-card {
    display: grid;
    grid-template-columns: auto minmax(240px, 520px);
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.07);
}

.filter-card label {
    color: var(--text);
    font-weight: 900;
}

.breadcrumb {
    width: min(1600px, calc(100% - 32px));
    margin: 30px auto 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 800;
}

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

.detail-hero {
    width: min(1600px, calc(100% - 32px));
    margin: 18px auto 0;
    display: grid;
    grid-template-columns: minmax(240px, 390px) minmax(0, 1fr);
    gap: 34px;
    align-items: stretch;
    padding: clamp(22px, 4vw, 44px);
    border-radius: 34px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.38), transparent 28rem),
        linear-gradient(135deg, #0f1f45, #172554 58%, #1d4ed8);
    box-shadow: var(--shadow);
}

.detail-cover {
    overflow: hidden;
    min-height: 520px;
    border-radius: 28px;
    background: #dbeafe;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28);
}

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-info h1 {
    margin: 24px 0 18px;
    font-size: clamp(36px, 5vw, 70px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-info p {
    max-width: 960px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.9;
}

.detail-meta span {
    background: rgba(255, 255, 255, 0.16);
}

.large-tags {
    margin-top: 22px;
}

.detail-actions .secondary-btn {
    background: rgba(255, 255, 255, 0.16);
}

.player-section,
.detail-content,
.related-section {
    width: min(1600px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.player-section {
    padding: 42px 0 22px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 32px;
    background: #020617;
    box-shadow: var(--shadow);
}

.player-shell video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #020617;
    object-fit: contain;
    z-index: 1;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.22), rgba(2, 6, 23, 0.76));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 55px rgba(2, 6, 23, 0.28);
}

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

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

.detail-content {
    display: grid;
    gap: 18px;
    margin-top: 28px;
    padding: clamp(26px, 4vw, 48px);
    border: 1px solid var(--line);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
}

.detail-content h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
}

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

.related-section {
    padding-bottom: 76px;
}

.site-footer {
    margin-top: 40px;
    color: #e0f2fe;
    background:
        radial-gradient(circle at top right, rgba(6, 182, 212, 0.22), transparent 30rem),
        linear-gradient(135deg, #0f172a, #172554 58%, #0f3b72);
}

.footer-grid {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 62px 0 42px;
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) 1fr 1fr;
    gap: 34px;
}

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

.site-footer p {
    max-width: 520px;
    color: #bfdbfe;
    line-height: 1.8;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.footer-bottom {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 34px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(191, 219, 254, 0.16);
    color: #bfdbfe;
}

@media (max-width: 1280px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .site-nav {
        order: 4;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .top-search {
        margin-left: auto;
        width: min(360px, 45vw);
    }

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

    .hero-copy-panel,
    .hero-card {
        min-height: 520px;
    }
}

@media (max-width: 860px) {
    .header-inner {
        min-height: 72px;
    }

    .brand-text strong {
        font-size: 20px;
    }

    .nav-toggle {
        display: grid;
        place-items: center;
        margin-left: auto;
    }

    .site-nav {
        display: none;
        order: 5;
        flex-direction: column;
        align-items: stretch;
        overflow: visible;
    }

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

    .nav-link {
        border-radius: 16px;
    }

    .top-search {
        order: 4;
        width: 100%;
    }

    .hero-section {
        width: min(100% - 20px, var(--max));
        padding-top: 14px;
    }

    .hero-copy-panel,
    .page-hero,
    .detail-hero,
    .highlight-card {
        border-radius: 24px;
    }

    .hero-copy-panel,
    .hero-card {
        min-height: 440px;
    }

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

    .content-section,
    .highlight-section,
    .player-section,
    .detail-content,
    .related-section,
    .breadcrumb,
    .page-hero,
    .detail-hero {
        width: min(100% - 20px, 1600px);
    }

    .movie-grid,
    .ranking-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

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

    .detail-cover {
        min-height: 440px;
    }

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

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .hero-copy-panel {
        min-height: 390px;
        padding: 26px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-btn,
    .secondary-btn,
    .ghost-btn {
        width: 100%;
    }

    .hero-card {
        min-height: 390px;
    }

    .movie-grid {
        gap: 18px;
    }

    .detail-cover {
        min-height: 360px;
    }

    .player-shell {
        border-radius: 20px;
    }
}
