:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-850: #142033;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-300: #d6d3d1;
    --stone-500: #78716c;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --text-dark: #111827;
    --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.16);
    --shadow-deep: 0 24px 70px rgba(2, 6, 23, 0.38);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-dark);
    background: var(--stone-50);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    color: #fff;
    background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
    border-bottom: 1px solid rgba(245, 158, 11, 0.24);
    box-shadow: 0 14px 36px rgba(2, 6, 23, 0.30);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 22px;
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: var(--slate-950);
    background: linear-gradient(135deg, var(--amber-300), var(--amber-600));
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.32);
}

.brand-text strong {
    display: block;
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: 0.04em;
}

.brand-text small {
    display: block;
    margin-top: 2px;
    color: var(--stone-300);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link {
    position: relative;
    color: var(--stone-200);
    font-size: 15px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -9px;
    width: 0;
    height: 2px;
    background: var(--amber-500);
    transition: width 0.24s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--amber-400);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    width: 100%;
}

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

.header-search input,
.mobile-search input,
.large-search input {
    width: 100%;
    border: 1px solid rgba(245, 158, 11, 0.24);
    outline: none;
    color: #fff;
    background: rgba(15, 23, 42, 0.62);
    border-radius: 999px;
    padding: 12px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.large-search input:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.header-search input {
    width: 240px;
}

.header-search button,
.mobile-search button,
.large-search button {
    border: 0;
    color: #fff;
    background: var(--amber-600);
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.large-search button:hover {
    background: var(--amber-700);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    width: 44px;
    height: 44px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 16px 22px;
    background: rgba(15, 23, 42, 0.98);
}

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

.mobile-panel nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.mobile-panel a {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--stone-100);
    background: rgba(255, 255, 255, 0.06);
}

.hero-carousel {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #fff;
    background: var(--slate-950);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    min-height: 680px;
    opacity: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 1.2s ease;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    padding-top: 30px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-bottom: 18px;
    padding: 7px 14px;
    color: #fff;
    background: rgba(217, 119, 6, 0.90);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-content h1 {
    max-width: 780px;
    margin: 0 0 22px;
    font-size: clamp(44px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 12px 34px rgba(2, 6, 23, 0.55);
}

.hero-content p {
    max-width: 650px;
    margin: 0 0 22px;
    color: var(--stone-200);
    font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    color: #fef3c7;
    background: rgba(15, 23, 42, 0.50);
    border: 1px solid rgba(245, 158, 11, 0.30);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

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

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

.primary-button {
    color: #fff;
    background: var(--amber-600);
    box-shadow: 0 16px 38px rgba(217, 119, 6, 0.30);
}

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

.primary-button:hover {
    background: var(--amber-700);
    box-shadow: 0 20px 46px rgba(217, 119, 6, 0.42);
}

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

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.18);
}

.outline-button {
    color: var(--slate-900);
    border: 1px solid rgba(15, 23, 42, 0.16);
    background: #fff;
}

.outline-button:hover {
    color: #fff;
    background: var(--slate-900);
}

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

.hero-dot {
    width: 42px;
    height: 4px;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--amber-500);
}

.hero-thumbs {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    transform: translateX(-50%);
}

.hero-thumb {
    position: relative;
    min-height: 118px;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: var(--shadow-deep);
}

.hero-thumb img {
    height: 118px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-thumb:hover img {
    transform: scale(1.08);
}

.hero-thumb span {
    position: absolute;
    inset: auto 0 0;
    padding: 28px 12px 12px;
    color: #fff;
    background: linear-gradient(transparent, rgba(2, 6, 23, 0.92));
    font-size: 13px;
    font-weight: 800;
}

.quick-search-section {
    margin-top: -1px;
    color: #fff;
    background: linear-gradient(90deg, var(--slate-900), var(--slate-800));
    padding: 36px 0;
}

.quick-search-panel {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 30px;
    align-items: center;
}

.quick-search-panel h2,
.section-heading h2,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    letter-spacing: -0.03em;
}

.quick-search-panel h2 {
    color: #fff;
    font-size: clamp(28px, 4vw, 44px);
}

.quick-search-panel p {
    margin: 12px 0 0;
    color: var(--stone-300);
}

.large-search {
    padding: 8px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.18);
}

.large-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
}

.section-block {
    padding: 82px 0;
}

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

