:root {
    --mist-50: #f8fafc;
    --mist-100: #f1f5f9;
    --mist-200: #e2e8f0;
    --mist-300: #cbd5e1;
    --mist-400: #94a3b8;
    --mist-500: #64748b;
    --mist-600: #475569;
    --mist-700: #334155;
    --mist-800: #1e293b;
    --mist-900: #0f172a;
    --mineral-50: #fff7ed;
    --mineral-100: #ffedd5;
    --mineral-200: #fed7aa;
    --mineral-500: #f97316;
    --mineral-600: #ea580c;
    --mineral-700: #c2410c;
    --moss-50: #f0fdf4;
    --moss-600: #16a34a;
    --earth-50: #fefce8;
    --earth-600: #ca8a04;
    --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 14px 34px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.18);
    --radius-md: 14px;
    --radius-lg: 22px;
    color-scheme: light;
}

* {
    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(--mist-800);
    background: var(--mist-50);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--mist-800), var(--mist-700));
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}

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

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

.brand-mark,
.footer-logo span {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: var(--mineral-600);
    box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.16);
    font-size: 14px;
}

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

.nav-link,
.nav-dropdown-button {
    border: 0;
    color: var(--mist-100);
    padding: 9px 13px;
    border-radius: 10px;
    background: transparent;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-dropdown:hover .nav-dropdown-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 190px;
    padding: 8px;
    border-radius: 14px;
    background: #ffffff;
    color: var(--mist-800);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
}

.nav-dropdown-panel a:hover {
    color: var(--mineral-700);
    background: var(--mineral-50);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 14px;
}

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

.mobile-nav-link {
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--mist-100);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(255, 255, 255, 0.12);
}

main {
    min-height: 60vh;
}

.hero {
    position: relative;
    background: var(--mist-900);
}

.hero-copy-static {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.hero-viewport {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.5s ease, transform 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-content {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    color: #ffffff;
    position: relative;
    z-index: 2;
}

.hero-kicker {
    display: inline-flex;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(234, 88, 12, 0.85);
    font-size: 14px;
    margin-bottom: 16px;
}

.hero-content h2 {
    max-width: 760px;
    margin: 0 0 16px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.hero-content p {
    max-width: 660px;
    margin: 0 0 18px;
    color: var(--mist-100);
    font-size: 18px;
}

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

.hero-tags span,
.tag-row span,
.detail-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
    font-size: 12px;
}

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

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

.primary-button,
.page-actions a:first-child {
    color: #ffffff;
    background: var(--mineral-600);
    box-shadow: 0 14px 28px rgba(234, 88, 12, 0.28);
}

.ghost-button,
.page-actions a + a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.primary-button:hover,
.ghost-button:hover,
.page-actions a:hover {
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.46);
    transform: translateY(-50%);
    font-size: 32px;
    line-height: 1;
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
}

.hero-dots button.active {
    width: 28px;
    background: #ffffff;
}

.hero-search {
    position: absolute;
    z-index: 4;
    right: calc((100% - min(1180px, calc(100% - 32px))) / 2);
    bottom: 88px;
    display: flex;
    width: min(390px, calc(100% - 32px));
    padding: 6px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
}

.hero-search input,
.filter-panel input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 0 14px;
    color: var(--mist-800);
}

.hero-search button,
.search-panel button {
    border: 0;
    border-radius: 13px;
    color: #ffffff;
    background: var(--mineral-600);
    padding: 10px 16px;
    font-weight: 700;
}

.hero-mini-list {
    position: absolute;
    z-index: 4;
    right: calc((100% - min(1180px, calc(100% - 32px))) / 2);
    top: 118px;
    display: grid;
    gap: 10px;
    width: 300px;
}

.hero-mini-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.hero-mini-list span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-mini-list strong {
    color: var(--mineral-200);
    font-size: 13px;
}

.section {
    padding: 64px 0;
}

.section-white {
    background: #ffffff;
}

.section-light {
    background: var(--mist-50);
}

.section-inner,
.detail-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.section-inner.narrow {
    width: min(940px, calc(100% - 32px));
}

.section-heading {
    margin-bottom: 28px;
}

.section-heading h2,
.page-hero h1,
.detail-main h1 {
    margin: 0 0 8px;
    color: var(--mist-900);
    line-height: 1.2;
    letter-spacing: -0.03em;
    font-weight: 900;
}

.section-heading h2 {
    font-size: clamp(26px, 3vw, 36px);
}

.section-heading p,
.page-hero p {
    margin: 0;
    color: var(--mist-600);
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-frame {
    position: relative;
    display: block;
    height: 260px;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.35), transparent 30%),
        linear-gradient(135deg, var(--mist-800), var(--mist-600));
}

