:root {
    color-scheme: dark;
    --page-bg: #07110f;
    --panel-bg: rgba(15, 28, 25, 0.84);
    --panel-strong: #111f1c;
    --panel-soft: rgba(255, 255, 255, 0.06);
    --line: rgba(202, 211, 207, 0.13);
    --text: #f5f7f6;
    --muted: #a6b3ae;
    --muted-strong: #d8dfdc;
    --accent: #48c78e;
    --accent-dark: #25875e;
    --gold: #f1c35d;
    --danger: #ff6f61;
    --radius-lg: 30px;
    --radius-md: 20px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 4%, rgba(72, 199, 142, 0.22), transparent 32rem),
        radial-gradient(circle at 84% 12%, rgba(241, 195, 93, 0.13), transparent 30rem),
        linear-gradient(180deg, #06100e 0%, #081613 42%, #06100e 100%);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 80%);
}

img {
    max-width: 100%;
}

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 17, 15, 0.88);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #07110f;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--gold), var(--accent));
    box-shadow: 0 14px 36px rgba(72, 199, 142, 0.32);
}

.brand-text,
.footer-logo {
    display: flex;
    flex-direction: column;
}

.brand strong,
.footer-logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav-link,
.nav-dropdown > button {
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 14px;
    color: var(--muted-strong);
    border-radius: 999px;
    border: 0;
    background: transparent;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-dropdown:hover > button {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: grid;
    min-width: 190px;
    padding: 10px;
    visibility: hidden;
    opacity: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(12, 27, 24, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

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

.dropdown-panel a {
    padding: 10px 12px;
    color: var(--muted-strong);
    border-radius: 12px;
}

.dropdown-panel a:hover {
    color: var(--text);
    background: rgba(72, 199, 142, 0.12);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 310px;
}

.header-search input,
.quick-search-panel input,
.filter-panel input,
.filter-panel select,
.mobile-panel input {
    width: 100%;
    color: var(--text);
    border: 1px solid var(--line);
    outline: 0;
    background: rgba(255, 255, 255, 0.08);
}

.header-search input {
    height: 42px;
    padding: 0 14px;
    border-radius: 999px;
}

.header-search button,
.quick-search-panel button,
.mobile-panel button {
    height: 42px;
    padding: 0 18px;
    color: #06100e;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold), var(--accent));
    font-weight: 800;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-panel {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(12, 27, 24, 0.94);
}

.mobile-panel a,
.mobile-panel form {
    display: flex;
    margin: 8px 0;
}

.mobile-panel input {
    height: 42px;
    padding: 0 12px;
    border-radius: 12px 0 0 12px;
}

.mobile-panel button {
    border-radius: 0 12px 12px 0;
}

main {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 610px;
    margin: 26px 0 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #0d1d19;
    box-shadow: var(--shadow);
}

.hero-stage,
.hero-slide,
.hero-backdrop {
    position: absolute;
    inset: 0;
}

.hero-stage {
    position: relative;
    min-height: 610px;
}

.hero-slide {
    display: flex;
    align-items: stretch;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

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

.hero-backdrop {
    background:
        linear-gradient(90deg, rgba(5, 12, 10, 0.96) 0%, rgba(5, 12, 10, 0.72) 48%, rgba(5, 12, 10, 0.18) 100%),
        linear-gradient(0deg, rgba(5, 12, 10, 0.96) 0%, transparent 60%),
        var(--hero-image) center / cover no-repeat;
    filter: saturate(1.08);
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 44px;
    width: 100%;
    padding: 74px 64px 124px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--gold);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 78px);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero-copy p,
.page-hero p,
.section-lead {
    max-width: 820px;
    margin: 20px 0 0;
    color: var(--muted-strong);
    font-size: 17px;
    line-height: 1.9;
}

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

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    color: var(--muted-strong);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
}

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

.primary-btn,
.ghost-btn,
.section-more,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
    color: #06100e;
    background: linear-gradient(135deg, var(--gold), var(--accent));
    box-shadow: 0 12px 30px rgba(72, 199, 142, 0.3);
}

.ghost-btn,
.section-more,
.text-link {
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.text-link:hover,
.movie-card:hover,
.spotlight-card:hover,
.category-card:hover {
    transform: translateY(-2px);
}

.hero-poster {
    align-self: center;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.hero-poster img,
.card-poster img,
.compact-card img,
.category-cover-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-controls {
    position: absolute;
    right: 28px;
    bottom: 26px;
    left: 28px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-dots {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    flex: 1;
}

.hero-dot {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 8px;
    color: var(--muted-strong);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(7, 17, 15, 0.72);
    text-align: left;
}

.hero-dot.is-active {
    color: var(--text);
    border-color: rgba(72, 199, 142, 0.52);
    background: rgba(72, 199, 142, 0.16);
}

.hero-dot img {
    width: 46px;
    height: 58px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 10px;
}

.hero-dot span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-arrow {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(7, 17, 15, 0.72);
    font-size: 26px;
}

.quick-search-panel,
.content-section,
.spotlight-section,
.category-strip,
.ranking-preview,
.page-hero,
.filter-panel,
.category-card,
.side-card,
.text-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--panel-bg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

.quick-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    align-items: center;
    gap: 24px;
    padding: 26px;
}

.quick-search-panel h2,
.section-heading h2,
.ranking-side h2,
.side-card h2,
.text-panel h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: -0.04em;
}

.quick-search-panel form {
    display: flex;
    gap: 10px;
}

.quick-search-panel input {
    min-height: 52px;
    padding: 0 18px;
    border-radius: 999px;
}

.quick-search-panel button {
    min-height: 52px;
    padding: 0 24px;
}

.content-section,
.spotlight-section,
.category-strip,
.ranking-preview {
    margin: 34px 0;
    padding: 28px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.055);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.movie-card:hover {
    border-color: rgba(72, 199, 142, 0.42);
    background: rgba(255, 255, 255, 0.08);
}

.card-poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background:
        linear-gradient(135deg, rgba(72, 199, 142, 0.16), rgba(241, 195, 93, 0.12)),
        #0e1f1b;
}

.card-poster::after {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    content: "";
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent);
}

.play-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
}

