:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.86);
    --panel-strong: #111827;
    --text: #f8fafc;
    --muted: #94a3b8;
    --line: rgba(148, 163, 184, 0.18);
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --orange: #f97316;
    --yellow: #facc15;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.18), transparent 34rem),
        radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.16), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
}

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

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

button,
input {
    font: inherit;
}

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

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 12px 34px rgba(34, 211, 238, 0.28);
}

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

.nav-link,
.mobile-nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    color: #cbd5e1;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: white;
    background: rgba(34, 211, 238, 0.12);
}

.nav-button {
    border: 0;
    cursor: pointer;
    background: transparent;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 210px;
    padding: 10px;
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 180ms ease;
}

.dropdown-panel a {
    padding: 10px 12px;
    border-radius: 12px;
    color: #cbd5e1;
}

.dropdown-panel a:hover {
    color: white;
    background: rgba(148, 163, 184, 0.12);
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px;
    background: rgba(15, 23, 42, 0.86);
}

.header-search input,
.mobile-search input,
.filter-bar input {
    width: 230px;
    border: 0;
    outline: 0;
    color: white;
    background: transparent;
    padding: 10px 12px;
}

.header-search button,
.mobile-search button {
    border: 0;
    cursor: pointer;
    color: white;
    border-radius: 999px;
    padding: 9px 16px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.88);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: white;
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-search {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 4px;
    background: rgba(15, 23, 42, 0.86);
}

.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    isolation: isolate;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 420px);
    align-items: center;
    gap: 40px;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    opacity: 0;
    pointer-events: none;
    transform: translateX(34px);
    transition: opacity 500ms ease, transform 500ms ease;
}

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

.hero-slide::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -3;
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.75), rgba(2, 6, 23, 0.25)), var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: blur(2px) saturate(1.1);
    transform: scale(1.04);
}

.hero-backdrop,
.detail-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.2), #020617 94%),
        radial-gradient(circle at 72% 28%, rgba(34, 211, 238, 0.22), transparent 28rem);
}

.hero-content {
    max-width: 740px;
    padding: 98px 0 86px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: var(--yellow);
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-kicker::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 99px;
    background: currentColor;
    box-shadow: 0 0 24px currentColor;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-content p,
.page-hero p,
.detail-one-line {
    margin: 22px 0 0;
    max-width: 700px;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.82;
}

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

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: 999px;
    color: #cffafe;
    background: rgba(8, 145, 178, 0.12);
    font-size: 13px;
}

.hero-meta,
.detail-meta,
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    color: #cbd5e1;
}

.hero-meta,
.detail-meta {
    margin-top: 24px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

.primary-button,
.ghost-button,
.text-button,
.small-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-button {
    min-height: 52px;
    padding: 0 28px;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.28);
}

.ghost-button {
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    color: white;
    background: rgba(15, 23, 42, 0.72);
}

.text-button {
    min-height: 48px;
    color: var(--cyan);
}

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

.hero-poster {
    position: relative;
    display: block;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.52);
    transform: rotate(2deg);
}

.hero-poster::after,
.movie-poster::after,
.category-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.9));
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(-50%);
}

.hero-controls button {
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: white;
    background: rgba(15, 23, 42, 0.76);
    cursor: pointer;
}

.hero-controls > button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 99px;
}

.hero-dot.active {
    width: 30px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.section-wrap {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0 0;
}

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

.section-heading h2,
.side-rank h2,
.content-card h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.14;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-link {
    flex-shrink: 0;
    color: var(--cyan);
    font-weight: 800;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.2);
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(34, 211, 238, 0.42);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(59, 130, 246, 0.18));
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 420ms ease;
}

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

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

.poster-badge {
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 800;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(10px);
}

.poster-play {
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    background: rgba(34, 211, 238, 0.86);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: 200ms ease;
}

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

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

.movie-card h3 {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 800;
}

.movie-card h3 a:hover {
    color: var(--cyan);
}

.movie-card p {
    min-height: 3.4em;
    margin: 0 0 14px;
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.7;
}

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

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

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

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

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

.category-card,
.category-cover {
    position: relative;
    min-height: 178px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 20px;
    background-image: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.92)), var(--card-image);
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.category-card > *,
.category-cover > * {
    position: relative;
    z-index: 2;
}

.category-card span,
.category-cover span {
    font-size: 22px;
    font-weight: 900;
}

