:root {
    --amber: #f59e0b;
    --amber-dark: #d97706;
    --yellow: #facc15;
    --red: #ef4444;
    --blue: #0ea5e9;
    --purple: #8b5cf6;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f9fafb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(31, 41, 55, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 36%, #fff7ed 100%);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #111827;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, #f97316, #facc15);
    box-shadow: 0 12px 28px rgba(245, 158, 11, 0.36);
}

.brand-text {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--amber), var(--yellow));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.header-search {
    position: relative;
    width: min(290px, 24vw);
}

.header-search input,
.large-search input,
.search-hero-form input,
.filter-input input {
    width: 100%;
    border: 1px solid #d1d5db;
    outline: none;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    padding: 10px 46px 10px 16px;
}

.header-search input:focus,
.large-search input:focus,
.search-hero-form input:focus,
.filter-input input:focus,
.filter-panel select:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.header-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--yellow));
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    color: #111827;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    padding: 8px 16px 18px;
    background: #ffffff;
}

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

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    color: #4b5563;
    font-weight: 700;
}

.mobile-nav a:hover {
    background: #fff7ed;
    color: var(--amber-dark);
}

.hero {
    width: min(1280px, calc(100% - 32px));
    min-height: 610px;
    margin: 28px auto 42px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    min-height: 610px;
    background: #111827;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
    transform: scale(1.02);
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: blur(14px) saturate(1.08);
    transform: scale(1.1);
    opacity: 0.72;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 30%, rgba(250, 204, 21, 0.34), transparent 34%), linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.78) 48%, rgba(17, 24, 39, 0.26));
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: center;
    gap: 32px;
    padding: 58px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-weight: 800;
    font-size: 13px;
}

.hero-copy h1 {
    margin: 18px 0 16px;
    color: #ffffff;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-copy p {
    width: min(680px, 100%);
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    padding: 7px 11px;
    color: #fef3c7;
    border: 1px solid rgba(254, 243, 199, 0.35);
    background: rgba(255, 255, 255, 0.08);
}

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

.primary-button,
.ghost-button,
.large-search button,
.search-hero-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 14px;
    border: 0;
    font-weight: 800;
    cursor: pointer;
}

.primary-button,
.large-search button,
.search-hero-form button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--yellow));
    box-shadow: 0 18px 34px rgba(245, 158, 11, 0.3);
}

.primary-button:hover,
.large-search button:hover,
.search-hero-form button:hover {
    transform: translateY(-1px);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-poster span {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.92);
    font-size: 13px;
    font-weight: 800;
}

.hero-controls {
    position: absolute;
    left: 58px;
    right: 58px;
    bottom: 28px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-prev,
.hero-next {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.hero-dot.active {
    width: 28px;
    background: #facc15;
}

.hero-side {
    border-radius: 32px;
    padding: 18px;
    background: linear-gradient(180deg, #ffffff, #fff7ed);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-side-title {
    padding: 6px 4px 2px;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
}

.hero-side-card {
    display: grid;
    grid-template-columns: 82px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-side-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(31, 41, 55, 0.12);
}

.hero-side-card img {
    width: 82px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 14px;
}

.hero-side-card span {
    font-weight: 800;
    color: #374151;
}

.quick-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
    align-items: center;
    gap: 30px;
    padding: 34px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.quick-search-panel h2 {
    margin: 12px 0 8px;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.15;
}

.quick-search-panel p {
    margin: 0;
    color: var(--muted);
}

.large-search,
.search-hero-form {
    position: relative;
    display: flex;
    gap: 10px;
}

.large-search input,
.search-hero-form input {
    min-height: 54px;
    padding: 0 18px;
}

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

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

.section-title-wrap,
.panel-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon,
.panel-heading span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 12px 26px rgba(239, 68, 68, 0.22);
}

.section-heading h2,
.panel-heading h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.03em;
}

.section-more {
    color: var(--amber-dark);
    font-weight: 800;
}

.section-more span {
    margin-left: 4px;
    transition: margin 0.2s ease;
}

.section-more:hover span {
    margin-left: 8px;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(31, 41, 55, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 48px rgba(31, 41, 55, 0.16);
}

.poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
}

.poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.poster.wide img {
    aspect-ratio: 16 / 10;
}

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

.score {
    position: absolute;
    right: 12px;
    top: 12px;
    min-width: 42px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(6px);
    text-align: center;
    font-weight: 900;
    font-size: 13px;
}

.card-content {
    padding: 16px;
}

.card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
}

.card-meta span,
.detail-meta span {
    padding: 3px 7px;
    border-radius: 999px;
    background: #f3f4f6;
}

.movie-card h2,
.ranking-body h2 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.28;
}

.movie-card h2 a:hover,
.ranking-body h2 a:hover {
    color: var(--amber-dark);
}

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

.tag-row span {
    padding: 5px 8px;
    color: #92400e;
    background: #fef3c7;
}

.text-link {
    display: inline-flex;
    margin-top: 10px;
    color: var(--amber-dark);
    font-weight: 800;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
}

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

.movie-card-list {
    display: grid;
    grid-template-columns: 220px 1fr;
}

