:root {
    --bg: #fff7ed;
    --surface: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.78);
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(251, 146, 60, 0.18);
    --orange: #f97316;
    --pink: #ec4899;
    --yellow: #facc15;
    --shadow: 0 18px 45px rgba(180, 83, 9, 0.15);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 8% 5%, rgba(251, 146, 60, 0.24), transparent 34rem),
        radial-gradient(circle at 88% 12%, rgba(236, 72, 153, 0.20), transparent 30rem),
        linear-gradient(135deg, #fff7ed 0%, #fff1f2 45%, #fefce8 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(251, 146, 60, 0.14);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 30px rgba(124, 45, 18, 0.08);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 12px 25px rgba(236, 72, 153, 0.25);
}

.logo-text {
    display: grid;
    gap: 2px;
}

.logo-text strong {
    font-size: 22px;
    line-height: 1;
    background: linear-gradient(90deg, var(--orange), var(--pink), var(--yellow));
    -webkit-background-clip: text;
    color: transparent;
}

.logo-text small {
    color: var(--muted);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-nav > a,
.nav-dropdown > button {
    border: 0;
    border-radius: 14px;
    padding: 10px 14px;
    color: #4b5563;
    background: transparent;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav > a:hover,
.nav-dropdown > button:hover,
.main-nav > a.is-active {
    color: var(--orange);
    background: rgba(251, 146, 60, 0.12);
    transform: translateY(-1px);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 220px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown-panel a {
    padding: 9px 10px;
    border-radius: 12px;
    color: #4b5563;
}

.dropdown-panel a:hover {
    color: var(--orange);
    background: rgba(251, 146, 60, 0.10);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 1 320px;
}

.top-search,
.wide-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 1px solid rgba(251, 146, 60, 0.22);
    border-radius: 999px;
    background: #ffffff;
    padding: 8px 12px;
    color: var(--muted);
}

.top-search span {
    font-size: 13px;
    color: var(--orange);
    font-weight: 700;
}

.top-search input,
.wide-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.mobile-panel.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mobile-panel a {
    padding: 10px;
    border-radius: 12px;
    background: rgba(251, 146, 60, 0.08);
}

.search-results {
    position: fixed;
    top: 84px;
    left: 50%;
    width: min(720px, calc(100% - 32px));
    max-height: 70vh;
    overflow: auto;
    transform: translateX(-50%);
    display: none;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow);
}

.search-results.is-open {
    display: grid;
    gap: 8px;
}

.search-result-item {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: #fff7ed;
}

.search-result-item img {
    width: 76px;
    height: 48px;
    object-fit: cover;
    border-radius: 12px;
}

.search-result-item strong {
    display: block;
    margin-bottom: 2px;
}

.search-result-item small {
    color: var(--muted);
}

.hero {
    position: relative;
    height: min(76vh, 720px);
    min-height: 520px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.84), rgba(17, 24, 39, 0.56), rgba(17, 24, 39, 0.12)),
        radial-gradient(circle at 25% 35%, rgba(249, 115, 22, 0.26), transparent 28rem);
}

.hero-content {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    color: #ffffff;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(42px, 8vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-desc {
    max-width: 660px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
}

.hero-tags,
.card-tags,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero-tags span,
.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border-radius: 999px;
    padding: 6px 12px;
    color: #9a3412;
    background: rgba(255, 237, 213, 0.92);
    font-size: 13px;
    font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.wide-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    min-height: 48px;
    padding: 0 22px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.primary-btn,
.wide-search button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 14px 28px rgba(236, 72, 153, 0.24);
}

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.wide-search button:hover {
    transform: translateY(-2px) scale(1.01);
}

.primary-btn.full {
    width: 100%;
}

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

