:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-900: #78350f;
    --rose-50: #fff1f2;
    --blue-50: #eff6ff;
    --green-50: #f0fdf4;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow: 0 12px 30px rgba(120, 53, 15, 0.1);
    --shadow-hover: 0 20px 45px rgba(120, 53, 15, 0.18);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: linear-gradient(180deg, #ffffff 0%, #fff7ed 55%, #fffbeb 100%);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--amber-50), #ffffff, var(--amber-50));
    border-bottom: 1px solid var(--amber-200);
    box-shadow: 0 4px 18px rgba(180, 83, 9, 0.08);
}

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

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-600), var(--amber-700));
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(217, 119, 6, 0.25);
    font-size: 18px;
}

.brand-text,
.footer-brand span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name,
.footer-logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--amber-900);
    letter-spacing: 0.02em;
}

.brand-sub,
.footer-sub {
    margin-top: 4px;
    font-size: 12px;
    color: var(--amber-600);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--gray-700);
    font-weight: 600;
}

.nav-links > a {
    transition: color 0.2s ease;
}

.nav-links > a:hover {
    color: var(--amber-700);
}

.nav-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--amber-200);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
}

.nav-search input {
    width: 150px;
    border: 0;
    padding: 9px 12px;
    outline: none;
    background: transparent;
}

.nav-search button,
.search-panel button,
.hero-search button {
    border: 0;
    color: #ffffff;
    background: var(--amber-600);
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-search button:hover,
.search-panel button:hover,
.hero-search button:hover {
    background: var(--amber-700);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--amber-100);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--amber-900);
    border-radius: 99px;
}

.hero {
    position: relative;
    height: 600px;
    min-height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-100), #ffedd5);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.76) 0%, rgba(0, 0, 0, 0.56) 52%, rgba(0, 0, 0, 0.14) 100%);
}

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

.hero-copy {
    max-width: 680px;
    color: #ffffff;
}

.hero-badge,
.kicker-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--amber-600);
    font-size: 14px;
    font-weight: 700;
}

.hero h1,
.hero h2 {
    margin: 18px 0 18px;
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0 0 22px;
    max-width: 640px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.hero-meta,
.detail-tags,
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span,
.detail-tags span,
.card-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

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

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

.btn-primary {
    color: #ffffff;
    background: var(--amber-600);
    box-shadow: 0 14px 30px rgba(217, 119, 6, 0.35);
}

.btn-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
}

.hero-control {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    cursor: pointer;
    font-size: 26px;
    transition: background 0.2s ease;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.42);
}

.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: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-search-wrap {
    position: relative;
    z-index: 5;
    width: min(1180px, calc(100% - 32px));
    margin: -44px auto 0;
}

.hero-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    border: 1px solid var(--amber-100);
}

.hero-search input {
    width: 100%;
    min-height: 68px;
    border: 0;
    outline: none;
    padding: 0 22px;
    font-size: 17px;
    background: transparent;
}

.hero-search button {
    padding: 0 30px;
    font-size: 16px;
}

.main-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0 18px;
}

.content-section {
    margin-bottom: 58px;
}

.content-section[class*="section-"] {
    border-radius: 26px;
    padding: 30px;
}

