:root {
    --bg: #fff7fb;
    --surface: #ffffff;
    --surface-soft: #fff0f7;
    --text: #17111b;
    --muted: #6b5f70;
    --line: #f4d9e8;
    --brand: #ec4899;
    --brand-deep: #db2777;
    --amber: #f59e0b;
    --purple: #8b5cf6;
    --shadow: 0 20px 50px rgba(219, 39, 119, 0.16);
    --shadow-soft: 0 12px 28px rgba(17, 17, 26, 0.08);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #fff7fb 0%, #ffffff 52%, #fff7fb 100%);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(244, 217, 232, 0.9);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
    color: #1f1424;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), var(--amber));
    box-shadow: 0 12px 25px rgba(236, 72, 153, 0.32);
    font-size: 15px;
}

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

.nav-link,
.nav-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border-radius: 999px;
    color: #493f50;
    font-weight: 650;
    border: 0;
    background: transparent;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-button:hover {
    color: var(--brand-deep);
    background: #fff0f7;
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: 190px;
    padding: 10px;
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: 0.2s ease;
}

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

.dropdown-menu a {
    padding: 9px 12px;
    border-radius: 12px;
    color: var(--muted);
    font-weight: 600;
}

.dropdown-menu a:hover {
    color: var(--brand-deep);
    background: #fff0f7;
}

.mobile-toggle {
    width: 42px;
    height: 42px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    border-radius: 14px;
    background: #fff0f7;
    cursor: pointer;
}

.mobile-toggle span {
    width: 20px;
    height: 2px;
    background: var(--brand-deep);
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 22px 16px;
}

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

.hero-slider {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe4f1 0%, #fff7d6 45%, #f0e7ff 100%);
}

.hero-track {
    position: relative;
    min-height: 680px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.7fr);
    align-items: center;
    gap: 48px;
    padding: 92px max(26px, calc((100vw - 1240px) / 2)) 86px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: blur(30px);
    transform: scale(1.12);
    opacity: 0.18;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(236, 72, 153, 0.28), transparent 28%),
        radial-gradient(circle at 80% 12%, rgba(245, 158, 11, 0.2), transparent 26%),
        linear-gradient(90deg, rgba(255, 247, 251, 0.96), rgba(255, 255, 255, 0.72));
}

.hero-content {
    position: relative;
    max-width: 720px;
    z-index: 2;
}

.hero-kicker,
.page-hero p,
.section-heading p,
.detail-kicker,
.cta-strip p {
    margin: 0 0 12px;
    color: var(--brand-deep);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.hero-content p {
    max-width: 620px;
    margin: 24px 0 0;
    color: #594f5e;
    font-size: 19px;
}

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

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

.hero-tags span,
.movie-tags span,
.detail-tags a {
    display: inline-flex;
    padding: 7px 12px;
    color: #9d174d;
    border: 1px solid #f9c5dd;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 700;
}

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

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

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

.btn.primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    box-shadow: 0 14px 30px rgba(219, 39, 119, 0.28);
}

.btn.secondary {
    color: var(--brand-deep);
    background: #ffffff;
    border: 1px solid #f9c5dd;
    box-shadow: var(--shadow-soft);
}

.btn.ghost {
    color: #6d28d9;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(139, 92, 246, 0.25);
}

.hero-poster {
    position: relative;
    z-index: 2;
    justify-self: end;
    width: min(390px, 100%);
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.72);
    border-radius: 34px;
    box-shadow: 0 34px 80px rgba(88, 28, 135, 0.25);
    transform: rotate(2deg);
}

.hero-poster img,
.movie-card img,
.category-overview-card img,
.top-rank-card img,
.detail-cover img,
.rank-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.hero-prev,
.hero-next {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--brand-deep);
    font-size: 30px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 999px;
    opacity: 0.55;
}

.hero-dot.active {
    width: 28px;
    opacity: 1;
    background: var(--brand);
}

.section-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 74px 22px;
}

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

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

.section-heading span,
.section-heading a,
.compact-heading span {
    color: var(--muted);
}

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

