:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: #0f172a;
    --panel-soft: #111827;
    --panel-light: #1e293b;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --amber: #f59e0b;
    --orange: #ea580c;
    --red: #ef4444;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 0%, rgba(245, 158, 11, 0.16), transparent 28rem),
        radial-gradient(circle at 85% 20%, rgba(234, 88, 12, 0.13), transparent 32rem),
        linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(2, 6, 23, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    color: white;
    box-shadow: 0 12px 26px rgba(245, 158, 11, 0.34);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name,
.footer-brand {
    font-weight: 900;
    letter-spacing: 0.04em;
    background: linear-gradient(90deg, #fde68a, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-name {
    font-size: 1.32rem;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 0.76rem;
}

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

.nav-link,
.mobile-link {
    color: var(--soft);
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: white;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.92), rgba(234, 88, 12, 0.92));
}

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

.header-search {
    margin-left: auto;
    width: min(330px, 32vw);
}

.header-search input,
.mobile-search input,
.search-box input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    color: var(--text);
    background: rgba(15, 23, 42, 0.82);
    padding: 11px 14px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.search-box input:focus {
    border-color: rgba(245, 158, 11, 0.72);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.13);
}

.header-search button,
.mobile-search button,
.search-box button,
.primary-btn,
.ghost-btn,
.section-more,
.text-link {
    border: 0;
    border-radius: 14px;
    color: white;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.mobile-search button,
.search-box button,
.primary-btn {
    background: linear-gradient(135deg, var(--amber), var(--orange));
    padding: 11px 18px;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(245, 158, 11, 0.25);
}

.header-search button:hover,
.mobile-search button:hover,
.search-box button:hover,
.primary-btn:hover,
.section-more:hover,
.text-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(245, 158, 11, 0.32);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.9);
    color: white;
}

.mobile-panel {
    border-top: 1px solid var(--line);
    padding: 16px 24px 22px;
    background: rgba(2, 6, 23, 0.96);
}

.mobile-nav {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.mobile-link {
    padding: 12px 14px;
}

.hero-carousel {
    position: relative;
    max-width: 1280px;
    margin: 28px auto 0;
    padding: 0 24px;
}

.hero-track {
    position: relative;
    min-height: 560px;
    border-radius: 28px;
    overflow: hidden;
    background: #0b1120;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.72fr);
    align-items: end;
    gap: 36px;
    padding: 68px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.015);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.75) 42%, rgba(2, 6, 23, 0.28) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.1)),
        var(--hero-image) center / cover no-repeat;
    filter: saturate(1.05);
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-bottom: 14px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    padding: 6px 12px;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
    font-size: 0.82rem;
    font-weight: 800;
}

.hero-content h1,
.page-hero h1,
.rank-hero h1,
.detail-info h1 {
    margin: 0;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-content h1 {
    max-width: 780px;
    font-size: clamp(2.7rem, 7vw, 5.8rem);
}

.hero-content p,
.page-hero p,
.rank-hero p,
.detail-line {
    color: var(--soft);
    font-size: 1.06rem;
}

.hero-content p {
    max-width: 720px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-meta,
.detail-meta,
.card-meta,
.card-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta span,
.detail-meta span,
.card-tags span,
.card-meta a,
.card-meta span,
.tag-row span {
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--line);
    padding: 6px 10px;
    font-size: 0.82rem;
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
}

.ghost-btn {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(15, 23, 42, 0.66);
    padding: 11px 18px;
    font-weight: 700;
}

.ghost-btn:hover {
    background: rgba(30, 41, 59, 0.86);
    transform: translateY(-1px);
}

.hero-poster {
    align-self: center;
    justify-self: center;
    width: min(360px, 100%);
    aspect-ratio: 2 / 3;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

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

.hero-poster:hover img {
    transform: scale(1.05);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 8;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 10px;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(14px);
}

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    color: white;
    background: transparent;
}

.hero-prev,
.hero-next {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.18);
    font-size: 1.45rem;
    line-height: 1;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.42);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
    width: 28px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
}

