:root {
    --brand-orange: #f97316;
    --brand-red: #ef4444;
    --brand-pink: #ec4899;
    --brand-yellow: #fde047;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: rgba(17, 24, 39, 0.08);
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 42%, #fdf2f8 100%);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-red), var(--brand-pink));
    box-shadow: 0 18px 35px rgba(239, 68, 68, 0.28);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    white-space: nowrap;
}

.brand-mark {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
    transform: rotate(-5deg);
}

.brand-mark::after {
    content: "";
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--brand-yellow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 700;
}

.nav-links a {
    opacity: 0.94;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--brand-yellow);
    opacity: 1;
    transform: translateY(-1px);
}

.nav-search {
    position: relative;
    width: 230px;
}

.nav-search input {
    width: 100%;
    height: 40px;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 0 18px 0 42px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.nav-search::before {
    content: "⌕";
    position: absolute;
    left: 17px;
    top: 7px;
    font-size: 20px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.74);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 20px;
    height: 2px;
    margin: 0 auto;
    border-radius: 999px;
    background: #ffffff;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: relative;
}

.nav-toggle span::before {
    top: -7px;
}

.nav-toggle span::after {
    top: 5px;
}

.page-main {
    min-height: calc(100vh - 68px);
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.02);
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.56) 48%, rgba(0, 0, 0, 0.18));
}

.hero-slide::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-top: 170px solid rgba(249, 115, 22, 0.86);
    border-left: 170px solid transparent;
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.55fr);
    gap: 36px;
    align-items: center;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow,
.label-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 7px 14px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-red));
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 22px rgba(239, 68, 68, 0.24);
}

.hero h1 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 5.6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0;
    max-width: 690px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 24px 0 30px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
}

.hero-meta span {
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    padding: 0 24px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-red));
    box-shadow: 0 18px 30px rgba(239, 68, 68, 0.32);
}

.btn-light {
    color: #111827;
    background: #ffffff;
    box-shadow: 0 18px 30px rgba(255, 255, 255, 0.22);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hero-panel {
    border-radius: var(--radius-xl);
    padding: 22px;
    background: rgba(255, 255, 255, 0.13);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(16px);
}

.hero-panel h2 {
    margin: 0 0 16px;
    font-size: 20px;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    transition: background 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(3px);
}

.mini-card img {
    width: 58px;
    height: 76px;
    border-radius: 14px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.45), rgba(236, 72, 153, 0.45));
}

.mini-card strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-card span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.42);
    transform: translateY(-50%);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.66);
    transform: translateY(-50%) scale(1.04);
}

.hero-arrow.prev {
    left: 24px;
}

.hero-arrow.next {
    right: 24px;
}

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

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

.hero-dot.is-active {
    width: 32px;
    background: var(--brand-orange);
}

.section {
    padding: 64px 0;
}

.section.alt {
    background: rgba(255, 255, 255, 0.78);
}

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

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

.section-kicker {
    margin: 0 0 8px;
    color: var(--brand-red);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.15;
}

.section-desc {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--muted);
}

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

.stat-card {
    min-height: 138px;
    border-radius: 24px;
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-red));
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #22c55e, #10b981);
}

.stat-card:nth-child(4) {
    background: linear-gradient(135deg, #a855f7, #ec4899);
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.18);
}

.stat-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 28px;
    line-height: 1;
}

.stat-card span {
    color: rgba(255, 255, 255, 0.82);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.09);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.15);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: radial-gradient(circle at 25% 12%, rgba(253, 224, 71, 0.38), transparent 34%), linear-gradient(135deg, #fb923c, #ef4444 48%, #db2777);
}

.movie-poster.wide {
    aspect-ratio: 16 / 9;
}

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

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

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.66));
}

.movie-corner,
.rank-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 30px;
    border-radius: 999px;
    padding: 0 12px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.58);
    font-size: 13px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.movie-corner {
    right: 12px;
}

.rank-badge {
    left: 12px;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-red));
}

.play-badge {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-red));
    box-shadow: 0 14px 30px rgba(239, 68, 68, 0.34);
}

.movie-body {
    padding: 18px;
}

.movie-title {
    display: -webkit-box;
    min-height: 52px;
    margin: 0 0 8px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 18px;
    line-height: 1.45;
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.movie-meta span,
.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 0 10px;
    background: #fff7ed;
    color: #9a3412;
    font-weight: 700;
}

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

.category-card {
    position: relative;
    min-height: 180px;
    overflow: hidden;
    border-radius: 26px;
    padding: 26px;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #ef4444 48%, #db2777);
    box-shadow: 0 18px 44px rgba(239, 68, 68, 0.18);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #a855f7, #ec4899);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.category-card:nth-child(4n) {
    background: linear-gradient(135deg, #22c55e, #10b981);
}

.category-card::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -38px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    transition: transform 0.24s ease;
}

