
:root {
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.84);
    --panel-strong: #0f172a;
    --panel-soft: rgba(30, 41, 59, 0.72);
    --line: rgba(148, 163, 184, 0.16);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #cbd5e1;
    --accent: #f59e0b;
    --accent-2: #fbbf24;
    --danger: #ef4444;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    --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;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.11), transparent 32rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 34rem),
        var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.no-scroll {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(15, 23, 42, 0.96);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), #f97316);
    color: white;
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.28);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-title {
    font-size: 20px;
    font-weight: 850;
    letter-spacing: 0.02em;
}

.brand-subtitle {
    margin-top: 4px;
    color: rgba(251, 191, 36, 0.82);
    font-size: 12px;
}

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

.nav-link {
    padding: 10px 15px;
    border-radius: 12px;
    color: #cbd5e1;
    transition: color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(245, 158, 11, 0.96);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.8);
    color: white;
}

.menu-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: white;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

main {
    min-height: 70vh;
    padding-top: 68px;
}

.hero {
    position: relative;
    height: min(760px, 72vh);
    min-height: 560px;
    overflow: hidden;
    background: #020617;
}

.hero-track,
.hero-slide,
.hero-image,
.hero-shade {
    position: absolute;
    inset: 0;
}

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

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

.hero-image,
.detail-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.72) 38%, rgba(2, 6, 23, 0.28) 70%, rgba(2, 6, 23, 0.48) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 40%, rgba(2, 6, 23, 0.32) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 96px;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent-2);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.hero-intro,
.page-hero p,
.detail-one-line {
    max-width: 740px;
    margin: 22px 0 0;
    color: #dbeafe;
    font-size: 19px;
    line-height: 1.78;
}

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

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.76);
    color: var(--accent-2);
    font-size: 13px;
    border: 1px solid rgba(251, 191, 36, 0.18);
}

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

.primary-button,
.ghost-button,
.small-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 14px;
    padding: 0 20px;
    font-weight: 800;
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.primary-button {
    background: linear-gradient(135deg, var(--accent), #f97316);
    color: white;
    box-shadow: 0 18px 46px rgba(245, 158, 11, 0.26);
}

.ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(15, 23, 42, 0.5);
    color: white;
    backdrop-filter: blur(10px);
}

.small-button {
    min-height: 38px;
    padding: 0 16px;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.26);
    color: var(--accent-2);
    white-space: nowrap;
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.48);
    color: white;
    font-size: 38px;
    line-height: 0;
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(2, 6, 23, 0.72);
    transform: translateY(-50%) scale(1.04);
}

.hero-prev {
    left: max(18px, calc((100vw - 1180px) / 2 - 74px));
}

.hero-next {
    right: max(18px, calc((100vw - 1180px) / 2 - 74px));
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: var(--accent);
}

.hero-categories {
    position: absolute;
    z-index: 6;
    right: max(18px, calc((100vw - 1180px) / 2));
    bottom: 30px;
    display: flex;
    gap: 8px;
    max-width: 52%;
    overflow: auto;
    scrollbar-width: none;
}

.hero-categories::-webkit-scrollbar {
    display: none;
}

.hero-categories a {
    padding: 8px 12px;
    border-radius: 999px;
    color: white;
    background: rgba(15, 23, 42, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(12px);
    white-space: nowrap;
}

.page-section {
    margin-top: 58px;
}

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

.section-heading h2,
.content-panel h2,
.player-shell h2,
.site-footer h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
}

.section-heading a {
    color: var(--accent-2);
    font-weight: 750;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.64);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
    transition: transform 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    background: rgba(30, 41, 59, 0.86);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #1e293b);
}

.compact-card .card-cover {
    aspect-ratio: 16 / 10;
}

.card-cover img,
.feature-tile img,
.category-preview img,
.ranking-cover img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.movie-card:hover .card-cover img,
.feature-tile:hover img,
.category-preview a:hover img,
.ranking-row:hover .ranking-cover img {
    transform: scale(1.08);
}

