:root {
    --pink-50: #fff1f7;
    --pink-100: #ffe3ef;
    --pink-500: #ec4899;
    --red-500: #ef4444;
    --orange-400: #fb923c;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #f9fafb;
    --line: rgba(236, 72, 153, 0.16);
    --shadow: 0 18px 45px rgba(236, 72, 153, 0.14);
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 241, 247, 0.55) 46%, #ffffff 100%);
}

body.nav-open {
    overflow: hidden;
}

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: 100;
    background: linear-gradient(90deg, rgba(255, 241, 247, 0.96), rgba(255, 247, 237, 0.96));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.08);
}

.header-inner,
.section-inner,
.footer-inner,
.detail-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

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

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--pink-500), var(--red-500), var(--orange-400));
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.32);
}

.brand-text {
    font-size: 21px;
    background: linear-gradient(90deg, var(--pink-500), var(--red-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.mobile-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--pink-500);
    background: rgba(236, 72, 153, 0.09);
    transform: translateY(-1px);
}

.header-search {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #4b5563;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.08);
}

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

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: #4b5563;
}

.mobile-nav {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid var(--line);
}

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

.hero {
    position: relative;
    min-height: 690px;
    padding: 24px 0 34px;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(236, 72, 153, 0.24), transparent 28%), radial-gradient(circle at 80% 10%, rgba(251, 146, 60, 0.18), transparent 26%), #120814;
}

.hero-stage {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    height: 560px;
    margin: 0 auto;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(20, 7, 24, 0.34);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    align-items: center;
    gap: 44px;
    padding: 64px;
    background-position: center;
    background-size: cover;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.5s ease, transform 0.7s ease;
}

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(18, 8, 20, 0.78), transparent);
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffe3ef;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 13px;
    font-weight: 750;
}

.eyebrow.dark {
    color: var(--pink-500);
    background: rgba(236, 72, 153, 0.09);
    border-color: rgba(236, 72, 153, 0.16);
}

.hero-copy h1,
.hero-copy h2 {
    max-width: 740px;
    margin: 0 0 18px;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 16px 40px rgba(0, 0, 0, 0.36);
}

.hero-copy p {
    max-width: 620px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 17px;
    line-height: 1.8;
}

.hero-tags,
.tag-links,
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag-links a,
.filter-chip {
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 650;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-actions,
.section-title-row,
.detail-title-row,
.channel-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.hero-actions {
    justify-content: flex-start;
    margin-top: 26px;
}

.primary-btn,
.ghost-btn,
.home-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 0;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.home-search button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink-500), var(--red-500));
    box-shadow: 0 16px 34px rgba(236, 72, 153, 0.36);
}

.primary-btn:hover,
.home-search button:hover,
.ghost-btn:hover {
    transform: translateY(-2px);
}

.primary-btn.small {
    min-height: 40px;
    padding: 0 18px;
    font-size: 14px;
}

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-poster {
    position: relative;
    z-index: 2;
    display: block;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
}

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

.hero-poster span,
.play-bubble,
.play-ring {
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--pink-500);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.hero-poster span {
    position: absolute;
    right: 22px;
    bottom: 22px;
    width: 62px;
    height: 62px;
    font-size: 22px;
}

.hero-control {
    width: min(1180px, calc(100% - 32px));
    margin: 18px auto 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.hero-dot {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 8px;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-dot.active,
.hero-dot:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.hero-dot img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 14px;
}

.hero-dot span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
}

.quick-search-section {
    margin-top: -38px;
    position: relative;
    z-index: 4;
}

.quick-search-card {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 440px);
    gap: 28px;
    align-items: center;
    padding: 30px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.quick-search-card h2,
.section-title-row h2,
.ranking-copy h2,
.category-overview-copy h2,
.detail-content h1,
.page-hero h1 {
    margin: 0;
    letter-spacing: -0.04em;
}

.quick-search-card h2,
.section-title-row h2,
.ranking-copy h2 {
    font-size: clamp(26px, 3.2vw, 40px);
}

