:root {
    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --cyan-50: #ecfeff;
    --yellow-500: #eab308;
    --rose-500: #f43f5e;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --black: #000000;
    --shadow-sm: 0 8px 24px rgba(17, 24, 39, 0.08);
    --shadow-md: 0 16px 44px rgba(17, 24, 39, 0.12);
    --shadow-lg: 0 24px 70px rgba(17, 24, 39, 0.18);
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 999px;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--gray-900);
    background: linear-gradient(135deg, var(--gray-50), var(--emerald-50), var(--cyan-50));
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--emerald-600), var(--teal-600));
    box-shadow: 0 18px 46px rgba(5, 150, 105, 0.28);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--emerald-600);
    background: var(--white);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 700;
}

.desktop-nav a,
.mobile-panel a {
    opacity: 0.94;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: var(--emerald-100);
    opacity: 1;
}

.header-search {
    position: relative;
    width: min(280px, 26vw);
}

.header-search input,
.mobile-search input,
.filter-input,
.filter-select,
.search-hero input,
.search-hero select {
    width: 100%;
    border: 1px solid rgba(5, 150, 105, 0.18);
    border-radius: var(--radius-full);
    outline: 0;
    color: var(--gray-900);
    background: var(--white);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input {
    padding: 11px 74px 11px 18px;
}

.header-search button,
.mobile-search button,
.search-hero button {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    height: 36px;
    padding: 0 16px;
    border-radius: var(--radius-full);
    color: var(--white);
    background: var(--emerald-600);
    font-weight: 700;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-input:focus,
.filter-select:focus,
.search-hero input:focus,
.search-hero select:focus {
    border-color: var(--emerald-500);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.16);
}

.mobile-menu-lines {
    width: 20px;
    height: 14px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-menu-lines span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--white);
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.24);
    padding: 16px 0 20px;
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel nav {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    font-weight: 700;
}

.mobile-search {
    position: relative;
}

.mobile-search input {
    padding: 12px 76px 12px 18px;
}

.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: radial-gradient(circle at 8% 18%, rgba(16, 185, 129, 0.72), transparent 34%), linear-gradient(135deg, #064e3b, #0f766e 48%, #111827);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.72));
    pointer-events: none;
}

.hero-track {
    position: relative;
    min-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.75s ease;
}

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

.hero-background {
    position: absolute;
    inset: 0;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.12) contrast(1.04);
    opacity: 0.54;
}

.hero-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 78, 59, 0.95), rgba(6, 78, 59, 0.54), rgba(17, 24, 39, 0.90));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: 48px;
    padding: 72px 0 90px;
}

.hero-kicker,
.section-kicker,
.page-kicker,
.detail-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-kicker {
    padding: 8px 14px;
    color: var(--emerald-50);
    background: rgba(16, 185, 129, 0.24);
    border: 1px solid rgba(209, 250, 229, 0.32);
}

.hero-title {
    max-width: 760px;
    margin: 20px 0 16px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.hero-description {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.85;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 0;
}

.hero-meta span,
.movie-tag,
.detail-tag {
    border-radius: var(--radius-full);
    font-weight: 700;
}

.hero-meta span {
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: var(--radius-full);
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: var(--white);
    background: linear-gradient(90deg, var(--emerald-500), var(--teal-500));
    box-shadow: 0 18px 36px rgba(16, 185, 129, 0.32);
}

.button-light {
    color: var(--emerald-700);
    background: var(--white);
    box-shadow: 0 18px 36px rgba(255, 255, 255, 0.14);
}

.button-ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.12);
}

.button-soft {
    color: var(--emerald-700);
    background: var(--emerald-100);
}

.hero-card {
    position: relative;
    display: grid;
    grid-template-columns: 0.72fr 1fr;
    gap: 20px;
    padding: 20px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

.hero-poster {
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 3 / 4;
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.32);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-card-info {
    align-self: center;
}

.hero-card-info h2 {
    margin: 0 0 12px;
    font-size: clamp(24px, 2.6vw, 36px);
    line-height: 1.2;
}

.hero-card-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.75;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--white);
}

