@charset "utf-8";

:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #07111f;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-strong: #0f172a;
    --panel-light: rgba(30, 41, 59, 0.76);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --cyan: #22d3ee;
    --cyan-strong: #06b6d4;
    --amber: #f59e0b;
    --rose: #fb7185;
    --green: #34d399;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
    --radius: 24px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    background:
        radial-gradient(circle at 18% 8%, rgba(34, 211, 238, 0.14), transparent 28rem),
        radial-gradient(circle at 78% 0%, rgba(168, 85, 247, 0.18), transparent 32rem),
        linear-gradient(180deg, #020617 0%, #07111f 44%, #020617 100%);
    color: var(--text);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--cyan-strong), #2563eb 55%, #7c3aed);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(6, 182, 212, 0.32);
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-text strong {
    color: #ffffff;
    font-size: 20px;
    letter-spacing: 0.02em;
}

.brand-text small {
    color: var(--cyan);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    color: #cbd5e1;
    font-size: 15px;
    white-space: nowrap;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a,
.breadcrumb a {
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover,
.breadcrumb a:hover {
    color: var(--cyan);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
}

.header-search input,
.mobile-nav input,
.hero-search-card input,
.filter-controls input,
.filter-controls select {
    min-width: 0;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
}

.header-search input {
    width: 180px;
    padding: 9px 6px 9px 14px;
}

.header-search button,
.mobile-nav button,
.hero-search-card button,
.primary-button,
.rank-action {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan-strong), #2563eb);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 12px 26px rgba(6, 182, 212, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.header-search button {
    padding: 9px 14px;
}

.header-search button:hover,
.mobile-nav button:hover,
.hero-search-card button:hover,
.primary-button:hover,
.rank-action:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 18px 38px rgba(6, 182, 212, 0.35);
}

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

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #e2e8f0;
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.94);
}

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

.mobile-nav form {
    display: flex;
    gap: 8px;
    margin-top: 6px;
}

.mobile-nav input {
    flex: 1;
    padding: 12px 14px;
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.8);
}

.mobile-nav button {
    padding: 0 16px;
}

main {
    overflow: hidden;
}

.hero {
    position: relative;
    min-height: 760px;
    isolation: isolate;
}

.hero-slides,
.hero-slide,
.hero-image,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) brightness(0.58);
    transform: scale(1.02);
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.82) 36%, rgba(2, 6, 23, 0.2) 72%, rgba(2, 6, 23, 0.72) 100%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.12) 0%, #020617 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(680px, calc(100% - 48px));
    padding-top: 128px;
    margin-left: max(24px, calc((100vw - 1440px) / 2 + 24px));
}

.hero-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.hero-kicker span,
.hero-kicker a,
.tag-row span,
.detail-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid rgba(34, 211, 238, 0.26);
    border-radius: 999px;
    color: #cffafe;
    background: rgba(8, 145, 178, 0.18);
    font-size: 13px;
}

.hero h1 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: clamp(44px, 6vw, 82px);
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.hero p {
    max-width: 650px;
    margin: 0;
    color: #cbd5e1;
    font-size: 18px;
}

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

.primary-button,
.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 700;
}

.ghost-button,
.section-link {
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.64);
    backdrop-filter: blur(12px);
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.ghost-button:hover,
.section-link:hover {
    border-color: var(--cyan);
    color: #ffffff;
    transform: translateY(-1px);
}

.hero-poster {
    position: absolute;
    right: max(24px, calc((100vw - 1440px) / 2 + 24px));
    bottom: 154px;
    z-index: 3;
    width: min(300px, 28vw);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: var(--shadow);
}

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

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.78);
    color: #ffffff;
    font-size: 14px;
}

