* {
    box-sizing: border-box;
}

:root {
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-solid: #0f172a;
    --panel-soft: #111827;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --accent: #f97316;
    --accent-2: #fb923c;
    --accent-3: #fed7aa;
    --radius: 22px;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 0%, rgba(249, 115, 22, 0.16), transparent 30%),
        radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.12), transparent 26%),
        var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

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

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand-mark,
.footer-brand span {
    width: 36px;
    height: 36px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), #ef4444);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.32);
    font-size: 15px;
}

.nav-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a {
    padding: 10px 15px;
    color: var(--soft);
    border-radius: 12px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: #ffffff;
    background: rgba(249, 115, 22, 0.94);
    transform: translateY(-1px);
}

.nav-search,
.inline-search,
.large-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-search input,
.inline-search input,
.large-search input {
    border: 1px solid var(--line);
    outline: 0;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 14px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
    width: 260px;
    padding: 11px 14px;
}

.nav-search input:focus,
.inline-search input:focus,
.large-search input:focus {
    border-color: rgba(249, 115, 22, 0.76);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13);
}

.nav-search button,
.inline-search button,
.large-search button,
.primary-btn,
.ghost-btn {
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    cursor: pointer;
    white-space: nowrap;
}

.nav-search button,
.inline-search button,
.large-search button,
.primary-btn {
    background: linear-gradient(135deg, var(--accent), #ef4444);
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.24);
}

.nav-search button {
    padding: 11px 16px;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.9);
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: #ffffff;
    border-radius: 10px;
}

.hero-carousel {
    width: min(1280px, calc(100% - 32px));
    min-height: 640px;
    margin: 28px auto 0;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: #111827;
    box-shadow: var(--shadow);
}

.hero-track,
.hero-slide {
    min-height: 640px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.55fr);
    align-items: center;
    gap: 48px;
    padding: 74px;
    opacity: 0;
    pointer-events: none;
    background-image:
        linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.9)),
        var(--hero-image);
    background-size: cover;
    background-position: center;
    transition: opacity 0.5s ease;
}

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

.hero-shade,
.detail-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 25% 30%, rgba(249, 115, 22, 0.24), transparent 24%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.25), rgba(2, 6, 23, 0.92));
    pointer-events: none;
}

.hero-copy,
.hero-poster,
.detail-wrap {
    position: relative;
    z-index: 2;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--accent-3);
    background: rgba(249, 115, 22, 0.16);
    border: 1px solid rgba(249, 115, 22, 0.28);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 760px;
    color: var(--soft);
    font-size: 20px;
    line-height: 1.8;
}

.hero-tags,
.detail-tags,
.tag-line,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-tags {
    margin: 28px 0;
}

.hero-tags span,
.detail-tags span,
.tag-line span,
.detail-meta span {
    border-radius: 999px;
    border: 1px solid var(--line);
    color: var(--soft);
    background: rgba(15, 23, 42, 0.72);
}

.hero-tags span,
.detail-tags span,
.detail-meta span {
    padding: 8px 12px;
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    font-weight: 800;
}

.ghost-btn {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--line);
}

.hero-poster {
    width: min(100%, 360px);
    justify-self: end;
    border-radius: 30px;
    overflow: hidden;
    transform: rotate(2deg);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

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

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 74px;
    bottom: 34px;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 40px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

.hero-dots button.is-active {
    width: 68px;
    background: var(--accent);
}

.quick-search-section,
.content-section {
    width: min(1280px, calc(100% - 32px));
    margin: 28px auto;
}

.large-search {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.25);
}

.large-search input {
    flex: 1;
    min-width: 0;
    padding: 16px 18px;
    font-size: 17px;
}