.align-left {
    align-items: start;
    flex-direction: column;
    gap: 8px;
}

.compact-heading {
    display: block;
    margin: 0;
}

.intro-search {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 460px);
    align-items: center;
    gap: 34px;
}

.search-panel,
.filter-bar {
    display: flex;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
}

.search-panel input,
.filter-bar input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff7fb;
    color: var(--text);
}

.search-panel button {
    border: 0;
    padding: 0 18px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    font-weight: 800;
    cursor: pointer;
}

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

.category-tile {
    position: relative;
    min-height: 178px;
    overflow: hidden;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    border-radius: 26px;
    color: #ffffff;
    box-shadow: var(--shadow-soft);
    isolation: isolate;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--tile-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(17, 17, 26, 0.08), rgba(17, 17, 26, 0.74));
}

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

.category-tile:hover::before {
    transform: scale(1.12);
}

.category-tile span {
    font-size: 22px;
    font-weight: 850;
}

.category-tile strong {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(244, 217, 232, 0.9);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card a {
    display: block;
    height: 100%;
}

.movie-card figure {
    position: relative;
    margin: 0;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #ffe4f1;
}

.movie-card figure img {
    transition: transform 0.35s ease;
}

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

.type-badge,
.score-badge {
    position: absolute;
    top: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.type-badge {
    left: 12px;
    background: rgba(236, 72, 153, 0.86);
}

.score-badge {
    right: 12px;
    background: rgba(17, 17, 26, 0.68);
}

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

.movie-card h2,
.movie-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #8a7f90;
    font-size: 13px;
    font-weight: 650;
}

.movie-tags {
    margin-top: 12px;
    gap: 6px;
}

.movie-tags span {
    padding: 5px 8px;
    font-size: 12px;
    background: #fff7fb;
}

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

.rank-panel {
    position: sticky;
    top: 94px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.long-rank-panel {
    max-height: calc(100vh - 120px);
    overflow: auto;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    font-weight: 850;
    color: var(--text);
}

.panel-title a {
    color: var(--brand-deep);
    font-size: 14px;
}

.rank-item {
    display: grid;
    grid-template-columns: 34px 54px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    transition: background 0.2s ease;
}

.rank-item:hover {
    background: #fff0f7;
}

.rank-number {
    font-size: 18px;
    font-weight: 900;
    color: var(--brand-deep);
}

.rank-item img {
    width: 54px;
    height: 72px;
    border-radius: 12px;
}

.rank-info {
    min-width: 0;
    display: grid;
    gap: 2px;
}

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

.rank-info em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.rank-score {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--brand));
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 850;
}

.cta-strip {
    max-width: 1240px;
    margin: 46px auto 80px;
    padding: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: #ffffff;
    border-radius: 34px;
    background: linear-gradient(135deg, var(--brand), var(--purple));
    box-shadow: var(--shadow);
}

.cta-strip h2 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(25px, 3.4vw, 42px);
    line-height: 1.18;
}

.cta-strip p {
    color: #ffe4f1;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffe4f1, #fff7d6 50%, #efe4ff);
}

.page-hero {
    min-height: 320px;
    display: flex;
    align-items: center;
    padding: 80px max(22px, calc((100vw - 1240px) / 2));
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0.13;
    filter: blur(16px);
    transform: scale(1.08);
}

.page-hero > div {
    position: relative;
    max-width: 820px;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.page-hero span {
    display: block;
    max-width: 720px;
    color: var(--muted);
    font-size: 18px;
}

.slim-hero {
    min-height: 280px;
}

.filter-section {
    padding-top: 42px;
}

.filter-bar {
    margin-bottom: 28px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-pills {
    gap: 8px;
}

.filter-pill {
    border: 1px solid #f9c5dd;
    border-radius: 999px;
    padding: 10px 14px;
    color: #8a2553;
    background: #ffffff;
    font-weight: 800;
    cursor: pointer;
    transition: 0.2s ease;
}

.filter-pill:hover,
.filter-pill.active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.empty-state {
    display: none;
    padding: 44px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed #f9c5dd;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
}

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

.category-overview-card {
    min-height: 220px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    transition: 0.25s ease;
}

.category-overview-card img {
    height: 100%;
    border-radius: 20px;
}

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

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

.stacked-sections {
    display: grid;
    gap: 54px;
}

.top-rank-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 22px;
}

.top-rank-card {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    display: flex;
    align-items: end;
    padding: 24px;
    border-radius: 30px;
    color: #ffffff;
    box-shadow: var(--shadow-soft);
    isolation: isolate;
    transition: 0.25s ease;
}

.top-rank-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.top-rank-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.78));
}

