:root {
    --golden-50: #fffbeb;
    --golden-100: #fef3c7;
    --golden-300: #fcd34d;
    --golden-400: #fbbf24;
    --golden-500: #f59e0b;
    --golden-600: #d97706;
    --golden-700: #b45309;
    --golden-800: #92400e;
    --golden-900: #78350f;
    --sunshine-50: #fff9f0;
    --sunshine-100: #fff3e0;
    --sunshine-500: #ffa726;
    --text-900: #111827;
    --text-700: #374151;
    --text-600: #4b5563;
    --text-500: #6b7280;
    --line: #e5e7eb;
    --card: #ffffff;
    --page: #fffbeb;
    --shadow-warm: 0 2px 8px rgba(245, 158, 11, 0.15);
    --shadow-golden: 0 4px 14px rgba(251, 191, 36, 0.39);
    --shadow-golden-lg: 0 8px 24px rgba(251, 191, 36, 0.45);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-900);
    background: linear-gradient(135deg, var(--golden-50), #ffffff 48%, var(--sunshine-50));
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    right: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--golden-400), var(--golden-500), var(--golden-600));
    box-shadow: var(--shadow-golden);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(6px);
}

.brand-text {
    font-size: 1.25rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    border-radius: 999px;
    background: #ffffff;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-entry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 650;
    transition: background 0.2s ease, transform 0.2s ease;
}

.search-entry:hover {
    background: rgba(255, 255, 255, 0.32);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.16);
    padding: 9px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: #ffffff;
}

.mobile-nav {
    display: none;
    padding: 10px 16px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(180, 83, 9, 0.96);
}

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

.mobile-link {
    padding: 11px 14px;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 650;
}

.mobile-link:hover,
.mobile-link.is-active {
    background: rgba(255, 255, 255, 0.18);
}

main {
    padding-top: 64px;
}

.hero-carousel {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, var(--golden-900));
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.42), transparent 30%), linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.25));
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
    filter: saturate(1.08) contrast(1.04);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 660px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.8fr);
    align-items: center;
    gap: 48px;
    padding: 56px 0;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--golden-100);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.hero-title {
    margin: 0 0 18px;
    font-size: clamp(2.45rem, 6vw, 5.4rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-subtitle {
    max-width: 720px;
    margin: 0 0 18px;
    font-size: clamp(1.05rem, 2vw, 1.36rem);
    color: rgba(255, 255, 255, 0.9);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
}

.hero-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--golden-100);
    background: rgba(255, 255, 255, 0.12);
}

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

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

.btn-primary {
    color: var(--golden-900);
    background: #ffffff;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
}

.btn-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

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

.hero-poster {
    position: relative;
    border-radius: 28px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-golden-lg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--golden-600), var(--golden-900));
}

.hero-floating-card {
    position: absolute;
    left: -22px;
    bottom: 36px;
    max-width: 250px;
    padding: 18px;
    border-radius: 18px;
    color: var(--text-900);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-golden);
}

.hero-floating-card strong,
.hero-floating-card span {
    display: block;
}

.hero-floating-card strong {
    margin-bottom: 6px;
}

.hero-floating-card span {
    color: var(--text-600);
    font-size: 0.92rem;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

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

.hero-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-50%);
    backdrop-filter: blur(8px);
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-arrow.prev {
    left: 22px;
}

.hero-arrow.next {
    right: 22px;
}

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

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

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

.section-head h1,
.section-head h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    letter-spacing: -0.03em;
}

.section-head p {
    margin: 8px 0 0;
    color: var(--text-600);
}

.section-more {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 12px;
    color: var(--golden-700);
    background: var(--golden-100);
    font-weight: 750;
}

.category-strip,
.category-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow-warm);
    color: var(--text-700);
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.category-pill:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--golden-400), var(--golden-500), var(--golden-600));
    box-shadow: var(--shadow-golden);
    transform: translateY(-2px);
}

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

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

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    height: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow-warm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-frame {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--golden-100), var(--golden-500));
}

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

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

.poster-shade {
    position: absolute;
    inset: auto 0 0;
    height: 50%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--golden-700);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.type-badge,
.rank-badge {
    position: absolute;
    top: 10px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.type-badge {
    left: 10px;
    color: var(--golden-900);
    background: rgba(255, 255, 255, 0.86);
}

.rank-badge {
    right: 10px;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.86);
}

.movie-card-body {
    display: grid;
    gap: 7px;
    padding: 14px;
}

.movie-card-body strong {
    display: -webkit-box;
    overflow: hidden;
    min-height: 2.8em;
    color: var(--text-900);
    font-size: 1rem;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta,
.movie-tags,
.movie-desc {
    display: block;
    color: var(--text-500);
    font-size: 0.88rem;
}

.movie-desc {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.4em;
    color: var(--text-600);
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-tags {
    color: var(--golden-700);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 88px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-warm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-number {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--golden-400), var(--golden-600));
}

.rank-cover {
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--golden-100), var(--sunshine-500));
}

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

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

