:root {
    color-scheme: light;
    --bg: #fff7fb;
    --bg-strong: #fdf2f8;
    --surface: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.78);
    --text: #111827;
    --muted: #6b7280;
    --soft: #f9fafb;
    --line: rgba(236, 72, 153, 0.16);
    --pink: #ec4899;
    --pink-dark: #db2777;
    --purple: #8b5cf6;
    --blue: #3b82f6;
    --cyan: #06b6d4;
    --gold: #fbbf24;
    --shadow: 0 24px 70px rgba(124, 58, 237, 0.16);
    --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.10);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 5%, rgba(236, 72, 153, 0.16), transparent 32rem),
        radial-gradient(circle at 86% 16%, rgba(59, 130, 246, 0.17), transparent 34rem),
        linear-gradient(135deg, #fff7fb 0%, #f5f3ff 46%, #eff6ff 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(236, 72, 153, 0.12);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.30);
}

.brand-text {
    font-size: 1.35rem;
    background: linear-gradient(135deg, var(--pink-dark), var(--purple), var(--blue));
    -webkit-background-clip: text;
    color: transparent;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a {
    padding: 9px 13px;
    color: #374151;
    font-size: 0.94rem;
    font-weight: 700;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--pink-dark);
    background: rgba(236, 72, 153, 0.09);
    transform: translateY(-1px);
}

.nav-toggle {
    width: 42px;
    height: 42px;
    display: none;
    border: 0;
    border-radius: 14px;
    background: rgba(236, 72, 153, 0.10);
    cursor: pointer;
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    margin: 5px auto;
    border-radius: 2px;
    background: #111827;
}

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

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(88, 28, 135, 0.70) 44%, rgba(15, 23, 42, 0.34)),
        radial-gradient(circle at 20% 30%, rgba(236, 72, 153, 0.45), transparent 28rem),
        radial-gradient(circle at 80% 65%, rgba(59, 130, 246, 0.35), transparent 30rem);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 650px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) 390px;
    gap: 56px;
    align-items: center;
    padding: 72px 0;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--pink-dark);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-copy .eyebrow,
.category-hero .eyebrow,
.page-hero .eyebrow {
    color: #fbcfe8;
}

.hero-copy h1 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(2.75rem, 7vw, 6.5rem);
    line-height: 0.96;
    letter-spacing: -0.08em;
    text-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

.hero-desc {
    max-width: 680px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

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

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 11px;
    border-radius: 999px;
    color: #831843;
    background: rgba(252, 231, 243, 0.92);
    font-size: 0.78rem;
    font-weight: 800;
}

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

.primary-btn,
.ghost-btn,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: #ffffff;
    border: 0;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
    box-shadow: 0 16px 38px rgba(236, 72, 153, 0.30);
    cursor: pointer;
}

.ghost-btn,
.section-link {
    color: #be185d;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(236, 72, 153, 0.18);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(124, 58, 237, 0.18);
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.24);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 9px 15px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(236, 72, 153, 0.92);
    font-weight: 900;
}

.hero-poster:hover img {
    transform: scale(1.08);
}

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

.hero-dots button {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 54px;
    background: #ffffff;
}

.quick-search,
.category-section,
.ranking-section,
.movie-section,
.overview-list,
.detail-shell,
.list-tools {
    padding: 64px 0;
}

.search-panel,
.tool-panel,
.detail-panel,
.side-panel,
.player-card,
.category-overview,
.soft-panel {
    background: var(--surface-soft);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 470px) auto;
    gap: 18px;
    align-items: end;
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-top: -36px;
    position: relative;
    z-index: 8;
}

.search-panel h2,
.section-heading h2,
.page-hero h1,
.category-hero h1,
.detail-panel h1 {
    margin: 0;
    color: var(--text);
    letter-spacing: -0.05em;
}

.search-panel h2 {
    font-size: clamp(1.5rem, 3vw, 2.15rem);
}

label span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.83rem;
    font-weight: 800;
}

