:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.72);
    --panel-strong: rgba(15, 23, 42, 0.92);
    --line: rgba(148, 163, 184, 0.18);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --dim: #64748b;
    --emerald: #10b981;
    --emerald-bright: #34d399;
    --cyan: #22d3ee;
    --purple: #a78bfa;
    --danger: #fb7185;
    --shadow: 0 28px 80px rgba(2, 6, 23, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.18), transparent 30%), linear-gradient(180deg, #020617 0%, #0f172a 44%, #020617 100%);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 40px rgba(2, 6, 23, 0.35);
}

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

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

.brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    box-shadow: 0 14px 32px rgba(16, 185, 129, 0.24);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-3deg);
}

.brand-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--emerald-bright), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    transform: scaleX(0);
    transform-origin: center;
    background: linear-gradient(90deg, var(--emerald), var(--cyan));
    transition: transform 0.2s ease;
}

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

.nav-link:hover::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.7);
}

.header-search input,
.large-search input,
.local-search {
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.header-search input {
    width: 190px;
    padding: 11px 14px;
}

.header-search button,
.large-search button {
    border: 0;
    padding: 11px 18px;
    color: #ffffff;
    font-weight: 700;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px 11px;
    color: var(--text);
    background: rgba(15, 23, 42, 0.7);
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    padding: 10px 16px 16px;
    background: rgba(15, 23, 42, 0.98);
}

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

.mobile-link {
    padding: 10px 4px;
    color: #cbd5e1;
    font-weight: 600;
}

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

.hero-carousel {
    position: relative;
    min-height: 78vh;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    background-position: center;
    background-size: cover;
    transition: opacity 0.9s ease, visibility 0.9s ease, transform 6s ease;
    transform: scale(1.04);
}

.hero-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-shade,
.detail-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #020617 2%, rgba(15, 23, 42, 0.82) 42%, rgba(15, 23, 42, 0.34) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) 380px;
    align-items: center;
    gap: 56px;
    padding: 96px 0 88px;
}

.hero-copy,
.featured-copy,
.detail-copy {
    display: grid;
    gap: 20px;
}

.pill {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border: 1px solid rgba(52, 211, 153, 0.32);
    border-radius: 999px;
    padding: 8px 16px;
    color: var(--emerald-bright);
    font-size: 14px;
    font-weight: 800;
    background: rgba(16, 185, 129, 0.14);
}

.gradient-pill {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
}

.hero-copy h1,
.hero-copy h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero-movie-title {
    max-width: 860px;
}

.hero-copy p,
.page-hero p,
.detail-copy .lead-text,
.lead-text {
    margin: 0;
    color: #cbd5e1;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.7;
}

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

.hero-meta span,
.detail-meta span,
.card-meta span,
.card-meta a {
    display: inline-flex;
    align-items: center;
    border-radius: 10px;
    padding: 7px 11px;
    color: #dbeafe;
    font-size: 13px;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.68);
    border: 1px solid var(--line);
}

.card-meta a {
    color: var(--emerald-bright);
    border-color: rgba(16, 185, 129, 0.24);
    background: rgba(16, 185, 129, 0.12);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-button,
.ghost-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 12px;
    padding: 0 22px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    box-shadow: 0 18px 40px rgba(16, 185, 129, 0.22);
}

.ghost-button,
.section-more {
    border: 1px solid var(--line);
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.62);
}

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

.hero-poster,
.featured-image,
.detail-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
}

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

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

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

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

.search-band {
    margin-top: -1px;
    padding: 32px 0;
    background: rgba(15, 23, 42, 0.72);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.search-band-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
    gap: 28px;
    align-items: center;
}

.search-band h2,
.section-heading h2,
.rank-copy h2,
.featured-copy h2,
.detail-article h2,
.detail-sidebar h2 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: clamp(26px, 3vw, 40px);
    letter-spacing: -0.04em;
}

.search-band p,
.section-heading p,
.rank-copy p,
.featured-copy p,
.detail-article p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.large-search {
    display: flex;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.56);
}

.large-search input {
    width: 100%;
    padding: 17px 18px;
}

.content-section {
    padding: 62px 0;
}

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

.center-heading {
    justify-content: center;
    text-align: center;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scroll-button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: #ffffff;
    font-size: 28px;
    line-height: 1;
    background: rgba(15, 23, 42, 0.82);
    transition: background 0.2s ease, transform 0.2s ease;
}

.scroll-button:hover {
    background: rgba(30, 41, 59, 0.95);
    transform: translateY(-2px);
}

.movie-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 300px;
    gap: 22px;
    overflow-x: auto;
    padding: 4px 4px 18px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.movie-rail::-webkit-scrollbar {
    display: none;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    scroll-snap-align: start;
}

.movie-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(52, 211, 153, 0.32);
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.36);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0f172a;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
}

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.84), transparent 58%);
}

.play-badge {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(16, 185, 129, 0.92);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.year-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    border-radius: 10px;
    padding: 6px 9px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    background: rgba(2, 6, 23, 0.74);
    backdrop-filter: blur(10px);
}

.movie-card-body {
    display: grid;
    gap: 12px;
    padding: 18px;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.movie-card h2,
.ranking-card h2 {
    margin: 0;
    color: #ffffff;
    font-size: 19px;
    line-height: 1.3;
}

.movie-card h2 a,
.ranking-card h2 a {
    transition: color 0.2s ease;
}

.movie-card h2 a:hover,
.ranking-card h2 a:hover {
    color: var(--emerald-bright);
}

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

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

.tag-row span {
    border-radius: 999px;
    padding: 5px 9px;
    color: #bae6fd;
    font-size: 12px;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.18);
}