.hero-dot {
    width: 34px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

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

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

.intro-strip {
    padding-top: 42px;
}

.intro-card,
.page-hero,
.category-hero-content,
.side-card,
.summary-box,
.review-box {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.intro-card {
    display: grid;
    gap: 14px;
    padding: clamp(24px, 4vw, 42px);
}

.intro-card h2,
.page-hero h1,
.category-hero h1,
.section-heading h2,
.detail-copy h1 {
    margin: 0;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.intro-card h2,
.page-hero h1,
.category-hero h1 {
    font-size: clamp(34px, 5vw, 56px);
}

.intro-card p,
.page-hero p,
.category-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.wide-search {
    max-width: 720px;
    margin-top: 12px;
    padding: 8px 8px 8px 18px;
}

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

.section-heading h2 {
    font-size: clamp(28px, 4vw, 40px);
    background: linear-gradient(90deg, var(--orange), var(--pink));
    -webkit-background-clip: text;
    color: transparent;
}

.section-heading > a,
.text-link,
.collection-head a {
    color: var(--orange);
    font-weight: 800;
}

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

.category-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: var(--radius);
    color: #ffffff;
    box-shadow: var(--shadow);
    isolation: isolate;
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(145deg, rgba(249, 115, 22, 0.86), rgba(236, 72, 153, 0.68));
}

.category-card strong,
.category-card small,
.category-icon {
    position: relative;
    z-index: 2;
    display: block;
    padding-inline: 18px;
}

.category-icon {
    padding-top: 22px;
    font-size: 38px;
}

.category-card strong {
    margin-top: 24px;
    font-size: 20px;
}

.category-card small {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(251, 146, 60, 0.12);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(124, 45, 18, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 55px rgba(124, 45, 18, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

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

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

.play-float {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 34px;
    background: rgba(0, 0, 0, 0.32);
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.duration-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    border-radius: 999px;
    padding: 4px 8px;
    color: #ffffff;
    font-size: 12px;
    background: rgba(17, 24, 39, 0.76);
}

.movie-card-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

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

.movie-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--orange);
}

.movie-card p {
    min-height: 44px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.card-tags {
    gap: 6px;
}

.card-tags .tag-pill {
    min-height: 24px;
    padding: 4px 8px;
    font-size: 12px;
}

.split-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
    gap: 28px;
}

.split-section .content-section {
    width: 100%;
}

.list-panel,
.rank-panel,
.ranking-list {
    display: grid;
    gap: 12px;
}

.list-row,
.rank-row,
.ranking-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid rgba(251, 146, 60, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 26px rgba(124, 45, 18, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.list-row:hover,
.rank-row:hover,
.ranking-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(124, 45, 18, 0.14);
}

.list-row {
    padding: 10px;
}

.row-index,
.rank-num,
.ranking-number {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

.list-row img {
    width: 92px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
}

.row-text,
.ranking-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.row-text strong,
.ranking-copy strong,
.rank-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.row-text small,
.ranking-copy small,
.rank-info {
    color: var(--muted);
    font-size: 13px;
}

.row-score,
.ranking-score {
    margin-left: auto;
    color: var(--orange);
    font-weight: 900;
}

.rank-row {
    min-height: 58px;
    padding: 10px 12px;
}

.rank-title {
    flex: 1;
    font-weight: 800;
}

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

.collection-block {
    border: 1px solid rgba(251, 146, 60, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: var(--shadow);
    padding: 18px;
}

.collection-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.collection-head h3 {
    margin: 0;
    font-size: 22px;
}

.small-card-grid,
.small-card-stack {
    display: grid;
    gap: 12px;
}

.small-card {
    display: grid;
    grid-template-columns: 94px 1fr;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 16px;
    background: #ffffff;
    transition: background 0.2s ease, transform 0.2s ease;
}

.small-card:hover {
    transform: translateX(2px);
    background: #fff7ed;
}

.small-card img {
    width: 94px;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
}

.small-card strong,
.small-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.small-card small {
    margin-top: 4px;
    color: var(--muted);
}

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 44px auto 0;
    padding: clamp(34px, 6vw, 72px);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 237, 213, 0.76)),
        radial-gradient(circle at 82% 12%, rgba(236, 72, 153, 0.20), transparent 24rem);
}

.ranking-hero {
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(124, 45, 18, 0.82)),
        radial-gradient(circle at 80% 10%, rgba(236, 72, 153, 0.24), transparent 24rem);
    color: #ffffff;
}

.ranking-hero p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.78);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 18px;
    align-items: center;
    border: 1px solid rgba(251, 146, 60, 0.14);
    border-radius: 24px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.category-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.category-preview img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 14px;
}