.card-cover::after,
.feature-tile span {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, transparent 52%);
    opacity: 0.82;
}

.play-chip,
.year-chip,
.rank-number {
    position: absolute;
    z-index: 2;
}

.play-chip {
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.96);
    color: white;
    font-size: 22px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .play-chip {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.year-chip {
    top: 12px;
    right: 12px;
    padding: 4px 9px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.92);
    color: white;
    font-size: 12px;
    font-weight: 800;
}

.rank-number {
    top: 12px;
    left: 12px;
    min-width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(2, 6, 23, 0.74);
    color: var(--accent-2);
    font-size: 18px;
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.card-body h3 a:hover,
.ranking-copy h2 a:hover {
    color: var(--accent-2);
}

.card-meta {
    margin: 0 0 10px;
    color: #cbd5e1;
    font-size: 13px;
}

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

.tag-row {
    gap: 7px;
}

.tag-row span {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 12px;
}

.feature-panel,
.content-panel,
.player-shell,
.category-overview-card {
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 4px);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.76));
    box-shadow: 0 18px 64px rgba(0, 0, 0, 0.22);
}

.feature-panel {
    padding: 28px;
}

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

.feature-tile {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    border-radius: 22px;
    background: #0f172a;
}

.feature-tile strong,
.feature-tile em {
    position: absolute;
    z-index: 2;
    left: 22px;
    right: 22px;
}

.feature-tile strong {
    bottom: 64px;
    font-size: 24px;
}

.feature-tile em {
    bottom: 24px;
    color: #cbd5e1;
    font-style: normal;
    line-height: 1.5;
}

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

.category-card {
    min-height: 144px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.68);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.category-card:hover {
    border-color: rgba(245, 158, 11, 0.42);
    background: rgba(30, 41, 59, 0.86);
    transform: translateY(-4px);
}

.category-card strong {
    display: block;
    margin-bottom: 10px;
    color: white;
    font-size: 20px;
}

.category-card span,
.category-overview-card p,
.content-panel p,
.ranking-copy p {
    color: var(--muted-2);
    line-height: 1.75;
}

.scroll-row {
    display: grid;
    grid-auto-columns: minmax(260px, 300px);
    grid-auto-flow: column;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 2px 18px;
    scroll-snap-type: x proximity;
}

.scroll-row .movie-card {
    scroll-snap-align: start;
}

.page-hero {
    position: relative;
    padding: 86px 0 64px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.78)),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.2), transparent 36rem);
    border-bottom: 1px solid var(--line);
}

.compact-hero h1 {
    max-width: 860px;
    font-size: clamp(34px, 5vw, 56px);
}

.category-overview-card {
    padding: 22px;
    display: grid;
    gap: 18px;
}

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

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

.category-preview a {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: #0f172a;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) repeat(4, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.78);
}

.filter-bar label {
    display: grid;
    gap: 7px;
    color: var(--muted-2);
    font-size: 13px;
}

.filter-search {
    min-width: 0;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    outline: 0;
    padding: 0 13px;
    background: rgba(2, 6, 23, 0.64);
    color: white;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(245, 158, 11, 0.64);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 94px 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.68);
    transition: transform 0.22s ease, background 0.22s ease;
}

.ranking-row:hover {
    background: rgba(30, 41, 59, 0.86);
    transform: translateY(-2px);
}

.ranking-cover {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: #0f172a;
}

.ranking-index {
    color: var(--accent-2);
    font-size: 30px;
    font-weight: 900;
    text-align: center;
}

.ranking-copy h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.ranking-copy p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.detail-hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: #020617;
}

.detail-bg,
.detail-shade {
    position: absolute;
    inset: 0;
}

.detail-shade {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.78) 44%, rgba(2, 6, 23, 0.38) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.2) 62%, rgba(2, 6, 23, 0.58) 100%);
}

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

