:root {
    --site-pink: #ffb6c1;
    --site-blue: #87ceeb;
    --site-mint: #98d8c8;
    --site-peach: #ffdab9;
    --site-cream: #fff7ed;
    --site-ink: #1f2937;
    --site-muted: #667085;
    --site-soft: #f8fafc;
    --site-border: #eef2f7;
    --site-shadow: 0 18px 50px rgba(31, 41, 55, 0.11);
    --site-shadow-sm: 0 8px 24px rgba(31, 41, 55, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--site-ink);
    background:
        radial-gradient(circle at top left, rgba(255, 182, 193, 0.25), transparent 34rem),
        radial-gradient(circle at top right, rgba(135, 206, 235, 0.22), transparent 32rem),
        linear-gradient(180deg, #fff, #fffaf7 42%, #f8fbff);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

body.nav-open {
    overflow: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(238, 242, 247, 0.9);
    backdrop-filter: blur(18px);
}

.site-header-inner {
    max-width: 1240px;
    height: 76px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--site-ink);
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--site-pink), var(--site-blue));
    box-shadow: 0 10px 22px rgba(255, 182, 193, 0.48);
}

.brand-text {
    font-size: 22px;
    background: linear-gradient(135deg, #fb7185, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 15px;
    color: #4b5563;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fb7185;
    background: rgba(255, 182, 193, 0.16);
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(340px, 30vw);
}

.header-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--site-ink);
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    padding: 11px 16px;
}

.header-search button {
    padding: 10px 16px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #fb7185, #38bdf8);
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(251, 113, 133, 0.25);
}

.header-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--site-pink);
    box-shadow: 0 0 0 4px rgba(255, 182, 193, 0.2);
}

.mobile-nav-button {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #fff;
    color: var(--site-ink);
    box-shadow: var(--site-shadow-sm);
}

.hero-carousel {
    max-width: 1240px;
    margin: 32px auto 0;
    padding: 0 22px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 22px;
}

.hero-track {
    min-height: 560px;
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: #111827;
    box-shadow: var(--site-shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    padding: clamp(32px, 6vw, 72px);
    display: flex;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.5s ease, transform 0.7s ease;
    background-image:
        linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.38), rgba(17, 24, 39, 0.18)),
        var(--hero-image);
    background-position: center;
    background-size: cover;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 28% 22%, rgba(255, 182, 193, 0.24), transparent 24rem);
}

.hero-content {
    width: min(720px, 100%);
    position: relative;
    z-index: 2;
    color: #fff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    color: #fb7185;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content .eyebrow,
.detail-info .eyebrow {
    color: #ffe4e8;
}

.hero-content h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 660px;
    margin: 0 0 20px;
    font-size: 17px;
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.88);
}

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

.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: inherit;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.movie-tags .tag-pill,
.detail-text-block .tag-pill {
    color: #fb7185;
    background: rgba(255, 182, 193, 0.14);
}

.hero-actions,
.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

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

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, #fb7185, #38bdf8);
    box-shadow: 0 16px 34px rgba(251, 113, 133, 0.28);
}

.ghost-button {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(8px);
}

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(31, 41, 55, 0.14);
}

.hero-controls {
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 28px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.hero-controls button {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-size: 28px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
}

.hero-dot.is-active {
    width: 28px;
    background: #fff;
}

.hero-panel {
    min-height: 560px;
    padding: 28px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--site-shadow-sm);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.82);
}

.hero-panel h2 {
    margin: 0 0 18px;
    font-size: 28px;
    font-weight: 900;
}

.hero-panel-list,
.compact-list {
    display: grid;
    gap: 12px;
}

.compact-card {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(31, 41, 55, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--site-shadow-sm);
}

.compact-card img {
    width: 64px;
    height: 82px;
    object-fit: cover;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--site-pink), var(--site-blue));
}