.quick-search-card p,
.ranking-copy p,
.category-overview-copy p,
.page-hero p,
.channel-hero p {
    color: var(--muted);
    line-height: 1.8;
}

.home-search {
    display: flex;
    gap: 12px;
    padding: 8px;
    border-radius: 999px;
    background: var(--pink-50);
    border: 1px solid var(--pink-100);
}

.home-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 18px;
    background: transparent;
}

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

.section-title-row {
    margin-bottom: 26px;
}

.text-link {
    color: var(--pink-500);
    font-weight: 750;
}

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

.channel-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.channel-card {
    aspect-ratio: 4 / 3;
}

.channel-card img,
.category-cover-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.channel-card:hover img,
.movie-card:hover img,
.category-overview-card:hover img {
    transform: scale(1.06);
}

.channel-glass {
    position: absolute;
    inset: auto 14px 14px;
    padding: 16px;
    border-radius: 20px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(20, 7, 24, 0.38), rgba(20, 7, 24, 0.74));
    backdrop-filter: blur(12px);
}

.channel-glass strong,
.channel-glass em {
    display: block;
}

.channel-glass strong {
    margin-bottom: 6px;
    font-size: 19px;
}

.channel-glass em {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-style: normal;
    line-height: 1.6;
}

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.84);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pink-100), #ffffff);
}

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

.poster-shade {
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
}

.year-badge,
.type-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 750;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
}

.year-badge {
    top: 10px;
    left: 10px;
}

.type-badge {
    top: 10px;
    right: 10px;
}

.rank-badge {
    left: 10px;
    bottom: 10px;
    background: linear-gradient(135deg, var(--pink-500), var(--red-500));
}

.play-bubble {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    opacity: 0;
    transform: translateY(8px) scale(0.92);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-body {
    display: grid;
    gap: 8px;
    padding: 14px;
}

.card-body strong {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 44px;
    color: #111827;
    font-size: 15px;
    line-height: 1.45;
}

.card-line {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 39px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #9ca3af;
    font-size: 12px;
}

.card-meta span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-band {
    padding: 68px 0;
    background: linear-gradient(90deg, rgba(255, 241, 247, 0.95), rgba(255, 247, 237, 0.95));
}

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

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

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

.rank-row {
    display: grid;
    grid-template-columns: 40px 54px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--pink-500), var(--red-500));
    font-weight: 800;
}

.rank-row img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-info {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.rank-info strong,
.rank-info em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.rank-views {
    color: var(--pink-500);
    font-weight: 750;
    font-size: 13px;
}

.page-hero {
    padding: 78px 0;
    background: radial-gradient(circle at 22% 20%, rgba(236, 72, 153, 0.18), transparent 32%), linear-gradient(90deg, rgba(255, 241, 247, 0.95), rgba(255, 247, 237, 0.95));
}

.page-hero h1 {
    max-width: 760px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.04;
}

.page-hero p {
    max-width: 780px;
    font-size: 17px;
}

.category-overview-card {
    min-height: 330px;
    display: grid;
    grid-template-rows: 155px 1fr;
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    height: 155px;
    overflow: hidden;
}

.category-overview-copy {
    padding: 22px;
}

.category-overview-copy span,
.category-overview-copy em {
    color: var(--pink-500);
    font-weight: 800;
    font-style: normal;
}

.category-overview-copy h2 {
    margin-top: 8px;
    font-size: 26px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 14px;
    margin-bottom: 18px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    min-height: 52px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid var(--pink-100);
    box-shadow: 0 10px 22px rgba(236, 72, 153, 0.08);
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
}

.sort-select {
    min-height: 52px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--pink-100);
    background: #ffffff;
    color: #4b5563;
    outline: 0;
}

.filter-chips {
    margin-bottom: 24px;
}

.filter-chip {
    border: 1px solid var(--pink-100);
    color: #4b5563;
    background: #ffffff;
    cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink-500), var(--red-500));
}

.empty-state {
    display: none;
    margin: 34px 0;
    padding: 34px;
    text-align: center;
    border-radius: 24px;
    color: var(--muted);
    background: #ffffff;
    border: 1px dashed var(--pink-100);
}