.hero-control {
    position: absolute;
    z-index: 4;
    right: max(24px, calc((100vw - 1440px) / 2 + 24px));
    bottom: 88px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-control button {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    color: #ffffff;
    font-size: 24px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px !important;
    height: 10px !important;
    padding: 0;
    background: rgba(226, 232, 240, 0.32) !important;
}

.hero-dot.is-active {
    width: 28px !important;
    background: var(--cyan) !important;
}

.hero-search-card {
    position: absolute;
    left: 50%;
    bottom: -56px;
    z-index: 5;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-search-card form {
    display: flex;
    gap: 12px;
}

.hero-search-card input {
    flex: 1;
    min-height: 56px;
    padding: 0 20px;
    border-radius: 999px;
    background: rgba(30, 41, 59, 0.92);
}

.hero-search-card button {
    padding: 0 24px;
}

.hero-categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 14px 4px 2px;
}

.hero-categories a {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(2, 6, 23, 0.32);
}

.hero-categories a:hover {
    border-color: var(--cyan);
    color: #ffffff;
}

.page-shell,
.content-section {
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
}

.content-section {
    padding-top: 96px;
}

.hero + .content-section {
    padding-top: 132px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.section-heading > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(34, 211, 238, 0.14);
    font-size: 24px;
}

.section-heading h2,
.page-hero h1,
.detail-main h1,
.player-section h2,
.detail-copy h2 {
    margin: 0;
    color: #ffffff;
    line-height: 1.15;
}

.section-heading h2 {
    font-size: clamp(26px, 3vw, 38px);
}

.section-heading p,
.page-hero p,
.strip-title p,
.category-card p,
.filter-panel p,
.detail-one-line,
.detail-copy p,
.rank-main p,
.movie-card-body p,
.site-footer p {
    color: var(--muted);
}

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

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

.movie-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.76), rgba(15, 23, 42, 0.88));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.48);
    box-shadow: 0 28px 70px rgba(6, 182, 212, 0.16);
}

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

.movie-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.38s ease, filter 0.38s ease;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.07);
    filter: saturate(1.12);
}

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.86));
}

.poster-play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.92);
    color: #06202a;
    font-weight: 900;
    transform: translateY(8px);
    opacity: 0;
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translateY(0);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber), #ef4444);
    color: #ffffff;
    font-weight: 800;
}

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

.movie-card-body h3 {
    margin: 7px 0 8px;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.35;
}

.movie-card-body p {
    min-height: 52px;
    margin: 0 0 14px;
    font-size: 14px;
}

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

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

.tag-row span {
    min-height: 24px;
    font-size: 12px;
}

.category-strip {
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.64);
}

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

.strip-title h3 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 24px;
}

.strip-title p {
    margin: 0;
}

.strip-title a {
    flex: 0 0 auto;
    color: var(--cyan);
    font-weight: 700;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    gap: 30px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 62px 88px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
}

.rank-number {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: rgba(34, 211, 238, 0.14);
    color: #cffafe;
    font-weight: 900;
}

.rank-thumb {
    overflow: hidden;
    border-radius: 16px;
}

.rank-thumb img {
    width: 88px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.rank-main h3 {
    margin: 0 0 6px;
    color: #ffffff;
    font-size: 18px;
}

.rank-main p {
    margin: 0 0 8px;
}

.rank-action {
    min-height: 40px;
    padding: 0 16px;
    font-size: 14px;
}

.latest-panel {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.54);
}

.page-shell {
    padding-top: 38px;
}

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

.breadcrumb strong {
    color: #ffffff;
    font-weight: 600;
}

.page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 52px;
    border: 1px solid var(--line);
    border-radius: 32px;
    background:
        radial-gradient(circle at 12% 12%, rgba(34, 211, 238, 0.18), transparent 24rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.68));
    box-shadow: var(--shadow);
}

.compact-hero {
    min-height: 300px;
}

.page-hero h1 {
    max-width: 860px;
    font-size: clamp(36px, 5vw, 62px);
    letter-spacing: -0.035em;
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    font-size: 18px;
}

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

.category-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.72);
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.44);
}

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

.category-thumbs img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
}

.category-card h2 {
    margin: 0 0 10px;
    color: #ffffff;
}

.category-card p {
    margin: 0 0 16px;
}

.category-card span {
    color: var(--cyan);
    font-weight: 700;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
    gap: 24px;
    align-items: center;
    margin-top: 32px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.7);
}

.filter-panel h2 {
    margin: 0 0 6px;
    color: #ffffff;
}

