:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --blue-500: #3b82f6;
    --red-500: #ef4444;
    --amber-400: #fbbf24;
    --white: #ffffff;
    --shadow-soft: 0 22px 60px rgba(15, 23, 42, 0.14);
    --shadow-strong: 0 28px 70px rgba(2, 6, 23, 0.35);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--slate-900);
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 48%, #f8fafc 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--slate-950), var(--slate-800), var(--slate-950));
    box-shadow: 0 14px 40px rgba(2, 6, 23, 0.26);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 10px;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    color: var(--slate-950);
    background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
    box-shadow: 0 12px 30px rgba(34, 211, 238, 0.28);
}

.brand-text,
.footer-brand {
    color: transparent;
    background: linear-gradient(90deg, var(--cyan-400), #93c5fd);
    -webkit-background-clip: text;
    background-clip: text;
    font-size: 22px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 15px;
    font-weight: 650;
    white-space: nowrap;
}

.main-nav a,
.mobile-nav a,
.footer-links a {
    transition: color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

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

.top-search {
    display: flex;
    align-items: center;
    width: min(320px, 26vw);
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
}

.top-search input,
.hero-search input,
.local-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: inherit;
    background: transparent;
}

.top-search input {
    padding: 10px 12px 10px 16px;
    color: var(--white);
}

.top-search button,
.hero-search button,
.local-search button {
    border: 0;
    cursor: pointer;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    font-weight: 800;
}

.top-search button {
    padding: 10px 16px;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    color: var(--white);
    background: rgba(148, 163, 184, 0.14);
    padding: 8px 12px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.mobile-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
}

.mobile-nav.open {
    display: block;
}

.hero-section {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 18% 12%, rgba(34, 211, 238, 0.25), transparent 34%),
        radial-gradient(circle at 82% 20%, rgba(59, 130, 246, 0.22), transparent 30%),
        linear-gradient(135deg, var(--slate-950), var(--slate-900) 48%, #07111f);
}

.hero-ambient {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    filter: blur(60px);
    opacity: 0.42;
    pointer-events: none;
}

.hero-ambient.one {
    top: 90px;
    left: -80px;
    background: var(--cyan-500);
}

.hero-ambient.two {
    right: -120px;
    bottom: 80px;
    background: var(--blue-500);
}

.hero-slider {
    position: relative;
    width: min(1280px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.58fr);
    gap: 48px;
    align-items: center;
    padding: 70px 0 115px;
    opacity: 0;
    transform: translateY(14px) scale(0.985);
    pointer-events: none;
    transition: opacity 520ms ease, transform 520ms ease;
}

.hero-slide.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.hero-bg {
    position: absolute;
    inset: 0 auto 0 36%;
    width: 64%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
    filter: saturate(1.1);
    border-radius: 0 0 0 80px;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(15, 23, 42, 0.86) 38%, rgba(15, 23, 42, 0.35) 100%);
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 8px 13px;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 999px;
    color: #a5f3fc;
    background: rgba(8, 47, 73, 0.42);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.eyebrow.dark {
    color: #155e75;
    background: rgba(6, 182, 212, 0.12);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
    max-width: 740px;
    margin: 24px 0 0;
    color: rgba(226, 232, 240, 0.92);
    font-size: clamp(17px, 2vw, 22px);
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #0e7490;
    background: rgba(207, 250, 254, 0.96);
    font-size: 12px;
    font-weight: 800;
}

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

.primary-btn,
.secondary-btn,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-btn {
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    box-shadow: 0 18px 38px rgba(6, 182, 212, 0.24);
}

.secondary-btn {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
}

.primary-btn:hover,
.secondary-btn:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.hero-poster {
    justify-self: end;
    width: min(360px, 100%);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-strong);
    transform: rotate(2deg);
}

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

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

.hero-dot {
    width: 34px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.24);
    transition: width 180ms ease, background 180ms ease;
}

.hero-dot.active {
    width: 54px;
    background: var(--cyan-400);
}

.hero-search {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 6;
    display: flex;
    width: min(720px, calc(100% - 32px));
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.32);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
}