.category-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 28px 64px rgba(15, 23, 42, 0.16);
}

.category-card:hover::after {
    transform: scale(1.2);
}

.category-card h2,
.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-size: 25px;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.82);
}

.category-card span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 999px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 900;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 84px 112px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    border-radius: 24px;
    padding: 14px 18px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
}

.rank-number {
    display: inline-grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 20px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-red));
    font-size: 22px;
    font-weight: 1000;
}

.rank-thumb {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, #fb923c, #db2777);
}

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

.rank-main h2,
.rank-main h3 {
    margin: 0 0 6px;
    font-size: 20px;
}

.rank-main p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--muted);
}

.rank-side {
    display: grid;
    gap: 8px;
    justify-items: end;
    color: var(--muted);
    font-weight: 800;
    white-space: nowrap;
}

.page-hero {
    padding: 70px 0 42px;
    color: #ffffff;
    background: radial-gradient(circle at 12% 10%, rgba(253, 224, 71, 0.25), transparent 34%), linear-gradient(135deg, #fb923c, #ef4444 55%, #db2777);
}

.page-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(34px, 4.4vw, 58px);
    line-height: 1.1;
}

.page-hero p {
    max-width: 780px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 800;
}

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

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 170px 170px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    height: 46px;
    border: 1px solid rgba(17, 24, 39, 0.1);
    border-radius: 999px;
    padding: 0 16px;
    outline: 0;
    background: #ffffff;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(249, 115, 22, 0.6);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.empty-state {
    display: none;
    padding: 38px;
    border-radius: 24px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
}

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

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

.detail-card,
.aside-card {
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: 0 14px 42px rgba(15, 23, 42, 0.1);
}

.detail-card {
    overflow: hidden;
}

.player-section {
    background: #020617;
}

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

.player-video {
    width: 100%;
    height: 100%;
    background: #020617;
    object-fit: contain;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at 30% 15%, rgba(249, 115, 22, 0.38), transparent 35%), rgba(0, 0, 0, 0.36);
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-cover img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.52) saturate(1.06);
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72));
}

.player-section.is-playing .player-cover {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.play-button-large {
    display: inline-grid;
    width: 92px;
    height: 92px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-red));
    box-shadow: 0 22px 50px rgba(239, 68, 68, 0.38);
    font-size: 34px;
    transform: translateX(3px);
}

.detail-content {
    padding: 30px;
}

.detail-content h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.14;
}

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

.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 999px;
    padding: 0 14px;
    color: #9a3412;
    background: #fff7ed;
    font-weight: 800;
}

.detail-content h2 {
    margin: 30px 0 12px;
    font-size: 25px;
}

.detail-content p {
    margin: 0 0 16px;
    color: #374151;
    font-size: 17px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.aside-card {
    padding: 22px;
}

.aside-card h2,
.aside-card h3 {
    margin: 0 0 16px;
    font-size: 22px;
}

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

.aside-movie {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.aside-movie:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.aside-movie img {
    width: 64px;
    height: 86px;
    border-radius: 15px;
    object-fit: cover;
    background: linear-gradient(135deg, #fb923c, #db2777);
}

.aside-movie strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aside-movie span {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    padding: 42px 0;
    color: rgba(255, 255, 255, 0.86);
    background: #111827;
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-weight: 800;
}

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

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

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

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

    .detail-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .nav-shell {
        height: auto;
        min-height: 66px;
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 0 4px;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        padding: 11px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

    .hero {
        min-height: 720px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        padding: 74px 0 86px;
    }

    .hero-panel {
        display: none;
    }

    .hero-arrow {
        width: 42px;
        height: 42px;
    }

    .hero-arrow.prev {
        left: 12px;
    }

    .hero-arrow.next {
        right: 12px;
    }

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

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

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

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

    .rank-item {
        grid-template-columns: 54px 82px minmax(0, 1fr);
    }

    .rank-side {
        grid-column: 3 / 4;
        justify-items: start;
    }

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

@media (max-width: 560px) {
    .brand {
        font-size: 19px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .section {
        padding: 44px 0;
    }

    .section-head {
        display: block;
    }

    .hero h1 {
        font-size: 39px;
    }

    .hero p {
        font-size: 16px;
    }

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

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

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

    .rank-thumb {
        display: none;
    }

    .rank-main,
    .rank-side {
        grid-column: 2 / 3;
    }

    .detail-content {
        padding: 22px;
    }

    .play-button-large {
        width: 74px;
        height: 74px;
        font-size: 28px;
    }
}
