:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --ink: #1f2937;
    --muted: #64748b;
    --soft: #e2e8f0;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --teal: #0d9488;
    --green: #16a34a;
    --orange: #ea580c;
    --red: #dc2626;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.nav-shell {
    max-width: 1240px;
    height: 72px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    color: #fff;
    font-size: 14px;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
}

.brand-name {
    font-size: 20px;
    letter-spacing: 0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link,
.mobile-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #475569;
    font-weight: 600;
    transition: 0.22s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
    color: var(--blue);
    background: #eff6ff;
}

.top-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input,
.mobile-search input,
.filter-input {
    border: 1px solid var(--soft);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    outline: none;
    transition: 0.22s ease;
}

.top-search input {
    width: 260px;
    padding: 10px 16px;
}

.top-search input:focus,
.mobile-search input:focus,
.filter-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.top-search button,
.mobile-search button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: 0.22s ease;
}

.top-search button:hover,
.mobile-search button:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #eff6ff;
    color: var(--blue);
    font-size: 22px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 0 20px 18px;
    border-top: 1px solid #eef2f7;
}

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

.mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding-top: 10px;
}

.mobile-search input {
    width: 100%;
    padding: 11px 14px;
}

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

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

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

.hero-bg,
.detail-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 40%, rgba(13, 148, 136, 0.5), transparent 28%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.7) 48%, rgba(15, 23, 42, 0.38)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 1240px;
    min-height: 560px;
    margin: 0 auto;
    padding: 88px 22px 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.hero-kicker,
.eyebrow {
    color: #60a5fa;
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 800;
}

.hero-content h1 {
    max-width: 820px;
    margin: 14px 0 10px;
    font-size: clamp(34px, 5vw, 66px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-content h2 {
    max-width: 760px;
    margin: 0 0 16px;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.14;
    font-weight: 800;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 22px;
    color: #e2e8f0;
    font-size: 18px;
}

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

.hero-tags span,
.tag-row span,
.genre-row span,
.tag-links a,
.category-chips span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    background: rgba(255, 255, 255, 0.16);
    color: #dbeafe;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-actions,
.closing-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.primary-button,
.ghost-button,
.ghost-dark-button,
.small-action,
.more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: 0.22s ease;
}

.primary-button {
    min-height: 48px;
    padding: 0 26px;
    background: var(--blue);
    color: #fff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.32);
}

.primary-button:hover {
    background: var(--blue-dark);
    transform: translateY(-2px) scale(1.02);
}

.ghost-button {
    min-height: 48px;
    padding: 0 24px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.ghost-dark-button {
    min-height: 46px;
    padding: 0 22px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.ghost-dark-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.hero-poster {
    position: absolute;
    z-index: 5;
    right: max(22px, calc((100vw - 1240px) / 2 + 22px));
    bottom: 72px;
    width: min(320px, 28vw);
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
    transition: 0.26s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) translateY(-6px);
}

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

.hero-poster span,
.play-dot,
.detail-cover span,
.player-cover span {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.9);
    color: #fff;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.hero-poster span {
    left: 50%;
    top: 50%;
    width: 70px;
    height: 70px;
    transform: translate(-50%, -50%);
    font-size: 24px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: 0.22s ease;
}

.hero-dot.is-active {
    width: 36px;
    background: #fff;
}

.quick-category-panel {
    max-width: 1240px;
    margin: -48px auto 0;
    padding: 26px;
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(240px, 340px) 1fr;
    gap: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.quick-category-panel h2 {
    margin: 8px 0 0;
    font-size: 24px;
    line-height: 1.25;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.quick-links a {
    padding: 10px 16px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-weight: 700;
    transition: 0.22s ease;
}

.quick-links a:hover {
    background: var(--blue);
    color: #fff;
    transform: translateY(-2px);
}

.page-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 56px 22px;
}

.content-section {
    margin-bottom: 64px;
}

.section-soft,
.section-hot {
    padding: 30px;
    border-radius: 26px;
}

.section-soft {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.section-hot {
    background: linear-gradient(135deg, #fff7ed, #fef2f2);
}

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

.section-head h2 {
    margin: 6px 0 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.18;
}

.section-desc {
    margin: -8px 0 22px;
    color: var(--muted);
}

.more-link {
    padding: 10px 16px;
    color: var(--blue);
    background: #eff6ff;
}

.more-link:hover {
    color: #fff;
    background: var(--blue);
    transform: translateY(-1px);
}

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

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

.movie-card {
    background: var(--panel);
    border: 1px solid #eef2f7;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: 0.26s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111827;
}

.movie-card-large .poster-link,
.detail-cover,
.category-cover {
    aspect-ratio: 3 / 4;
}

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

.movie-card:hover .poster-link img,
.category-card:hover .category-cover img,
.detail-cover:hover img {
    transform: scale(1.06);
}

.poster-gradient,
.category-cover span {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.64), transparent 55%);
}

.category-pill,
.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.category-pill {
    background: rgba(37, 99, 235, 0.92);
}

.rank-badge {
    background: rgba(220, 38, 38, 0.92);
}

.play-dot {
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: 0.24s ease;
}

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

.card-body {
    padding: 18px;
}

.card-body h2 {
    min-height: 54px;
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 800;
}

.card-body h2 a:hover,
.rank-info h2 a:hover {
    color: var(--blue);
}

.card-body p,
.rank-info p,
.category-content p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.tag-row {
    margin-top: 14px;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 132px 60px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    transition: 0.24s ease;
}

.rank-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.rank-poster {
    display: block;
    height: 88px;
    border-radius: 14px;
    overflow: hidden;
}

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

.rank-index strong {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--orange), var(--red));
    color: #fff;
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.22);
}

