* {
    box-sizing: border-box;
}

:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-solid: #0f172a;
    --muted: #94a3b8;
    --text: #f8fafc;
    --line: rgba(148, 163, 184, 0.22);
    --emerald: #10b981;
    --emerald-bright: #34d399;
    --teal: #14b8a6;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background:
        radial-gradient(circle at 20% 0%, rgba(16, 185, 129, 0.16), transparent 34rem),
        radial-gradient(circle at 80% 12%, rgba(20, 184, 166, 0.12), transparent 32rem),
        linear-gradient(135deg, #020617 0%, #0f172a 50%, #020617 100%);
    color: var(--text);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.78));
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    max-width: 1280px;
    height: 64px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--emerald-bright), #5eead4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    color: #ffffff;
    box-shadow: 0 0 32px rgba(16, 185, 129, 0.38);
    font-size: 13px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 14px;
    color: #cbd5e1;
}

.nav-link {
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--emerald-bright);
}

.category-nav {
    display: inline-flex;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.9);
    color: white;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-button span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #e2e8f0;
}

.mobile-nav {
    display: none;
    padding: 12px 24px 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.98);
}

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

.mobile-link {
    color: #cbd5e1;
    padding: 4px 0;
}

.page-main {
    padding-top: 64px;
    min-height: 80vh;
}

.hero-slider {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.75s ease, transform 1.2s ease;
    pointer-events: none;
}

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

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

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.82) 45%, rgba(15, 23, 42, 0.15)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.8), transparent 45%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    transform: translateY(-50%);
    width: min(680px, calc(100% - 48px));
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--emerald-bright);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 18px 0 16px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 26px;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
    color: #cbd5e1;
}

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

.tag-pill,
.poster-tags span {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.16);
    color: #a7f3d0;
    font-size: 13px;
    line-height: 1;
}

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

.primary-button,
.ghost-button,
.small-play-button,
.line-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    padding: 14px 30px;
    background: linear-gradient(90deg, var(--emerald), var(--teal));
    color: white;
    box-shadow: 0 18px 40px rgba(16, 185, 129, 0.28);
}

.primary-button:hover,
.small-play-button:hover,
.line-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 46px rgba(16, 185, 129, 0.42);
}

.ghost-button {
    padding: 13px 24px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.46);
}

.ghost-button:hover {
    border-color: rgba(52, 211, 153, 0.55);
    color: #a7f3d0;
}

.hero-control,
.feature-control {
    position: absolute;
    z-index: 5;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.84);
    color: white;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover,
.feature-control:hover {
    background: rgba(16, 185, 129, 0.86);
    transform: translateY(-50%) scale(1.05);
}

.hero-prev,
.feature-prev {
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
}

.hero-next,
.feature-next {
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
}

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

.hero-dot,
.feature-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: #64748b;
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active,
.feature-dot.active {
    width: 34px;
    background: var(--emerald);
}

.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px;
}

.section-tight {
    padding-top: 56px;
}

.section-muted {
    max-width: none;
    padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
    background: rgba(15, 23, 42, 0.34);
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

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

.section-head h2,
.page-hero h1,
.detail-info h1 {
    margin: 8px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-more {
    color: var(--emerald-bright);
    font-weight: 700;
}

.feature-carousel {
    position: relative;
}

.feature-frame {
    position: relative;
    height: 420px;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: var(--shadow);
    background: #020617;
}

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

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

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

.feature-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.38) 52%, transparent);
}

.feature-content {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 34px;
    max-width: 720px;
}

.feature-content h3 {
    margin: 0 0 12px;
    font-size: clamp(28px, 3vw, 42px);
}

.feature-content p {
    color: #cbd5e1;
    line-height: 1.7;
    margin: 0 0 20px;
}

.small-play-button,
.line-button {
    padding: 10px 20px;
    background: var(--emerald);
    color: white;
}

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.6);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
    transform: translateY(-6px);
    border-color: rgba(52, 211, 153, 0.56);
    box-shadow: 0 24px 54px rgba(16, 185, 129, 0.12);
}

.movie-poster {
    position: relative;
    height: 270px;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #020617);
}

.movie-card-large .movie-poster {
    height: 340px;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.3) 50%, transparent);
}

.poster-tags {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.poster-tags span {
    padding: 5px 8px;
    font-size: 12px;
}

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

.movie-card-body h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.movie-card-link:hover h3 {
    color: var(--emerald-bright);
}

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

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #64748b;
    font-size: 13px;
}

.horizontal-list {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 4px 0 22px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.horizontal-list::-webkit-scrollbar {
    display: none;
}

.horizontal-list .movie-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
}

.scroll-buttons {
    display: flex;
    gap: 10px;
}

.scroll-buttons button {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.85);
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.mixed-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
}

.mixed-grid .movie-card:first-child {
    grid-row: span 2;
}

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

.category-tile {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: #0f172a;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.36;
    transition: opacity 0.2s ease, transform 0.4s ease;
}

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

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.22));
}

.category-tile span,
.category-tile p {
    position: relative;
    z-index: 1;
}

.category-tile span {
    font-size: 22px;
    font-weight: 800;
}

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

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

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 64px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.68);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    border-color: rgba(52, 211, 153, 0.5);
}

.rank-number {
    font-weight: 900;
    font-size: 24px;
    color: var(--emerald-bright);
}

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

.rank-title {
    font-weight: 800;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

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

.search-panel {
    margin: 0 0 28px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.62);
}