.featured-panel {
    position: relative;
    overflow: hidden;
    padding: 78px 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.7), rgba(15, 23, 42, 0.92));
}

.featured-panel::before {
    content: "";
    position: absolute;
    right: -10%;
    top: 10%;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
    filter: blur(80px);
}

.featured-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 52px;
    align-items: center;
}

.featured-image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.featured-image:hover img {
    transform: scale(1.06);
}

.featured-image span {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 30px;
    background: rgba(16, 185, 129, 0.92);
    transform: translate(-50%, -50%);
}

.rank-preview {
    padding: 76px 0;
    background: radial-gradient(circle at center, rgba(34, 211, 238, 0.12), transparent 42%), rgba(15, 23, 42, 0.52);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.rank-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 46px;
    align-items: center;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 42px 68px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 10px;
    background: rgba(2, 6, 23, 0.34);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
    transform: translateX(6px);
    border-color: rgba(52, 211, 153, 0.32);
    background: rgba(15, 23, 42, 0.78);
}

.rank-number {
    color: var(--emerald-bright);
    font-size: 22px;
    font-weight: 900;
    text-align: center;
}

.rank-row img {
    width: 68px;
    height: 46px;
    border-radius: 10px;
    object-fit: cover;
}

.rank-title {
    min-width: 0;
    overflow: hidden;
    color: #ffffff;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-year {
    color: var(--muted);
    font-weight: 700;
}

.home-categories {
    padding: 62px 0 80px;
}

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

.category-card {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 20px 54px rgba(2, 6, 23, 0.22);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(15, 23, 42, 0.18));
}

.category-card strong,
.category-card em {
    position: relative;
    z-index: 2;
    display: block;
    padding: 0 18px;
}

.category-card strong {
    margin-top: 128px;
    color: #ffffff;
    font-size: 22px;
    font-style: normal;
    font-weight: 900;
}

.category-card em {
    margin-top: 8px;
    color: #cbd5e1;
    font-style: normal;
    font-size: 13px;
    line-height: 1.6;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.75fr 0.75fr;
    gap: 34px;
    padding: 46px 0;
}

.footer-brand p,
.footer-grid a,
.footer-bottom p {
    color: var(--muted);
    line-height: 1.7;
}

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

.footer-grid a {
    display: block;
    margin: 8px 0;
    transition: color 0.2s ease;
}

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

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

.sub-page {
    min-height: 70vh;
}

.page-hero {
    position: relative;
    padding: 88px 0 64px;
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #020617, rgba(15, 23, 42, 0.72));
}

.page-hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 18px;
}

.small-hero h1 {
    font-size: clamp(42px, 5vw, 64px);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #cbd5e1;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--emerald-bright);
}

.filter-panel {
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.68);
}

.filter-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 14px;
}

.local-search,
.sort-select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.5);
    outline: 0;
}

.sort-select {
    appearance: none;
}

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

.ranking-grid-page {
    display: grid;
    gap: 18px;
}

.ranking-card {
    display: grid;
    grid-template-columns: 178px minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 14px;
    background: rgba(15, 23, 42, 0.72);
}

.ranking-cover {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.ranking-cover img {
    width: 100%;
    height: 118px;
    object-fit: cover;
}

.ranking-cover span {
    position: absolute;
    left: 10px;
    top: 10px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
}

.ranking-info {
    display: grid;
    align-content: center;
    gap: 12px;
}

.detail-hero {
    position: relative;
    min-height: 620px;
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.detail-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 46px;
    align-items: center;
    padding: 78px 0 64px;
}

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

.detail-copy h1 {
    font-size: clamp(42px, 5vw, 68px);
}

.large-tags span {
    font-size: 13px;
    padding: 7px 11px;
}

.player-section {
    padding: 42px 0 24px;
    background: #020617;
}

.stream-player {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow);
}

.video-core {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.56), rgba(2, 6, 23, 0.18));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 38px;
    background: rgba(16, 185, 129, 0.94);
    box-shadow: 0 24px 60px rgba(16, 185, 129, 0.28);
}

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

.detail-content-section {
    padding-top: 44px;
}

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

.detail-article,
.detail-sidebar {
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px;
    background: rgba(15, 23, 42, 0.72);
}

.detail-article {
    display: grid;
    gap: 16px;
}

.detail-article p {
    color: #cbd5e1;
    font-size: 16px;
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.info-list li {
    display: grid;
    gap: 6px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 12px;
}

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

.info-list strong {
    color: #ffffff;
    font-size: 15px;
}

.related-section {
    padding-top: 30px;
}

.is-filtered-out {
    display: none !important;
}

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

    .menu-toggle {
        display: inline-flex;
    }

    .hero-content,
    .featured-grid,
    .rank-grid,
    .detail-hero-grid,
    .detail-content-grid,
    .search-band-inner {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        max-width: 360px;
    }

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

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

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

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

    .header-search {
        display: none;
    }

    .hero-carousel {
        min-height: auto;
    }

    .hero-content {
        padding: 72px 0 86px;
        gap: 30px;
    }

    .hero-copy h1,
    .hero-copy h2,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 40px;
    }

    .hero-poster,
    .detail-poster {
        max-width: 280px;
    }

    .section-heading,
    .filter-inner {
        align-items: stretch;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .movie-rail {
        grid-auto-columns: 82%;
    }

    .category-card-grid,
    .large-category-grid,
    .movie-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .ranking-card,
    .rank-row {
        grid-template-columns: 1fr;
    }

    .rank-row img,
    .ranking-cover img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

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

    .player-overlay span {
        width: 72px;
        height: 72px;
        font-size: 30px;
    }
}