.section-dark {
    color: #fff;
    background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading.align-left {
    margin-left: 0;
    text-align: left;
}

.section-heading h2 {
    color: var(--slate-900);
    font-size: clamp(30px, 5vw, 48px);
}

.section-heading p {
    margin: 12px 0 0;
    color: var(--stone-500);
    font-size: 17px;
}

.dark-heading h2,
.dark-heading p {
    color: #fff;
}

.dark-heading p {
    color: var(--stone-300);
}

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

.category-card {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    isolation: isolate;
}

.category-card img {
    height: 100%;
    min-height: 230px;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.35s ease;
}

.category-card:hover img {
    transform: scale(1.10);
}

.category-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.92));
    z-index: 1;
}

.category-card strong,
.category-card small {
    position: absolute;
    left: 20px;
    right: 20px;
    z-index: 2;
    color: #fff;
}

.category-card strong {
    bottom: 74px;
    font-size: 26px;
    line-height: 1.1;
}

.category-card small {
    bottom: 22px;
    color: var(--stone-200);
    font-size: 13px;
}

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

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

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

.movie-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.section-dark .movie-card {
    background: var(--slate-800);
    border-color: rgba(245, 158, 11, 0.16);
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(245, 158, 11, 0.42);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--slate-800);
}

.poster-link img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.38s ease, filter 0.38s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.08);
    filter: saturate(1.08) contrast(1.06);
}

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(2, 6, 23, 0.82));
    opacity: 0.95;
}

.play-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    color: #fff;
    background: var(--amber-600);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 900;
}

.card-rank {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    color: #fff;
    font-style: normal;
    font-weight: 900;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 6px 10px;
}

.movie-card-content {
    padding: 17px;
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--stone-500);
    font-size: 12px;
    font-weight: 800;
}

.section-dark .movie-meta-line {
    color: var(--stone-300);
}

.movie-meta-line span {
    display: inline-flex;
    align-items: center;
}

.movie-meta-line span + span::before {
    content: "·";
    margin-right: 8px;
    color: var(--amber-500);
}

.movie-card h3 {
    margin: 8px 0 8px;
    color: var(--slate-900);
    font-size: 19px;
    line-height: 1.3;
}

.section-dark .movie-card h3 {
    color: #fff;
}

.movie-card h3 a:hover,
.horizontal-card h3 a:hover {
    color: var(--amber-600);
}

.movie-card p {
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 14px;
}

.section-dark .movie-card p {
    color: var(--stone-300);
}

.tag-list span {
    color: var(--amber-700);
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.18);
}

.ranking-section {
    background: linear-gradient(135deg, #fff7ed, #fef3c7 42%, var(--stone-50));
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
    gap: 34px;
    align-items: stretch;
}

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

.horizontal-card {
    display: grid;
    grid-template-columns: 126px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.horizontal-card:hover {
    transform: translateX(4px);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.18);
}

.horizontal-cover {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 3 / 4;
}

.horizontal-cover img {
    height: 100%;
    object-fit: cover;
}

.horizontal-card h3 {
    margin: 4px 0 6px;
    color: var(--slate-900);
    font-size: 20px;
}

.horizontal-card p {
    margin: 0 0 8px;
    color: #4b5563;
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 34px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    border-radius: 999px;
    font-weight: 900;
}

.text-link {
    min-height: 0;
    padding: 0;
    color: var(--amber-600);
    border-radius: 0;
}

.deep-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(180deg, var(--slate-800), var(--slate-900));
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-deep);
}

.deep-card img {
    height: 320px;
    object-fit: cover;
}

.deep-card div {
    padding: 28px;
}

.deep-card span {
    display: inline-flex;
    color: #fff;
    background: var(--amber-600);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 800;
}

.deep-card h3 {
    margin: 16px 0 12px;
    color: #fff;
    font-size: 28px;
}

.deep-card p {
    color: var(--stone-300);
}

.page-hero {
    color: #fff;
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
    padding: 90px 0;
}