.movie-card.compact .poster-frame {
    height: 190px;
}

.poster-frame img,
.side-poster img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

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

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

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.92);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.25s ease;
}

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

.corner-badge,
.year-badge {
    position: absolute;
    top: 12px;
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: 3px 9px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
}

.corner-badge {
    left: 12px;
    background: rgba(234, 88, 12, 0.92);
}

.year-badge {
    right: 12px;
    background: rgba(15, 23, 42, 0.7);
}

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

.movie-card-body h3 {
    margin: 0 0 8px;
    color: var(--mist-900);
    font-size: 17px;
    line-height: 1.35;
}

.movie-card-body h3 a:hover {
    color: var(--mineral-600);
}

.movie-card-body p {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--mist-600);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--mist-500);
    font-size: 12px;
}

.tag-row span {
    color: var(--mineral-700);
    background: var(--mineral-50);
}

.rail-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.rail-controls {
    display: flex;
    gap: 10px;
}

.rail-controls button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    color: var(--mist-700);
    background: var(--mist-200);
    font-size: 26px;
    line-height: 1;
}

.movie-rail {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 4px 2px 18px;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.rail-item {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

.ranking-strip,
.category-section {
    background: linear-gradient(135deg, var(--mineral-50), var(--moss-50));
}

.ranking-layout {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 24px;
}

.ranking-lead {
    min-height: 430px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    color: #ffffff;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.ranking-lead span {
    width: fit-content;
    margin-bottom: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(234, 88, 12, 0.9);
}

.ranking-lead h3 {
    margin: 0 0 10px;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.1;
}

.ranking-lead p {
    margin: 0;
    color: var(--mist-100);
}

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

.rank-row {
    min-height: 58px;
    padding: 10px 14px;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 12px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.rank-row:hover {
    color: var(--mineral-700);
}

.rank-number {
    color: var(--mineral-600);
    font-weight: 900;
    font-size: 18px;
}

.rank-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 700;
}

.rank-meta {
    color: var(--mist-500);
    font-size: 13px;
}

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

.category-tile {
    min-height: 190px;
    padding: 22px;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile span,
.category-feature span,
.page-hero span {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 4px 11px;
    border-radius: 999px;
    color: var(--mineral-700);
    background: var(--mineral-100);
    font-weight: 800;
    font-size: 13px;
}

.category-tile h3 {
    margin: 0 0 8px;
    color: var(--mist-900);
    font-size: 20px;
}

.category-tile p {
    margin: 0;
    color: var(--mist-600);
    font-size: 14px;
}

.page-hero {
    background: #ffffff;
}

.compact-hero,
.ranking-hero {
    padding: 72px 0;
}

.ranking-hero {
    background-size: cover;
    background-position: center;
}

.page-hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.page-hero h1 {
    font-size: clamp(34px, 5vw, 56px);
}

.ranking-hero h1,
.ranking-hero p {
    color: #ffffff;
}

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

.category-feature {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 26px;
    border-radius: var(--radius-lg);
    color: #ffffff;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-md);
}

.category-feature span {
    color: #ffffff;
    background: rgba(234, 88, 12, 0.88);
}

.category-feature h2 {
    margin: 0 0 10px;
    font-size: 30px;
}

.category-feature p {
    margin: 0;
    color: var(--mist-100);
}

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.filter-panel input {
    min-height: 44px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chips button {
    min-height: 36px;
    border: 0;
    border-radius: 999px;
    padding: 0 13px;
    color: var(--mist-700);
    background: var(--mist-100);
}

.filter-chips button:hover,
.filter-chips button.active {
    color: #ffffff;
    background: var(--mineral-600);
}

.search-panel button {
    min-height: 42px;
    border: 0;
}

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

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

.ranking-page-row {
    display: grid;
    grid-template-columns: 54px 74px 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 88px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-page-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.ranking-page-number {
    color: var(--mineral-600);
    font-weight: 900;
    font-size: 20px;
}

.ranking-page-cover {
    width: 74px;
    height: 62px;
    border-radius: 12px;
    background:
        radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.35), transparent 30%),
        linear-gradient(135deg, var(--mist-800), var(--mist-600));
    background-size: cover;
    background-position: center;
}

.ranking-page-info strong,
.ranking-page-info em {
    display: block;
}

.ranking-page-info strong {
    color: var(--mist-900);
    font-size: 17px;
}

.ranking-page-info em {
    color: var(--mist-500);
    font-style: normal;
    font-size: 13px;
}

.ranking-page-action {
    color: var(--mineral-700);
    font-weight: 800;
}

.player-section {
    background: #000000;
}

.player-shell {
    position: relative;
    width: min(1180px, 100%);
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(circle at center, rgba(249, 115, 22, 0.18), transparent 36%),
        #000000;
}

.movie-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
}

.video-play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 999px;
    padding: 14px 22px;
    color: #ffffff;
    background: rgba(234, 88, 12, 0.94);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.video-play-button span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.video-play-button.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.video-play-button:hover {
    transform: translate(-50%, -50%) scale(1.04);
}

.player-message {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 4;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.player-message:not(:empty) {
    opacity: 1;
}

.detail-wrap {
    padding: 36px 0 70px;
}

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

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

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

.detail-main,
.side-card {
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.detail-main {
    padding: 28px;
}

.detail-main h1 {
    font-size: clamp(28px, 4vw, 42px);
}

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

.detail-meta span {
    padding: 5px 11px;
    border-radius: 999px;
    color: var(--mist-600);
    background: var(--mist-100);
    font-size: 13px;
}

.detail-one-line {
    margin: 0 0 26px;
    padding: 18px;
    border-left: 5px solid var(--mineral-600);
    border-radius: 12px;
    color: var(--mist-800);
    background: var(--mineral-50);
    font-weight: 700;
}

.detail-section {
    margin-top: 28px;
}

.detail-section h2,
.side-card h2 {
    margin: 0 0 12px;
    color: var(--mist-900);
    font-size: 21px;
}

.detail-section p {
    margin: 0;
    color: var(--mist-700);
}

.detail-tags a {
    color: var(--mineral-700);
    background: var(--mineral-50);
}

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

.side-card {
    padding: 20px;
}

.side-poster {
    height: 430px;
    overflow: hidden;
    border-radius: 14px;
    background:
        radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.35), transparent 30%),
        linear-gradient(135deg, var(--mist-800), var(--mist-600));
    margin-bottom: 16px;
}

.poster-card p {
    color: var(--mist-600);
    margin: 0 0 12px;
}

.poster-card > a {
    display: inline-flex;
    color: var(--mineral-700);
    font-weight: 800;
}

.side-related {
    display: grid;
    gap: 14px;
}

.side-related .movie-card {
    display: grid;
    grid-template-columns: 118px 1fr;
}

.side-related .poster-frame {
    height: 100%;
    min-height: 128px;
}

.side-related .movie-card-body {
    padding: 12px;
}

.side-related .tag-row {
    display: none;
}

.site-footer {
    color: var(--mist-100);
    background: linear-gradient(180deg, var(--mist-800), var(--mist-900));
}

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

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-weight: 900;
    font-size: 20px;
}

.footer-brand p {
    max-width: 480px;
    margin: 0;
    color: var(--mist-300);
    font-size: 14px;
}

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

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

.footer-links a {
    color: var(--mist-300);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--mineral-200);
}

