:root {
    --rose: #f43f5e;
    --rose-dark: #be123c;
    --pink: #ec4899;
    --orange: #f97316;
    --amber: #f59e0b;
    --text: #111827;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: #fee2e2;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(190, 18, 60, 0.13);
    --shadow-strong: 0 28px 70px rgba(190, 18, 60, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 42%, #fdf2f8 100%);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose) 0%, var(--pink) 50%, var(--orange) 100%);
    box-shadow: 0 14px 32px rgba(190, 18, 60, 0.24);
}

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

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

.brand-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.brand-text {
    font-size: 22px;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
}

.nav-link {
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.header-search,
.mobile-search,
.large-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.header-search input,
.mobile-search input,
.large-search input {
    width: 220px;
    min-width: 0;
    padding: 10px 14px;
    color: #ffffff;
    border: 0;
    outline: none;
    background: transparent;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.large-search input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.header-search button,
.mobile-search button,
.large-search button {
    align-self: stretch;
    padding: 0 16px;
    color: var(--rose-dark);
    font-weight: 800;
    border: 0;
    cursor: pointer;
    background: #ffffff;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 4px;
    background: #ffffff;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.mobile-nav-link {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 800;
}

.hero-slider {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    background-size: cover;
    background-position: center;
    transition: opacity 0.7s ease, transform 1.1s ease;
    pointer-events: none;
}

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

.hero-content {
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 360px;
    align-items: center;
    gap: 54px;
    padding: 72px 0 86px;
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0;
    font-size: clamp(44px, 7vw, 82px);
    line-height: 0.96;
    font-weight: 950;
    letter-spacing: -0.06em;
    text-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.hero-copy p {
    max-width: 640px;
    margin: 24px 0 0;
    font-size: 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

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

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

.hero-tags span,
.tag-row span,
.pill-line span {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: var(--rose-dark);
    background: #fff1f2;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.hero-actions,
.detail-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: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: var(--rose-dark);
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(255, 255, 255, 0.22);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
    transform: translateY(-2px);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.ghost-button.dark {
    color: var(--rose-dark);
    background: #fff1f2;
}

.hero-poster {
    display: block;
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(135deg, #fb7185, #fdba74);
    box-shadow: var(--shadow-strong);
    transform: rotate(2deg);
    transition: transform 0.25s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) translateY(-4px);
}

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

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    transform: translateY(-50%);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.45);
}

.hero-dot.is-active {
    width: 32px;
    border-radius: 999px;
    background: #ffffff;
}

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

.standard-page,
.detail-page-shell {
    padding: 34px 0 68px;
}

.quick-search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 26px;
    align-items: center;
    margin: -58px 0 48px;
    padding: 30px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 241, 242, 0.92));
    box-shadow: var(--shadow);
    position: relative;
    z-index: 8;
}

.quick-search-panel h2 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.quick-search-panel p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.large-search {
    background: linear-gradient(90deg, var(--rose), var(--orange));
}

.large-search input {
    width: 100%;
    color: #ffffff;
}

.content-section {
    margin: 56px 0;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.section-kicker {
    color: var(--rose-dark);
    background: #fff1f2;
}

.section-link {
    min-height: 40px;
    color: var(--rose-dark);
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 12px 30px rgba(190, 18, 60, 0.10);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fb7185, #fdba74);
}

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

.movie-card:hover .poster-wrap img {
    transform: scale(1.05);
}

.type-badge,
.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(90deg, var(--rose), var(--orange));
    box-shadow: 0 10px 24px rgba(190, 18, 60, 0.22);
}

.rank-badge {
    left: auto;
    right: 12px;
    background: #111827;
}

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

.movie-card-body h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.movie-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--rose-dark);
    font-size: 13px;
    font-weight: 900;
}

.tag-row span {
    font-size: 11px;
}

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

.category-tile {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    overflow: hidden;
    padding: 22px;
    border-radius: 26px;
    color: #ffffff;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-strong);
}

.category-tile span {
    font-size: 24px;
    font-weight: 950;
}

.category-tile p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
    font-size: 14px;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 42px 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(190, 18, 60, 0.09);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.ranking-number {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 950;
    background: linear-gradient(135deg, var(--rose), var(--orange));
}

.ranking-row img {
    width: 58px;
    height: 78px;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, #fb7185, #fdba74);
}

.ranking-title {
    min-width: 0;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ranking-meta {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

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

.breadcrumb a {
    color: var(--rose-dark);
}

.breadcrumb span::before,
.breadcrumb a + a::before {
    content: "/";
    margin-right: 8px;
    color: #fda4af;
}

.page-hero {
    overflow: hidden;
    border-radius: 30px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose-dark), var(--pink) 52%, var(--orange));
    box-shadow: var(--shadow-strong);
}