.play-pill {
    right: 12px;
    bottom: 12px;
    min-height: 32px;
    padding: 0 12px;
    color: #06100e;
    background: linear-gradient(135deg, var(--gold), var(--accent));
    font-size: 12px;
}

.rank-badge {
    top: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    color: var(--text);
    background: rgba(0, 0, 0, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.card-body {
    padding: 16px;
}

.card-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 48px;
    color: var(--text);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.42;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
    color: var(--muted);
    font-size: 12px;
}

.card-body p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 42px;
    margin: 0 0 12px;
    color: var(--muted-strong);
    font-size: 13px;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 20px;
}

.spotlight-card {
    position: relative;
    display: flex;
    min-height: 320px;
    overflow: hidden;
    align-items: end;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background:
        linear-gradient(0deg, rgba(3, 8, 7, 0.92), rgba(3, 8, 7, 0.14)),
        var(--spotlight-image) center / cover no-repeat;
    transition: transform 0.2s ease;
}

.spotlight-card:first-child {
    min-height: 390px;
}

.spotlight-card span,
.spotlight-card p {
    color: var(--muted-strong);
}

.spotlight-card h3 {
    margin: 8px 0 10px;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.1;
}

.spotlight-card a:last-child {
    display: inline-flex;
    margin-top: 14px;
    color: var(--gold);
    font-weight: 800;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 42px 56px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
}

.compact-card:hover {
    background: rgba(255, 255, 255, 0.09);
}

.compact-card span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #06100e;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--accent));
    font-weight: 900;
}

.compact-card img {
    aspect-ratio: 3 / 4;
    border-radius: 12px;
}

.compact-card strong,
.compact-card em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-card strong {
    display: block;
    font-size: 15px;
}

.compact-card em {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.page-shell {
    padding: 26px 0 38px;
}

.page-hero {
    padding: clamp(34px, 6vw, 76px);
    background:
        radial-gradient(circle at 18% 10%, rgba(72, 199, 142, 0.22), transparent 24rem),
        radial-gradient(circle at 84% 0%, rgba(241, 195, 93, 0.15), transparent 22rem),
        var(--panel-bg);
}

.small-hero h1,
.category-hero h1,
.ranking-hero h1,
.search-hero h1 {
    max-width: 850px;
}

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

.category-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    transition: transform 0.2s ease;
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.category-cover-stack img {
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.category-card h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

.category-card p {
    margin: 0 0 18px;
    color: var(--muted-strong);
    line-height: 1.8;
}

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

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

.filter-panel {
    display: grid;
    grid-template-columns: 180px 180px minmax(0, 1fr);
    gap: 16px;
    margin: 24px 0;
    padding: 18px;
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    height: 46px;
    padding: 0 14px;
    border-radius: 14px;
}

.ranking-layout,
.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
    margin-top: 28px;
}

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

.ranking-side,
.detail-side {
    min-width: 0;
}

.sticky-list,
.detail-side .side-card {
    position: sticky;
    top: 94px;
}

.detail-main {
    min-width: 0;
}

.player-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #020605;
    box-shadow: var(--shadow);
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #020605;
    object-fit: cover;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 16px;
    color: var(--text);
    border: 0;
    background:
        linear-gradient(0deg, rgba(2, 6, 5, 0.88), rgba(2, 6, 5, 0.18)),
        transparent;
}

