:root {
    --bg: #fff7fb;
    --bg-soft: #f6edff;
    --text: #232038;
    --muted: #6f6781;
    --line: rgba(116, 79, 160, 0.16);
    --white: #ffffff;
    --purple: #7c3aed;
    --pink: #ec4899;
    --orange: #f97316;
    --yellow: #facc15;
    --green: #10b981;
    --blue: #3b82f6;
    --shadow: 0 24px 60px rgba(84, 55, 140, 0.18);
    --shadow-soft: 0 14px 38px rgba(84, 55, 140, 0.12);
    --radius: 22px;
    --radius-sm: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(236, 72, 153, 0.18), transparent 34rem),
        radial-gradient(circle at 80% 8rem, rgba(124, 58, 237, 0.16), transparent 30rem),
        linear-gradient(135deg, #fff7fb 0%, #f4efff 48%, #eef7ff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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: 100;
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.94), rgba(124, 58, 237, 0.94));
    color: #ffffff;
    box-shadow: 0 12px 35px rgba(124, 58, 237, 0.22);
    backdrop-filter: blur(16px);
}

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

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

.brand-text {
    font-size: 1.32rem;
    white-space: nowrap;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #7c3aed;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: inset 0 -4px 10px rgba(124, 58, 237, 0.16);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.nav-link {
    position: relative;
    font-weight: 700;
    opacity: 0.92;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    transform: translateY(-1px);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 3px;
    border-radius: 999px;
    background: #ffffff;
}

.header-search,
.mobile-search,
.hero-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.hero-search input {
    width: 230px;
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.92);
    outline: none;
}

.header-search button,
.mobile-search button,
.hero-search button,
.filter-form button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    padding: 10px 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(236, 72, 153, 0.25);
}

.header-search button {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: none;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: #ffffff;
    background: transparent;
    font-size: 1.7rem;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    padding: 14px 18px 18px;
}

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

.mobile-search input {
    flex: 1;
    background: #f3ecff;
}

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

.mobile-link {
    padding: 10px 12px;
    border-radius: 14px;
    font-weight: 800;
    background: #f8f2ff;
}

.mobile-link.active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--purple));
}

main {
    min-height: 68vh;
}

.hero-section {
    position: relative;
    width: min(var(--container), calc(100% - 32px));
    margin: 34px auto 0;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    min-height: 610px;
    color: #ffffff;
    background: #1d1232;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
    align-items: center;
    gap: 34px;
    padding: clamp(32px, 6vw, 72px);
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(22, 12, 46, 0.94) 0%, rgba(62, 28, 99, 0.78) 52%, rgba(236, 72, 153, 0.45) 100%),
        var(--hero-image) center / cover no-repeat;
    z-index: 0;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 14% 20%, rgba(255, 255, 255, 0.22), transparent 18rem),
        radial-gradient(circle at 80% 68%, rgba(250, 204, 21, 0.2), transparent 16rem);
    z-index: 1;
}