.ranking-panel {
    position: sticky;
    top: 92px;
    align-self: start;
    border-radius: 26px;
    padding: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.rank-row {
    display: grid;
    grid-template-columns: 32px 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.rank-row:last-child {
    border-bottom: 0;
}

.rank-no {
    color: var(--amber-dark);
    font-weight: 900;
}

.rank-row img {
    width: 58px;
    height: 44px;
    border-radius: 10px;
    object-fit: cover;
}

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

.rank-badge {
    padding: 4px 8px;
    border-radius: 999px;
    color: #ffffff;
    background: #111827;
    font-size: 12px;
    font-weight: 900;
}

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

.category-tile,
.category-card-large {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(135deg, #fef3c7, #fffbeb);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile {
    min-height: 164px;
    padding: 22px;
}

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

.category-tile span {
    display: block;
    margin-bottom: 12px;
    font-size: 34px;
}

.category-tile strong,
.category-card-large h2 {
    display: block;
    margin: 0 0 8px;
    font-size: 20px;
}

.category-tile em,
.category-card-large p {
    color: #7c2d12;
    font-size: 14px;
    font-style: normal;
}

.category-card-large {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 22px;
}

.category-card-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: #ffffff;
    font-size: 30px;
}

.page-hero {
    color: #ffffff;
    padding: 56px 0;
}

.amber-hero {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.red-hero {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.blue-hero {
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.page-hero h1 {
    margin: 12px 0 10px;
    font-size: clamp(36px, 5vw, 58px);
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

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

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

.breadcrumb:not(.light) {
    color: rgba(255, 255, 255, 0.9);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 14px;
    margin-top: 28px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.filter-input input,
.filter-panel select {
    min-height: 48px;
    padding: 0 15px;
}

.filter-panel select {
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #ffffff;
    color: #111827;
    outline: none;
}

.movie-card.hidden-by-filter,
.ranking-item.hidden-by-filter {
    display: none;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(31, 41, 55, 0.08);
}

.ranking-cover {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.ranking-cover img {
    width: 160px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.ranking-cover span {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #f97316);
    font-weight: 900;
}

.ranking-score {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #ffffff;
    background: #111827;
    font-size: 20px;
    font-weight: 900;
}

.search-hero-form {
    max-width: 720px;
    margin-top: 22px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #ffffff;
    background: #111827;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--detail-image);
    background-size: cover;
    background-position: center;
    filter: blur(14px) saturate(1.08);
    transform: scale(1.08);
    opacity: 0.58;
}

.detail-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.78) 52%, rgba(17, 24, 39, 0.4));
}

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

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

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.42);
}

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

.detail-info h1 {
    margin: 18px 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.detail-info .lead {
    max-width: 820px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
}

.detail-meta {
    margin-bottom: 18px;
}

.detail-meta span {
    color: #111827;
    background: rgba(255, 255, 255, 0.78);
}

.player-section {
    margin-top: -76px;
    position: relative;
    z-index: 3;
}

.player-card {
    border-radius: 30px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(250, 204, 21, 0.86));
    box-shadow: 0 26px 60px rgba(31, 41, 55, 0.28);
}

.video-stage {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
    cursor: pointer;
}

.poster-button {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.68));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.poster-button.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    border-radius: 50%;
    color: #111827;
    background: #facc15;
    box-shadow: 0 20px 40px rgba(250, 204, 21, 0.28);
    font-size: 34px;
}

.poster-button strong {
    font-size: 18px;
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    min-height: 0;
    color: #ffffff;
    text-align: center;
    pointer-events: none;
}

.story-card {
    margin-bottom: 18px;
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(31, 41, 55, 0.08);
}

.story-card h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

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

.site-footer {
    margin-top: 50px;
    padding: 42px 0 22px;
    color: #4b5563;
    background: linear-gradient(180deg, #ffffff, #f3f4f6);
    border-top: 1px solid #e5e7eb;
}

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

.footer-brand {
    margin-bottom: 14px;
}

.site-footer p {
    max-width: 560px;
    margin: 0;
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #111827;
}

.site-footer a:not(.brand) {
    display: block;
    margin: 7px 0;
    color: #6b7280;
}

.site-footer a:hover {
    color: var(--amber-dark);
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
    font-size: 14px;
}

@media (max-width: 1080px) {
    .hero {
        grid-template-columns: 1fr;
    }

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

    .hero-side-title {
        grid-column: 1 / -1;
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 240px;
        padding: 42px;
    }

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

    .two-column-section,
    .quick-search-panel {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }
}

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

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .hero,
    .hero-slider {
        min-height: auto;
    }

    .hero-slider {
        aspect-ratio: auto;
    }

    .hero-slide {
        position: relative;
        display: none;
        min-height: 640px;
    }

    .hero-slide.active {
        display: block;
    }

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

    .hero-content {
        padding: 34px 24px 92px;
    }

    .hero-poster {
        max-width: 260px;
    }

    .hero-controls {
        left: 24px;
        right: 24px;
    }

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

    .movie-card-list,
    .ranking-item {
        grid-template-columns: 1fr;
    }

    .ranking-cover img {
        width: 100%;
    }

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

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

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

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

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

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

    .hero {
        margin-top: 14px;
    }

    .hero-copy h1,
    .detail-info h1 {
        font-size: 38px;
    }

    .hero-copy p,
    .detail-info .lead,
    .page-hero p {
        font-size: 16px;
    }

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

    .quick-search-panel,
    .story-card {
        padding: 22px;
    }

    .large-search,
    .search-hero-form {
        display: grid;
    }

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

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

    .player-section {
        margin-top: -34px;
    }

    .play-icon {
        width: 64px;
        height: 64px;
        font-size: 26px;
    }
}