.main-section {
    padding: 64px 0;
}

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

.section-heading h2,
.page-heading h1 {
    margin: 8px 0 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-heading p,
.page-heading p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--gray-600);
    line-height: 1.8;
}

.section-kicker,
.page-kicker,
.detail-kicker {
    padding: 7px 12px;
    color: var(--emerald-700);
    background: var(--emerald-100);
}

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

.category-chip,
.category-card {
    display: block;
    padding: 22px;
    border-radius: var(--radius-xl);
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.category-chip:hover,
.category-card:hover,
.movie-card:hover,
.ranking-item:hover,
.related-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.42);
    box-shadow: var(--shadow-md);
}

.category-chip strong,
.category-card strong {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-900);
    font-size: 20px;
}

.category-chip span,
.category-card span {
    color: var(--gray-600);
    line-height: 1.7;
}

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, var(--emerald-100), var(--cyan-50));
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

.movie-card:hover .movie-poster img,
.related-card:hover img,
.ranking-item:hover img {
    transform: scale(1.06);
}

.poster-badge,
.rank-badge,
.type-badge {
    position: absolute;
    border-radius: var(--radius-full);
    color: var(--white);
    font-size: 13px;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.poster-badge {
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    background: linear-gradient(90deg, var(--emerald-600), var(--teal-500));
}

.type-badge {
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    background: rgba(17, 24, 39, 0.78);
    backdrop-filter: blur(12px);
}

.movie-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
    padding: 18px;
}

.movie-card h3 {
    margin: 0;
    min-height: 54px;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 900;
    color: var(--gray-900);
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gray-500);
    font-size: 14px;
    font-weight: 700;
}

.movie-card p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.72;
    font-size: 15px;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
}

.movie-tag {
    padding: 5px 9px;
    color: var(--emerald-700);
    background: var(--emerald-50);
    font-size: 12px;
}

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

.featured-card {
    display: grid;
    grid-template-columns: 148px 1fr;
    gap: 18px;
    padding: 18px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.featured-card img {
    width: 148px;
    height: 148px;
    object-fit: cover;
    border-radius: 18px;
}

.featured-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.3;
}

.featured-card p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.75;
}

.ranking-list {
    display: grid;
    gap: 16px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 64px 96px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border-radius: var(--radius-xl);
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.rank-number {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: var(--white);
    background: linear-gradient(135deg, var(--yellow-500), var(--rose-500));
    font-size: 20px;
    font-weight: 900;
}

.ranking-item img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 18px;
}

.ranking-item h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.ranking-item p {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.65;
}

.ranking-meta {
    min-width: 150px;
    color: var(--gray-500);
    font-weight: 800;
    text-align: right;
}

.page-hero {
    padding: 58px 0 34px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(20, 184, 166, 0.10), rgba(255, 255, 255, 0.22));
}

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

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 220px 220px;
    gap: 14px;
    margin: 0 0 28px;
    padding: 18px;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.filter-input,
.filter-select {
    min-height: 48px;
    padding: 0 18px;
}

.empty-state {
    display: none;
    padding: 42px;
    border-radius: var(--radius-xl);
    text-align: center;
    color: var(--gray-600);
    background: var(--white);
    border: 1px solid var(--gray-200);
}

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

.search-hero {
    position: relative;
    padding: 58px 0;
    background: linear-gradient(135deg, var(--emerald-600), var(--teal-600));
    color: var(--white);
}

.search-box-panel {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 180px 180px 120px;
    gap: 14px;
    margin-top: 24px;
}

.search-box-panel input,
.search-box-panel select {
    min-height: 52px;
    padding: 0 18px;
}

.search-box-panel button {
    position: static;
    transform: none;
    min-height: 52px;
    border-radius: var(--radius-full);
    color: var(--emerald-700);
    background: var(--white);
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, #064e3b, #0f766e, #111827);
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 12% 20%, rgba(16, 185, 129, 0.48), transparent 34%), linear-gradient(90deg, rgba(0, 0, 0, 0.44), rgba(0, 0, 0, 0.22));
}