.category-icon-inline {
    font-size: 28px;
}

.category-overview-card h2 {
    margin: 8px 0 8px;
}

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

.category-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #111827;
}

.category-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.48), rgba(17, 24, 39, 0.16)),
        radial-gradient(circle at 20% 50%, rgba(249, 115, 22, 0.28), transparent 26rem);
}

.category-hero-content {
    position: relative;
    width: min(780px, calc(100% - 32px));
    margin-left: max(16px, calc((100% - 1180px) / 2));
    padding: clamp(24px, 5vw, 44px);
    color: #ffffff;
    background: rgba(17, 24, 39, 0.48);
}

.category-hero-content p:not(.eyebrow) {
    color: rgba(255, 255, 255, 0.82);
}

.filter-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
}

.filter-bar input,
.filter-bar select {
    min-height: 48px;
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 16px;
    background: #ffffff;
    padding: 0 14px;
}

.ranking-card {
    padding: 12px;
}

.ranking-card img {
    width: 132px;
    height: 82px;
    border-radius: 14px;
    object-fit: cover;
}

.ranking-copy em {
    color: var(--muted);
    font-style: normal;
    line-height: 1.5;
}

.detail-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 32px auto 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--orange);
    font-weight: 700;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000000;
    box-shadow: 0 24px 64px rgba(17, 24, 39, 0.28);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.2), rgba(17, 24, 39, 0.62));
    cursor: pointer;
}

.player-cover.hidden {
    display: none;
}

.big-play {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 18px 40px rgba(236, 72, 153, 0.32);
    font-size: 34px;
    padding-left: 5px;
}

.player-message {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.78);
}

.detail-copy {
    padding-top: 26px;
}

.detail-copy h1 {
    font-size: clamp(30px, 4vw, 46px);
}

.detail-meta {
    margin: 16px 0;
}

.detail-meta span {
    border-radius: 999px;
    padding: 8px 12px;
    color: #9a3412;
    background: #ffedd5;
    font-weight: 700;
}

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

.summary-box,
.review-box,
.side-card {
    margin-top: 18px;
    padding: 22px;
}

.summary-box h2,
.review-box h2,
.side-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.summary-box p,
.review-box p {
    margin: 0;
    color: #374151;
    line-height: 1.9;
}

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

.poster-side img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 14px;
}

.site-footer {
    margin-top: 50px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(124, 45, 18, 0.92)),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.25), transparent 22rem);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0 26px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
    gap: 30px;
}

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

.footer-inner p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: start;
}

.footer-links a {
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.10);
}

.footer-copy {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 30px;
    color: rgba(255, 255, 255, 0.62);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    text-align: center;
}

@media (max-width: 1080px) {
    .main-nav,
    .top-search {
        display: none;
    }

    .header-actions {
        flex: 0 0 auto;
    }

    .menu-toggle {
        display: block;
    }

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

    .split-section,
    .detail-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

    .logo-text strong {
        font-size: 18px;
    }

    .hero {
        height: 72vh;
        min-height: 560px;
    }

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

    .category-grid,
    .movie-grid.four-cols,
    .collection-grid,
    .category-overview-grid,
    .detail-side {
        grid-template-columns: 1fr;
    }

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

    .filter-bar,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .ranking-card {
        align-items: flex-start;
    }

    .ranking-card img {
        width: 96px;
        height: 66px;
    }

    .ranking-copy em {
        display: none;
    }

    .wide-search {
        align-items: stretch;
        flex-direction: column;
        border-radius: 24px;
    }

    .wide-search button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .mobile-panel.is-open {
        grid-template-columns: 1fr;
    }

    .list-row img,
    .ranking-score,
    .rank-info {
        display: none;
    }

    .small-card {
        grid-template-columns: 78px 1fr;
    }

    .small-card img {
        width: 78px;
        height: 52px;
    }
}
