
:root {
    --bg: #0f172a;
    --bg-soft: #111827;
    --panel: #ffffff;
    --panel-soft: #f8fafc;
    --text: #111827;
    --muted: #64748b;
    --line: rgba(148, 163, 184, 0.22);
    --brand: #dc2626;
    --brand-light: #fb923c;
    --brand-dark: #991b1b;
    --gold: #f59e0b;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
    --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;
    background: linear-gradient(180deg, #fff7ed 0, #ffffff 340px, #f8fafc 100%);
    color: var(--text);
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #0f172a, #1e293b 48%, #0f172a);
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.32);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 190px;
}

.brand-icon,
.footer-brand span {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    box-shadow: 0 14px 26px rgba(220, 38, 38, 0.28);
}

.brand strong {
    display: block;
    font-size: 22px;
    line-height: 1;
    background: linear-gradient(90deg, #f87171, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand em {
    display: block;
    margin-top: 4px;
    color: #9ca3af;
    font-size: 12px;
    font-style: normal;
}

.desktop-nav {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
    display: none;
}

.desktop-nav a,
.mobile-panel a {
    color: #e5e7eb;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: #f87171;
}

.header-search {
    display: flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.92);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.header-search input,
.mobile-search input {
    width: 190px;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 10px 14px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: #cbd5e1;
}

.header-search button,
.mobile-search button {
    border: 0;
    color: #ffffff;
    padding: 10px 14px;
    background: rgba(239, 68, 68, 0.7);
    cursor: pointer;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 28px;
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

.mobile-panel nav {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.mobile-search {
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    margin-top: 16px;
    background: rgba(51, 65, 85, 0.92);
}

.hero-carousel {
    position: relative;
    min-height: 660px;
    color: #ffffff;
    overflow: hidden;
    background: #0f172a;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.08) contrast(1.06);
    transform: scale(1.04);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 30%, rgba(249, 115, 22, 0.38), transparent 34%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.76) 45%, rgba(15, 23, 42, 0.25));
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.18), #0f172a 100%),
        linear-gradient(135deg, rgba(220, 38, 38, 0.24), transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 54px;
    padding: 86px 0 78px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.18);
    color: #fecaca;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(248, 113, 113, 0.26);
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero-copy p {
    width: min(700px, 100%);
    margin: 22px 0 0;
    color: #e5e7eb;
    font-size: 20px;
}

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

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 13px;
}

.tag-row span {
    background: #fff1f2;
    color: #b91c1c;
    border-color: #fecdd3;
}

.large-tags span {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
}

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

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

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    box-shadow: 0 18px 35px rgba(220, 38, 38, 0.28);
}

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

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

.hero-poster {
    position: relative;
    display: block;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.38);
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #1e293b, #7f1d1d);
}

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

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

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

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

.hero-dots button.is-active {
    background: #fb923c;
}

.quick-search-panel {
    margin-top: -36px;
    position: relative;
    z-index: 6;
    padding: 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.wide-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.wide-search input,
.inline-filter input,
.search-panel input,
.search-panel select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 13px 16px;
    outline: none;
    background: #ffffff;
}

.wide-search button,
.search-panel button {
    border: 0;
    border-radius: 999px;
    padding: 0 22px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 16px;
}

.stats-strip span {
    border-radius: 18px;
    background: #fff7ed;
    padding: 12px;
    text-align: center;
    color: #9a3412;
}

.stats-strip strong {
    display: block;
    font-size: 24px;
    color: #dc2626;
}

.section-block {
    padding: 64px 0 0;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

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

.section-heading a {
    color: var(--brand);
    font-weight: 700;
}

.category-grid,
.category-overview-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.category-tile,
.category-overview-card,
.text-panel,
.info-panel,
.rank-row,
.search-panel,
.filter-bar {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.category-tile {
    min-height: 174px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background:
        radial-gradient(circle at top right, rgba(248, 113, 113, 0.16), transparent 34%),
        #ffffff;
}

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

.category-tile strong {
    font-size: 22px;
}

.category-tile span {
    color: var(--muted);
    font-size: 14px;
}

.category-tile em {
    color: var(--brand);
    font-style: normal;
    font-weight: 700;
}

.home-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    align-items: start;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 170px 1fr;
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background:
        linear-gradient(135deg, #1e293b, #7f1d1d),
        radial-gradient(circle at 70% 20%, rgba(251, 146, 60, 0.45), transparent 40%);
}

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

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

.play-mark {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 48px;
    opacity: 0;
    background: rgba(15, 23, 42, 0.38);
    transition: opacity 0.2s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
}

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    border-radius: 999px;
    padding: 5px 9px;
    color: #ffffff;
    background: rgba(220, 38, 38, 0.9);
    font-size: 12px;
    font-weight: 700;
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
}

.card-meta span {
    border-radius: 999px;
    background: #f1f5f9;
    padding: 3px 8px;
}

.movie-card h3 {
    margin: 10px 0 8px;
    font-size: 19px;
    line-height: 1.25;
}

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

.card-foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
    font-size: 13px;
}

.card-foot span {
    color: var(--muted);
}

.card-foot a {
    color: var(--brand);
    font-weight: 700;
}

.rank-panel {
    position: sticky;
    top: 100px;
    border-radius: 28px;
    padding: 22px;
    color: #ffffff;
    background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.98)),
        radial-gradient(circle at top right, rgba(239, 68, 68, 0.25), transparent 40%);
    box-shadow: var(--shadow);
}