.detail-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 42px;
    align-items: center;
    padding: 58px 0;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.breadcrumb {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

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

.detail-hero h1 {
    margin: 16px 0;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.detail-hero p {
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.85;
    font-size: 17px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-weight: 800;
}

.player-section {
    padding: 44px 0 24px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: var(--black);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--black);
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--white);
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.55), rgba(6, 78, 59, 0.68));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
    width: 90px;
    height: 90px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--emerald-500), var(--teal-500));
    box-shadow: 0 22px 48px rgba(16, 185, 129, 0.42);
}

.play-circle::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 7px;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 25px solid var(--white);
}

.player-cover span {
    font-size: 22px;
    font-weight: 900;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    padding-bottom: 70px;
}

.content-card,
.related-panel {
    border-radius: var(--radius-xl);
    background: var(--white);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
}

.content-card {
    padding: 30px;
}

.content-card h2,
.related-panel h2 {
    margin: 0 0 16px;
    font-size: 28px;
    line-height: 1.25;
}

.content-card p {
    margin: 0 0 24px;
    color: var(--gray-700);
    line-height: 1.95;
    font-size: 17px;
}

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

.detail-tag {
    padding: 7px 12px;
    color: var(--emerald-700);
    background: var(--emerald-50);
}

.related-panel {
    position: sticky;
    top: 96px;
    align-self: start;
    padding: 20px;
}

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

.related-card {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid transparent;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.related-card img {
    width: 82px;
    height: 82px;
    object-fit: cover;
    border-radius: 16px;
}

.related-card h3 {
    margin: 0 0 6px;
    color: var(--gray-900);
    font-size: 16px;
    line-height: 1.35;
}

.related-card p {
    margin: 0;
    color: var(--gray-500);
    font-size: 13px;
    line-height: 1.55;
}

.site-footer {
    color: var(--gray-300);
    background: var(--gray-900);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, 1fr);
    gap: 32px;
    padding: 48px 0;
}

.footer-grid h2,
.footer-grid h3 {
    margin: 0 0 14px;
    color: var(--white);
}

.footer-grid p,
.footer-grid li {
    color: var(--gray-300);
    line-height: 1.85;
}

.footer-grid ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

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

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: var(--gray-500);
    font-size: 14px;
}

@media (max-width: 1120px) {
    .movie-grid,
    .search-results-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

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

    .related-panel {
        position: static;
    }
}

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

    .mobile-menu-button {
        display: inline-flex;
    }

    .hero-content {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 58px 0 92px;
    }

    .hero-card {
        grid-template-columns: 150px 1fr;
    }

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

    .hero-slide {
        position: absolute;
    }

    .featured-list,
    .footer-grid,
    .detail-hero-grid,
    .filter-bar,
    .search-box-panel {
        grid-template-columns: 1fr;
    }

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

    .ranking-item {
        grid-template-columns: 54px 78px 1fr;
    }

    .ranking-meta {
        grid-column: 3;
        min-width: 0;
        text-align: left;
    }
}

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

    .hero-title {
        font-size: 36px;
    }

    .hero-card {
        grid-template-columns: 1fr;
    }

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

    .movie-grid,
    .movie-grid.compact,
    .search-results-grid,
    .category-strip,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .featured-card {
        grid-template-columns: 108px 1fr;
    }

    .featured-card img {
        width: 108px;
        height: 132px;
    }

    .ranking-item {
        grid-template-columns: 46px 68px 1fr;
        gap: 12px;
    }

    .rank-number {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 16px;
    }

    .ranking-item img {
        width: 68px;
        height: 86px;
    }

    .ranking-item h3 {
        font-size: 18px;
    }

    .page-hero,
    .main-section {
        padding: 42px 0;
    }

    .detail-hero-grid {
        padding: 42px 0;
    }

    .player-shell {
        border-radius: 18px;
    }

    .play-circle {
        width: 68px;
        height: 68px;
    }
}
