:root {
    color-scheme: light;
    --bg: #f8fafc;
    --bg-soft: #ecfeff;
    --text: #111827;
    --muted: #64748b;
    --line: #e2e8f0;
    --card: #ffffff;
    --cyan: #06b6d4;
    --cyan-dark: #0e7490;
    --teal: #14b8a6;
    --teal-dark: #0f766e;
    --slate: #0f172a;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, 0.16), transparent 34rem),
        linear-gradient(135deg, #f8fafc 0%, #ffffff 46%, #ecfeff 100%);
    -webkit-font-smoothing: antialiased;
}

body.no-scroll {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #115e59 0%, #164e63 48%, #0f172a 100%);
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.28);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
}

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

.brand-icon {
    display: inline-grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #22d3ee, #14b8a6);
    box-shadow: 0 12px 24px rgba(6, 182, 212, 0.3);
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(-2deg);
}

.brand-text {
    font-size: 1.24rem;
    background: linear-gradient(90deg, #a5f3fc, #99f6e4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 0.96rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.86);
    transition: color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active {
    color: #a5f3fc;
    transform: translateY(-1px);
}

.nav-actions {
    display: flex;
    gap: 10px;
}

.icon-button {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(165, 243, 252, 0.24);
    border-radius: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.icon-button:hover {
    border-color: rgba(165, 243, 252, 0.5);
    background: rgba(255, 255, 255, 0.16);
}

.menu-toggle {
    display: none;
}

.header-search {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
}

.header-search-form,
.large-search,
.search-page-form {
    display: flex;
    gap: 12px;
}

.header-search input,
.large-search input,
.search-page-form input {
    width: 100%;
    border: 1px solid rgba(8, 145, 178, 0.28);
    border-radius: 16px;
    padding: 13px 16px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.92);
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input:focus,
.large-search input:focus,
.search-page-form input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.16);
}

.header-search button,
.large-search button,
.search-page-form button,
.btn-primary,
.section-more {
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    color: #ffffff;
    font-weight: 700;
    background: linear-gradient(90deg, #06b6d4, #14b8a6);
    box-shadow: 0 14px 28px rgba(20, 184, 166, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.header-search button:hover,
.large-search button:hover,
.search-page-form button:hover,
.btn-primary:hover,
.section-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(20, 184, 166, 0.32);
}

.mobile-nav {
    display: none;
    padding: 10px 24px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.95);
}

.mobile-nav-link {
    display: block;
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.88);
}

.mobile-nav-link:hover {
    color: #a5f3fc;
}

.hero-shell {
    max-width: 1380px;
    margin: 28px auto 0;
    padding: 0 24px;
}

.hero-stage {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    border-radius: 28px;
    background: #0f172a;
    box-shadow: var(--shadow);
}

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-image.is-missing,
.poster-image.is-missing {
    opacity: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(6, 182, 212, 0.34), transparent 28rem),
        linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.36) 55%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
    position: absolute;
    right: 7%;
    bottom: 9%;
    left: 7%;
    max-width: 780px;
    color: #ffffff;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    color: #a5f3fc;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 5.5rem);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    max-width: 680px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.08rem;
    line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span,
.genre-row span,
.detail-tags a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    color: #0e7490;
    font-size: 0.78rem;
    font-weight: 700;
    background: #ecfeff;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 12px 22px;
    color: #ffffff;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #ffffff;
    font-size: 2rem;
    background: rgba(15, 23, 42, 0.38);
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    right: 7%;
    bottom: 32px;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
    width: 34px;
    background: #22d3ee;
}

.search-panel,
.stats-row,
.content-section,
.page-hero,
.detail-breadcrumb,
.detail-hero,
.detail-layout,
.player-section {
    max-width: 1280px;
    margin: 0 auto;
    padding-right: 24px;
    padding-left: 24px;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 34px;
    align-items: center;
    margin-top: 34px;
    padding-top: 34px;
    padding-bottom: 34px;
}

.search-panel h2,
.page-hero h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 3.8rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.search-panel p,
.page-hero p,
.section-heading p {
    color: var(--muted);
    line-height: 1.8;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 10px;
}