.rank-panel h2 {
    margin: 0 0 14px;
}

.rank-panel ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-panel li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.rank-panel a {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
    padding: 12px 0;
}

.rank-no {
    grid-row: span 3;
    width: 32px;
    height: 32px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    font-weight: 800;
}

.rank-panel strong {
    line-height: 1.2;
}

.rank-panel em,
.rank-panel b {
    color: #cbd5e1;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
}

.page-main {
    padding: 44px 0 0;
}

.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    border-radius: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 44px;
    color: #ffffff;
    background:
        radial-gradient(circle at 85% 20%, rgba(251, 146, 60, 0.42), transparent 30%),
        linear-gradient(135deg, #0f172a, #1e293b 55%, #7f1d1d);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.08;
}

.page-hero p {
    width: min(760px, 100%);
    color: #e5e7eb;
    font-size: 18px;
}

.category-overview-grid {
    margin-top: 26px;
    grid-template-columns: repeat(2, 1fr);
}

.category-overview-card {
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-posters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.mini-posters a {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #1e293b, #7f1d1d);
}

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

.category-overview-card h2 {
    margin: 0;
    font-size: 26px;
}

.category-overview-card p {
    color: var(--muted);
}

.category-overview-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--brand);
    font-weight: 700;
}

.inline-filter {
    width: min(360px, 100%);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
    padding: 14px;
}

.filter-bar button {
    border: 0;
    border-radius: 999px;
    padding: 8px 13px;
    background: #f1f5f9;
    cursor: pointer;
}

.filter-bar button.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr) 132px;
    gap: 20px;
    align-items: center;
    padding: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-cover {
    position: relative;
    display: block;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #1e293b, #7f1d1d);
}

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

.rank-cover span {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    font-weight: 900;
}

.rank-info h2 {
    margin: 10px 0 6px;
    font-size: 24px;
}

.rank-info p {
    color: var(--muted);
}

.rank-score {
    text-align: center;
    border-radius: 20px;
    padding: 18px 10px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #7f1d1d);
}

.rank-score strong {
    display: block;
    font-size: 34px;
    line-height: 1;
}

.rank-score span {
    color: #fecaca;
    font-size: 13px;
}

.detail-main {
    background: #0f172a;
    color: #ffffff;
    padding-bottom: 1px;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    background-size: cover;
    background-position: center;
}

.detail-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.34), transparent 34%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.84) 48%, rgba(15, 23, 42, 0.48)),
        linear-gradient(180deg, transparent, #0f172a 100%);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: #cbd5e1;
    margin-bottom: 34px;
}

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

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

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #1e293b, #7f1d1d);
}

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

.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.08;
}

.one-line {
    max-width: 780px;
    margin: 18px 0 22px;
    color: #e5e7eb;
    font-size: 20px;
}

.player-section {
    margin-top: -54px;
    position: relative;
    z-index: 5;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    aspect-ratio: 16 / 9;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.66));
    cursor: pointer;
}

.player-start.is-hidden {
    display: none;
}

.player-start span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-light));
    box-shadow: 0 18px 35px rgba(220, 38, 38, 0.35);
    font-size: 32px;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 300px;
    gap: 18px;
    margin-top: 30px;
}

.text-panel,
.info-panel {
    padding: 22px;
    color: var(--text);
}

.text-panel h2,
.info-panel h2 {
    margin: 0 0 12px;
}

.text-panel p {
    margin: 0;
    color: #334155;
}

.info-panel dl {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 10px 12px;
    margin: 0;
}

.info-panel dt {
    color: var(--muted);
}

.info-panel dd {
    margin: 0;
}

.detail-main .section-heading h2,
.detail-main .section-heading p {
    color: #ffffff;
}

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

.search-panel {
    display: grid;
    grid-template-columns: 1fr 170px 170px 150px auto;
    gap: 12px;
    margin-top: 24px;
    padding: 16px;
}

.search-summary {
    margin: 22px 0;
    color: var(--muted);
}

.site-footer {
    margin-top: 78px;
    color: #d1d5db;
    background: linear-gradient(135deg, #0f172a, #1e293b 56%, #0f172a);
}

.detail-main .site-footer {
    margin-top: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 32px;
    padding: 48px 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 22px;
}

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

.site-footer p,
.site-footer a {
    color: #cbd5e1;
}

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

.site-footer a:hover {
    color: #f87171;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
}

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

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

    .hero-content,
    .home-split,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        width: min(300px, 80vw);
    }

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

    .rank-panel {
        position: static;
    }

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

@media (max-width: 760px) {
    .container {
        width: min(100% - 22px, 1200px);
    }

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

    .brand strong {
        font-size: 19px;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 58px;
        gap: 26px;
    }

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

    .wide-search,
    .stats-strip,
    .category-grid,
    .category-overview-grid,
    .movie-grid,
    .category-movie-grid,
    .related-grid,
    .rank-row,
    .detail-layout,
    .search-panel {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .page-hero,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-hero {
        padding: 28px;
        border-radius: 26px;
    }

    .movie-card-horizontal {
        grid-template-columns: 1fr;
    }

    .rank-score {
        text-align: left;
    }

    .detail-layout {
        gap: 24px;
    }

    .detail-poster {
        width: min(260px, 78vw);
    }
}