.top-rank-card span {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.88);
    font-weight: 900;
}

.top-rank-card h2 {
    margin: 0;
    font-size: 28px;
}

.top-rank-card p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.84);
}

.detail-hero {
    min-height: 620px;
    color: #ffffff;
    background: #120914;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(18, 9, 20, 0.92), rgba(18, 9, 20, 0.55), rgba(18, 9, 20, 0.9)),
        var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.15);
}

.detail-layout {
    position: relative;
    max-width: 1240px;
    min-height: 620px;
    margin: 0 auto;
    padding: 78px 22px;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    align-items: center;
    gap: 46px;
}

.detail-cover {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 10px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.breadcrumbs a:hover {
    color: #ffffff;
}

.detail-info h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.detail-one-line {
    max-width: 820px;
    margin: 22px 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 19px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 720px;
    margin: 0 0 24px;
}

.detail-meta-grid span {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(12px);
}

.detail-tags a {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.13);
}

.player-section {
    padding-top: 54px;
    padding-bottom: 32px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 30px;
    background: #08060a;
    box-shadow: 0 28px 70px rgba(17, 17, 26, 0.26);
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #08060a;
    object-fit: contain;
}

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

.player-start span {
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    box-shadow: 0 18px 45px rgba(219, 39, 119, 0.35);
    font-size: 34px;
}

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

.detail-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 34px;
}

.content-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.content-card p {
    margin: 0;
    color: #4f4555;
    font-size: 16px;
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, #fff7fb, #ffeaf4);
}

.footer-grid {
    max-width: 1240px;
    margin: 0 auto;
    padding: 48px 22px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 30px;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.site-footer p {
    max-width: 460px;
    color: var(--muted);
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: var(--muted);
    font-weight: 650;
}

.site-footer a:hover {
    color: var(--brand-deep);
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding: 18px 22px 28px;
    color: #8a7f90;
    border-top: 1px solid rgba(244, 217, 232, 0.8);
}

.search-hidden {
    display: none !important;
}

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

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

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

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

    .rank-panel {
        position: static;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-poster {
        display: none;
    }
}

@media (max-width: 820px) {
    .desktop-nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-slider,
    .hero-track {
        min-height: 650px;
    }

    .hero-slide {
        padding-top: 76px;
        padding-bottom: 88px;
    }

    .intro-search,
    .detail-layout,
    .detail-content-grid,
    .footer-grid,
    .top-rank-grid {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        padding-top: 54px;
        padding-bottom: 54px;
    }

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

    .filter-bar,
    .search-panel {
        flex-direction: column;
        align-items: stretch;
    }

    .category-grid,
    .category-overview-grid,
    .movie-grid,
    .dense-grid,
    .all-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .section-heading {
        display: block;
    }

    .section-heading a {
        display: inline-block;
        margin-top: 10px;
    }

    .cta-strip {
        margin-left: 22px;
        margin-right: 22px;
        flex-direction: column;
        align-items: start;
    }
}

@media (max-width: 540px) {
    .header-inner {
        padding-inline: 16px;
    }

    .brand {
        font-size: 18px;
    }

    .hero-slider,
    .hero-track {
        min-height: 610px;
    }

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

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

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

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

    .rank-score {
        display: none;
    }

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

    .player-start span {
        width: 72px;
        height: 72px;
        font-size: 26px;
    }
}