.section-amber {
    background: linear-gradient(120deg, #fffbeb, #fff7ed);
}

.section-blue {
    background: linear-gradient(120deg, #eff6ff, #ecfeff);
}

.section-green {
    background: linear-gradient(120deg, #f0fdf4, #ecfdf5);
}

.section-rose {
    background: linear-gradient(120deg, #fff1f2, #fdf2f8);
}

.section-cyan {
    background: linear-gradient(120deg, #ecfeff, #eff6ff);
}

.section-violet,
.section-purple {
    background: linear-gradient(120deg, #f5f3ff, #faf5ff);
}

.section-slate,
.section-indigo {
    background: linear-gradient(120deg, #f8fafc, #eef2ff);
}

.section-pink {
    background: linear-gradient(120deg, #fdf2f8, #fff1f2);
}

.section-orange {
    background: linear-gradient(120deg, #fff7ed, #fffbeb);
}

.section-teal {
    background: linear-gradient(120deg, #f0fdfa, #ecfeff);
}

.section-title-row,
.page-heading,
.category-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
}

.section-kicker,
.page-kicker {
    margin: 0 0 6px;
    color: var(--amber-700);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title-row h2,
.page-heading h1,
.category-heading h1 {
    margin: 0;
    color: var(--gray-900);
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.15;
    font-weight: 900;
}

.section-more {
    flex: 0 0 auto;
    color: var(--amber-700);
    font-weight: 800;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #92400e, #f59e0b);
}

.card-cover img,
.mini-cover img,
.rank-thumb img,
.detail-poster img,
.category-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover .card-cover img,
.mini-card:hover img,
.rank-row:hover img {
    transform: scale(1.08);
}

.cover-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 60%);
    transition: opacity 0.25s ease;
}

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

.card-year,
.card-duration {
    position: absolute;
    z-index: 2;
    top: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.65);
    font-size: 12px;
    font-weight: 800;
}

.card-year {
    left: 12px;
}

.card-duration {
    right: 12px;
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 9px;
    padding: 16px;
}

.card-body strong {
    display: -webkit-box;
    overflow: hidden;
    min-height: 1.5em;
    color: var(--gray-900);
    font-size: 17px;
    line-height: 1.35;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-card:hover .card-body strong {
    color: var(--amber-700);
}

.card-desc {
    display: -webkit-box;
    overflow: hidden;
    color: var(--gray-600);
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 700;
}

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

.category-tile {
    position: relative;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border-radius: 24px;
    padding: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #d97706, #92400e);
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile:nth-child(2n) {
    background: linear-gradient(135deg, #059669, #065f46);
}

.category-tile:nth-child(3n) {
    background: linear-gradient(135deg, #2563eb, #1e3a8a);
}

.category-tile:nth-child(4n) {
    background: linear-gradient(135deg, #e11d48, #881337);
}

.category-tile h2,
.category-tile h3 {
    position: relative;
    z-index: 2;
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 900;
}

.category-tile p {
    position: relative;
    z-index: 2;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
}

.category-tile span {
    position: relative;
    z-index: 2;
    margin-top: 18px;
    font-weight: 800;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 42px 96px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(120, 53, 15, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-num {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--amber-900);
    background: var(--amber-100);
    font-weight: 900;
}

.rank-hot .rank-num {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-600), #e11d48);
}

.rank-thumb {
    width: 96px;
    height: 64px;
    overflow: hidden;
    border-radius: 12px;
    background: var(--amber-100);
}

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

.rank-info strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 16px;
}

.rank-info span {
    display: block;
    margin-top: 5px;
    color: var(--gray-500);
    font-size: 13px;
}

.rank-score {
    color: var(--amber-700);
    font-weight: 900;
}

.page-hero {
    padding: 56px 0 24px;
    background: linear-gradient(135deg, var(--amber-50), #ffffff 60%, #fff7ed);
    border-bottom: 1px solid var(--amber-100);
}

.page-hero p {
    max-width: 780px;
    margin: 12px 0 0;
    color: var(--gray-600);
    font-size: 17px;
    line-height: 1.85;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0;
    overflow: hidden;
    margin: 24px 0 18px;
    border: 1px solid var(--amber-200);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.search-panel input {
    border: 0;
    outline: none;
    padding: 18px 20px;
    font-size: 17px;
}

.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 28px;
}

.search-filters button,
.search-filters a {
    border: 1px solid var(--amber-200);
    border-radius: 999px;
    padding: 9px 15px;
    color: var(--amber-800);
    background: #ffffff;
    cursor: pointer;
    font-weight: 800;
}

.search-filters .active {
    color: #ffffff;
    background: var(--amber-600);
    border-color: var(--amber-600);
}

.detail-hero {
    padding: 30px 0 40px;
    background: linear-gradient(180deg, #111827, #1f2937);
    color: #ffffff;
}

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

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

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

.player-shell {
    overflow: hidden;
    border-radius: 22px;
    background: #050505;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #050505;
}

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #050505;
}

.player-loading,
.player-big-play,
.player-controls {
    position: absolute;
    z-index: 4;
}

.player-loading {
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    font-weight: 800;
}

.player-box.is-ready .player-loading {
    display: none;
}

.player-big-play {
    top: 50%;
    left: 50%;
    width: 90px;
    height: 90px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--amber-600);
    transform: translate(-50%, -50%);
    cursor: pointer;
    font-size: 34px;
    box-shadow: 0 20px 48px rgba(217, 119, 6, 0.38);
    transition: transform 0.2s ease, background 0.2s ease;
}

.player-big-play:hover {
    background: var(--amber-700);
    transform: translate(-50%, -50%) scale(1.05);
}

.player-box.is-playing .player-big-play {
    opacity: 0;
    pointer-events: none;
}

.player-controls {
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
    transition: opacity 0.2s ease;
}

.player-box:hover .player-controls,
.player-box:focus-within .player-controls {
    opacity: 1;
}

.player-controls button {
    border: 0;
    color: #ffffff;
    background: transparent;
    cursor: pointer;
    font-size: 20px;
}

.player-controls button:hover {
    color: #fbbf24;
}

.player-spacer {
    flex: 1;
}

.player-message {
    padding: 12px 16px;
    color: rgba(255, 255, 255, 0.78);
    background: #111827;
    font-size: 14px;
}

.detail-title-card {
    padding: 22px;
    border-radius: 0 0 22px 22px;
    background: #111827;
}

.detail-title-card h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.15;
}

.detail-title-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
}

.detail-poster {
    overflow: hidden;
    border-radius: 20px;
    background: #1f2937;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}

.detail-content {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 18px;
}

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

.info-card,
.related-card {
    padding: 26px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.info-card + .info-card {
    margin-top: 22px;
}

.info-card h2,
.related-card h2,
.related-card h3 {
    margin: 0 0 16px;
    color: var(--gray-900);
    font-size: 22px;
    font-weight: 900;
}

.info-card p {
    margin: 0;
    color: var(--gray-700);
    font-size: 16px;
    line-height: 1.95;
    white-space: pre-line;
}

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

.meta-grid div {
    padding: 14px;
    border-radius: 16px;
    background: var(--gray-50);
}

.meta-grid span {
    display: block;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 800;
}

.meta-grid strong {
    display: block;
    overflow: hidden;
    margin-top: 4px;
    color: var(--gray-900);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-tags span,
.card-tags span {
    color: var(--amber-900);
    background: var(--amber-100);
    backdrop-filter: none;
}

.related-card {
    position: sticky;
    top: 92px;
}

.mini-card {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

.mini-card:last-child {
    border-bottom: 0;
}

.mini-cover {
    width: 108px;
    height: 72px;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 12px;
    background: var(--amber-100);
}

.mini-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.mini-info strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--gray-900);
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mini-info span {
    color: var(--gray-500);
    font-size: 13px;
    font-weight: 700;
}

.pager {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 34px;
}

.pager a,
.pager span {
    min-width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0 12px;
    border-radius: 12px;
    color: var(--amber-900);
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(120, 53, 15, 0.08);
    font-weight: 800;
}

.pager a.active,
.pager a:hover {
    color: #ffffff;
    background: var(--amber-600);
}

.site-footer {
    margin-top: 72px;
    padding: 44px 0 22px;
    border-top: 1px solid var(--amber-200);
    background: linear-gradient(180deg, var(--amber-50), var(--amber-100));
}

.footer-wrap {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 38px;
}

.footer-main p {
    max-width: 560px;
    color: var(--gray-600);
    line-height: 1.8;
}

.footer-column h2 {
    margin: 0 0 14px;
    color: var(--amber-900);
    font-size: 17px;
}

.footer-column a {
    display: block;
    margin: 9px 0;
    color: var(--gray-600);
    font-size: 14px;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 30px auto 0;
    padding-top: 18px;
    border-top: 1px solid var(--amber-200);
    color: var(--gray-600);
    text-align: center;
    font-size: 14px;
}

.is-missing {
    background: linear-gradient(135deg, #78350f, #f59e0b);
}

.empty-state {
    padding: 42px;
    border-radius: 22px;
    color: var(--gray-600);
    background: #ffffff;
    text-align: center;
    box-shadow: var(--shadow);
}

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

    .rank-board,
    .detail-layout,
    .detail-main-grid {
        grid-template-columns: 1fr;
    }

    .related-card {
        position: static;
    }
}

@media (max-width: 820px) {
    .nav-wrap {
        min-height: 64px;
        align-items: center;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--amber-200);
        border-radius: 18px;
        background: #ffffff;
        box-shadow: var(--shadow-hover);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links > a {
        padding: 12px;
        border-radius: 12px;
    }

    .nav-links > a:hover {
        background: var(--amber-50);
    }

    .nav-search {
        width: 100%;
    }

    .nav-search input {
        width: 100%;
    }

    .hero {
        height: 560px;
        min-height: 520px;
    }

    .hero-control {
        display: none;
    }

    .hero-copy {
        padding: 0 6px;
    }

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

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

    .hero-search button {
        min-height: 52px;
    }

    .main-wrap {
        padding-top: 48px;
    }

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

    .section-title-row,
    .page-heading,
    .category-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .content-section[class*="section-"] {
        padding: 22px;
    }

    .rank-row {
        grid-template-columns: 34px 80px 1fr;
    }

    .rank-score {
        grid-column: 3;
    }

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

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

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

    .brand-icon {
        width: 38px;
        height: 38px;
    }

    .hero {
        min-height: 560px;
    }

    .hero h1,
    .hero h2 {
        font-size: 38px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

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

    .search-panel {
        grid-template-columns: 1fr;
    }

    .search-panel button {
        min-height: 52px;
    }

    .detail-title-card {
        padding: 18px;
    }

    .info-card,
    .related-card {
        padding: 20px;
    }
}
