:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.82);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-strong: #cbd5e1;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --accent-soft: rgba(245, 158, 11, 0.18);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 36rem),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 34rem),
        var(--bg);
    min-height: 100vh;
}

body.nav-open {
    overflow: hidden;
}

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

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

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

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

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #f97316);
    color: #111827;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35);
}

.brand-text {
    font-size: 21px;
    color: #fbbf24;
}

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

.nav-menu a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted-strong);
    font-size: 15px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-menu a:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

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

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
    border-radius: 999px;
}

.hero-slider {
    position: relative;
    height: 70vh;
    min-height: 540px;
    overflow: hidden;
    isolation: isolate;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1.2s ease;
    pointer-events: none;
}

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

.hero-layer {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.66), rgba(2, 6, 23, 0.2)),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.5) 42%, rgba(2, 6, 23, 0.1) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 86px;
}

.hero-copy {
    width: min(720px, 100%);
}

.hero-meta,
.movie-meta,
.hero-tags,
.tag-row,
.detail-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-meta span,
.hero-tags span,
.tag-row span,
.detail-tags span {
    border: 1px solid rgba(245, 158, 11, 0.34);
    background: rgba(15, 23, 42, 0.62);
    color: #fbbf24;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 13px;
}

.hero-copy h1 {
    margin: 18px 0 14px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 650px;
    margin: 20px 0 0;
    color: var(--muted-strong);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.78;
}

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

.primary-button,
.ghost-button,
.text-link,
.panel-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 750;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    min-height: 50px;
    padding: 0 26px;
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, var(--accent));
    box-shadow: 0 18px 40px rgba(245, 158, 11, 0.32);
}

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

.ghost-button {
    min-height: 50px;
    padding: 0 24px;
    border: 1px solid rgba(251, 191, 36, 0.34);
    color: #fde68a;
    background: rgba(15, 23, 42, 0.55);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--text);
    background: rgba(2, 6, 23, 0.55);
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(12px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(245, 158, 11, 0.78);
    transform: translateY(-2px);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

.hero-dot {
    width: 20px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.55);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.hero-panel {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 86px;
    z-index: 3;
    width: 292px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(2, 6, 23, 0.58);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-panel strong {
    display: block;
    margin-bottom: 14px;
    color: #fde68a;
    font-size: 16px;
}

.hero-pick {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.62);
    transition: background 0.2s ease;
}

.hero-pick:hover {
    background: rgba(245, 158, 11, 0.14);
}

.hero-pick img {
    width: 72px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
}

.hero-pick span {
    color: var(--muted-strong);
    font-weight: 650;
    line-height: 1.35;
}

.panel-link {
    width: 100%;
    margin-top: 14px;
    padding: 12px;
    color: #111827;
    background: var(--accent);
}

.section {
    padding: 72px 0 0;
}

.section-search {
    margin-top: 0;
}

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

.section-heading h2,
.sub-hero h1,
.story-card h2,
.meta-card h2,
.rank-board h2 {
    margin: 0;
    font-size: clamp(28px, 3.8vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.section-heading a,
.text-link {
    color: #fbbf24;
}

.eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    font-weight: 800;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 12px;
    margin-bottom: 26px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.64);
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.2);
}

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

.search-input,
.year-select,
.filter-select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    padding: 0 14px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.76);
}

.search-input:focus,
.year-select:focus,
.filter-select:focus {
    border-color: rgba(245, 158, 11, 0.72);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card[hidden] {
    display: none;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 158, 11, 0.56);
    box-shadow: 0 28px 70px rgba(245, 158, 11, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.9);
}

.compact .poster-link {
    aspect-ratio: 16 / 10;
}

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

.movie-card:hover .poster-link img {
    transform: scale(1.08);
    filter: saturate(1.12) brightness(0.86);
}

.type-badge,
.year-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    backdrop-filter: blur(10px);
}

.type-badge {
    left: 12px;
    color: #111827;
    background: rgba(251, 191, 36, 0.92);
}

.year-badge {
    right: 12px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.7);
}

.play-badge {
    position: absolute;
    inset: auto 50% 50% auto;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #111827;
    background: var(--accent);
    opacity: 0;
    transform: translate(50%, 50%) scale(0.86);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

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

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

.movie-card-body h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.32;
}

.movie-card-body h2 a:hover {
    color: var(--accent);
}

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

.movie-meta {
    color: var(--muted);
    font-size: 13px;
}

.movie-meta span + span::before {
    content: "·";
    margin-right: 8px;
    color: rgba(148, 163, 184, 0.58);
}

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

.tag-row span {
    color: var(--muted-strong);
    border-color: rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.38);
    font-size: 12px;
}

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

.category-tile,
.category-overview-card,
.rank-board,
.story-card,
.meta-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.category-tile {
    display: block;
    padding: 16px;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.52);
}

.category-covers {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: 68px 68px;
    gap: 8px;
    margin-bottom: 16px;
}

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

.category-covers img:first-child {
    grid-row: span 2;
}

.category-tile h2,
.category-overview-card h2 {
    margin: 0 0 8px;
    color: #fde68a;
    font-size: 21px;
}

.category-tile p,
.category-overview-card p,
.sub-hero p,
.story-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.78;
}