.large-search button,
.inline-search button {
    padding: 16px 24px;
    font-weight: 800;
}

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

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.story-card h2,
.ranking-title h2 {
    margin: 12px 0 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p {
    margin-top: 10px;
    color: var(--muted);
    font-size: 16px;
}

.section-more,
.text-link {
    color: var(--accent-3);
    font-weight: 800;
}

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

.category-tile,
.category-showcase,
.story-card,
.ranking-panel,
.toolbar,
.detail-nav-cards a {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.category-tile {
    min-height: 150px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.22s ease, border 0.22s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -44px;
    bottom: -44px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.18);
}

.category-tile:hover,
.movie-card:hover,
.compact-card:hover,
.category-showcase:hover,
.top-rank-card:hover {
    transform: translateY(-4px);
    border-color: rgba(249, 115, 22, 0.48);
}

.category-tile strong {
    display: block;
    font-size: 22px;
    margin-bottom: 10px;
}

.category-tile span {
    color: var(--muted);
    line-height: 1.65;
}

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

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

.movie-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.76);
    transition: transform 0.22s ease, border 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    box-shadow: 0 24px 80px rgba(249, 115, 22, 0.12);
}

.movie-link {
    display: block;
    height: 100%;
}

.poster-box {
    position: relative;
    overflow: hidden;
    background: #0b1120;
}

.poster-box img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover .poster-box img,
.compact-card:hover img,
.top-rank-card:hover img,
.detail-poster:hover img {
    transform: scale(1.06);
}

.card-year,
.card-type,
.rank-mark {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
}

.card-year {
    right: 10px;
    bottom: 10px;
    padding: 6px 9px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.72);
}

.card-type {
    left: 10px;
    top: 10px;
    padding: 6px 9px;
    font-size: 12px;
    background: rgba(249, 115, 22, 0.92);
}

.rank-mark {
    top: 10px;
    right: 10px;
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.32);
}

.movie-info {
    padding: 15px;
}

.movie-info h3 {
    margin: 0 0 9px;
    font-size: 17px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.movie-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--soft);
    font-size: 13px;
}

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

.tag-line span {
    padding: 5px 8px;
    font-size: 12px;
}

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

.ranking-panel {
    position: sticky;
    top: 92px;
    padding: 20px;
}

.ranking-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.ranking-title span {
    color: var(--accent-3);
    font-weight: 900;
}

.ranking-title h2 {
    margin: 0;
    font-size: 26px;
}

.ranking-title a {
    color: var(--accent-3);
    font-weight: 800;
}

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

.compact-card {
    position: relative;
    min-height: 112px;
    display: grid;
    grid-template-columns: 86px 1fr;
    align-items: end;
    gap: 13px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.58);
    padding: 12px;
    transition: transform 0.22s ease, border 0.22s ease;
}

.compact-card img {
    position: relative;
    z-index: 2;
    width: 86px;
    height: 96px;
    object-fit: cover;
    border-radius: 14px;
}

.compact-card strong,
.compact-card em,
.compact-rank {
    position: relative;
    z-index: 2;
}

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

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

.compact-rank {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--accent-3);
    font-weight: 900;
}

.page-hero {
    width: min(1280px, calc(100% - 32px));
    margin: 28px auto;
    padding: 64px;
    border: 1px solid var(--line);
    border-radius: 32px;
    background:
        radial-gradient(circle at 18% 0%, rgba(249, 115, 22, 0.22), transparent 36%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.92));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    font-size: clamp(42px, 6vw, 72px);
}

.hero-mini-links,
.search-shortcuts {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-mini-links a,
.search-shortcuts a {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.82);
    padding: 13px 16px;
}

.hero-mini-links span {
    color: var(--muted);
    font-size: 12px;
}

.toolbar {
    margin-bottom: 24px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.inline-search input {
    width: min(360px, 54vw);
    padding: 14px 16px;
}

.inline-search button {
    padding: 14px 20px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.filter-pill {
    border: 1px solid var(--line);
    color: var(--soft);
    background: rgba(2, 6, 23, 0.55);
    border-radius: 999px;
    padding: 9px 13px;
}

.filter-pill.is-active,
.filter-pill:hover {
    color: #ffffff;
    border-color: rgba(249, 115, 22, 0.58);
    background: rgba(249, 115, 22, 0.84);
}

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

.category-showcase {
    overflow: hidden;
    transition: transform 0.22s ease, border 0.22s ease;
}

.category-cover-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
    background: #020617;
}

.category-cover-row img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.category-showcase-body {
    padding: 24px;
}

.category-showcase-body h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.category-showcase-body p {
    color: var(--muted);
    line-height: 1.75;
}

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

.top-rank-card {
    position: relative;
    min-height: 420px;
    border: 1px solid var(--line);
    border-radius: 28px;
    overflow: hidden;
    transition: transform 0.22s ease, border 0.22s ease;
}

.top-rank-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.top-rank-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.86));
}