.stats-row div {
    padding: 24px;
    border: 1px solid rgba(8, 145, 178, 0.1);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.stats-row strong {
    display: block;
    color: var(--cyan-dark);
    font-size: 2rem;
    line-height: 1;
}

.stats-row span {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

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

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

.heading-mark {
    display: inline-block;
    width: 46px;
    height: 6px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, #06b6d4, #14b8a6);
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 8px 0 0;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    background: var(--card);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 46px rgba(15, 23, 42, 0.16);
}

.poster-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #0f766e, #164e63);
}

.poster-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.2s ease;
}

.movie-card:hover .poster-image,
.category-overview-card:hover .poster-image {
    transform: scale(1.09);
}

.poster-shade {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    color: #ffffff;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent 72%);
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.play-badge {
    display: grid;
    width: 52px;
    height: 52px;
    margin: auto auto 18px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 1.2rem;
    background: var(--cyan);
    box-shadow: 0 16px 34px rgba(6, 182, 212, 0.38);
}

.poster-shade p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
}

.type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
}

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

.movie-card-body h3 {
    display: -webkit-box;
    min-height: 3em;
    margin: 0 0 10px;
    overflow: hidden;
    color: #1f2937;
    font-size: 1.08rem;
    line-height: 1.5;
    font-weight: 800;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-line {
    display: -webkit-box;
    min-height: 3.2em;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 0.86rem;
}

.tag-row span {
    padding: 4px 8px;
    font-size: 0.74rem;
}

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

.category-card,
.category-overview-card {
    overflow: hidden;
    border: 1px solid rgba(6, 182, 212, 0.12);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(236, 254, 255, 0.92), rgba(255, 255, 255, 0.94));
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 46px rgba(15, 23, 42, 0.13);
}

.category-card a {
    display: block;
    min-height: 220px;
    padding: 24px;
}

.category-count {
    display: inline-flex;
    margin-bottom: 18px;
    border-radius: 999px;
    padding: 6px 12px;
    color: #0e7490;
    font-weight: 800;
    background: #cffafe;
}

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

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

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.category-samples a {
    border-radius: 999px;
    padding: 5px 10px;
    color: #0f766e;
    font-size: 0.78rem;
    background: #ffffff;
}

.category-overview-card a {
    display: grid;
    grid-template-columns: 140px 1fr;
    min-height: 100%;
}

.overview-image {
    overflow: hidden;
    background: linear-gradient(135deg, #0f766e, #164e63);
}

.overview-body {
    padding: 22px;
}

.overview-body span {
    color: var(--cyan-dark);
    font-weight: 800;
}

.page-main {
    padding-top: 28px;
}

.page-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-top: 40px;
    padding-bottom: 38px;
}

.small-hero,
.category-hero {
    border-bottom: 1px solid var(--line);
}

.breadcrumb {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.92rem;
}

.breadcrumb a {
    color: var(--cyan-dark);
    font-weight: 700;
}

.category-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: var(--muted);
}

.category-toolbar select {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 11px 14px;
    color: var(--text);
    background: #ffffff;
}