.section-panel,
.content-section,
.page-main,
.detail-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-panel {
    margin-top: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
}

.quick-search {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    align-items: center;
    gap: 24px;
    padding: 26px;
}

.quick-search h2,
.section-head h2,
.page-hero h1,
.prose-panel h2 {
    margin: 0;
}

.quick-search p {
    margin: 8px 0 0;
    color: var(--muted);
}

.large-search input {
    min-height: 52px;
}

.content-section {
    margin-top: 54px;
}

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

.section-head h2 {
    font-size: clamp(1.8rem, 4vw, 2.55rem);
    letter-spacing: -0.03em;
}

.compact-head {
    align-items: center;
}

.compact-head h2 {
    font-size: 1.55rem;
}

.section-more,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(245, 158, 11, 0.28);
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.12);
    padding: 10px 14px;
    font-weight: 800;
}

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

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

.page-grid {
    padding-bottom: 70px;
}

.movie-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.74);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px) scale(1.01);
    background: rgba(30, 41, 59, 0.88);
    border-color: rgba(245, 158, 11, 0.32);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0b1120;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.68));
}

.play-mark,
.player-icon {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    color: white;
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.type-badge,
.duration-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 8px;
    color: white;
    background: rgba(2, 6, 23, 0.76);
    font-size: 0.75rem;
    font-weight: 800;
}

.type-badge {
    left: 10px;
    top: 10px;
}

.duration-badge {
    right: 10px;
    bottom: 10px;
}

.rank-badge {
    right: 10px;
    top: 10px;
    min-width: 30px;
    text-align: center;
    background: linear-gradient(135deg, var(--amber), var(--red));
}

.card-body {
    padding: 14px;
}

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

.card-body h3 a:hover,
.inline-links a:hover,
.small-card:hover strong {
    color: #fbbf24;
}

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

.card-meta {
    justify-content: space-between;
    margin-bottom: 9px;
}

.card-meta span,
.card-meta a,
.card-tags span {
    padding: 4px 8px;
    font-size: 0.76rem;
}

.card-tags {
    gap: 8px;
}

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

.rank-panel,
.prose-panel,
.category-card,
.detail-info,
.player-section,
.detail-content {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.rank-panel {
    position: sticky;
    top: 92px;
    padding: 20px;
}

.small-list {
    display: grid;
    gap: 12px;
}

.small-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    border-radius: 14px;
    padding: 8px;
    background: rgba(30, 41, 59, 0.56);
    transition: background 0.2s ease, transform 0.2s ease;
}

.small-card:hover {
    transform: translateX(3px);
    background: rgba(51, 65, 85, 0.72);
}

.small-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
}

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

.small-rank {
    position: absolute;
    left: 6px;
    top: 6px;
    min-width: 24px;
    border-radius: 999px;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, var(--amber), var(--red));
    font-size: 0.72rem;
    font-weight: 900;
}

.small-info {
    min-width: 0;
    display: grid;
    align-content: center;
    gap: 3px;
}

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

.small-info em,
.small-info span {
    color: var(--muted);
    font-size: 0.78rem;
    font-style: normal;
}

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

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

.category-tile {
    position: relative;
    min-height: 210px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: #111827;
}

.category-tile img,
.category-tile .tile-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.category-tile img {
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.tile-shade {
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.9));
}

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

.category-tile strong {
    bottom: 54px;
    font-size: 1.25rem;
}

.category-tile em {
    bottom: 18px;
    color: var(--soft);
    font-size: 0.86rem;
    font-style: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.page-main,
.detail-main {
    padding-top: 34px;
}

.page-hero,
.rank-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.76);
    box-shadow: var(--shadow);
}

.page-hero {
    padding: 48px;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
}

.page-hero p {
    max-width: 760px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--muted);
}

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

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 26px;
}