.filter-panel p {
    margin: 0;
}

.filter-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px 150px;
    gap: 12px;
}

.filter-controls input,
.filter-controls select {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.86);
}

.filter-controls select option {
    color: #0f172a;
}

.empty-state {
    display: none;
    padding: 40px;
    text-align: center;
    color: var(--muted);
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 32px;
    background:
        radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.18), transparent 26rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.7));
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

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

.detail-main h1 {
    font-size: clamp(34px, 5vw, 64px);
    letter-spacing: -0.04em;
}

.detail-one-line {
    max-width: 820px;
    margin: 18px 0 24px;
    font-size: 18px;
}

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

.detail-meta-grid div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.32);
}

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

.detail-meta-grid strong {
    display: block;
    margin-top: 4px;
    color: #ffffff;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.player-section {
    margin-top: 34px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 32px;
    background: rgba(15, 23, 42, 0.72);
}

.player-section h2 {
    margin-bottom: 18px;
    font-size: 28px;
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
}

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

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.82)),
        radial-gradient(circle, rgba(34, 211, 238, 0.2), transparent 22rem);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-ring {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.95);
    color: #05232d;
    font-size: 34px;
    box-shadow: 0 0 0 14px rgba(34, 211, 238, 0.14);
}

.play-cover strong {
    max-width: min(680px, calc(100% - 48px));
    font-size: clamp(22px, 4vw, 36px);
    text-align: center;
}

.detail-copy {
    display: grid;
    gap: 14px;
    padding: 42px;
    margin-top: 34px;
    border: 1px solid var(--line);
    border-radius: 32px;
    background: rgba(15, 23, 42, 0.62);
}

.detail-copy h2 {
    margin-top: 10px;
    font-size: 28px;
}

.detail-copy p {
    margin: 0;
    font-size: 17px;
}

.site-footer {
    margin-top: 110px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.8);
}

.footer-shell {
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
    gap: 28px;
    padding: 42px 0;
}

.footer-brand {
    color: #ffffff;
    font-weight: 800;
    font-size: 20px;
}

.footer-shell p {
    max-width: 560px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    justify-content: flex-end;
    gap: 12px 18px;
    color: #cbd5e1;
}

.is-hidden-card {
    display: none !important;
}

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

    .mobile-toggle {
        display: block;
    }

    .header-search {
        margin-left: auto;
    }

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

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

    .category-overview-grid,
    .two-column-section {
        grid-template-columns: 1fr;
    }
}

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

    .hero {
        min-height: 780px;
    }

    .hero-content {
        width: calc(100% - 32px);
        padding-top: 104px;
        margin-left: 16px;
    }

    .hero-poster {
        display: none;
    }

    .hero-search-card {
        bottom: -78px;
    }

    .hero-search-card form,
    .filter-panel,
    .filter-controls,
    .detail-hero,
    .detail-meta-grid,
    .footer-shell,
    .rank-row,
    .category-card {
        grid-template-columns: 1fr;
    }

    .hero-search-card form {
        display: grid;
    }

    .hero-control {
        right: 16px;
        bottom: 114px;
    }

    .content-section {
        padding-top: 72px;
    }

    .hero + .content-section {
        padding-top: 160px;
    }

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

    .page-hero {
        padding: 34px;
    }

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

    .rank-row {
        align-items: start;
    }

    .rank-action {
        justify-self: start;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .header-shell {
        min-height: 66px;
    }

    .brand-text strong {
        font-size: 17px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        border-radius: 14px;
    }

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

    .hero p,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

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

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

    .movie-card-body p {
        min-height: 0;
    }

    .category-strip,
    .page-hero,
    .filter-panel,
    .detail-hero,
    .player-section,
    .detail-copy {
        padding: 20px;
        border-radius: 24px;
    }

    .strip-title {
        display: grid;
    }

    .hero-actions {
        display: grid;
        max-width: 260px;
    }

    .rank-thumb img {
        width: 100%;
        max-width: 160px;
    }

    .play-ring {
        width: 72px;
        height: 72px;
        font-size: 28px;
    }
}