.rank-section {
    position: relative;
}

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

.rank-list {
    grid-template-columns: 1fr;
}

.rank-item {
    display: grid;
    grid-template-columns: 50px 82px 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.7);
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 158, 11, 0.52);
    background: rgba(30, 41, 59, 0.86);
}

.rank-number {
    color: #fbbf24;
    font-size: 24px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.rank-item img {
    width: 82px;
    height: 56px;
    object-fit: cover;
    border-radius: 12px;
}

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

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

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

.page-hero-main {
    min-height: 70vh;
}

.sub-hero {
    padding: 86px 0 42px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.8), rgba(2, 6, 23, 0)),
        radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.16), transparent 34rem);
}

.sub-hero h1 {
    margin-bottom: 16px;
}

.sub-hero p {
    max-width: 780px;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--accent);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 20px;
    padding: 18px;
}

.category-cover {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 4 / 3;
}

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

.category-overview-card ul {
    display: grid;
    gap: 6px;
    margin: 12px 0;
    padding: 0;
    list-style: none;
    color: var(--muted-strong);
}

.category-overview-card li a:hover {
    color: var(--accent);
}

.detail-main {
    background: var(--bg);
}

.detail-hero {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    isolation: isolate;
}

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

.detail-backdrop {
    background-size: cover;
    background-position: center;
    filter: blur(18px) brightness(0.38);
    transform: scale(1.08);
    opacity: 0.7;
}

.detail-shade {
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.52), #020617 92%),
        radial-gradient(circle at 25% 20%, rgba(245, 158, 11, 0.18), transparent 32rem);
}

.detail-container {
    position: relative;
    z-index: 2;
    padding-top: 42px;
}

.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.55fr);
    gap: 28px;
    align-items: stretch;
}

.player-panel,
.movie-info-panel {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: 420px;
    background: #000;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: var(--text);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.78));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.big-play {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, var(--accent));
    font-size: 36px;
    box-shadow: 0 22px 60px rgba(245, 158, 11, 0.35);
}

.player-overlay span:last-child {
    font-size: 20px;
    font-weight: 800;
}

.movie-info-panel {
    display: grid;
    grid-template-columns: 158px 1fr;
    gap: 18px;
    padding: 18px;
}

.detail-cover {
    width: 158px;
    height: 238px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.detail-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.08;
}

.detail-copy p {
    margin: 0 0 16px;
    color: var(--muted-strong);
    line-height: 1.78;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
}

.story-card,
.meta-card {
    padding: 26px;
}

.story-card h2,
.meta-card h2 {
    margin-bottom: 14px;
    font-size: 28px;
}

.story-card p + h2 {
    margin-top: 30px;
}

.meta-card ul {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.meta-card li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.meta-card strong {
    color: var(--muted);
}

.meta-card span {
    color: var(--muted-strong);
    text-align: right;
}

.meta-card a {
    color: #fbbf24;
}

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

.rank-board {
    padding: 20px;
}

.small-heading {
    margin-bottom: 18px;
}

.small-heading h2 {
    font-size: 28px;
}

.empty-state {
    display: none;
    margin: 28px 0 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--muted-strong);
    background: rgba(15, 23, 42, 0.72);
}

.empty-state.show {
    display: block;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 28px;
    padding: 46px 0;
}

.footer-grid p {
    max-width: 520px;
    color: var(--muted);
    line-height: 1.78;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: #fde68a;
    font-size: 18px;
}

.footer-grid a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: var(--muted-strong);
}

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

.footer-brand {
    color: #fbbf24;
    font-size: 24px;
}

.footer-bottom {
    padding: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    text-align: center;
}

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 80;
    width: 46px;
    height: 46px;
    display: none;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #111827;
    background: var(--accent);
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.28);
}

.back-top.show {
    display: grid;
}

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

    .hero-panel {
        display: none;
    }

    .rank-page-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 920px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 80px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(2, 6, 23, 0.96);
        box-shadow: var(--shadow);
    }

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

    .nav-menu a {
        border-radius: 14px;
    }

    .hero-slider {
        min-height: 620px;
    }

    .hero-copy h1 {
        font-size: clamp(38px, 12vw, 60px);
    }

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

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

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

    .video-shell {
        min-height: auto;
    }
}

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

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

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

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

    .hero-content {
        padding-bottom: 78px;
    }

    .hero-arrow {
        top: auto;
        bottom: 96px;
        width: 42px;
        height: 42px;
        font-size: 30px;
    }

    .hero-prev {
        left: 14px;
    }

    .hero-next {
        right: 14px;
    }

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

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

    .movie-card-body h2 {
        font-size: 16px;
    }

    .movie-card-body p {
        min-height: 44px;
        font-size: 13px;
    }

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

    .movie-info-panel {
        grid-template-columns: 110px 1fr;
    }

    .detail-cover {
        width: 110px;
        height: 166px;
    }

    .detail-hero {
        min-height: auto;
        padding-bottom: 20px;
    }

    .detail-container {
        padding-top: 24px;
    }

    .section {
        padding-top: 54px;
    }

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

@media (max-width: 430px) {
    .movie-grid,
    .wide-grid,
    .compact-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
    }
}