.chip {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 13px;
    color: var(--soft);
    background: rgba(15, 23, 42, 0.72);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.chip:hover,
.chip.active {
    color: white;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    transform: translateY(-1px);
}

.page-filter {
    max-width: 720px;
    margin-top: 24px;
}

.inline-filter {
    width: min(520px, 100%);
}

.category-list-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
    padding-bottom: 70px;
}

.category-card {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    overflow: hidden;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    min-height: 220px;
    background: #0b1120;
}

.category-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-body {
    padding: 26px;
}

.category-card-body h2 {
    margin: 0 0 10px;
}

.category-card-body p {
    color: var(--muted);
}

.rank-hero {
    min-height: 430px;
    display: flex;
    align-items: end;
    padding: 48px;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.52)),
        var(--hero-image) center / cover no-repeat;
}

.rank-hero-content {
    max-width: 720px;
}

.rank-hero h1 {
    font-size: clamp(2.3rem, 5vw, 4.5rem);
}

.detail-hero {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 28px;
    padding: 26px;
}

.detail-poster {
    border-radius: 22px;
    overflow: hidden;
    background: #0b1120;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    min-height: 430px;
    object-fit: cover;
}

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px;
    background:
        radial-gradient(circle at 90% 8%, rgba(245, 158, 11, 0.14), transparent 24rem),
        rgba(15, 23, 42, 0.72);
}

.detail-info h1 {
    font-size: clamp(2rem, 5vw, 4.2rem);
}

.detail-line {
    font-size: 1.12rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 26px;
}

.anchor-btn {
    width: max-content;
}

.player-section {
    margin-top: 28px;
    padding: 22px;
}

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 12px;
    align-content: center;
    border: 0;
    color: white;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.34), rgba(2, 6, 23, 0.78));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-icon {
    width: 82px;
    height: 82px;
    font-size: 2rem;
    box-shadow: 0 20px 48px rgba(245, 158, 11, 0.35);
}

.player-text {
    font-size: 1.06rem;
    font-weight: 900;
}

.detail-content {
    margin-top: 28px;
}

.prose-panel {
    padding: 30px;
}

.prose-panel h2 {
    font-size: 1.55rem;
    margin-top: 26px;
}

.prose-panel h2:first-child {
    margin-top: 0;
}

.prose-panel p {
    color: var(--soft);
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.inline-links a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(30, 41, 59, 0.66);
}

.site-footer {
    margin-top: 70px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.82);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 24px;
    display: grid;
    gap: 18px;
    color: var(--muted);
}

.footer-brand {
    display: inline-flex;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.footer-inner p {
    max-width: 780px;
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

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

.copyright {
    font-size: 0.86rem;
}

[data-card].is-filtered {
    display: none;
}

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

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

    .split-layout,
    .detail-hero,
    .category-card {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }

    .detail-poster {
        max-width: 340px;
    }
}

@media (max-width: 860px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: grid;
        place-items: center;
        margin-left: auto;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        align-items: center;
        padding: 42px 28px 88px;
    }

    .hero-poster {
        width: min(260px, 68vw);
        justify-self: start;
    }

    .quick-search,
    .section-head {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .quick-search {
        display: grid;
    }

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

    .page-hero,
    .rank-hero {
        padding: 32px 24px;
    }
}

@media (max-width: 560px) {
    .header-inner,
    .hero-carousel,
    .section-panel,
    .content-section,
    .page-main,
    .detail-main,
    .footer-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand-subtitle {
        display: none;
    }

    .hero-track {
        min-height: 620px;
        border-radius: 22px;
    }

    .hero-slide {
        padding: 30px 20px 86px;
    }

    .hero-meta span,
    .detail-meta span {
        font-size: 0.76rem;
    }

    .hero-actions,
    .search-box,
    .mobile-search {
        align-items: stretch;
        flex-direction: column;
    }

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

    .detail-hero,
    .detail-info,
    .player-section,
    .prose-panel {
        padding: 18px;
    }

    .detail-poster {
        max-width: 100%;
    }

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

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