:root {
    --stone-950: #1c1917;
    --stone-900: #292524;
    --stone-800: #44403c;
    --stone-700: #57534e;
    --stone-600: #78716c;
    --stone-500: #a8a29e;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-100: #fef3c7;
    --green-800: #166534;
    --green-700: #15803d;
    --green-100: #dcfce7;
    --blue-700: #1d4ed8;
    --blue-100: #dbeafe;
    --purple-100: #f3e8ff;
    --purple-800: #6b21a8;
    --white: #ffffff;
    --shadow-soft: 0 20px 45px rgba(68, 64, 60, 0.12);
    --shadow-card: 0 14px 32px rgba(68, 64, 60, 0.12);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    color: var(--stone-900);
    background: linear-gradient(180deg, #fafaf9 0%, rgba(254, 243, 199, 0.38) 52%, #fafaf9 100%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(250, 250, 249, 0.96), rgba(240, 253, 244, 0.96));
    border-bottom: 1px solid rgba(217, 119, 6, 0.18);
    box-shadow: 0 12px 30px rgba(68, 64, 60, 0.08);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(var(--max-width), calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.brand-mark,
.footer-logo span {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 22px;
    background: linear-gradient(135deg, var(--amber-600), var(--green-700));
    box-shadow: 0 10px 22px rgba(180, 83, 9, 0.26);
}

.brand:hover .brand-mark {
    transform: scale(1.08);
}

.brand-mark {
    transition: transform 0.25s ease;
}

.brand-name {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #92400e, #166534);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.primary-nav,
.category-strip {
    display: flex;
    align-items: center;
    gap: 18px;
}

.primary-nav a,
.category-strip a {
    position: relative;
    color: var(--stone-700);
    font-weight: 650;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.primary-nav a::after,
.category-strip a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 2px;
    background: var(--amber-600);
    transition: right 0.2s ease;
}

.primary-nav a:hover,
.category-strip a:hover {
    color: var(--amber-700);
}

.primary-nav a:hover::after,
.category-strip a:hover::after {
    right: 0;
}

.category-strip {
    flex: 1 1 auto;
    gap: 12px;
    overflow: hidden;
}

.category-strip a {
    font-size: 14px;
    color: var(--stone-600);
}

.site-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.site-search-form input,
.filter-input,
.filter-select {
    border: 1px solid rgba(217, 119, 6, 0.28);
    background: rgba(255, 255, 255, 0.82);
    border-radius: 999px;
    padding: 10px 14px;
    outline: none;
    color: var(--stone-800);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-search-form input:focus,
.filter-input:focus,
.filter-select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
    background: var(--white);
}

.site-search-form button,
.primary-button,
.secondary-button,
.menu-toggle,
.hero-arrow,
.player-overlay {
    border: 0;
    cursor: pointer;
}

.site-search-form button,
.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    color: var(--white);
    background: var(--amber-600);
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.23);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.site-search-form button:hover,
.primary-button:hover {
    background: var(--amber-700);
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(217, 119, 6, 0.28);
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    color: var(--stone-800);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(245, 158, 11, 0.32);
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.secondary-button:hover {
    color: var(--amber-700);
    border-color: var(--amber-600);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    color: var(--stone-700);
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(217, 119, 6, 0.22);
    border-radius: 999px;
    padding: 9px 14px;
    font-weight: 800;
}

.mobile-menu {
    display: none;
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 18px;
    border-top: 1px solid rgba(217, 119, 6, 0.14);
}

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

.mobile-menu nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.mobile-menu a {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
    color: var(--stone-700);
    font-weight: 700;
}

.page-main {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 64px;
}

.hero-carousel {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.72s ease, visibility 0.72s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.55) 43%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-inner {
    position: absolute;
    inset: 0;
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    padding-bottom: 76px;
}

.hero-copy {
    max-width: 690px;
    color: var(--white);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.9);
    font-weight: 800;
    margin-bottom: 16px;
}

.hero-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 7vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.05em;
    text-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.hero-copy p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.7;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

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

.hero-tags span,
.mini-tags span,
.soft-tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span:nth-child(1) {
    background: var(--amber-600);
}

.hero-tags span:nth-child(2) {
    background: var(--green-700);
}

.hero-tags span:nth-child(3) {
    background: var(--blue-700);
}

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

.hero-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-quick a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 750;
    backdrop-filter: blur(8px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
    border-radius: 999px;
    color: var(--white);
    background: rgba(0, 0, 0, 0.3);
    font-size: 32px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.52);
}

.hero-prev {
    left: max(18px, calc((100vw - var(--max-width)) / 2 - 58px));
}

.hero-next {
    right: max(18px, calc((100vw - var(--max-width)) / 2 - 58px));
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 26px;
    display: flex;
    gap: 9px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    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: 34px;
    background: var(--white);
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0 0 26px;
}

.section-heading h2,
.page-title h1 {
    margin: 0;
    color: var(--stone-900);
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-heading p,
.page-title p {
    margin: 7px 0 0;
    color: var(--stone-600);
    line-height: 1.75;
}

.section-bar {
    width: 7px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--amber-600), var(--green-700));
    margin-top: 4px;
    flex: 0 0 auto;
}

.home-grid,
.movie-grid,
.category-grid,
.related-grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card,
.category-card,
.stat-card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover,
.category-card:hover,
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 44px rgba(68, 64, 60, 0.16);
    border-color: rgba(217, 119, 6, 0.26);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(22, 101, 52, 0.22));
}

