:root {
    --bg: #f7fafc;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: rgba(15, 23, 42, 0.1);
    --teal: #14b8a6;
    --blue: #3b82f6;
    --cyan: #06b6d4;
    --dark: #020617;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.13);
    --soft-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, 0.16), transparent 38rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 34rem),
        var(--bg);
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    box-shadow: 0 12px 25px rgba(20, 184, 166, 0.32);
}

.brand-text {
    font-size: 1.16rem;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav-link,
.mobile-link {
    color: #334155;
    font-weight: 700;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 16px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: #0f766e;
    background: rgba(20, 184, 166, 0.12);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.header-search input,
.mobile-search input,
.wide-search input,
.site-filter input {
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
    width: 210px;
    border-radius: 999px;
    padding: 10px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.wide-search input:focus,
.site-filter input:focus {
    border-color: rgba(20, 184, 166, 0.75);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
    background: #ffffff;
}

.header-search button,
.mobile-search button,
.wide-search button,
.site-filter button,
.primary-btn,
.ghost-btn,
.panel-more,
.text-link {
    border: 0;
    cursor: pointer;
    font-weight: 800;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.header-search button,
.mobile-search button,
.wide-search button,
.site-filter button,
.primary-btn,
.panel-more {
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    box-shadow: 0 14px 30px rgba(14, 165, 233, 0.22);
}

.header-search button {
    padding: 10px 16px;
}

.header-search button:hover,
.mobile-search button:hover,
.wide-search button:hover,
.site-filter button:hover,
.primary-btn:hover,
.panel-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(14, 165, 233, 0.3);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--text);
    font-size: 1.35rem;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--soft-shadow);
}

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

.mobile-link {
    display: block;
    padding: 12px 14px;
}

.mobile-search {
    display: flex;
    gap: 8px;
}

.mobile-search input {
    min-width: 0;
    flex: 1;
    border-radius: 999px;
    padding: 11px 14px;
}

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

.hero-carousel {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.75s ease, transform 1.2s ease;
}

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

.hero-image,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 38%, rgba(20, 184, 166, 0.28), transparent 26rem),
        linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.62) 47%, rgba(2, 6, 23, 0.1)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 55%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 680px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 1180px;
}

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    color: #ffffff;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content h1,
.hero-content h2 {
    max-width: 760px;
    font-size: clamp(2.9rem, 7vw, 6.6rem);
}

.eyebrow,
.page-hero p,
.section-heading p,
.panel-title p {
    margin: 0 0 12px;
    color: #14b8a6;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content p {
    max-width: 660px;
    margin: 24px 0 0;
    color: rgba(241, 245, 249, 0.9);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.8;
}

.hero-tags,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-tags span,
.detail-meta span {
    padding: 8px 12px;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

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

.primary-btn,
.ghost-btn,
.panel-more,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.primary-btn,
.ghost-btn {
    min-height: 50px;
    padding: 0 24px;
}

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(14px);
}

.ghost-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.ghost-btn.dark {
    color: var(--text);
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(15, 23, 42, 0.08);
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 38px;
    background: linear-gradient(135deg, var(--teal), var(--blue));
}

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

.search-band {
    padding: 28px 0;
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(226, 232, 240, 0.78);
}

.search-band-inner {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 24px;
}

.search-band h2,
.search-band p {
    margin: 0;
}

.search-band h2 {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
}

.search-band p {
    margin-top: 8px;
    color: var(--muted);
    line-height: 1.7;
}

.wide-search {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.wide-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    background: transparent;
}

.wide-search button {
    min-height: 48px;
    padding: 0 24px;
}

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

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

.section-heading.compact {
    margin-top: 0;
}

.section-heading h2,
.panel-title h2,
.story-card h2,
.side-card h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: -0.03em;
}

.section-heading a,
.text-link {
    color: #0f766e;
    font-weight: 900;
}

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

.category-card,
.category-overview-card,
.movie-card,
.rank-panel,
.side-card,
.story-card,
.site-filter {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.88);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(18px);
}

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    isolation: isolate;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.08));
}

.category-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card span {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 900;
}

.category-card p {
    margin: 8px 0 0;
    color: rgba(241, 245, 249, 0.86);
    line-height: 1.6;
    font-size: 0.92rem;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(20, 184, 166, 0.35);
    box-shadow: var(--shadow);
}

.movie-card.is-hidden {
    display: none;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0f172a;
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.06);
    filter: saturate(1.08) contrast(1.05);
}

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

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    border-radius: 12px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.28);
}

.card-body {
    padding: 16px;
}

.card-meta,
.card-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.card-meta span,
.card-stats span {
    display: inline-flex;
    align-items: center;
}

.movie-card h3 {
    margin: 10px 0 8px;
    font-size: 1.05rem;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: #0f766e;
}

.movie-card p {
    margin: 0;
    min-height: 3.2em;
    color: #475569;
    line-height: 1.6;
    font-size: 0.92rem;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag-row span {
    padding: 6px 9px;
    color: #0f766e;
    background: rgba(20, 184, 166, 0.12);
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.78rem;
}

.card-stats {
    justify-content: space-between;
    margin-top: 14px;
}

.rank-panel {
    position: sticky;
    top: 96px;
    border-radius: var(--radius-xl);
    padding: 24px;
}

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

.rank-mini {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 10px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.85);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-mini:hover {
    transform: translateX(4px);
    background: rgba(20, 184, 166, 0.1);
}

.rank-mini span {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--teal), var(--blue));
}

.rank-mini strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-mini em {
    color: #f97316;
    font-style: normal;
    font-weight: 900;
}