.hero-glow,
.hero-copy,
.hero-poster {
    position: relative;
    z-index: 2;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #fff7d6;
    background: linear-gradient(90deg, rgba(250, 204, 21, 0.28), rgba(236, 72, 153, 0.22));
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.84rem;
    font-weight: 800;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 22px 0 16px;
    font-size: clamp(2.55rem, 5vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.08em;
    text-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.hero-copy p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.hero-tags,
.hero-stats,
.detail-meta,
.tag-row,
.movie-meta,
.hero-actions,
.banner-actions,
.hero-quick-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-tags,
.hero-stats {
    margin-top: 18px;
}

.hero-tags span,
.tag-row span,
.detail-meta span,
.movie-meta span,
.hero-stats span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.84rem;
    font-weight: 700;
}

.hero-tags span,
.hero-stats span {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions {
    margin-top: 28px;
}

.primary-action,
.ghost-action,
.banner-actions a,
.section-heading a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-action {
    color: #ffffff;
    background: linear-gradient(90deg, var(--pink), var(--purple));
    box-shadow: 0 18px 40px rgba(236, 72, 153, 0.32);
}

.ghost-action {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.primary-action:hover,
.ghost-action:hover,
.banner-actions a:hover,
.section-heading a:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.22);
}

.hero-poster {
    display: block;
    overflow: hidden;
    border-radius: 30px;
    aspect-ratio: 3 / 4;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    transform: rotate(2deg);
}

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    transform: translate(-50%, -50%);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.hero-controls {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 28px;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.hero-prev,
.hero-next,
.hero-dot {
    pointer-events: auto;
    border: 0;
    cursor: pointer;
}

.hero-prev,
.hero-next {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    font-size: 2rem;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 30px;
    background: #ffffff;
}

.hero-search-panel {
    margin: -38px auto 0;
    position: relative;
    z-index: 10;
    width: min(920px, calc(100% - 42px));
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.hero-search input {
    flex: 1;
    width: auto;
    min-height: 48px;
    background: #f6f0ff;
}

.hero-quick-links {
    margin-top: 14px;
    justify-content: center;
}

.hero-quick-links a {
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--purple);
    background: #f7f0ff;
    font-weight: 800;
}

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

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

.section-heading h2 {
    margin: 4px 0 0;
    font-size: clamp(1.8rem, 3vw, 2.65rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, var(--pink), var(--orange), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-heading a {
    color: var(--purple);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(18, 12, 30, 0.72));
}

.poster-badge,
.poster-play {
    position: absolute;
    z-index: 2;
}

.poster-badge {
    left: 12px;
    bottom: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.56);
    font-size: 0.78rem;
    font-weight: 800;
}

.poster-play {
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    opacity: 0;
    transform: scale(0.82);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: scale(1);
}

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

.movie-meta {
    gap: 6px;
    margin-bottom: 8px;
}

.movie-meta span {
    color: #6d5a86;
    background: #f6efff;
}

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

.movie-card h3 a:hover,
.ranking-body h2 a:hover,
.detail-content a:hover {
    color: var(--purple);
}

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

.tag-row span {
    color: #7c2d8e;
    background: #fbecff;
}

.horizontal-scroller {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 4px 22px;
    scroll-snap-type: x mandatory;
}

.horizontal-scroller .movie-card {
    flex: 0 0 286px;
    scroll-snap-align: start;
}

.movie-card.compact .movie-card-body {
    padding: 14px;
}

.movie-card.compact p {
    min-height: auto;
}

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

.category-card,
.overview-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.category-card-main {
    display: block;
    padding: 24px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(236, 72, 153, 0.12));
}

.category-card-main span,
.overview-body span {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    font-weight: 900;
}

.category-card-main h3,
.overview-body h2 {
    margin: 14px 0 8px;
    font-size: 1.5rem;
}

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

.category-samples,
.overview-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px;
}

.category-samples a,
.overview-links a {
    border-radius: 999px;
    padding: 7px 11px;
    color: #765c93;
    background: #f7efff;
    font-size: 0.9rem;
    font-weight: 700;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 26px;
    align-items: start;
}

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

.rank-panel {
    position: sticky;
    top: 100px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
    padding: 20px;
}

.compact-heading {
    margin-bottom: 16px;
}

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

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

.rank-row:hover {
    background: linear-gradient(90deg, #faf0ff, #fff5fb);
    transform: translateX(3px);
}

.rank-row img {
    width: 74px;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    object-fit: cover;
}

.rank-number {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    font-weight: 900;
}

.rank-info {
    min-width: 0;
}

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

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

.rank-score,
.ranking-score {
    color: var(--orange);
    font-weight: 900;
}

.page-banner,
.detail-hero {
    position: relative;
    overflow: hidden;
    margin: 34px auto 0;
    width: min(var(--container), calc(100% - 32px));
    border-radius: 34px;
    color: #ffffff;
    background: linear-gradient(135deg, #6d28d9, #db2777 55%, #f97316);
    box-shadow: var(--shadow);
}

.page-banner-inner {
    padding: clamp(34px, 6vw, 72px);
}

.page-banner h1,
.detail-title-wrap h1 {
    margin: 16px 0 10px;
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    line-height: 1;
    letter-spacing: -0.07em;
}

.page-banner p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
}

.banner-actions {
    margin-top: 24px;
}

.banner-actions a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.filter-panel {
    width: min(var(--container), calc(100% - 32px));
    margin: -26px auto 42px;
    position: relative;
    z-index: 3;
    border-radius: 22px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.filter-form {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 170px 170px auto;
    align-items: end;
    gap: 12px;
}

.filter-form label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.filter-form input,
.filter-form select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 11px 12px;
    color: var(--text);
    background: #ffffff;
    outline: none;
}

.no-results {
    margin: 16px 0 0;
    color: var(--muted);
    font-weight: 800;
    text-align: center;
}

.overview-card {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
}

.overview-cover {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 100%;
    background: #ede9fe;
}

.overview-cover img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

.overview-body {
    padding: 24px;
}

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

.ranking-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr) 70px;
    align-items: center;
    gap: 20px;
    border-radius: var(--radius);
    padding: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.ranking-poster {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 16 / 10;
}

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