.search-label {
    display: block;
    margin-bottom: 10px;
    color: #cbd5e1;
    font-weight: 700;
}

.search-box {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
}

.search-box input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.72);
    color: white;
    padding: 13px 15px;
    outline: none;
}

.search-box input:focus {
    border-color: rgba(52, 211, 153, 0.6);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.search-box button,
.filter-button {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.9);
    color: #cbd5e1;
    padding: 10px 15px;
    cursor: pointer;
}

.filter-button.active,
.filter-button:hover,
.search-box button:hover {
    border-color: rgba(52, 211, 153, 0.56);
    background: rgba(16, 185, 129, 0.16);
    color: #a7f3d0;
}

.page-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.78)),
        radial-gradient(circle at 72% 10%, rgba(16, 185, 129, 0.22), transparent 36rem);
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.compact-page-hero {
    padding: 72px 24px;
}

.page-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.page-hero p {
    max-width: 760px;
    color: #cbd5e1;
    line-height: 1.85;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: #94a3b8;
    font-size: 14px;
}

.breadcrumb a {
    color: #a7f3d0;
}

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

.category-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.62);
    box-shadow: var(--shadow);
}

.category-cover-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 170px;
    overflow: hidden;
}

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

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

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

.category-card-body p {
    color: #cbd5e1;
    line-height: 1.7;
}

.category-samples {
    display: grid;
    gap: 8px;
    margin: 18px 0;
}

.category-samples a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #e2e8f0;
    font-size: 14px;
}

.category-samples span {
    color: #64748b;
    flex: 0 0 auto;
}

.detail-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

.player-card {
    margin-bottom: 28px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #000000;
}

.player-cover.hidden {
    display: none;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.22), transparent 25rem), linear-gradient(0deg, rgba(2, 6, 23, 0.6), rgba(2, 6, 23, 0.12));
}

.player-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    width: 88px;
    height: 88px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    color: white;
    font-size: 32px;
    box-shadow: 0 24px 52px rgba(16, 185, 129, 0.42);
}

.detail-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 34px;
    padding: 30px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.64);
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.detail-one-line {
    margin: 16px 0 18px;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.75;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.86);
    color: #cbd5e1;
    font-size: 14px;
}

.detail-tags {
    margin: 20px 0 28px;
}

.detail-info h2 {
    margin: 26px 0 10px;
    color: white;
    font-size: 24px;
}

.detail-info p {
    color: #cbd5e1;
    line-height: 1.9;
}

.related-section {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
}

.top-rank-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 34px;
}

.top-rank-card a {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 18px;
    position: relative;
    padding: 16px;
    border-radius: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(15, 23, 42, 0.65);
    overflow: hidden;
}

.top-rank-card img {
    width: 140px;
    height: 190px;
    object-fit: cover;
    border-radius: 16px;
}

.top-rank-number {
    position: absolute;
    left: 24px;
    top: 24px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    font-weight: 900;
}

.top-rank-card h2 {
    margin: 8px 0 12px;
}

.top-rank-card p {
    color: #cbd5e1;
    line-height: 1.7;
}

.top-rank-card span:last-child {
    color: var(--muted);
}

.site-footer {
    background: rgba(2, 6, 23, 0.86);
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 34px;
}

.footer-brand p,
.footer-block a {
    color: #94a3b8;
    line-height: 1.75;
}

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

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

.footer-links {
    display: grid;
    gap: 9px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    padding: 18px 24px;
    color: #64748b;
    text-align: center;
}

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

@media (max-width: 1100px) {
    .desktop-nav {
        gap: 14px;
    }

    .category-nav {
        display: none;
    }

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

    .category-overview-grid,
    .top-rank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .detail-card {
        grid-template-columns: 240px 1fr;
    }
}

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

    .mobile-menu-button {
        display: inline-flex;
    }

    .nav-wrap {
        padding: 0 16px;
    }

    .hero-slider {
        height: 640px;
    }

    .hero-content {
        left: 20px;
        width: calc(100% - 40px);
    }

    .hero-control {
        display: none;
    }

    .section,
    .section-muted,
    .compact-page-hero,
    .detail-layout {
        padding-left: 18px;
        padding-right: 18px;
    }

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

    .feature-frame {
        height: 360px;
        border-radius: 20px;
    }

    .feature-content {
        left: 22px;
        right: 22px;
        bottom: 24px;
    }

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

    .rank-item {
        grid-template-columns: 42px 56px 1fr;
    }

    .rank-meta {
        display: none;
    }

    .detail-card {
        grid-template-columns: 1fr;
        padding: 20px;
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .site-logo {
        font-size: 18px;
    }

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

    .hero-slider {
        height: 620px;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-actions,
    .search-box {
        flex-direction: column;
    }

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

    .movie-grid,
    .category-grid,
    .category-overview-grid,
    .top-rank-grid,
    .compact-rank,
    .mixed-grid {
        grid-template-columns: 1fr;
    }

    .movie-poster,
    .movie-card-large .movie-poster {
        height: 300px;
    }

    .horizontal-list .movie-card {
        flex-basis: 78vw;
    }

    .rank-item {
        grid-template-columns: 42px 54px 1fr;
        gap: 12px;
    }

    .top-rank-card a {
        grid-template-columns: 112px 1fr;
    }

    .top-rank-card img {
        width: 112px;
        height: 158px;
    }

    .player-play {
        width: 68px;
        height: 68px;
        font-size: 24px;
    }
}