.panel-more {
    width: 100%;
    min-height: 48px;
    margin-top: 20px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 78% 20%, rgba(20, 184, 166, 0.38), transparent 32rem),
        linear-gradient(135deg, #020617, #0f172a 58%, #0f766e);
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(0deg, transparent, #000);
}

.page-hero .section-inner {
    position: relative;
    z-index: 1;
    padding: 86px 0;
}

.small-hero .section-inner {
    padding: 76px 0;
}

.page-hero h1 {
    max-width: 920px;
    font-size: clamp(2.4rem, 6vw, 5rem);
}

.hero-copy {
    max-width: 760px;
    margin-top: 20px;
    color: rgba(226, 232, 240, 0.9);
    font-size: 1.08rem;
    line-height: 1.8;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 20px;
    border-radius: var(--radius-xl);
    padding: 18px;
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    align-self: stretch;
    min-height: 170px;
}

.category-cover-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.category-overview-card h2 {
    margin: 10px 0 12px;
    font-size: 1.5rem;
}

.category-overview-card p {
    color: var(--muted);
    line-height: 1.75;
}

.site-filter {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border-radius: var(--radius-lg);
}

.filter-main {
    display: flex;
    gap: 12px;
}

.filter-main input {
    min-height: 50px;
    flex: 1;
    min-width: 0;
    border-radius: 999px;
    padding: 0 18px;
}

.filter-main button {
    padding: 0 22px;
}

.filter-main button[data-filter-clear],
.quick-filters button {
    color: #0f766e;
    background: rgba(20, 184, 166, 0.1);
    box-shadow: none;
}

.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-filters button {
    padding: 9px 14px;
}

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

.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.28), transparent 24rem),
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.66) 54%, rgba(2, 6, 23, 0.35)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.95), transparent 55%);
}

.detail-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: rgba(226, 232, 240, 0.82);
    font-weight: 700;
}

.breadcrumb a:hover {
    color: #5eead4;
}

.detail-grid {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    margin-top: 42px;
}

.detail-poster {
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 34px 90px rgba(0, 0, 0, 0.48);
}

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

.detail-info h1 {
    max-width: 760px;
    font-size: clamp(2.6rem, 6vw, 5.4rem);
}

.lead-text {
    max-width: 760px;
    margin: 22px 0 0;
    color: rgba(241, 245, 249, 0.9);
    font-size: 1.25rem;
    line-height: 1.75;
}

.detail-tags span {
    color: #ccfbf1;
    background: rgba(20, 184, 166, 0.18);
}

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

.watch-column h2 {
    margin: 0 0 18px;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    aspect-ratio: 16 / 9;
    box-shadow: 0 34px 95px rgba(15, 23, 42, 0.25);
}

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
    cursor: pointer;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #ffffff;
    border: 0;
    cursor: pointer;
    background:
        radial-gradient(circle at center, rgba(20, 184, 166, 0.22), transparent 22rem),
        linear-gradient(0deg, rgba(2, 6, 23, 0.75), rgba(2, 6, 23, 0.42));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    width: 88px;
    height: 88px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--teal), var(--blue));
    box-shadow: 0 24px 55px rgba(20, 184, 166, 0.35);
}

.player-cover strong {
    max-width: min(680px, calc(100% - 40px));
    text-align: center;
    font-size: clamp(1.4rem, 4vw, 2.3rem);
}

.story-card,
.side-card {
    border-radius: var(--radius-xl);
    padding: 24px;
}

.story-card {
    margin-top: 24px;
}

.story-card p {
    color: #334155;
    line-height: 1.9;
    font-size: 1.02rem;
}

.detail-side {
    position: sticky;
    top: 96px;
}

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

.side-card dl div {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

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

.side-card dd {
    margin: 0;
    color: var(--text);
    font-weight: 800;
}

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

.site-footer {
    margin-top: 40px;
    color: #cbd5e1;
    background: #020617;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    padding: 46px 0;
}

.footer-logo {
    color: #ffffff;
    font-size: 1.2rem;
}

.footer-inner p {
    max-width: 520px;
    color: #94a3b8;
    line-height: 1.75;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
    color: #ffffff;
    background: rgba(20, 184, 166, 0.22);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: #64748b;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

@media (max-width: 1100px) {
    .category-grid,
    .expanded-grid,
    .rank-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .two-column,
    .detail-main {
        grid-template-columns: 1fr;
    }

    .rank-panel,
    .detail-side {
        position: static;
    }
}

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-carousel,
    .hero-content {
        min-height: 620px;
    }

    .search-band-inner,
    .detail-grid,
    .category-overview-grid,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .wide-search,
    .filter-main {
        border-radius: 24px;
        flex-direction: column;
    }

    .wide-search input,
    .wide-search button,
    .filter-main input,
    .filter-main button {
        min-height: 48px;
    }

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

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

@media (max-width: 560px) {
    .header-shell,
    .section-inner,
    .section-block,
    .footer-inner,
    .detail-shell,
    .footer-bottom {
        width: min(100% - 24px, 1180px);
    }

    .brand-text {
        font-size: 1rem;
    }

    .hero-carousel,
    .hero-content {
        min-height: 560px;
    }

    .hero-content h1,
    .hero-content h2,
    .detail-info h1,
    .page-hero h1 {
        letter-spacing: -0.03em;
    }

    .hero-actions,
    .page-actions,
    .detail-actions {
        width: 100%;
    }

    .primary-btn,
    .ghost-btn {
        width: 100%;
    }

    .category-grid,
    .movie-grid,
    .expanded-grid,
    .rank-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .detail-shell {
        padding-bottom: 48px;
    }

    .side-card dl div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}