.ranking-poster span {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    font-weight: 900;
}

.ranking-body h2 {
    margin: 0 0 8px;
    font-size: 1.3rem;
}

.ranking-body p {
    margin: 0 0 12px;
    color: var(--muted);
}

.ranking-score {
    font-size: 1.8rem;
    text-align: center;
}

.detail-hero {
    background: #1d1232;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(20, 12, 38, 0.94), rgba(53, 24, 83, 0.72)),
        var(--detail-image) center / cover no-repeat;
    filter: saturate(1.12);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: clamp(26px, 5vw, 58px);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
}

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

.detail-title-wrap {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 30px;
    align-items: end;
    margin-top: 30px;
}

.detail-cover {
    width: 240px;
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.detail-title-wrap p {
    max-width: 780px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
}

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

.detail-tags {
    margin-top: 14px;
}

.player-section {
    width: min(980px, calc(100% - 32px));
    margin: -36px auto 0;
    position: relative;
    z-index: 5;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    aspect-ratio: 16 / 9;
    background: #070611;
    box-shadow: var(--shadow);
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #070611;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.1), rgba(5, 3, 14, 0.64));
    cursor: pointer;
}

.player-overlay span {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    box-shadow: 0 24px 46px rgba(0, 0, 0, 0.3);
    font-size: 2rem;
}

.player-overlay strong {
    font-size: 1.15rem;
}

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

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

.detail-content,
.detail-side {
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.detail-content {
    padding: clamp(24px, 4vw, 42px);
}

.detail-content h2,
.detail-side h2 {
    margin: 0 0 14px;
    font-size: 1.6rem;
    letter-spacing: -0.04em;
}

.detail-content p {
    margin: 0 0 26px;
    color: #544a66;
    font-size: 1.05rem;
}

.detail-side {
    padding: 24px;
    position: sticky;
    top: 100px;
}

.detail-side dl {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px 12px;
    margin: 0;
}

.detail-side dt {
    color: var(--muted);
    font-weight: 800;
}

.detail-side dd {
    margin: 0;
    word-break: break-word;
}

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

.site-footer {
    margin-top: 70px;
    color: rgba(255, 255, 255, 0.86);
    background: linear-gradient(90deg, #2a1847, #4c1d95 55%, #831843);
}

.footer-inner {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 38px 0;
}

.footer-brand {
    color: #ffffff;
    font-size: 1.3rem;
}

.site-footer p {
    max-width: 560px;
    margin: 10px 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

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

.is-filtered-out {
    display: none !important;
}

@media (max-width: 1080px) {
    .header-search {
        display: none;
    }

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

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

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

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

    .menu-toggle {
        display: block;
    }

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        align-items: end;
    }

    .hero-poster {
        width: min(260px, 70vw);
        margin: 0 auto;
        order: -1;
    }

    .hero-controls {
        left: 18px;
        right: 18px;
    }

    .filter-form {
        grid-template-columns: 1fr;
    }

    .category-grid,
    .overview-grid,
    .editor-list {
        grid-template-columns: 1fr;
    }

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

    .overview-cover img {
        min-height: 180px;
    }

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

    .detail-cover {
        width: 180px;
    }

    .ranking-card {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .ranking-score {
        grid-column: 2;
        justify-self: start;
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .brand-text {
        font-size: 1.05rem;
    }

    .hero-section,
    .content-section,
    .page-banner,
    .detail-hero,
    .filter-panel,
    .player-section {
        width: calc(100% - 20px);
    }

    .hero-carousel {
        min-height: 700px;
        border-radius: 24px;
    }

    .hero-slide {
        padding: 28px 22px 76px;
    }

    .hero-copy h1 {
        font-size: 2.35rem;
    }

    .hero-search-panel {
        width: calc(100% - 18px);
    }

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

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

    .horizontal-scroller .movie-card {
        flex-basis: 236px;
    }

    .rank-row {
        grid-template-columns: auto 64px minmax(0, 1fr);
    }

    .rank-score {
        display: none;
    }

    .detail-hero-inner,
    .page-banner-inner {
        padding: 26px 20px;
    }

    .player-overlay span {
        width: 68px;
        height: 68px;
    }
}