.top-rank-card span,
.top-rank-card strong,
.top-rank-card em {
    position: absolute;
    z-index: 2;
}

.top-rank-card span {
    top: 18px;
    left: 18px;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-size: 22px;
    font-weight: 900;
}

.top-rank-card strong {
    left: 22px;
    right: 22px;
    bottom: 56px;
    font-size: 26px;
}

.top-rank-card em {
    left: 22px;
    right: 22px;
    bottom: 26px;
    color: var(--soft);
    font-style: normal;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 28px 0 56px;
}

.detail-bg {
    background-image:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.96)),
        var(--detail-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.08);
}

.detail-wrap {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    margin-bottom: 26px;
}

.breadcrumb a {
    color: var(--accent-3);
}

.detail-head {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    display: block;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.detail-copy p {
    margin: 18px 0 0;
    max-width: 820px;
    color: var(--soft);
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta,
.detail-tags {
    margin-top: 18px;
}

.player-section {
    width: min(1180px, calc(100% - 32px));
    margin: -26px auto 44px;
    position: relative;
    z-index: 3;
}

.player-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(249, 115, 22, 0.34);
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

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

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(15, 23, 42, 0.35), rgba(0, 0, 0, 0.66));
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-layer.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-circle {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #ef4444);
    box-shadow: 0 20px 60px rgba(249, 115, 22, 0.34);
    font-size: 28px;
    padding-left: 4px;
}

.play-layer strong {
    font-size: 18px;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.story-card {
    padding: 28px;
}

.story-card h2 {
    margin: 0 0 16px;
    font-size: 28px;
}

.story-card p {
    margin: 0;
    color: var(--soft);
    line-height: 1.9;
    font-size: 16px;
}

.detail-nav-cards {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.detail-nav-cards a {
    padding: 20px;
}

.detail-nav-cards span {
    display: block;
    color: var(--accent-3);
    font-weight: 800;
    margin-bottom: 8px;
}

.detail-nav-cards strong {
    font-size: 20px;
}

.no-result {
    margin: 32px 0;
    color: var(--muted);
    text-align: center;
}

.site-footer {
    margin-top: 72px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), rgba(2, 6, 23, 0.98));
}

.footer-grid {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 32px;
}

.footer-grid p {
    margin: 16px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

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

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

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

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

.copyright {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 28px;
    border-top: 1px solid var(--line);
    color: #64748b;
    text-align: center;
}

[hidden] {
    display: none !important;
}

@media (max-width: 1180px) {
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .ranking-panel {
        position: static;
    }
}

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

    .nav-toggle {
        display: block;
    }

    .nav-panel {
        display: none;
        flex-basis: 100%;
        padding: 0 0 16px;
        align-items: stretch;
        flex-direction: column;
    }

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

    .nav-links {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-search,
    .inline-search,
    .large-search {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-search input,
    .inline-search input,
    .large-search input {
        width: 100%;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 34px 24px 82px;
        gap: 28px;
    }

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

    .hero-dots {
        left: 24px;
        bottom: 24px;
    }

    .page-hero {
        padding: 38px 24px;
    }

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

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

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-row {
        justify-content: flex-start;
    }

    .detail-head,
    .detail-content,
    .detail-nav-cards,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(280px, 80vw);
    }
}

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

    .hero-carousel {
        width: calc(100% - 20px);
        border-radius: 24px;
    }

    .hero-copy h1 {
        font-size: 40px;
    }

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

    .content-section,
    .quick-search-section,
    .page-hero,
    .detail-wrap,
    .player-section,
    .footer-grid,
    .copyright {
        width: calc(100% - 20px);
    }

    .movie-grid,
    .category-grid,
    .category-showcase-grid,
    .top-rank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .movie-info {
        padding: 12px;
    }

    .movie-info h3 {
        font-size: 15px;
    }

    .movie-info p,
    .tag-line {
        display: none;
    }

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

    .top-rank-card,
    .top-rank-card img {
        min-height: 320px;
        height: 320px;
    }

    .story-card {
        padding: 22px;
    }
}