input,
select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(236, 72, 153, 0.18);
    border-radius: 999px;
    padding: 0 16px;
    color: var(--text);
    background: #ffffff;
    outline: 0;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus {
    border-color: rgba(236, 72, 153, 0.52);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.10);
}

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

.section-heading h2 {
    font-size: clamp(1.75rem, 4vw, 3rem);
}

.section-heading p {
    max-width: 670px;
    margin: 10px 0 0;
    color: var(--muted);
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 198px;
    padding: 22px;
    color: #ffffff;
    border-radius: 26px;
    background: var(--category-accent);
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card::after,
.category-overview::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -46px;
    top: -44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.20);
}

.category-card:hover,
.movie-card:hover,
.rank-item:hover,
.category-overview:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.category-card span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-bottom: 12px;
    padding: 6px 12px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.20);
    font-size: 0.84rem;
    font-weight: 900;
}

.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.25;
}

.category-samples,
.category-inline-links {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.category-samples a,
.category-inline-links a {
    max-width: 100%;
    padding: 5px 9px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(236, 72, 153, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.movie-cover img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.52s ease;
}

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

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.74));
}

.year-badge,
.type-badge {
    position: absolute;
    top: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.year-badge {
    left: 12px;
    background: rgba(236, 72, 153, 0.88);
}

.type-badge {
    right: 12px;
    background: rgba(59, 130, 246, 0.86);
}

.movie-body {
    padding: 18px;
}

.movie-meta,
.rank-meta {
    color: var(--pink-dark);
    font-size: 0.82rem;
    font-weight: 900;
}

.movie-body h3,
.rank-content h3 {
    margin: 7px 0 8px;
    color: var(--text);
    font-size: 1.08rem;
    line-height: 1.35;
}

.movie-body h3 a:hover,
.rank-content h3 a:hover {
    color: var(--pink-dark);
}

.movie-body p,
.rank-content p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    margin-top: 14px;
}

.movie-card-compact .movie-cover img {
    aspect-ratio: 4 / 3;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.rank-cover {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #111827;
}

.rank-cover img {
    width: 100%;
    height: 100%;
    min-height: 120px;
    object-fit: cover;
}

.rank-cover span {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--purple));
    font-weight: 900;
}

.rank-content {
    min-width: 0;
    align-self: center;
}

.rank-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    color: #7c3aed;
    font-size: 0.82rem;
    font-weight: 900;
}

.page-hero {
    padding: 86px 0 34px;
}

.page-hero h1 {
    font-size: clamp(2.3rem, 6vw, 5rem);
    color: var(--text);
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 1.12rem;
}

.page-hero .eyebrow {
    color: var(--pink-dark);
}

.category-hero {
    color: #ffffff;
    padding: 70px 0;
    background: var(--category-accent);
    position: relative;
    overflow: hidden;
}

.category-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.26), transparent 22rem),
        radial-gradient(circle at 88% 25%, rgba(255, 255, 255, 0.18), transparent 24rem);
}

.category-hero .shell {
    position: relative;
    z-index: 1;
}

.category-hero h1 {
    max-width: 780px;
    color: #ffffff;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.category-hero p {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.05rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.9rem;
    font-weight: 800;
}

.detail-main .breadcrumb {
    color: var(--muted);
}

.breadcrumb a::after {
    content: "/";
    margin-left: 8px;
    color: currentColor;
    opacity: 0.55;
}

.tool-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto 180px;
    gap: 16px;
    align-items: end;
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 26px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-buttons button {
    min-height: 42px;
    padding: 0 14px;
    color: #be185d;
    border: 1px solid rgba(236, 72, 153, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    font-weight: 900;
    cursor: pointer;
}

.filter-buttons button.is-active,
.filter-buttons button:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pink), var(--purple));
}

.category-overview {
    position: relative;
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 24px;
    padding: 18px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: 22px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px;
    border-radius: 24px;
    background: var(--category-accent);
}

