:root {
    --ink-900: #3d3d3d;
    --ink-800: #454545;
    --ink-700: #4f4f4f;
    --ink-600: #5d5d5d;
    --mist-50: #f8f9fa;
    --mist-100: #f1f3f5;
    --mist-200: #e9ecef;
    --mist-300: #dee2e6;
    --mist-400: #ced4da;
    --mist-500: #adb5bd;
    --mist-600: #868e96;
    --mountain-50: #e8f4f8;
    --mountain-100: #d1e9f1;
    --mountain-400: #47a7c7;
    --mountain-500: #2c8aa8;
    --mountain-600: #236e86;
    --mountain-700: #1a5264;
    --mountain-800: #123642;
    --paper: #ffffff;
    --paper-soft: #fcfcfc;
    --radius-xl: 24px;
    --radius-lg: 18px;
    --shadow-soft: 0 18px 55px rgba(18, 54, 66, 0.14);
    --shadow-card: 0 12px 32px rgba(18, 54, 66, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink-900);
    background: var(--mist-50);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(222, 226, 230, 0.78);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--ink-900);
}

.site-logo span,
.footer-logo {
    display: inline-block;
    padding: 9px 16px;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--mountain-500), var(--mountain-800));
    box-shadow: 0 10px 28px rgba(35, 110, 134, 0.26);
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--ink-700);
    font-weight: 650;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-drop-button:hover {
    color: var(--mountain-700);
    background: var(--mountain-50);
}

.nav-dropdown {
    position: relative;
}

.nav-drop-button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 220px;
    padding: 12px;
    border: 1px solid var(--mist-200);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-card);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

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

.dropdown-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--ink-700);
    font-weight: 600;
}

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

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-search input {
    border: 1px solid var(--mist-300);
    background: var(--mist-50);
    border-radius: 999px;
    outline: none;
    color: var(--ink-900);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.header-search input {
    width: 218px;
    padding: 10px 15px;
}

.mobile-search input,
.filter-search input {
    width: 100%;
    padding: 13px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-search input:focus,
select:focus {
    border-color: var(--mountain-400);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(71, 167, 199, 0.16);
}

.header-search button,
.mobile-search button,
.search-band button,
.primary-button,
.ghost-button,
.rank-action {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.header-search button,
.mobile-search button,
.search-band button,
.primary-button,
.rank-action {
    color: #ffffff;
    background: var(--mountain-600);
    box-shadow: 0 12px 28px rgba(35, 110, 134, 0.22);
}

.header-search button,
.mobile-search button {
    padding: 10px 16px;
}

.header-search button:hover,
.mobile-search button:hover,
.search-band button:hover,
.primary-button:hover,
.rank-row:hover .rank-action {
    background: var(--mountain-700);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: var(--mist-100);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink-800);
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--mist-200);
    background: #ffffff;
    padding: 16px;
}

.mobile-panel.is-open {
    display: block;
}

.mobile-link,
.mobile-sublink {
    display: block;
    padding: 11px 4px;
    color: var(--ink-700);
    font-weight: 650;
}

.mobile-link.active,
.mobile-link:hover,
.mobile-sublink:hover {
    color: var(--mountain-700);
}

.mobile-category-title {
    margin-top: 12px;
    padding: 12px 4px 4px;
    color: var(--mist-600);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-slider {
    position: relative;
    height: min(70vh, 760px);
    min-height: 540px;
    overflow: hidden;
    background: var(--ink-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.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 24% 28%, rgba(44, 138, 168, 0.42), transparent 28%),
        linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.20));
}

.hero-inner {
    position: absolute;
    left: 50%;
    bottom: 86px;
    width: min(1180px, calc(100% - 36px));
    transform: translateX(-50%);
    color: #ffffff;
}