.rank-info strong,
.rank-info em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info strong {
    margin-bottom: 5px;
    color: var(--text-900);
}

.rank-info em {
    color: var(--text-500);
    font-style: normal;
    font-size: 0.9rem;
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(135deg, var(--golden-400), var(--golden-500), var(--golden-700));
}

.page-hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 68px 0 46px;
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 5vw, 3.6rem);
    letter-spacing: -0.04em;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) repeat(3, minmax(140px, 0.25fr));
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-warm);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: var(--text-700);
    background: #ffffff;
    padding: 0 13px;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--golden-400);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18);
}

.empty-state {
    display: none;
    padding: 46px;
    border-radius: 20px;
    text-align: center;
    color: var(--text-600);
    background: #ffffff;
    box-shadow: var(--shadow-warm);
}

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

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

.category-panel {
    padding: 22px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-warm);
}

.category-panel h2 {
    margin: 0 0 18px;
}

.category-panel .category-cloud {
    max-height: 480px;
    overflow: auto;
    padding-right: 4px;
}

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

.detail-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    filter: blur(2px) saturate(1.1);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.28));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 92px 0 58px;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
}

.detail-cover {
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--golden-100), var(--golden-600));
    box-shadow: var(--shadow-golden-lg);
}

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

.detail-info h1 {
    margin: 0 0 18px;
    font-size: clamp(2rem, 5vw, 4.3rem);
    line-height: 1.05;
}

.detail-info p {
    max-width: 780px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.1rem;
    line-height: 1.8;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-meta span,
.detail-meta a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--golden-100);
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(8px);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
    gap: 30px;
    align-items: start;
}

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

.player-card {
    overflow: hidden;
    margin-bottom: 24px;
}

.player-shell {
    position: relative;
    background: #000000;
}

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

.player-start {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    color: var(--golden-900);
    background: rgba(255, 255, 255, 0.94);
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.player-shell.is-playing .player-start {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.9);
}

.player-error {
    display: none;
    position: absolute;
    inset: 0;
    place-items: center;
    padding: 22px;
    color: #ffffff;
    text-align: center;
    background: rgba(0, 0, 0, 0.78);
}

.player-error.is-visible {
    display: grid;
}

.player-caption {
    padding: 18px 20px;
    color: var(--text-600);
    line-height: 1.8;
}

.info-card {
    padding: 24px;
    margin-bottom: 24px;
}

.info-card h2 {
    margin: 0 0 14px;
    font-size: 1.45rem;
}

.info-card p {
    margin: 0 0 16px;
    color: var(--text-700);
    line-height: 1.9;
}

.info-card p:last-child {
    margin-bottom: 0;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.tag-row a,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--golden-700);
    background: var(--golden-100);
    font-weight: 700;
}

.related-card {
    position: sticky;
    top: 88px;
    padding: 20px;
}

.related-card h2 {
    margin: 0 0 16px;
}

.related-list {
    display: grid;
    gap: 13px;
}

.related-item {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.related-thumb {
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--golden-100), var(--sunshine-500));
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info strong,
.related-info span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-info strong {
    margin-bottom: 5px;
    color: var(--text-900);
}

.related-info span {
    color: var(--text-500);
    font-size: 0.88rem;
}

.back-to-top {
    position: fixed;
    z-index: 40;
    right: 22px;
    bottom: 22px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--golden-400), var(--golden-600));
    box-shadow: var(--shadow-golden);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.site-footer {
    color: #ffffff;
    background: linear-gradient(135deg, var(--golden-800), var(--golden-900));
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 30px;
}

.footer-brand p,
.footer-group a,
.footer-group span {
    color: rgba(255, 255, 255, 0.76);
}

.footer-brand strong {
    display: block;
    margin: 12px 0 10px;
    font-size: 1.3rem;
}

.footer-brand p {
    max-width: 360px;
    margin: 0;
    line-height: 1.8;
}

.footer-group {
    display: grid;
    align-content: start;
    gap: 9px;
}

.footer-group h3 {
    margin: 0 0 8px;
    color: #ffffff;
}

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

@media (max-width: 1080px) {
    .movie-grid,
    .movie-grid.wide {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

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

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

    .menu-toggle {
        display: block;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 42px 0 76px;
    }

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

    .hero-floating-card {
        left: 16px;
        right: 16px;
        bottom: 20px;
        max-width: none;
    }

    .hero-arrow {
        display: none;
    }

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

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

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

    .detail-cover {
        width: min(260px, 70vw);
    }

    .related-card {
        position: static;
    }

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

@media (max-width: 560px) {
    .header-inner,
    .content-wrap,
    .page-hero-inner,
    .detail-hero-inner,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

    .hero-title,
    .detail-info h1 {
        letter-spacing: -0.03em;
    }

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

    .movie-grid,
    .movie-grid.wide,
    .movie-grid.featured {
        gap: 12px;
    }

    .movie-card-body {
        padding: 12px;
    }

    .rank-item {
        grid-template-columns: 36px 72px minmax(0, 1fr);
        gap: 10px;
    }

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