.poster-link img,
.category-cover img,
.list-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.movie-card:hover .poster-link img,
.category-card:hover .category-cover img,
.movie-list-item:hover .list-poster img {
    transform: scale(1.055);
}

.poster-badge,
.poster-year {
    position: absolute;
    top: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--white);
    font-size: 12px;
    font-weight: 850;
}

.poster-badge {
    left: 12px;
    background: rgba(217, 119, 6, 0.94);
}

.poster-year {
    right: 12px;
    background: rgba(21, 128, 61, 0.94);
}

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

.movie-card h3,
.list-body h3,
.category-card h3 {
    margin: 0 0 8px;
    color: var(--stone-900);
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a,
.list-body h3 a {
    transition: color 0.2s ease;
}

.movie-card h3 a:hover,
.list-body h3 a:hover {
    color: var(--amber-700);
}

.movie-card p,
.category-card p,
.list-body p {
    margin: 0;
    color: var(--stone-600);
    line-height: 1.65;
}

.movie-card p {
    display: -webkit-box;
    min-height: 52px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta,
.list-meta,
.category-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    color: var(--stone-500);
    font-size: 13px;
}

.movie-meta span,
.list-meta span,
.list-meta a,
.category-meta span {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.1);
}

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

.category-card {
    display: block;
    min-height: 100%;
}

.category-cover {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(21, 128, 61, 0.18));
}

.category-card-body {
    padding: 18px;
}

.category-card h3 {
    font-size: 20px;
}

.rank-list {
    display: grid;
    gap: 14px;
}

.rank-item {
    display: grid;
    grid-template-columns: 66px 86px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(217, 119, 6, 0.12);
    box-shadow: 0 10px 24px rgba(68, 64, 60, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(68, 64, 60, 0.12);
}

.rank-number {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber-600), var(--green-700));
}

.rank-poster {
    width: 86px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(21, 128, 61, 0.2));
}

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

.rank-info h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-info p {
    margin: 0;
    color: var(--stone-600);
    line-height: 1.65;
}

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

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

.movie-list-item {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 18px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(217, 119, 6, 0.12);
    box-shadow: 0 10px 24px rgba(68, 64, 60, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(68, 64, 60, 0.12);
}

.list-poster {
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(21, 128, 61, 0.18));
}

.list-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mini-tags span {
    background: var(--amber-100);
    color: #92400e;
}

.filter-panel,
.page-title,
.breadcrumbs,
.detail-card,
.text-card,
.stat-row {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(217, 119, 6, 0.12);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.page-title {
    padding: 32px;
    margin-bottom: 30px;
}

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 16px;
    margin-bottom: 28px;
}