.player-overlay.is-hidden {
    display: none;
}

.player-icon {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    color: #06100e;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--accent));
    box-shadow: 0 18px 45px rgba(72, 199, 142, 0.35);
    font-size: 34px;
}

.player-overlay strong {
    font-size: clamp(22px, 4vw, 38px);
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}

.detail-info {
    margin-top: 24px;
}

.detail-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
}

.detail-title-row h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.small-btn {
    min-height: 40px;
    flex: 0 0 auto;
    padding: 0 14px;
    font-size: 13px;
}

.detail-one-line {
    margin: 18px 0 0;
    padding: 16px 18px;
    color: var(--muted-strong);
    border-left: 4px solid var(--accent);
    border-radius: 0 16px 16px 0;
    background: rgba(255, 255, 255, 0.06);
    font-size: 17px;
    line-height: 1.8;
}

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

.detail-meta-grid div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
}

.detail-meta-grid span,
.detail-meta-grid strong {
    display: block;
}

.detail-meta-grid span {
    color: var(--muted);
    font-size: 12px;
}

.detail-meta-grid strong {
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-tags {
    margin: 18px 0 22px;
}

.text-panel {
    margin: 18px 0;
    padding: 24px;
}

.text-panel h2 {
    font-size: 24px;
}

.text-panel p {
    margin: 14px 0 0;
    color: var(--muted-strong);
    font-size: 16px;
    line-height: 2;
}

.side-card {
    padding: 18px;
}

.side-card h2 {
    margin-bottom: 16px;
    font-size: 24px;
}

.related-section {
    margin-top: 28px;
}

.site-footer {
    margin-top: 48px;
    border-top: 1px solid var(--line);
    background: rgba(5, 12, 10, 0.74);
}

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

.footer-shell p {
    max-width: 720px;
    margin: 14px 0 0;
    color: var(--muted-strong);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-content: start;
}

.footer-links a {
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted-strong);
    background: rgba(255, 255, 255, 0.05);
}

.footer-bottom {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0 28px;
    color: var(--muted);
    font-size: 13px;
}

[hidden],
.movie-card.is-hidden {
    display: none !important;
}

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

    .mobile-toggle {
        display: grid;
        margin-left: auto;
        place-items: center;
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 260px;
        padding: 58px 34px 126px;
    }

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

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

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

    .sticky-list,
    .detail-side .side-card {
        position: static;
    }
}

@media (max-width: 820px) {
    main,
    .header-shell,
    .mobile-panel,
    .footer-shell,
    .footer-bottom {
        width: min(100% - 24px, 1240px);
    }

    .hero-carousel,
    .hero-stage {
        min-height: 720px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 42px 22px 170px;
    }

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

    .hero-dots {
        grid-template-columns: repeat(5, 1fr);
    }

    .hero-dot {
        justify-content: center;
        padding: 6px;
    }

    .hero-dot img {
        width: 36px;
        height: 46px;
    }

    .hero-dot span {
        display: none;
    }

    .quick-search-panel,
    .footer-shell,
    .category-card,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .quick-search-panel form {
        flex-direction: column;
    }

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

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

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

    .detail-title-row {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .brand strong {
        font-size: 17px;
    }

    .brand small {
        display: none;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-title-row h1 {
        letter-spacing: -0.035em;
    }

    .hero-carousel,
    .hero-stage {
        min-height: 690px;
    }

    .hero-controls {
        right: 14px;
        bottom: 16px;
        left: 14px;
    }

    .content-section,
    .spotlight-section,
    .category-strip,
    .ranking-preview,
    .page-hero,
    .quick-search-panel {
        padding: 18px;
        border-radius: 22px;
    }

    .movie-grid,
    .ranking-main .movie-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }

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