.hero-search input {
    padding: 17px 22px;
}

.hero-search button {
    padding: 0 28px;
    white-space: nowrap;
}

.content-section {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 58px 0;
}

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

.section-heading {
    justify-content: flex-start;
    align-items: center;
}

.section-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 18px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.2);
    font-weight: 900;
}

.section-heading h2,
.list-toolbar h2,
.detail-article h2,
.detail-side h2 {
    margin: 0;
    color: var(--slate-900);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-heading p,
.list-toolbar p {
    margin: 8px 0 0;
    color: var(--slate-500);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.movie-card:hover {
    border-color: rgba(6, 182, 212, 0.42);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.20);
    transform: translateY(-7px);
}

.poster-frame {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--slate-800), var(--slate-950));
}

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

.movie-card:hover .poster-frame img {
    filter: saturate(1.08);
    transform: scale(1.04);
}

.poster-type {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(6, 182, 212, 0.92);
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 15px 16px 17px;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--slate-500);
    font-size: 12px;
    font-weight: 800;
}

.card-body h3 {
    display: -webkit-box;
    min-height: 54px;
    margin: 10px 0 8px;
    overflow: hidden;
    color: var(--slate-900);
    font-size: 18px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-body p {
    display: -webkit-box;
    min-height: 67px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--slate-600);
    font-size: 14px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.tag-row {
    gap: 7px;
}

.tag-row span {
    min-height: 24px;
    padding: 3px 8px;
    color: #155e75;
    background: #ecfeff;
}

.category-section {
    width: 100%;
    padding: 70px max(16px, calc((100% - 1280px) / 2));
    background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.category-section .section-heading h2,
.category-section .section-heading p {
    color: var(--white);
}

.category-section .section-heading p {
    color: rgba(226, 232, 240, 0.72);
}

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

.category-tile {
    min-height: 190px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    color: var(--white);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 18px 45px rgba(2, 6, 23, 0.24);
    backdrop-filter: blur(14px);
    transition: transform 200ms ease, background 200ms ease;
}

.category-tile:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-5px);
}

.category-tile span {
    color: var(--cyan-400);
    font-size: 22px;
    font-weight: 900;
}

.category-tile strong {
    display: block;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    font-weight: 600;
}

.category-tile em {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 16px;
    color: rgba(226, 232, 240, 0.72);
    font-size: 12px;
    font-style: normal;
}

.ranking-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(320px, 1fr);
    gap: 36px;
    align-items: center;
    padding: 42px;
    border-radius: 30px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.ranking-panel h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.ranking-panel p {
    color: var(--slate-600);
    font-size: 17px;
}

.compact-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.compact-list.small {
    grid-template-columns: 1fr;
}

.compact-card {
    position: relative;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-width: 0;
    padding: 9px;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    transition: transform 180ms ease, border-color 180ms ease;
}

.compact-card:hover {
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateY(-2px);
}

.compact-card img {
    width: 54px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--slate-800), var(--slate-950));
}

.compact-card strong,
.compact-card em {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-card strong {
    color: var(--slate-900);
    font-size: 15px;
}

.compact-card em {
    color: var(--slate-500);
    font-size: 12px;
    font-style: normal;
}

.rank-num {
    position: absolute;
    left: 6px;
    top: 6px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--red-500), var(--amber-400));
    font-size: 12px;
    font-weight: 900;
    z-index: 2;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.18), transparent 36%),
        linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

.page-hero {
    min-height: 430px;
    padding: 86px max(16px, calc((100% - 1280px) / 2));
}

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

.page-hero h1 {
    max-width: 900px;
}

.inline-search {
    position: static;
    margin-top: 32px;
    transform: none;
}

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

.category-overview-card {
    padding: 24px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.category-overview-head {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.category-overview-head > span {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 18px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-500));
    font-weight: 900;
}

.category-overview-head h2 {
    margin: 0;
    color: var(--slate-900);
    font-size: 26px;
}

.category-overview-head p {
    margin: 6px 0 0;
    color: var(--slate-600);
}

.text-link {
    min-height: 40px;
    margin-top: 20px;
    padding: 0 18px;
    color: #0e7490;
    background: #ecfeff;
}

