* {
    box-sizing: border-box;
}

:root {
    --red: #ef4444;
    --orange: #f97316;
    --yellow: #f59e0b;
    --green: #22c55e;
    --cyan: #06b6d4;
    --blue: #2563eb;
    --purple: #7c3aed;
    --pink: #ec4899;
    --dark: #111827;
    --muted: #6b7280;
    --light: #f8fafc;
    --card: #ffffff;
    --line: #e5e7eb;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    --radius: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--dark);
    background: #f5f7fb;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.rainbow-line {
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--cyan), var(--blue), var(--purple), var(--pink));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

.nav-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    font-size: 22px;
    background: linear-gradient(135deg, var(--red), var(--orange), var(--purple));
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.25);
}

.brand-text {
    font-size: 26px;
    background: linear-gradient(90deg, var(--red), var(--orange), var(--green), var(--cyan), var(--blue), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-panel {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #374151;
    font-weight: 700;
}

.nav-panel > a {
    position: relative;
    transition: color 0.2s ease;
}

.nav-panel > a:hover {
    color: var(--blue);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
}

.nav-search input {
    width: 210px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 12px;
    color: #111827;
}

.nav-search button {
    border: 0;
    color: #ffffff;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--purple));
}

.menu-toggle {
    display: none;
    border: 0;
    background: #f3f4f6;
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px 0;
    background: #111827;
}

.section-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-carousel {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(239, 68, 68, 0.45), transparent 30%), linear-gradient(135deg, #111827, #312e81 45%, #701a75);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.65s ease, visibility 0.65s ease, transform 0.65s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.26;
    filter: blur(4px);
}

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

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.68), rgba(17, 24, 39, 0.92));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 680px;
    margin: 0 auto;
    padding: 92px 24px 88px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.55fr);
    align-items: center;
    gap: 56px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy .eyebrow,
.page-hero .eyebrow,
.detail-copy .eyebrow {
    color: #fde68a;
}

.hero-copy h1 {
    margin: 16px 0 18px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

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

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tag-row span {
    background: #eef2ff;
    color: #4338ca;
    border-color: transparent;
}

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

.primary-btn,
.ghost-btn,
.section-link,
.small-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    padding: 14px 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--orange), var(--purple));
    box-shadow: 0 16px 30px rgba(239, 68, 68, 0.25);
}

.ghost-btn {
    padding: 13px 23px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover,
.small-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--soft-shadow);
}

.hero-poster {
    position: relative;
    min-height: 520px;
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.hero-poster img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.hero-poster span {
    position: absolute;
    left: 20px;
    bottom: 20px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.54);
    color: #ffffff;
    font-weight: 900;
}

.hero-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    font-size: 36px;
    line-height: 1;
    backdrop-filter: blur(12px);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dots button {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

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

.content-section {
    padding: 72px 0;
    background: #ffffff;
}

.pale-section {
    background: linear-gradient(135deg, #f8fafc, #eff6ff);
}

.alt-section:nth-of-type(odd) {
    background: #f9fafb;
}

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

.section-heading h2 {
    margin: 8px 0 8px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
}

.section-link {
    flex: none;
    color: var(--blue);
    font-size: 16px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(229, 231, 235, 0.8);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-box {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #312e81, #7c2d12);
}

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

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

.poster-box::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 44%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.play-pill {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    color: #ffffff;
    font-weight: 900;
    padding: 7px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--red), var(--purple));
}

.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 10px 18px rgba(239, 68, 68, 0.28);
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.movie-card h2 {
    margin: 9px 0 8px;
    font-size: 20px;
    line-height: 1.25;
}

.movie-card h2 a:hover,
.rank-content h2 a:hover,
.category-preview-links a:hover {
    color: var(--blue);
}

.movie-card p {
    min-height: 50px;
    margin: 0 0 14px;
    color: #4b5563;
    font-size: 14px;
}

.two-column-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
}

.side-panel {
    padding: 32px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #1d4ed8, #7c3aed, #db2777);
    color: #ffffff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.side-panel .eyebrow {
    color: #fde68a;
}

.side-panel h2 {
    margin: 12px 0;
    font-size: 30px;
    line-height: 1.1;
}

.side-panel p {
    color: rgba(255, 255, 255, 0.82);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 96px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.rank-number {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--purple));
}

.rank-thumb {
    width: 96px;
    height: 68px;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #1f2937, #3730a3);
}

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

.rank-content h2 {
    margin: 0 0 4px;
    font-size: 20px;
}

.rank-content p {
    margin: 0 0 8px;
    color: #4b5563;
}

.small-action {
    padding: 10px 16px;
    color: #ffffff;
    background: var(--blue);
}

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

.category-tile,
.category-overview-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(229, 231, 235, 0.9);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-tile a,
.category-overview-card a {
    display: block;
    padding: 24px;
}

.category-icon,
.category-symbol {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 18px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--red), var(--orange), var(--purple));
}