.page-hero-library {
    background: linear-gradient(135deg, #172554, var(--slate-900));
}

.page-hero-ranking {
    background: linear-gradient(135deg, #451a03, var(--slate-900));
}

.page-hero h1 {
    max-width: 860px;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.05;
}

.page-hero p {
    max-width: 760px;
    color: var(--stone-200);
    font-size: 18px;
}

.inline-search {
    max-width: 720px;
    margin-top: 28px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-chip {
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: var(--slate-800);
    background: #fff;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
    color: #fff;
    background: var(--slate-900);
    transform: translateY(-1px);
}

.empty-state {
    display: none;
    padding: 44px;
    text-align: center;
    color: var(--stone-500);
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

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

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

.category-summary-card a {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    align-items: center;
    height: 100%;
    padding: 16px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-summary-card a:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

.category-summary-card img {
    height: 120px;
    object-fit: cover;
    border-radius: 16px;
}

.category-summary-card strong,
.category-summary-card span {
    grid-column: 2;
}

.category-summary-card strong {
    color: var(--slate-900);
    font-size: 24px;
}

.category-summary-card span {
    color: #4b5563;
}

.category-page-hero,
.detail-hero {
    background-position: center;
    background-size: cover;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 26px;
    color: var(--stone-300);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--amber-400);
}

.detail-hero {
    min-height: 620px;
    color: #fff;
    padding: 84px 0;
}

.detail-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-deep);
}

.detail-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-poster span {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 2;
    display: grid;
    place-items: center;
    height: 48px;
    color: #fff;
    background: var(--amber-600);
    border-radius: 999px;
    font-weight: 900;
}

.detail-info h1 {
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.04;
}

.lead-text {
    max-width: 780px;
    margin: 22px 0;
    color: var(--stone-200);
    font-size: 20px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.detail-meta span {
    color: #fff;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 9px 13px;
    font-weight: 800;
}

.player-block {
    padding: 70px 0;
    background: var(--slate-950);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: var(--radius-xl);
    background: #000;
    box-shadow: var(--shadow-deep);
    aspect-ratio: 16 / 9;
}

.movie-player {
    display: block;
    width: 100%;
    height: 100%;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.30), rgba(2, 6, 23, 0.74));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    padding-left: 6px;
    color: var(--slate-950);
    background: linear-gradient(135deg, var(--amber-300), var(--amber-600));
    border-radius: 50%;
    font-size: 34px;
    box-shadow: 0 18px 44px rgba(245, 158, 11, 0.42);
}

.player-overlay strong {
    font-size: clamp(24px, 4vw, 44px);
    line-height: 1.1;
}

.player-overlay small {
    color: var(--stone-200);
    font-size: 16px;
    font-weight: 800;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

.story-panel,
.info-panel {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.story-panel {
    padding: clamp(24px, 4vw, 42px);
}

.story-panel h2,
.info-panel h2 {
    margin: 0 0 16px;
    color: var(--slate-900);
    font-size: 28px;
}

.story-panel h2 + p {
    margin-top: 0;
}

.story-panel p {
    color: #374151;
    font-size: 17px;
}

.info-panel {
    padding: 26px;
}

.info-panel dl {
    margin: 0;
}

.info-panel dt {
    margin-top: 14px;
    color: var(--stone-500);
    font-size: 13px;
    font-weight: 900;
}

.info-panel dd {
    margin: 4px 0 0;
    color: var(--slate-900);
    font-weight: 800;
}

.info-panel a {
    color: var(--amber-700);
}

.ranking-page-section {
    background: var(--stone-100);
}

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

.site-footer {
    color: var(--stone-300);
    background: linear-gradient(90deg, var(--slate-950), var(--slate-900));
    border-top: 1px solid rgba(245, 158, 11, 0.20);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr 1fr;
    gap: 34px;
    padding: 54px 0 34px;
}

.footer-brand p {
    max-width: 560px;
    color: var(--stone-300);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-column h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 16px;
}

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

.footer-column a:hover {
    color: var(--amber-400);
}

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

.footer-categories h3 {
    grid-column: 1 / -1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px max(16px, calc((100% - 1180px) / 2));
    color: var(--stone-500);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

.is-hidden-by-filter {
    display: none !important;
}

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

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

    .ranking-list-large {
        grid-template-columns: 1fr;
    }
}

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

    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .header-inner {
        min-height: 68px;
    }

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

    .hero-carousel,
    .hero-slide {
        min-height: 760px;
    }

    .hero-content {
        padding-top: 0;
    }

    .hero-thumbs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        bottom: 24px;
    }

    .hero-thumb:nth-child(n+5) {
        display: none;
    }

    .hero-dots {
        bottom: 270px;
    }

    .quick-search-panel,
    .split-layout,
    .detail-layout,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 330px;
    }

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

@media (max-width: 700px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .section-block {
        padding: 58px 0;
    }

    .hero-carousel,
    .hero-slide {
        min-height: 720px;
    }

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

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

    .hero-actions,
    .center-actions {
        flex-direction: column;
    }

    .primary-button,
    .ghost-button,
    .outline-button {
        width: 100%;
    }

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

    .hero-thumb:nth-child(n+4) {
        display: none;
    }

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

    .horizontal-card,
    .category-summary-card a {
        grid-template-columns: 100px 1fr;
        gap: 14px;
    }

    .horizontal-card h3 {
        font-size: 17px;
    }

    .horizontal-card p {
        display: none;
    }

    .page-hero,
    .detail-hero {
        padding: 56px 0;
    }

    .detail-info h1,
    .page-hero h1 {
        font-size: 36px;
    }

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

    .player-icon {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }

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