.rank-info h2 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.35;
}

.plain-tags {
    margin-top: 8px;
    color: #94a3b8;
    font-size: 13px;
}

.small-action {
    min-width: 74px;
    min-height: 38px;
    padding: 0 14px;
    background: #eff6ff;
    color: var(--blue);
}

.small-action:hover {
    background: var(--blue);
    color: #fff;
}

.closing-panel {
    padding: 48px;
    border-radius: 28px;
    background: linear-gradient(135deg, #1f2937, #020617);
    color: #fff;
    text-align: center;
    box-shadow: var(--shadow);
}

.closing-panel h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 42px);
}

.closing-panel p {
    max-width: 680px;
    margin: 0 auto;
    color: #cbd5e1;
}

.closing-actions {
    justify-content: center;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #1e3a8a, #0f766e);
}

.compact-hero {
    min-height: 320px;
    display: flex;
    align-items: center;
}

.category-hero {
    min-height: 380px;
    display: flex;
    align-items: center;
}

.rank-hero {
    background: linear-gradient(135deg, #7c2d12, #1e293b);
}

.search-hero {
    background: linear-gradient(135deg, #1e40af, #0f766e);
}

.page-hero-inner {
    width: min(1240px, calc(100% - 44px));
    margin: 0 auto;
    padding: 72px 0;
}

.page-hero h1 {
    margin: 8px 0 10px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 720px;
    margin: 0;
    color: #e2e8f0;
    font-size: 18px;
}

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

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

.category-card {
    display: grid;
    grid-template-columns: 42% 1fr;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #eef2f7;
    box-shadow: var(--shadow-soft);
    transition: 0.24s ease;
}

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

.category-cover {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 230px;
}

.category-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-content h2 {
    margin: 0;
    font-size: 22px;
}

.category-chips span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filterbar {
    margin: 0 0 30px;
    padding: 18px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #eef2f7;
    box-shadow: var(--shadow-soft);
}

.filter-input {
    width: 100%;
    padding: 12px 16px;
}

.empty-state {
    display: none;
    margin-top: 24px;
    padding: 28px;
    border-radius: 20px;
    background: #fff;
    color: var(--muted);
    text-align: center;
    border: 1px dashed #cbd5e1;
}

.empty-state.is-visible {
    display: block;
}

.detail-hero {
    min-height: 620px;
    background: #0f172a;
}

.detail-hero-mask {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(37, 99, 235, 0.42), transparent 26%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.74) 52%, rgba(15, 23, 42, 0.44)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.9), transparent 52%);
}