.local-search {
    display: flex;
    overflow: hidden;
    width: min(420px, 100%);
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 999px;
    background: var(--white);
}

.local-search input {
    padding: 13px 16px;
    color: var(--slate-900);
}

.local-search button {
    padding: 0 22px;
}

.hero-mini-list {
    max-width: 820px;
    margin-top: 30px;
}

.detail-hero {
    min-height: 620px;
}

.detail-bg {
    position: absolute;
    inset: 0;
    opacity: 0.16;
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) saturate(1.2);
}

.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.72));
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    width: min(1280px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    padding: 68px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-strong);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(226, 232, 240, 0.72);
    font-size: 14px;
}

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

.detail-content {
    padding-top: 34px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: var(--slate-950);
    box-shadow: var(--shadow-strong);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--slate-950);
    object-fit: contain;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    cursor: pointer;
    background: radial-gradient(circle at 50% 45%, rgba(6, 182, 212, 0.18), rgba(2, 6, 23, 0.72) 70%);
}

.player-cover.hidden {
    display: none;
}

.play-icon {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 999px;
    color: var(--slate-950);
    background: linear-gradient(135deg, var(--cyan-400), var(--blue-500));
    box-shadow: 0 22px 50px rgba(6, 182, 212, 0.35);
    font-size: 32px;
}

.player-cover strong {
    max-width: min(720px, calc(100% - 32px));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(22px, 3vw, 42px);
}

.player-cover em {
    color: rgba(226, 232, 240, 0.78);
    font-style: normal;
    font-weight: 800;
}

.detail-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    margin-top: 32px;
}

.detail-article,
.detail-side {
    padding: 28px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.detail-article h2:not(:first-child) {
    margin-top: 34px;
}

.detail-article p {
    color: var(--slate-700);
    font-size: 17px;
}

.detail-side dl {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px 16px;
    margin: 22px 0;
}

.detail-side dt {
    color: var(--slate-500);
    font-weight: 800;
}

.detail-side dd {
    margin: 0;
    color: var(--slate-900);
    font-weight: 700;
}

.wide {
    margin-top: 18px;
}

.site-footer {
    margin-top: 30px;
    color: rgba(226, 232, 240, 0.78);
    background: linear-gradient(135deg, var(--slate-950), var(--slate-800));
}

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

.footer-brand {
    font-weight: 900;
}

.footer-inner p {
    max-width: 620px;
}

.footer-links {
    display: flex;
    gap: 18px;
    align-items: start;
    color: var(--white);
    font-weight: 800;
}

.copyright {
    grid-column: 1 / -1;
    margin: 0;
    color: rgba(226, 232, 240, 0.55);
}

.no-results {
    grid-column: 1 / -1;
    padding: 36px;
    border: 1px dashed rgba(100, 116, 139, 0.45);
    border-radius: var(--radius-lg);
    color: var(--slate-500);
    text-align: center;
    background: rgba(255, 255, 255, 0.62);
}

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

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

    .top-search {
        margin-left: auto;
        width: min(360px, 44vw);
    }

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

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

@media (max-width: 900px) {
    .hero-section,
    .hero-slider,
    .hero-slide {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 54px 0 150px;
    }

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

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

    .category-grid,
    .category-overview-grid,
    .ranking-panel,
    .detail-layout,
    .detail-main-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        min-height: auto;
    }

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

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

    .local-search {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .nav-wrap {
        height: auto;
        min-height: 64px;
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .top-search {
        order: 3;
        width: 100%;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: clamp(34px, 15vw, 56px);
    }

    .hero-search,
    .inline-search {
        flex-direction: column;
        border-radius: 22px;
    }

    .hero-search button,
    .local-search button {
        min-height: 48px;
    }

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

    .movie-grid,
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .compact-list {
        grid-template-columns: 1fr;
    }

    .ranking-panel,
    .detail-article,
    .detail-side,
    .category-overview-card {
        padding: 22px;
    }

    .footer-links,
    .hero-actions,
    .detail-actions {
        align-items: stretch;
        flex-direction: column;
    }
}