.filter-input {
    min-width: min(340px, 100%);
    flex: 1 1 260px;
}

.filter-select {
    min-width: 140px;
}

.result-note {
    color: var(--stone-600);
    font-weight: 700;
    margin-left: auto;
}

.empty-state {
    display: none;
    padding: 36px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.8);
    color: var(--stone-600);
    text-align: center;
    font-weight: 800;
}

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

.breadcrumbs {
    padding: 14px 18px;
    margin-bottom: 22px;
    color: var(--stone-600);
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--amber-700);
    font-weight: 800;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 24px;
}

.detail-card {
    overflow: hidden;
}

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

.player-shell video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--white);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.68));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
    width: 76px;
    height: 76px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--amber-600);
    font-size: 28px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.3);
}

.play-title {
    font-size: 18px;
    font-weight: 900;
    text-shadow: 0 8px 26px rgba(0, 0, 0, 0.36);
}

.detail-content {
    padding: 24px;
}

.detail-tags {
    margin-bottom: 16px;
}

.soft-tag {
    background: var(--purple-100);
    color: var(--purple-800);
}

.detail-content h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.16;
    letter-spacing: -0.03em;
}

.detail-content .lead {
    color: var(--stone-700);
    font-size: 18px;
    line-height: 1.78;
    margin: 0 0 22px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(90deg, rgba(254, 243, 199, 0.72), rgba(220, 252, 231, 0.62));
}

.info-grid span {
    display: block;
    color: var(--stone-500);
    font-size: 13px;
    margin-bottom: 4px;
}

.info-grid strong {
    color: var(--stone-900);
}

.text-card {
    padding: 24px;
    margin-top: 24px;
}

.text-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.text-card p {
    color: var(--stone-700);
    line-height: 1.9;
    margin: 0;
    white-space: pre-line;
}

.side-panel {
    display: grid;
    gap: 18px;
    align-content: start;
}

.side-cover {
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(21, 128, 61, 0.2));
}

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

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 18px;
    text-align: center;
}

.stat-row span {
    display: block;
    color: var(--stone-500);
    font-size: 13px;
}

.stat-row strong {
    display: block;
    margin-top: 4px;
    color: var(--stone-900);
    font-size: 18px;
}

.site-footer {
    background: linear-gradient(180deg, rgba(245, 245, 244, 0.92), rgba(231, 229, 228, 0.94));
    border-top: 1px solid rgba(217, 119, 6, 0.14);
}

.footer-inner {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 28px;
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 1.2fr;
    gap: 34px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-logo strong {
    font-size: 22px;
}

.site-footer h3 {
    margin: 0 0 14px;
    font-size: 17px;
}

.site-footer p,
.site-footer li {
    color: var(--stone-600);
    line-height: 1.75;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

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

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

.copyright {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: var(--stone-500);
    border-top: 1px solid rgba(168, 162, 158, 0.32);
    font-size: 14px;
}

@media (max-width: 1120px) {
    .category-strip {
        display: none;
    }

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

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

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

@media (max-width: 880px) {
    .primary-nav,
    .header-inner > .site-search-form {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

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

    .hero-inner {
        padding-bottom: 68px;
    }

    .hero-arrow {
        display: none;
    }

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

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

    .side-panel {
        grid-template-columns: 180px 1fr;
    }

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

    .rank-item {
        grid-template-columns: 50px 76px 1fr;
    }

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

@media (max-width: 620px) {
    .header-inner {
        min-height: 64px;
    }

    .brand-mark,
    .footer-logo span {
        width: 38px;
        height: 38px;
        font-size: 19px;
    }

    .brand-name {
        font-size: 20px;
    }

    .mobile-menu nav {
        grid-template-columns: 1fr;
    }

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

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

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

    .page-main {
        padding-top: 28px;
    }

    .page-title {
        padding: 24px;
    }

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

    .movie-list-item {
        grid-template-columns: 96px 1fr;
        gap: 14px;
    }

    .rank-item {
        grid-template-columns: 44px 68px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .rank-number {
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }

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

    .info-grid,
    .stat-row {
        grid-template-columns: 1fr;
        text-align: left;
    }
}