.ranking-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.ranking-list.compact a,
.ranking-row a {
    display: grid;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-list.compact a {
    grid-template-columns: 52px 1fr auto;
    padding: 14px 16px;
}

.ranking-list a:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.rank-num {
    color: #0e7490;
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-score {
    border-radius: 999px;
    padding: 5px 9px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #06b6d4, #14b8a6);
}

.ranking-page-section {
    padding-top: 28px;
}

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

.ranking-row a {
    grid-template-columns: 76px 112px minmax(0, 1fr) auto auto;
    padding: 12px;
}

.rank-cover {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f766e, #164e63);
}

.rank-info strong,
.rank-info em {
    display: block;
}

.rank-info strong {
    margin-bottom: 6px;
    font-size: 1.06rem;
}

.rank-info em {
    overflow: hidden;
    color: var(--muted);
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-meta {
    color: var(--muted);
    white-space: nowrap;
}

.search-page-form {
    max-width: 760px;
    margin-bottom: 18px;
}

.search-summary {
    margin-bottom: 24px;
    color: var(--muted);
}

.detail-main {
    padding-top: 26px;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
    gap: 38px;
    align-items: center;
    padding-top: 18px;
    padding-bottom: 36px;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    background: linear-gradient(135deg, #0f766e, #164e63);
    box-shadow: var(--shadow);
}

.detail-intro h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 5vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.detail-intro p {
    max-width: 780px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.85;
}

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

.detail-meta-grid div {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    background: #ffffff;
}

.detail-meta-grid span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.78rem;
}

.detail-meta-grid strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.genre-row {
    margin-bottom: 24px;
}

.player-section {
    padding-top: 30px;
    padding-bottom: 20px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
}

.video-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle, rgba(6, 182, 212, 0.18), transparent 24rem),
        rgba(2, 6, 23, 0.42);
}

.video-overlay[hidden] {
    display: none;
}

.video-overlay span {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    border-radius: 999px;
    font-size: 2rem;
    background: linear-gradient(135deg, #06b6d4, #14b8a6);
    box-shadow: 0 18px 40px rgba(6, 182, 212, 0.34);
}

.video-overlay strong {
    font-size: 1.1rem;
}

.player-status {
    position: absolute;
    right: 20px;
    bottom: 16px;
    left: 20px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    pointer-events: none;
}

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

.detail-article,
.detail-side {
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 28px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.detail-article h2,
.detail-side h2 {
    margin: 0 0 12px;
    font-size: 1.28rem;
}

.detail-article h2:not(:first-child),
.detail-side h2:not(:first-child) {
    margin-top: 28px;
}

.detail-article p {
    margin: 0;
    color: #334155;
    line-height: 2;
}

.detail-tags a {
    margin-bottom: 2px;
}

.side-link {
    display: block;
    margin-top: 10px;
    border: 1px solid rgba(6, 182, 212, 0.16);
    border-radius: 14px;
    padding: 12px 14px;
    color: #0e7490;
    font-weight: 800;
    background: #ecfeff;
}

.related-section {
    padding-bottom: 64px;
}

.site-footer {
    margin-top: 70px;
    color: #cbd5e1;
    background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 50px 24px 34px;
}

.footer-brand {
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 1.16rem;
}

.site-footer p {
    max-width: 430px;
    color: #94a3b8;
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 1.08rem;
}

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

.footer-links a {
    color: #94a3b8;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #67e8f9;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    color: #64748b;
}

@media (max-width: 1180px) {
    .desktop-nav {
        gap: 14px;
        font-size: 0.9rem;
    }

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

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

    .menu-toggle {
        display: inline-grid;
    }

    .mobile-nav:not([hidden]) {
        display: block;
    }

    .hero-stage {
        height: 62vh;
        min-height: 460px;
    }

    .hero-content {
        right: 24px;
        bottom: 76px;
        left: 24px;
    }

    .hero-arrow {
        display: none;
    }

    .search-panel,
    .page-hero,
    .detail-hero,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .search-panel,
    .page-hero {
        display: grid;
    }

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

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

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

    .ranking-row a {
        grid-template-columns: 58px 90px minmax(0, 1fr) auto;
    }

    .rank-meta {
        display: none;
    }

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

@media (max-width: 640px) {
    .nav-wrap,
    .header-search,
    .hero-shell,
    .search-panel,
    .stats-row,
    .content-section,
    .page-hero,
    .detail-breadcrumb,
    .detail-hero,
    .detail-layout,
    .player-section {
        padding-right: 16px;
        padding-left: 16px;
    }

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

    .hero-stage {
        min-height: 520px;
        border-radius: 20px;
    }

    .hero-content h1 {
        font-size: 2.35rem;
    }

    .hero-content p {
        font-size: 0.98rem;
    }

    .hero-actions,
    .large-search,
    .search-page-form,
    .header-search-form {
        flex-direction: column;
    }

    .stats-row,
    .movie-grid,
    .category-grid,
    .category-overview-grid,
    .detail-meta-grid {
        grid-template-columns: 1fr;
    }

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

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

    .overview-image {
        aspect-ratio: 16 / 9;
    }

    .ranking-row a {
        grid-template-columns: 44px 76px minmax(0, 1fr);
    }

    .rank-score {
        display: none;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