.compact-card strong,
.compact-card em {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-card strong {
    color: var(--site-ink);
    font-size: 14px;
}

.compact-card em {
    margin-top: 4px;
    color: var(--site-muted);
    font-size: 12px;
    font-style: normal;
}

.rank-index {
    position: absolute;
    top: 4px;
    left: 4px;
    z-index: 2;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #fb7185, #38bdf8);
    font-size: 12px;
    font-weight: 900;
}

.hero-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.hero-category-pills a {
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(135, 206, 235, 0.16);
    color: #2563eb;
    font-size: 12px;
    font-weight: 800;
}

.feature-strip,
.content-section,
.detail-layout,
.site-footer .footer-grid,
.footer-bottom {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 22px;
    padding-right: 22px;
}

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

.feature-box {
    padding: 24px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--site-shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.feature-box strong {
    display: block;
    margin-bottom: 6px;
    font-size: 20px;
    font-weight: 900;
}

.feature-box span {
    color: var(--site-muted);
}

.content-section {
    padding-top: 72px;
    padding-bottom: 8px;
}

.soft-section,
.ranking-section {
    max-width: none;
    padding-left: max(22px, calc((100vw - 1240px) / 2 + 22px));
    padding-right: max(22px, calc((100vw - 1240px) / 2 + 22px));
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.08), rgba(135, 206, 235, 0.08));
}

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

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

.section-more {
    color: #fb7185;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

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

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

.movie-card-link {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--site-shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.72);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-poster {
    position: relative;
    aspect-ratio: 3 / 4.1;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.3), rgba(135, 206, 235, 0.28));
}

.movie-card-featured .movie-poster {
    aspect-ratio: 16 / 10;
}

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

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

.score-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(17, 24, 39, 0.72);
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.movie-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

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

.movie-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
    color: var(--site-ink);
}

.movie-card p {
    margin: 0;
    color: var(--site-muted);
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-tile,
.category-overview-card {
    min-height: 190px;
    position: relative;
    overflow: hidden;
    padding: 24px;
    display: flex;
    align-items: flex-end;
    border-radius: 28px;
    color: #fff;
    background-image:
        linear-gradient(180deg, rgba(17, 24, 39, 0.16), rgba(17, 24, 39, 0.82)),
        var(--tile-image);
    background-position: center;
    background-size: cover;
    box-shadow: var(--site-shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--site-shadow);
}

.category-tile span,
.category-overview-card h2 {
    display: block;
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 900;
}

.category-tile p,
.category-overview-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    line-height: 1.7;
}

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

.category-overview-card {
    min-height: 260px;
}

.page-hero {
    max-width: 1240px;
    margin: 32px auto 0;
    padding: 74px 22px;
    border-radius: 0 0 36px 36px;
}

.page-hero > div {
    max-width: 760px;
    padding: 46px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--site-shadow-sm);
    backdrop-filter: blur(16px);
}

.page-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.page-hero p {
    margin: 0;
    color: var(--site-muted);
    font-size: 17px;
    line-height: 1.9;
}

.category-page-hero,
.search-hero,
.ranking-hero {
    background:
        radial-gradient(circle at 12% 14%, rgba(255, 182, 193, 0.38), transparent 22rem),
        radial-gradient(circle at 82% 28%, rgba(135, 206, 235, 0.34), transparent 24rem),
        linear-gradient(135deg, rgba(255, 247, 237, 0.88), rgba(248, 251, 255, 0.96));
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px;
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--site-shadow-sm);
    backdrop-filter: blur(14px);
}

.filter-bar input,
.filter-bar select {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 16px;
}

.search-item.is-hidden {
    display: none;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--site-shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--site-shadow);
}

.ranking-number {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #fb7185, #38bdf8);
    font-weight: 900;
}

.ranking-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 900;
}

.ranking-meta {
    color: var(--site-muted);
    font-size: 13px;
    white-space: nowrap;
}

.detail-hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    color: #fff;
    background-image:
        linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.58), rgba(17, 24, 39, 0.28)),
        var(--detail-image);
    background-position: center;
    background-size: cover;
}

.detail-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 18%, rgba(255, 182, 193, 0.24), transparent 28rem);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    margin: 0 auto;
    padding: 46px 22px 64px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #fff;
}

.detail-hero-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
    background: rgba(255, 255, 255, 0.12);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4.1;
    object-fit: cover;
}

.detail-info h1 {
    margin: 0 0 18px;
    max-width: 860px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.detail-info p {
    max-width: 820px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.85;
}

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

.detail-stats span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

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

.player-card,
.sidebar-card {
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--site-shadow-sm);
    overflow: hidden;
}

