:root {
    --canyon-900: #5c3f2f;
    --canyon-800: #704c37;
    --canyon-700: #8a5c3f;
    --canyon-600: #a6714a;
    --earth-900: #4a3e34;
    --earth-800: #56483c;
    --forest-700: #3e5142;
    --forest-600: #4a5e4d;
    --gold-600: #f09200;
    --gold-500: #ffb41e;
    --gold-400: #ffc94a;
    --sand-50: #fdfcfa;
    --sand-100: #faf7f0;
    --canyon-50: #faf8f5;
    --canyon-100: #f5f0e8;
    --text-main: #2a211b;
    --text-soft: #6f5c4a;
    --white: #ffffff;
    --shadow-soft: 0 16px 40px rgba(92, 63, 47, 0.14);
    --shadow-card: 0 12px 30px rgba(138, 92, 63, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text-main);
    background: linear-gradient(180deg, var(--sand-50), var(--canyon-100));
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--canyon-800), var(--earth-800));
    box-shadow: 0 10px 22px rgba(92, 63, 47, 0.18);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 18px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 16px;
    color: var(--canyon-900);
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    box-shadow: 0 8px 18px rgba(255, 180, 30, 0.35);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 15px;
    white-space: nowrap;
}

.desktop-nav a,
.mobile-nav a {
    color: rgba(255, 255, 255, 0.82);
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: var(--gold-400);
}