.category-card strong {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.5;
}

.category-card em {
    color: var(--cyan);
    font-style: normal;
    font-weight: 800;
}

.two-column-area {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 28px;
    align-items: start;
}

.side-rank,
.content-card,
.player-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.side-rank,
.content-card {
    padding: 24px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 54px 74px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.66);
}

.rank-number {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #cbd5e1;
    font-weight: 900;
    background: rgba(148, 163, 184, 0.12);
}

.rank-number.top {
    color: #111827;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
}

.rank-cover {
    overflow: hidden;
    border-radius: 14px;
}

.rank-cover img {
    width: 74px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

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

.rank-info h2 a:hover {
    color: var(--cyan);
}

.rank-info p {
    margin: 0 0 10px;
    color: #cbd5e1;
    line-height: 1.65;
}

.small-button {
    min-height: 38px;
    padding: 0 16px;
    color: white;
    background: rgba(34, 211, 238, 0.15);
    border: 1px solid rgba(34, 211, 238, 0.32);
}

.page-hero {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 80px 0 30px;
}

.small-hero > div {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 34px;
    padding: clamp(34px, 7vw, 72px);
    background:
        radial-gradient(circle at 78% 20%, rgba(34, 211, 238, 0.22), transparent 24rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.72));
    box-shadow: var(--shadow);
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.74);
}

.filter-bar input {
    flex: 1;
    min-width: 0;
}

.category-overview {
    display: grid;
    gap: 24px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: rgba(15, 23, 42, 0.68);
}

.category-cover {
    min-height: 250px;
}

.category-overview-content h2 {
    margin: 4px 0 10px;
    font-size: 30px;
}

.category-overview-content p {
    margin: 0 0 18px;
    color: #cbd5e1;
    line-height: 1.75;
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.68)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

.detail-inner {
    position: relative;
    z-index: 2;
    width: min(1240px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    align-items: center;
    gap: 44px;
    padding: 70px 0;
}

.detail-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 30px;
    background: rgba(34, 211, 238, 0.88);
    transform: translate(-50%, -50%);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: #cbd5e1;
}

.breadcrumbs a {
    color: var(--cyan);
}

.breadcrumbs em {
    color: white;
    font-style: normal;
}

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

.detail-main,
.detail-side {
    display: grid;
    gap: 22px;
}

.player-card {
    overflow: hidden;
    padding: 0;
}

.player-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.player-button {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: white;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.72));
}

.player-button span {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 32px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 44px rgba(37, 99, 235, 0.34);
}

.player-button strong {
    font-size: 20px;
}

.player-card.is-playing .player-button {
    display: none;
}

.content-card p {
    margin: 14px 0 0;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.9;
}

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

.info-list div {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.28);
}

.info-list dt {
    color: var(--muted);
    font-size: 13px;
}

.info-list dd {
    margin: 0;
    color: white;
    font-weight: 700;
}

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

.mini-rank .rank-cover,
.mini-rank .small-button,
.mini-rank .rank-info p,
.mini-rank .movie-meta {
    display: none;
}

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

.footer-grid {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 34px;
    padding: 50px 0;
}

.footer-logo {
    margin-bottom: 16px;
}

.site-footer p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-bottom {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0 28px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

[data-filter-item].is-hidden {
    display: none;
}

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

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

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

    .hero-slide {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

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

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

    .two-column-area,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-inner {
        grid-template-columns: 260px minmax(0, 1fr);
    }

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

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

    .site-logo {
        font-size: 18px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 18px;
    }

    .hero-content {
        padding: 74px 0 0;
    }

    .hero-poster {
        width: min(260px, 72vw);
        margin: 0 auto 88px;
    }

    .hero-actions,
    .filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

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

    .featured-grid,
    .all-grid,
    .movie-grid,
    .compact-grid,
    .related-grid,
    .category-grid,
    .mini-movie-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

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

    .detail-inner {
        min-height: auto;
        padding: 40px 0;
    }

    .detail-poster {
        width: min(270px, 74vw);
        margin: 0 auto;
    }

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

    .rank-cover img {
        width: 58px;
    }

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

    .info-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .featured-grid,
    .all-grid,
    .movie-grid,
    .compact-grid,
    .related-grid,
    .category-grid,
    .mini-movie-row {
        grid-template-columns: 1fr;
    }

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

    .hero-controls {
        bottom: 18px;
    }
}