.empty-state.show {
    display: block;
}

.detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
    padding: 34px 0 0;
}

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

.breadcrumb a {
    color: var(--pink-500);
    font-weight: 700;
}

.player-card,
.detail-content,
.side-card {
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255, 255, 255, 0.84);
}

.player-card {
    background: #050505;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
    overflow: hidden;
}

.movie-video,
.player-cover,
.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.movie-video {
    z-index: 1;
    background: #000000;
}

.player-cover {
    z-index: 3;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: #000000;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-cover img {
    object-fit: cover;
}

.player-cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.62));
}

.play-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 86px;
    height: 86px;
    transform: translate(-50%, -50%);
    font-size: 30px;
}

.detail-content {
    margin-top: 22px;
    padding: 28px;
}

.detail-content h1 {
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #4b5563;
    background: var(--pink-50);
    border: 1px solid var(--pink-100);
    font-size: 13px;
    font-weight: 700;
}

.lead-text {
    padding: 18px;
    border-radius: 22px;
    color: #7c2d12;
    background: linear-gradient(90deg, rgba(255, 241, 247, 0.9), rgba(255, 247, 237, 0.9));
    font-size: 17px;
    line-height: 1.8;
}

.detail-content section {
    padding-top: 18px;
}

.detail-content h2,
.side-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.detail-content p {
    color: #4b5563;
    line-height: 1.9;
}

.tag-links a {
    color: var(--pink-500);
    background: rgba(236, 72, 153, 0.09);
    border: 1px solid rgba(236, 72, 153, 0.13);
}

.detail-side {
    position: sticky;
    top: 92px;
    align-self: start;
    display: grid;
    gap: 18px;
}

.side-poster {
    display: block;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

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

.side-card {
    padding: 22px;
}

.side-card dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.side-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.side-card dt {
    color: var(--muted);
}

.side-card dd {
    margin: 0;
    font-weight: 750;
    text-align: right;
}

.site-footer {
    margin-top: 56px;
    padding: 44px 0 24px;
    background: #ffffff;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 28px;
}

.footer-brand p {
    max-width: 520px;
    color: var(--muted);
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 12px;
    align-content: start;
}

.footer-links a {
    color: #4b5563;
    font-weight: 650;
}

.footer-links a:hover {
    color: var(--pink-500);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 30px auto 0;
    padding-top: 20px;
    color: #9ca3af;
    border-top: 1px solid #f3f4f6;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 1080px) {
    .hero-slide {
        grid-template-columns: 1fr 260px;
        padding: 42px;
    }

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

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

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

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

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: auto;
    }

    .hero-stage {
        height: auto;
        min-height: 660px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: end;
        padding: 34px 22px;
    }

    .hero-poster {
        width: min(260px, 72vw);
        margin: 0 auto;
        order: -1;
        transform: none;
    }

    .hero-control {
        grid-template-columns: repeat(3, 1fr);
    }

    .quick-search-card,
    .ranking-layout,
    .detail-shell,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .section-title-row,
    .detail-title-row,
    .channel-hero-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-side {
        position: static;
    }

    .side-poster {
        max-width: 340px;
    }
}

@media (max-width: 640px) {
    .header-inner,
    .section-inner,
    .footer-inner,
    .detail-shell,
    .hero-stage,
    .hero-control {
        width: min(100% - 22px, 1180px);
    }

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

    .hero-slide {
        gap: 24px;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 38px;
    }

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

    .quick-search-card,
    .detail-content {
        padding: 20px;
        border-radius: 24px;
    }

    .home-search,
    .filter-panel {
        grid-template-columns: 1fr;
        display: grid;
        border-radius: 24px;
    }

    .home-search button {
        width: 100%;
    }

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

    .channel-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .rank-row {
        grid-template-columns: 32px 46px minmax(0, 1fr);
    }

    .rank-row img {
        width: 46px;
        height: 62px;
    }

    .rank-views {
        display: none;
    }

    .page-hero {
        padding: 52px 0;
    }
}