.compact-hero {
    padding: 42px;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 840px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

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

.category-card-large {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 22px;
    overflow: hidden;
    padding: 18px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card-large:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.category-card-large img {
    width: 160px;
    height: 220px;
    object-fit: cover;
    border-radius: 20px;
    background: linear-gradient(135deg, #fb7185, #fdba74);
}

.category-card-large h2 {
    margin: 8px 0 12px;
    font-size: 28px;
    font-weight: 950;
}

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

.category-card-large span {
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--rose-dark);
    font-weight: 900;
    background: #fff1f2;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 12px;
    margin: 28px 0 8px;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid #fecdd3;
    border-radius: 16px;
    padding: 12px 14px;
    color: var(--text);
    outline: none;
    background: #fff7ed;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.detail-hero {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
    overflow: hidden;
    padding: 34px;
    border-radius: 32px;
    color: #ffffff;
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.18), transparent 28%), linear-gradient(135deg, #111827 0%, var(--rose-dark) 54%, var(--orange) 100%);
    box-shadow: var(--shadow-strong);
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    background: linear-gradient(135deg, #fb7185, #fdba74);
    box-shadow: 0 30px 65px rgba(0, 0, 0, 0.26);
}

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

.detail-intro h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.detail-one-line {
    margin: 20px 0 0;
    max-width: 760px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.8;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.player-section {
    margin: 34px 0;
    padding: 26px;
    border-radius: 30px;
    background: #111827;
    box-shadow: var(--shadow-strong);
}

.light-heading h2,
.light-heading .section-kicker {
    color: #ffffff;
}

.light-heading .section-kicker {
    background: rgba(255, 255, 255, 0.14);
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #020617;
}

.video-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #020617;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.32), rgba(2, 6, 23, 0.68));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 26px;
    border: 0;
    border-radius: 999px;
    color: var(--rose-dark);
    font-weight: 950;
    cursor: pointer;
    background: #ffffff;
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.28);
}

.play-triangle {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.detail-text-card,
.detail-info-card {
    padding: 24px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.detail-text-card h2,
.detail-info-card h2 {
    margin: 0 0 14px;
    font-size: 25px;
    font-weight: 950;
}

.detail-text-card p {
    margin: 0;
    color: #374151;
    line-height: 2;
    font-size: 16px;
}

.detail-info-card {
    grid-column: 1 / -1;
}

.detail-info-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

.detail-info-card div {
    padding: 14px;
    border-radius: 18px;
    background: #fff7ed;
}

.detail-info-card dt {
    margin-bottom: 6px;
    color: var(--muted);
    font-weight: 800;
}

.detail-info-card dd {
    margin: 0;
    font-weight: 900;
}

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

.movie-card-compact {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
}

.movie-card-compact .poster-wrap img {
    height: 100%;
    min-height: 168px;
}

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

.search-main-form {
    max-width: 680px;
    margin-top: 24px;
}

.search-page .movie-grid:empty::before {
    content: "输入关键词后查看影片结果";
    grid-column: 1 / -1;
    display: block;
    padding: 28px;
    border-radius: 22px;
    color: var(--muted);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.search-empty {
    grid-column: 1 / -1;
    padding: 28px;
    border-radius: 22px;
    color: var(--muted);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.site-footer {
    color: #ffffff;
    background: #111827;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 50px;
    padding: 48px 0 36px;
}

.footer-logo {
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 950;
}

.footer-brand p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.8;
}

.footer-links h3 {
    margin: 0 0 14px;
}

.footer-link-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-link-grid a {
    padding: 9px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.08);
}

.footer-link-grid a:hover {
    color: #ffffff;
    background: rgba(244, 63, 94, 0.42);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 24px;
    color: rgba(255, 255, 255, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.is-filtered-out {
    display: none;
}

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

    .menu-button {
        display: block;
        margin-left: auto;
    }

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

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

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

    .quick-search-panel {
        grid-template-columns: 1fr;
    }

    .category-card-grid,
    .ranking-list,
    .detail-content-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .header-inner {
        height: 62px;
    }

    .brand-text {
        font-size: 18px;
    }

    .hero-slider,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 48px 0 90px;
    }

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

    .hero-control {
        display: none;
    }

    .quick-search-panel {
        margin-top: -34px;
        padding: 22px;
    }

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

    .category-grid,
    .filter-panel,
    .detail-hero,
    .detail-info-card dl {
        grid-template-columns: 1fr;
    }

    .category-card-large {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .category-card-large img {
        width: 110px;
        height: 156px;
    }

    .compact-hero,
    .detail-hero,
    .player-section {
        padding: 22px;
    }

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

    .ranking-row {
        grid-template-columns: 34px 48px minmax(0, 1fr);
    }

    .ranking-meta {
        display: none;
    }
}

@media (max-width: 520px) {
    .page-shell,
    .header-inner,
    .mobile-panel,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 22px, 1180px);
    }

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

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

    .section-heading {
        align-items: start;
        flex-direction: column;
    }
}