.header-search {
    position: relative;
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.header-search input,
.mobile-nav input,
.wide-search input,
.filter-row input,
.filter-row select {
    border: 0;
    outline: 0;
    font: inherit;
}

.header-search input {
    width: 210px;
    padding: 11px 12px 11px 18px;
    color: #ffffff;
    background: transparent;
}

.header-search input::placeholder,
.mobile-nav input::placeholder {
    color: rgba(255, 255, 255, 0.66);
}

.header-search button,
.mobile-nav button,
.wide-search button {
    border: 0;
    padding: 0 18px;
    color: var(--canyon-900);
    background: var(--gold-400);
    font-weight: 700;
    cursor: pointer;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 16px;
}

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

.mobile-nav nav {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.mobile-nav form {
    display: flex;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav input {
    min-width: 0;
    flex: 1;
    padding: 12px 16px;
    color: #ffffff;
    background: transparent;
}

.hero-carousel {
    position: relative;
    height: min(72vh, 620px);
    min-height: 520px;
    overflow: hidden;
    color: #ffffff;
    background: var(--earth-900);
}

.hero-track,
.hero-slide,
.hero-bg,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.02);
}

.hero-shade {
    background:
        radial-gradient(circle at 75% 25%, rgba(255, 180, 30, 0.2), transparent 32%),
        linear-gradient(90deg, rgba(42, 25, 16, 0.93), rgba(42, 25, 16, 0.68) 45%, rgba(42, 25, 16, 0.2)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.6), transparent 48%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
}

.hero-copy {
    max-width: 740px;
    padding-top: 44px;
}

.hero-eyebrow,
.page-hero p:first-child,
.section-heading p {
    margin: 0 0 10px;
    color: var(--gold-400);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-site-title {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(28px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy h2 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(30px, 5.5vw, 70px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero-copy p:not(.hero-eyebrow) {
    max-width: 680px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.72;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

.hero-tags span {
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.tag-row span {
    padding: 5px 9px;
    color: var(--canyon-800);
    background: var(--canyon-100);
    font-size: 12px;
}

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

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

.primary-action {
    color: var(--canyon-900);
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    box-shadow: 0 12px 24px rgba(255, 180, 30, 0.28);
}

.secondary-action {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.primary-action:hover,
.secondary-action:hover,
.movie-card:hover,
.category-card:hover,
.category-overview-cover:hover {
    transform: translateY(-3px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 32px;
    background: var(--gold-500);
}

.hero-thumbs {
    position: absolute;
    right: 0;
    bottom: 78px;
    left: 0;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    pointer-events: none;
}

.hero-thumb {
    display: grid;
    grid-template-columns: 58px 120px;
    gap: 10px;
    align-items: center;
    width: 198px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.84);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.hero-thumb img {
    width: 58px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
}

.hero-thumb span {
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.hero-thumb.is-active {
    border-color: var(--gold-400);
    color: #ffffff;
}

.section-block,
.home-search-panel,
.search-page,
.filter-panel,
.player-section,
.detail-content-grid {
    margin-top: 56px;
}

.home-search-panel,
.filter-panel,
.search-page,
.player-section,
.content-panel,
.category-overview-card {
    border: 1px solid rgba(138, 92, 63, 0.12);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
}

.home-search-panel {
    padding: 28px;
    transform: translateY(-32px);
    margin-bottom: -32px;
}

.home-search-panel h2,
.player-section h2,
.content-panel h2,
.section-heading h2 {
    margin: 0;
    color: var(--canyon-900);
}

.wide-search {
    display: flex;
    overflow: hidden;
    margin-top: 18px;
    border: 1px solid rgba(138, 92, 63, 0.14);
    border-radius: 999px;
    background: #ffffff;
}

.wide-search input {
    min-width: 0;
    flex: 1;
    padding: 16px 20px;
    background: transparent;
}

.wide-search button {
    padding: 0 28px;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
}

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

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

.section-heading a {
    color: var(--canyon-700);
    font-weight: 800;
}

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

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

.horizontal-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 280px);
    gap: 20px;
    overflow-x: auto;
    padding: 4px 4px 18px;
    scroll-snap-type: x mandatory;
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(138, 92, 63, 0.12);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    scroll-snap-align: start;
}

.movie-card:hover {
    box-shadow: 0 18px 42px rgba(92, 63, 47, 0.18);
}

.movie-card-link {
    display: block;
    height: 100%;
}

.movie-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--canyon-700), var(--earth-900));
}

.movie-card-small .movie-poster {
    aspect-ratio: 4 / 3;
}

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

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

.movie-year,
.rank-badge {
    position: absolute;
    top: 12px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(8px);
}

.movie-year {
    right: 12px;
    padding: 6px 10px;
}

.rank-badge {
    left: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
}

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

.movie-card-content h3 {
    display: -webkit-box;
    overflow: hidden;
    min-height: 48px;
    margin: 0 0 8px;
    color: var(--canyon-900);
    font-size: 18px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card-small .movie-card-content h3 {
    min-height: 42px;
    font-size: 16px;
}

.movie-meta,
.movie-one-line {
    margin: 0;
    color: var(--text-soft);
    font-size: 13px;
}

.movie-one-line {
    display: -webkit-box;
    overflow: hidden;
    min-height: 44px;
    margin-top: 8px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    margin-top: 12px;
}

.category-section {
    padding: 32px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(244, 246, 244, 0.92), rgba(250, 248, 245, 0.92));
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    border-radius: 26px;
    color: #ffffff;
    background: var(--earth-900);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease;
}

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

.category-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(42, 25, 16, 0.86), rgba(42, 25, 16, 0.1));
}

.category-card span,
.category-card p {
    position: relative;
    z-index: 1;
    display: block;
    padding: 0 20px;
}

.category-card span {
    margin-top: 118px;
    font-size: 24px;
    font-weight: 900;
}

.category-card p {
    margin: 10px 0 20px;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.6;
}

.ranking-section {
    padding: 32px;
    border-radius: 32px;
    background: linear-gradient(135deg, var(--canyon-900), var(--earth-900));
}

.ranking-section .section-heading h2,
.ranking-section .section-heading a {
    color: #ffffff;
}

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

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

.ranking-item a {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    gap: 14px;
    align-items: center;
    min-height: 58px;
    border: 1px solid rgba(138, 92, 63, 0.12);
    border-radius: 18px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.9);
}

.ranking-section .ranking-item a {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.ranking-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: var(--canyon-900);
    background: var(--gold-400);
    font-weight: 900;
}

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

.ranking-info {
    overflow: hidden;
    max-width: 360px;
    color: var(--text-soft);
    font-size: 13px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-section .ranking-info {
    color: rgba(255, 255, 255, 0.7);
}

.page-hero {
    padding: 72px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 10%, rgba(255, 201, 74, 0.2), transparent 28%),
        linear-gradient(135deg, var(--canyon-900), var(--earth-900));
}

.soft-hero,
.category-hero {
    background:
        radial-gradient(circle at 76% 20%, rgba(255, 201, 74, 0.2), transparent 30%),
        linear-gradient(135deg, var(--canyon-800), var(--forest-700));
}

.page-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.page-hero p:last-child {
    max-width: 720px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.75;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

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

.category-overview-list {
    display: grid;
    gap: 28px;
    margin-top: 44px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 28px;
    padding: 22px;
}

.category-overview-cover {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    border-radius: 22px;
    color: #ffffff;
    background: var(--earth-900);
    transition: transform 0.2s ease;
}

.category-overview-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.category-overview-cover span {
    position: absolute;
    bottom: 18px;
    left: 18px;
    right: 18px;
    font-size: 28px;
    font-weight: 900;
}

.category-overview-body h2 {
    margin: 0 0 10px;
    color: var(--canyon-900);
    font-size: 30px;
}

.category-overview-body p {
    margin: 0 0 20px;
    color: var(--text-soft);
    line-height: 1.75;
}

.filter-panel,
.search-page,
.player-section {
    padding: 28px;
}

.filter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 16px;
    margin-bottom: 24px;
}

.filter-row label {
    display: grid;
    gap: 8px;
    color: var(--canyon-800);
    font-weight: 800;
}

.filter-row input,
.filter-row select {
    width: 100%;
    border: 1px solid rgba(138, 92, 63, 0.16);
    border-radius: 16px;
    padding: 14px 16px;
    color: var(--text-main);
    background: #ffffff;
}

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

.filter-empty {
    margin: 28px 0 0;
    border-radius: 18px;
    padding: 24px;
    color: var(--canyon-800);
    background: var(--canyon-100);
    text-align: center;
    font-weight: 800;
}

.search-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 26px;
}

.search-suggestions a {
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--canyon-800);
    background: var(--canyon-100);
    font-weight: 800;
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #ffffff;
    background: var(--earth-900);
}