.category-visual img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
}

.category-overview-body {
    position: relative;
    z-index: 1;
    align-self: center;
}

.category-overview-body .eyebrow {
    color: var(--pink-dark);
}

.category-overview-body h2 {
    margin: 0 0 12px;
    font-size: clamp(1.45rem, 3vw, 2.35rem);
    letter-spacing: -0.04em;
}

.category-overview .category-inline-links a {
    color: #7c2d12;
    background: rgba(254, 243, 199, 0.86);
}

.category-overview .ghost-btn {
    margin-top: 20px;
}

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

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

.player-card,
.detail-panel,
.side-panel {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

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

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000000;
    cursor: pointer;
}

.play-layer {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    color: #ffffff;
    border: 0;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.74)),
        rgba(15, 23, 42, 0.18);
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-layer.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    color: #ffffff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
    box-shadow: 0 18px 48px rgba(236, 72, 153, 0.40);
    font-size: 1.8rem;
}

.play-layer span:last-child {
    font-weight: 900;
}

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

.detail-panel h1 {
    font-size: clamp(2rem, 4vw, 3.45rem);
}

.detail-panel h2,
.side-panel h2 {
    margin: 24px 0 10px;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.detail-panel p {
    color: #4b5563;
    font-size: 1rem;
}

.lead-text {
    color: #1f2937;
    font-size: 1.12rem;
    font-weight: 700;
}

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

.detail-meta-grid span {
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #fdf2f8, #eff6ff);
    color: #374151;
    font-weight: 800;
}

.detail-meta-grid strong {
    display: block;
    margin-bottom: 5px;
    color: var(--pink-dark);
    font-size: 0.78rem;
}

.detail-tags {
    margin: 0 0 20px;
}

.review-panel p {
    padding-left: 18px;
    border-left: 4px solid var(--pink);
    font-style: italic;
}

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

.side-panel {
    padding: 20px;
}

.side-panel h2 {
    margin-top: 0;
}

.side-rec {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(236, 72, 153, 0.10);
}

.side-rec:last-child {
    border-bottom: 0;
}

.side-rec img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 16px;
}

.side-rec strong,
.side-rec em {
    display: block;
}

.side-rec strong {
    color: var(--text);
    line-height: 1.35;
}

.side-rec em {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.82rem;
    font-style: normal;
}

.related-section {
    padding-top: 54px;
}

.centered-hero {
    text-align: center;
    min-height: 55vh;
    display: grid;
    place-items: center;
}

.centered-hero p,
.centered-actions {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.site-footer {
    margin-top: 56px;
    background: linear-gradient(135deg, rgba(252, 231, 243, 0.86), rgba(237, 233, 254, 0.86), rgba(219, 234, 254, 0.86));
    border-top: 1px solid rgba(236, 72, 153, 0.16);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
    padding: 44px 0;
}

.footer-brand p {
    max-width: 420px;
    color: var(--muted);
}

.footer-links h2 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.footer-links div {
    display: grid;
    gap: 8px;
}

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

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

.footer-bottom {
    padding: 18px 0 24px;
    color: var(--muted);
    text-align: center;
    border-top: 1px solid rgba(236, 72, 153, 0.12);
}

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

@media (max-width: 1024px) {
    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 92px 0 78px;
    }

    .hero-poster {
        width: min(360px, 72vw);
        transform: none;
    }

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

    .rank-grid,
    .ranking-list {
        grid-template-columns: 1fr;
    }

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

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

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

    .detail-side {
        position: static;
    }
}

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

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

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

    .hero-copy h1 {
        font-size: clamp(2.4rem, 15vw, 4rem);
    }

    .hero-desc {
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .quick-search,
    .category-section,
    .ranking-section,
    .movie-section,
    .overview-list,
    .list-tools {
        padding: 42px 0;
    }

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

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

    .rank-item {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .rank-cover img {
        min-height: 112px;
    }

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

    .detail-panel {
        padding: 22px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}