.detail-hero-inner {
    position: relative;
    z-index: 4;
    width: min(1240px, calc(100% - 44px));
    margin: 0 auto;
    padding: 34px 0 66px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 12px 0 42px;
    color: #cbd5e1;
    font-size: 14px;
}

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

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

.detail-cover {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
}

.detail-cover span {
    left: 50%;
    top: 50%;
    width: 68px;
    height: 68px;
    transform: translate(-50%, -50%);
    font-size: 24px;
}

.detail-info h1 {
    max-width: 820px;
    margin: 10px 0 18px;
    font-size: clamp(38px, 5vw, 66px);
    line-height: 1.08;
}

.detail-line {
    max-width: 820px;
    margin: 0 0 20px;
    color: #dbeafe;
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #e2e8f0;
    font-weight: 700;
}

.genre-row span {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #dbeafe;
}

.detail-shell {
    padding-top: 44px;
}

.player-section {
    margin-bottom: 34px;
}

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

.player-frame video,
.player-cover,
.player-cover img {
    width: 100%;
    height: 100%;
}

.player-frame video {
    object-fit: contain;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: #020617;
    color: #fff;
}

.player-cover img {
    object-fit: cover;
    opacity: 0.72;
    filter: saturate(1.05);
}

.player-cover span {
    left: 50%;
    top: 50%;
    width: 92px;
    height: 92px;
    transform: translate(-50%, -50%);
    font-size: 34px;
}

.player-frame.is-playing .player-cover {
    display: none;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.story-card {
    padding: 28px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid #eef2f7;
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
}

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

.story-card p {
    margin: 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.85;
}

.side-card dl {
    margin: 0;
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 10px 14px;
}

.side-card dt {
    color: #94a3b8;
    font-weight: 700;
}

.side-card dd {
    margin: 0;
    color: #334155;
    font-weight: 700;
}

.tag-links {
    margin-top: 18px;
}

.site-footer {
    background: #0f172a;
    color: #cbd5e1;
}

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

.footer-logo .brand-name {
    color: #fff;
}

.footer-brand p {
    max-width: 420px;
    margin: 16px 0 0;
    color: #94a3b8;
}

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

.footer-links h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 18px;
}

.footer-links a {
    color: #cbd5e1;
    transition: 0.2s ease;
}

.footer-links a:hover {
    color: #60a5fa;
}

.footer-bottom {
    padding: 20px 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    text-align: center;
    font-size: 14px;
}

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

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

    .two-column {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        opacity: 0.55;
        right: 22px;
    }
}

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

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    .hero-content {
        padding-top: 92px;
        padding-bottom: 124px;
    }

    .hero-poster {
        display: none;
    }

    .quick-category-panel {
        margin: -34px 16px 0;
        grid-template-columns: 1fr;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .filterbar {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 98px 44px 1fr;
    }

    .rank-row .small-action {
        grid-column: 1 / -1;
    }

    .detail-layout,
    .detail-content-grid,
    .footer-shell {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 560px) {
    .nav-shell {
        height: 64px;
        padding: 0 16px;
    }

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

    .page-shell,
    .detail-hero-inner,
    .page-hero-inner {
        width: auto;
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .section-soft,
    .section-hot,
    .closing-panel,
    .story-card {
        padding: 22px;
        border-radius: 20px;
    }

    .rank-row {
        grid-template-columns: 92px 1fr;
        gap: 14px;
    }

    .rank-index {
        position: absolute;
        margin-left: 10px;
        margin-top: 10px;
    }

    .rank-info {
        grid-column: 2 / 3;
    }

    .rank-row .small-action {
        grid-column: 1 / -1;
    }

    .player-frame {
        border-radius: 16px;
    }

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