.detail-bg,
.detail-overlay {
    position: absolute;
    inset: 0;
}

.detail-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(3px) scale(1.04);
    opacity: 0.55;
}

.detail-overlay {
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 180, 30, 0.22), transparent 28%),
        linear-gradient(90deg, rgba(42, 25, 16, 0.94), rgba(42, 25, 16, 0.7) 58%, rgba(42, 25, 16, 0.45));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    padding: 42px 0 64px;
}

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

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

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

.detail-info h1 {
    max-width: 820px;
    margin: 0 0 18px;
    font-size: clamp(36px, 5vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.detail-one-line {
    max-width: 780px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
    line-height: 1.7;
}

.player-section {
    scroll-margin-top: 100px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    margin-top: 18px;
    border-radius: 26px;
    background: #000000;
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.26);
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.2));
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    color: var(--canyon-900);
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    box-shadow: 0 14px 28px rgba(255, 180, 30, 0.38);
}

.player-message {
    position: absolute;
    right: 18px;
    bottom: 18px;
    max-width: 80%;
    border-radius: 999px;
    padding: 10px 14px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.68);
}

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

.content-panel {
    padding: 28px;
}

.content-panel p {
    margin: 16px 0 0;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.9;
}

.info-panel {
    grid-column: 1 / -1;
}

.info-panel dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0 0;
}

.info-panel div {
    border-radius: 18px;
    padding: 16px;
    background: var(--canyon-50);
}

.info-panel dt {
    color: var(--text-soft);
    font-size: 13px;
}

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

.site-footer {
    margin-top: 72px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--canyon-900), var(--earth-900));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    padding: 48px 0;
}

.footer-grid p {
    max-width: 420px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: var(--gold-400);
    font-size: 18px;
}

.footer-grid nav {
    display: grid;
    gap: 9px;
}

.footer-grid nav a {
    color: rgba(255, 255, 255, 0.72);
}

.footer-grid nav a:hover {
    color: var(--gold-400);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px;
    color: rgba(255, 255, 255, 0.65);
    text-align: center;
}

@media (max-width: 1120px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

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

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

    .hero-thumbs {
        display: none;
    }
}

@media (max-width: 820px) {
    .hero-carousel {
        min-height: 560px;
        height: 78vh;
    }

    .hero-control {
        display: none;
    }

    .hero-copy {
        padding: 88px 0 40px;
    }

    .section-heading,
    .detail-layout,
    .category-overview-card,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: start;
    }

    .movie-grid,
    .small-grid,
    .category-grid,
    .category-movie-grid,
    .search-result-grid,
    .compact-ranking,
    .info-panel dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .detail-layout {
        gap: 24px;
    }

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

    .ranking-item a {
        grid-template-columns: 42px 1fr;
    }

    .ranking-info {
        grid-column: 2;
        max-width: none;
    }
}

@media (max-width: 560px) {
    .site-container {
        width: min(100% - 22px, 1180px);
    }

    .nav-wrap {
        min-height: 64px;
    }

    .logo-mark {
        width: 36px;
        height: 36px;
        border-radius: 13px;
    }

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

    .hero-copy h2 {
        font-size: 40px;
    }

    .hero-actions,
    .detail-actions,
    .wide-search {
        flex-direction: column;
    }

    .wide-search {
        border-radius: 22px;
    }

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

    .movie-grid,
    .small-grid,
    .category-grid,
    .category-movie-grid,
    .search-result-grid,
    .info-panel dl {
        grid-template-columns: 1fr;
    }

    .category-section,
    .filter-panel,
    .search-page,
    .player-section,
    .content-panel,
    .home-search-panel {
        padding: 20px;
        border-radius: 22px;
    }

    .detail-hero-inner {
        padding-bottom: 36px;
    }
}