.breadcrumb {
    display: inline-flex;
    margin-bottom: 24px;
    padding: 8px 12px;
    border: 1px solid rgba(245, 158, 11, 0.26);
    border-radius: 999px;
    color: var(--accent-2);
    background: rgba(15, 23, 42, 0.62);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    align-items: end;
    gap: 38px;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 26px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.detail-copy {
    max-width: 790px;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.7fr);
    gap: 24px;
}

.content-panel,
.player-shell {
    padding: 28px;
}

.content-panel p {
    margin: 16px 0 0;
    font-size: 16px;
}

.meta-panel ul {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.meta-panel li {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.meta-panel strong {
    color: var(--accent-2);
}

.meta-panel span {
    color: var(--muted-2);
}

.player-frame {
    position: relative;
    margin-top: 18px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 22px;
    background: black;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: black;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.22));
    color: white;
    font-size: 18px;
    font-weight: 850;
}

.play-overlay[hidden] {
    display: none;
}

.play-symbol {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #f97316);
    box-shadow: 0 20px 50px rgba(245, 158, 11, 0.32);
    font-size: 32px;
    line-height: 1;
}

.player-message {
    position: absolute;
    z-index: 6;
    left: 18px;
    right: 18px;
    bottom: 18px;
    margin: 0;
    color: white;
    text-align: center;
}

.site-footer {
    margin-top: 76px;
    border-top: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.88);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 34px;
    padding: 46px 0;
}

.footer-brand {
    margin-bottom: 14px;
    font-size: 18px;
    font-weight: 850;
}

.site-footer p,
.site-footer a,
.footer-bottom {
    color: var(--muted);
}

.site-footer p {
    max-width: 430px;
    line-height: 1.75;
}

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

.site-footer a:hover {
    color: var(--accent-2);
}

.footer-bottom {
    padding: 18px 16px;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

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

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

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

    .filter-search {
        grid-column: 1 / -1;
    }

    .hero-categories {
        left: 16px;
        right: 16px;
        max-width: none;
        justify-content: flex-start;
    }
}

@media (max-width: 820px) {
    .site-header-inner {
        height: 64px;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: 64px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.98);
        box-shadow: var(--shadow);
    }

    .menu-open .site-nav {
        display: flex;
    }

    main {
        padding-top: 64px;
    }

    .hero {
        min-height: 620px;
        height: 82vh;
    }

    .hero-content {
        align-items: center;
        padding-bottom: 110px;
    }

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

    .hero-control {
        top: auto;
        bottom: 86px;
        width: 44px;
        height: 44px;
        font-size: 30px;
    }

    .hero-prev {
        left: 16px;
    }

    .hero-next {
        right: 16px;
    }

    .hero-dots {
        bottom: 58px;
    }

    .movie-grid,
    .category-grid,
    .category-overview-grid,
    .feature-grid,
    .footer-grid,
    .detail-info-grid {
        grid-template-columns: 1fr;
    }

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

    .feature-panel,
    .content-panel,
    .player-shell {
        padding: 20px;
    }

    .detail-layout {
        grid-template-columns: 1fr;
        align-items: start;
    }

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

    .ranking-row {
        grid-template-columns: 76px 44px minmax(0, 1fr);
    }

    .ranking-row .small-button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .container,
    .site-header-inner {
        width: min(100% - 24px, 1180px);
    }

    .brand-subtitle {
        display: none;
    }

    .brand-title {
        font-size: 18px;
    }

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

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

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

    .ranking-index {
        position: absolute;
        left: 18px;
        top: 18px;
        min-width: 34px;
        height: 34px;
        display: grid;
        place-items: center;
        border-radius: 12px;
        background: rgba(2, 6, 23, 0.76);
        font-size: 18px;
    }

    .ranking-row {
        position: relative;
    }
}