.player-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
}

.player-title-row h2,
.detail-text-block h2,
.sidebar-card h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
}

.small-button {
    min-height: 38px;
    padding: 0 16px;
    color: #fb7185;
    background: rgba(255, 182, 193, 0.14);
    border-color: rgba(255, 182, 193, 0.24);
}

.player-frame {
    position: relative;
    background: #020617;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.player-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #020617;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.player-start {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 86px;
    height: 86px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #fb7185, #38bdf8);
    box-shadow: 0 24px 56px rgba(251, 113, 133, 0.32);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-start span {
    margin-left: 6px;
    font-size: 34px;
}

.player-start:hover {
    transform: translate(-50%, -50%) scale(1.06);
}

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

.detail-text-block {
    padding: 28px;
    border-top: 1px solid var(--site-border);
}

.detail-text-block p {
    margin: 14px 0 0;
    color: #4b5563;
    font-size: 16px;
    line-height: 2;
}

.detail-meta-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0 28px 28px;
    overflow: hidden;
    border-radius: 22px;
    background: var(--site-border);
}

.detail-meta-table div {
    padding: 16px;
    background: rgba(248, 250, 252, 0.96);
}

.detail-meta-table strong,
.detail-meta-table span {
    display: block;
}

.detail-meta-table strong {
    margin-bottom: 4px;
    color: #94a3b8;
    font-size: 12px;
}

.detail-meta-table span {
    color: var(--site-ink);
    font-weight: 800;
}

.detail-sidebar {
    position: relative;
}

.sidebar-card {
    position: sticky;
    top: 100px;
    padding: 22px;
}

.sidebar-card h2 {
    margin-bottom: 18px;
}

.related-section {
    padding-top: 52px;
    padding-bottom: 72px;
}

.site-footer {
    margin-top: 72px;
    padding-top: 48px;
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.1), rgba(135, 206, 235, 0.1));
    border-top: 1px solid var(--site-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 28px;
    padding-bottom: 36px;
}

.footer-grid h3 {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 900;
}

.footer-grid p,
.footer-grid a {
    display: block;
    margin: 8px 0;
    color: var(--site-muted);
    font-size: 14px;
    line-height: 1.8;
}

.footer-grid a:hover {
    color: #fb7185;
}

.footer-bottom {
    padding-top: 20px;
    padding-bottom: 28px;
    border-top: 1px solid rgba(229, 231, 235, 0.8);
    color: #94a3b8;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .hero-carousel,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        min-height: auto;
    }

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

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

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

@media (max-width: 860px) {
    .site-header-inner {
        height: auto;
        min-height: 68px;
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .site-nav {
        order: 4;
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 20px;
        background: #fff;
        box-shadow: var(--site-shadow-sm);
    }

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

    .nav-link {
        padding: 12px 14px;
    }

    .header-search {
        margin-left: auto;
        width: min(420px, calc(100% - 70px));
        order: 2;
    }

    .mobile-nav-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        order: 3;
    }

    .hero-track {
        min-height: 620px;
    }

    .hero-slide {
        align-items: center;
        padding: 30px;
    }

    .hero-controls {
        left: 20px;
        right: 20px;
        justify-content: center;
    }

    .feature-strip,
    .movie-grid,
    .featured-grid,
    .category-grid,
    .category-overview-grid,
    .ranking-grid,
    .detail-hero-grid,
    .filter-bar {
        grid-template-columns: 1fr;
    }

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

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

    .ranking-meta {
        grid-column: 2;
    }
}

@media (max-width: 560px) {
    .brand-text {
        font-size: 18px;
    }

    .header-search {
        width: 100%;
        order: 5;
    }

    .hero-carousel,
    .feature-strip,
    .content-section,
    .detail-layout,
    .site-footer .footer-grid,
    .footer-bottom,
    .detail-hero-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-track,
    .hero-panel,
    .page-hero > div,
    .movie-card-link,
    .player-card,
    .sidebar-card {
        border-radius: 22px;
    }

    .hero-content h1,
    .detail-info h1 {
        letter-spacing: -0.04em;
    }

    .page-hero {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .page-hero > div {
        padding: 26px;
    }

    .detail-meta-table,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