.hero-badge,
.page-hero span,
.section-heading span,
.category-overview-card span,
.search-band span {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--mountain-600);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-inner h1 {
    width: min(760px, 100%);
    margin: 18px 0 12px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero-inner p {
    width: min(720px, 100%);
    margin: 0 0 32px;
    color: var(--mist-100);
    font-size: clamp(17px, 2vw, 22px);
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
}

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

.ghost-button:hover {
    color: var(--ink-900);
    background: #ffffff;
}

.hero-control {
    position: absolute;
    right: 28px;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-prev {
    bottom: 92px;
}

.hero-next {
    bottom: 36px;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: scale(1.04);
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 34px;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 18px;
    height: 4px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: width 0.25s ease, background-color 0.25s ease;
}

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

.search-band {
    width: min(1180px, calc(100% - 32px));
    margin: -46px auto 48px;
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: 24px;
    align-items: center;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.search-band span {
    color: var(--mountain-700);
    background: var(--mountain-50);
}

.search-band h2 {
    margin: 10px 0 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.18;
}

.search-band form {
    display: flex;
    gap: 10px;
}

.search-band input {
    min-width: 0;
    flex: 1;
    padding: 14px 16px;
    border: 1px solid var(--mist-300);
    border-radius: 999px;
    outline: none;
}

.search-band button {
    padding: 0 22px;
}

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

.white-section {
    background: #ffffff;
}

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

.content-section > .section-heading,
.content-section > .movie-grid,
.content-section > .featured-grid,
.content-section > .rank-list,
.content-section > .category-feature-grid,
.content-section > .category-overview-grid,
.content-section > .detail-copy,
.hot-section > .section-heading,
.hot-section > .hot-scroll {
    width: min(1180px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

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

.section-heading span {
    color: var(--mountain-700);
    background: var(--mountain-50);
}

.section-heading h2 {
    margin: 10px 0 0;
    color: var(--ink-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.14;
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--mist-600);
}

.section-link,
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mountain-600);
    font-weight: 800;
}

.section-link:hover,
.text-link:hover {
    color: var(--mountain-800);
}

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 42px rgba(18, 54, 66, 0.18);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background:
        linear-gradient(135deg, var(--mist-200), var(--mountain-100));
}

.large-card .poster-frame {
    aspect-ratio: 21 / 9;
}

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

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

.poster-frame::after,
.category-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.12), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-frame::after,
.category-cover:hover::after {
    opacity: 1;
}

.movie-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.movie-region {
    top: 12px;
    left: 12px;
    background: var(--mountain-600);
}

.movie-year {
    right: 12px;
    bottom: 12px;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
}

.hover-play {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    color: var(--mountain-700);
    background: rgba(255, 255, 255, 0.94);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-card-body strong,
.rank-info strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink-900);
    font-size: 17px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-card:hover .movie-card-body strong,
.rank-row:hover .rank-info strong {
    color: var(--mountain-600);
}

.movie-card-body span,
.rank-info em {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 8px;
    color: var(--mist-600);
    font-size: 14px;
    font-style: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card-body em {
    display: block;
    margin-top: 10px;
    color: var(--ink-700);
    font-size: 13px;
    font-style: normal;
}

.movie-card-body small,
.rank-info small {
    display: block;
    margin-top: 10px;
    color: var(--mist-500);
    font-size: 12px;
}

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

.category-feature-card {
    padding: 14px;
    border: 1px solid var(--mist-200);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.category-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    background: var(--mist-100);
}

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

.category-cover:hover img {
    transform: scale(1.08);
}

.category-cover span {
    position: absolute;
    z-index: 2;
    left: 14px;
    right: 14px;
    bottom: 14px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
}

.category-feature-card h3 {
    margin: 14px 0 6px;
    font-size: 17px;
    line-height: 1.35;
}

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

.hot-section {
    padding: 76px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 12%, rgba(71, 167, 199, 0.24), transparent 28%),
        linear-gradient(135deg, var(--ink-900), var(--mountain-800));
}

.hot-section .section-heading h2,
.hot-section .section-heading p {
    color: #ffffff;
}

.hot-section .section-heading span {
    color: var(--mountain-100);
    background: rgba(255, 255, 255, 0.12);
}

.hot-section .section-link {
    color: var(--mountain-100);
}

.hot-scroll {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding-bottom: 14px;
    scroll-snap-type: x mandatory;
}

.hot-scroll::-webkit-scrollbar {
    height: 8px;
}

.hot-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
}

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

.rank-list {
    display: grid;
    gap: 14px;
}

.rank-row {
    display: grid;
    grid-template-columns: auto 170px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--mist-200);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(18, 54, 66, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-rank-list .rank-row {
    grid-template-columns: 160px minmax(0, 1fr) auto;
}

.compact-rank-list .rank-index {
    display: none;
}

.rank-row:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.rank-index {
    width: 52px;
    color: var(--mountain-600);
    font-size: 26px;
    font-weight: 900;
    text-align: center;
}

.rank-row img {
    width: 170px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
    background: var(--mist-100);
}

.rank-info {
    min-width: 0;
}

.rank-action {
    display: inline-flex;
    min-width: 78px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
}

.page-hero {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 38px;
    overflow: hidden;
    border-radius: 30px;
    color: #ffffff;
    background:
        radial-gradient(circle at 24% 22%, rgba(71, 167, 199, 0.35), transparent 30%),
        linear-gradient(135deg, var(--ink-900), var(--mountain-800));
    box-shadow: var(--shadow-soft);
}

.compact-page-hero {
    padding: 56px;
}

.category-hero,
.ranking-hero {
    min-height: 360px;
    display: grid;
    align-items: end;
    padding: 56px;
}

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

.category-hero::after,
.ranking-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.20));
}