.footer-copy {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--mist-400);
    text-align: center;
    font-size: 13px;
}

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

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

    .hero-mini-list {
        display: none;
    }

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

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

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

    .menu-toggle {
        display: inline-flex;
    }

    .hero-viewport {
        height: 560px;
    }

    .hero-content h2 {
        font-size: 34px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-search {
        left: 16px;
        right: 16px;
        bottom: 72px;
        width: auto;
    }

    .hero-arrow {
        display: none;
    }

    .section {
        padding: 46px 0;
    }

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

    .poster-frame {
        height: 220px;
    }

    .ranking-layout,
    .category-feature-grid,
    .footer-inner,
    .detail-side {
        grid-template-columns: 1fr;
    }

    .ranking-lead {
        min-height: 330px;
    }

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

    .ranking-page-row {
        grid-template-columns: 42px 60px 1fr;
    }

    .ranking-page-action {
        display: none;
    }

    .side-related .movie-card {
        grid-template-columns: 108px 1fr;
    }
}

@media (max-width: 520px) {
    .header-inner {
        width: min(100% - 22px, 1180px);
    }

    .brand-text {
        font-size: 18px;
    }

    .hero-viewport {
        height: 600px;
    }

    .hero-content {
        width: min(100% - 28px, 1180px);
    }

    .hero-actions,
    .page-actions {
        display: grid;
    }

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

    .poster-frame {
        height: 280px;
    }

    .rail-item {
        flex-basis: 240px;
    }

    .filter-panel,
    .search-panel {
        display: grid;
    }

    .filter-panel input {
        width: 100%;
    }

    .detail-main {
        padding: 22px;
    }
}