.category-tile h2,
.category-overview-card h2 {
    margin: 0 0 10px;
    font-size: 23px;
}

.category-tile p,
.category-overview-card p {
    margin: 0 0 16px;
    color: var(--muted);
}

.category-tile div,
.category-preview-links {
    display: grid;
    gap: 7px;
    color: #4f46e5;
    font-weight: 800;
    font-size: 14px;
}

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at 15% 10%, rgba(253, 186, 116, 0.38), transparent 30%), linear-gradient(135deg, #1e1b4b, #312e81, #7c2d12);
}

.page-hero .section-inner {
    padding-top: 86px;
    padding-bottom: 86px;
}

.page-hero h1 {
    max-width: 820px;
    margin: 12px 0 16px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1;
    letter-spacing: -0.055em;
}

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

.tool-panel {
    margin-bottom: 28px;
    padding: 20px;
    border-radius: var(--radius);
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: var(--soft-shadow);
}

.tool-search input {
    width: 100%;
    border: 1px solid #d1d5db;
    outline: 0;
    border-radius: 16px;
    padding: 14px 16px;
    color: #111827;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tool-search input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.filter-chips button {
    border: 0;
    cursor: pointer;
    padding: 9px 13px;
    border-radius: 999px;
    color: #374151;
    background: #f3f4f6;
    font-weight: 800;
}

.filter-chips button.active,
.filter-chips button:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--purple));
}

.empty-state {
    display: none;
    margin: 20px 0 0;
    padding: 20px;
    text-align: center;
    color: var(--muted);
    background: #f9fafb;
    border-radius: 16px;
}

.empty-state.show {
    display: block;
}

.movie-card.is-hidden,
.rank-item.is-hidden {
    display: none;
}

.full-rank-list {
    gap: 12px;
}

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

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.25;
    filter: blur(5px);
}

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

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.78));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding-top: 56px;
    padding-bottom: 64px;
}

.breadcrumb,
.breadcrumb-sep {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 800;
}

.breadcrumb:hover {
    color: #ffffff;
}

.detail-header-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    margin-top: 24px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #1f2937, #7c2d12);
    box-shadow: 0 26px 62px rgba(0, 0, 0, 0.42);
}

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

.detail-copy h1 {
    margin: 12px 0 14px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.detail-copy p {
    max-width: 850px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 800;
}

.detail-tags span {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow);
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.58));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.start-icon {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 999px;
    font-size: 36px;
    background: linear-gradient(135deg, var(--red), var(--orange), var(--purple));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.story-card,
.info-card {
    margin-top: 22px;
    padding: 28px;
    border-radius: var(--radius);
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: var(--soft-shadow);
}

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

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

.detail-aside {
    position: sticky;
    top: 100px;
}

.info-card dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px 14px;
    margin: 0;
}

.info-card dt {
    color: var(--muted);
    font-weight: 900;
}

.info-card dd {
    margin: 0;
    color: #111827;
    font-weight: 700;
}

.related-mini {
    display: grid;
    gap: 14px;
}

.related-mini a {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    font-weight: 900;
}

.related-mini img {
    width: 86px;
    height: 58px;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, #111827, #312e81);
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr) minmax(220px, 0.7fr);
    gap: 38px;
}

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

.footer-brand p {
    max-width: 520px;
    color: #9ca3af;
}

.footer-links h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 18px;
}

.footer-links div {
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: #9ca3af;
}

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

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 24px;
    text-align: center;
    color: #9ca3af;
}

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

    .hero-content,
    .detail-header-grid,
    .detail-layout,
    .two-column-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        min-height: auto;
        max-width: 420px;
    }

    .hero-poster img {
        height: 520px;
    }

    .side-panel,
    .detail-aside {
        position: static;
    }
}

@media (max-width: 780px) {
    .nav-wrap {
        flex-wrap: wrap;
        padding: 0 18px;
    }

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

    .menu-toggle {
        display: inline-block;
    }

    .nav-panel {
        display: none;
        width: 100%;
        padding: 0 0 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

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

    .nav-search {
        width: 100%;
    }

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

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

    .hero-content {
        padding-top: 64px;
        gap: 28px;
    }

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

    .hero-poster img {
        height: 360px;
    }

    .hero-arrow {
        display: none;
    }

    .section-heading {
        display: block;
    }

    .section-link {
        margin-top: 14px;
    }

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

    .rank-item {
        grid-template-columns: 46px 78px minmax(0, 1fr);
    }

    .rank-thumb {
        width: 78px;
        height: 58px;
    }

    .small-action {
        grid-column: 2 / -1;
        width: max-content;
    }

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

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

@media (max-width: 520px) {
    .section-inner {
        padding: 0 16px;
    }

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

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

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

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

    .detail-layout {
        gap: 18px;
    }

    .story-card,
    .info-card {
        padding: 22px;
    }
}