.page-hero > div {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.page-hero h1 {
    margin: 14px 0 12px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

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

.filter-panel {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 26px;
    padding: 22px;
    border: 1px solid var(--mist-200);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.filter-search {
    margin-bottom: 16px;
}

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

.filter-selects label {
    display: grid;
    gap: 7px;
}

.filter-selects span {
    color: var(--mist-600);
    font-size: 13px;
    font-weight: 800;
}

select {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--mist-300);
    border-radius: 14px;
    color: var(--ink-800);
    background: var(--mist-50);
    outline: none;
}

.empty-state {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    padding: 36px;
    border-radius: 20px;
    color: var(--mist-600);
    text-align: center;
    background: var(--mist-100);
}

.empty-state.is-visible {
    display: block;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--mist-200);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.category-collage {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--mist-100);
}

.category-collage img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.category-overview-card span {
    color: var(--mountain-700);
    background: var(--mountain-50);
}

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

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

.detail-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 36px auto 24px;
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 34px;
    align-items: stretch;
}

.detail-poster,
.detail-main {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.detail-poster {
    overflow: hidden;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: var(--mist-100);
}

.poster-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
}

.poster-meta span,
.detail-meta span,
.detail-tags span,
.detail-categories a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--mountain-700);
    background: var(--mountain-50);
    font-size: 13px;
    font-weight: 800;
}

.detail-main {
    padding: 34px;
}

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

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

.detail-main h1 {
    margin: 18px 0 12px;
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.detail-one-line {
    margin: 0 0 22px;
    color: var(--ink-700);
    font-size: 20px;
}

.detail-meta,
.detail-tags,
.detail-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.detail-tags span {
    color: var(--ink-700);
    background: var(--mist-100);
}

.player-section {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow-soft);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.60), rgba(0, 0, 0, 0.22));
    cursor: pointer;
    z-index: 4;
}

.player-overlay.is-hidden {
    display: none;
}

.player-icon {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    padding-left: 5px;
    border-radius: 50%;
    color: var(--mountain-700);
    background: rgba(255, 255, 255, 0.94);
    font-size: 32px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.player-overlay span:last-child {
    font-size: 18px;
    font-weight: 900;
}

.detail-text-section {
    padding-top: 42px;
}

.detail-copy {
    max-width: 920px;
}

.detail-copy h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.detail-copy h2 + p {
    margin-top: 0;
}

.detail-copy p {
    margin: 0 0 28px;
    color: var(--ink-700);
    font-size: 17px;
}

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

.site-footer {
    margin-top: 44px;
    padding: 54px 0 24px;
    color: var(--mist-300);
    background: var(--ink-900);
}

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

.footer-logo {
    margin-bottom: 16px;
}

.site-footer p {
    max-width: 450px;
    margin: 0;
    color: var(--mist-400);
}

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

.site-footer a:not(.footer-logo) {
    display: block;
    margin: 8px 0;
    color: var(--mist-300);
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--mist-500);
    font-size: 14px;
}

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

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

    .header-search {
        margin-left: auto;
    }

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

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

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

    .category-overview-card {
        grid-template-columns: 180px minmax(0, 1fr);
    }
}

@media (max-width: 820px) {
    .nav-shell {
        min-height: 66px;
    }

    .header-search {
        display: none;
    }

    .hero-slider {
        min-height: 520px;
        height: 78vh;
    }

    .hero-inner {
        bottom: 86px;
    }

    .hero-control {
        display: none;
    }

    .search-band {
        grid-template-columns: 1fr;
        margin-top: -30px;
        padding: 22px;
    }

    .search-band form {
        flex-direction: column;
    }

    .search-band button {
        min-height: 48px;
    }

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

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

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

    .rank-row,
    .compact-rank-list .rank-row {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .rank-index,
    .rank-action {
        display: none;
    }

    .rank-row img {
        width: 112px;
    }

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

    .detail-poster {
        max-width: 360px;
        margin: 0 auto;
    }

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

@media (max-width: 560px) {
    .nav-shell,
    .hero-inner,
    .search-band,
    .content-section > .section-heading,
    .content-section > .movie-grid,
    .content-section > .featured-grid,
    .content-section > .rank-list,
    .content-section > .category-feature-grid,
    .content-section > .category-overview-grid,
    .content-section > .detail-copy,
    .hot-section > .section-heading,
    .hot-section > .hot-scroll,
    .page-hero,
    .filter-panel,
    .detail-layout,
    .player-section,
    .footer-grid,
    .footer-bottom {
        width: min(100% - 24px, 1180px);
    }

    .site-logo span {
        padding: 8px 12px;
        font-size: 15px;
    }

    .hero-slider {
        min-height: 500px;
    }

    .hero-inner h1 {
        font-size: 40px;
    }

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

    .content-section,
    .hot-section {
        padding: 50px 0;
    }

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

    .scroll-item {
        flex-basis: 280px;
    }

    .compact-page-hero,
    .category-hero,
    .ranking-hero {
        padding: 34px 24px;
    }

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

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

    .category-collage {
        max-width: 240px;
    }

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