:root {
    --blue: #2563eb;
    --blue-dark: #1e3a8a;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --green: #16a34a;
    --purple: #7c3aed;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --white: #ffffff;
    --dark: #0f172a;
    --shadow: 0 16px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--soft);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.nav-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 76px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--orange));
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
    font-size: 14px;
}

.brand-text {
    font-size: 24px;
    line-height: 1;
    background: linear-gradient(135deg, var(--blue), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

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

.nav-link {
    color: #374151;
    font-size: 17px;
    font-weight: 650;
    padding: 26px 0 22px;
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue);
    border-color: var(--blue);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
}

.header-search input,
.mobile-search input {
    width: 160px;
    border: 0;
    outline: 0;
    padding: 10px 12px 10px 16px;
    background: transparent;
}

.header-search button,
.mobile-search button {
    border: 0;
    color: #ffffff;
    background: var(--blue);
    padding: 10px 16px;
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    cursor: pointer;
}

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

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

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

.mobile-link {
    display: block;
    padding: 12px 0;
    color: #374151;
    font-weight: 700;
}

.mobile-link.active {
    color: var(--blue);
}

.hero-carousel {
    position: relative;
    min-height: 690px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 46%, #0f172a 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(249, 115, 22, 0.28), transparent 34%),
        radial-gradient(circle at 82% 12%, rgba(96, 165, 250, 0.34), transparent 38%),
        rgba(0, 0, 0, 0.22);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    align-items: center;
    gap: 56px;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 96px 0 132px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.hero-kicker,
.eyebrow {
    margin: 0 0 12px;
    color: #bfdbfe;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy h2 {
    margin: 0 0 14px;
    color: #ffedd5;
    font-size: clamp(24px, 3.2vw, 42px);
    line-height: 1.2;
}

.hero-desc {
    max-width: 700px;
    margin: 0 0 26px;
    color: #dbeafe;
    font-size: 20px;
}

.hero-tags,
.detail-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-tags span,
.detail-tags span,
.detail-tags a,
.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.btn.primary {
    color: #ffffff;
    background: var(--orange);
    box-shadow: 0 18px 34px rgba(249, 115, 22, 0.32);
}

.btn.primary:hover {
    background: var(--orange-dark);
}

.btn.secondary {
    color: var(--blue);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.hero-poster {
    position: relative;
    display: block;
    height: 520px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
}

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

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

.hero-poster-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.78), transparent 45%);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 58px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    transform: translateX(-50%);
}

.hero-dots {
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    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: 36px;
    background: var(--orange);
}

.hero-search {
    display: flex;
    overflow: hidden;
    min-width: min(520px, 100%);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 16px 18px;
}

.hero-search button {
    border: 0;
    color: #ffffff;
    background: var(--orange);
    padding: 0 24px;
    font-weight: 800;
    cursor: pointer;
}

.hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: 88px;
    fill: #ffffff;
}

.stats-strip {
    background: #ffffff;
    padding: 28px 0 12px;
}

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

.stats-grid div {
    text-align: center;
    padding: 24px 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.stats-grid strong {
    display: block;
    color: var(--blue);
    font-size: 32px;
    line-height: 1;
}

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

.section {
    padding: 72px 0;
}

.white-section {
    background: #ffffff;
}

.soft-section {
    background: #f3f6fb;
}

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

.section-heading h2,
.rank-head h2,
.info-panel h2,
.detail-card h2,
.prose-card h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
}

.section-heading p {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.section-more,
.rank-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--blue);
    font-weight: 800;
    white-space: nowrap;
}

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-frame {
    position: relative;
    display: block;
    height: 250px;
    overflow: hidden;
    background: #e5e7eb;
}

.compact-grid .poster-frame,
.search-grid .poster-frame {
    height: 220px;
}

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

.movie-card:hover .poster-frame img {
    transform: scale(1.1);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.25s ease;
}

.movie-card:hover .poster-shade {
    background: rgba(0, 0, 0, 0.32);
}

.poster-play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.7);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.poster-badge,
.poster-year {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.poster-badge {
    top: 12px;
    right: 12px;
    background: var(--orange);
}

.poster-year {
    left: 12px;
    bottom: 12px;
    background: var(--blue);
}

.card-body {
    display: block;
    padding: 15px;
}

.card-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: #111827;
    font-size: 15px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.compact-title {
    min-height: 44px;
    font-size: 14px;
}

.movie-card:hover .card-title {
    color: var(--blue);
}

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

.card-meta {
    display: block;
    overflow: hidden;
    color: #6b7280;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.category-tile,
.category-overview-main {
    display: flex;
    min-height: 190px;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 28px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:nth-child(2n),
.category-overview-card:nth-child(2n) .category-overview-main {
    background: linear-gradient(135deg, var(--orange), #b45309);
}

.category-tile:nth-child(3n),
.category-overview-card:nth-child(3n) .category-overview-main {
    background: linear-gradient(135deg, var(--green), #166534);
}

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

.tile-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 900;
}

.category-tile strong,
.category-overview-main strong {
    font-size: 24px;
}

.category-tile span:last-child,
.category-overview-main span:last-child {
    color: rgba(255, 255, 255, 0.86);
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 36px;
    align-items: start;
}

.rank-panel {
    position: sticky;
    top: 100px;
    padding: 24px;
    border-radius: 24px;
    background: #0f172a;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.rank-head {
    margin-bottom: 18px;
}

.rank-head h2 {
    color: #ffffff;
}

.rank-item {
    display: grid;
    grid-template-columns: 42px 58px 1fr;
    gap: 12px;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rank-num {
    color: #fdba74;
    font-size: 20px;
    font-weight: 900;
}

.rank-item img {
    width: 58px;
    height: 78px;
    object-fit: cover;
    border-radius: 10px;
}

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

.rank-item strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-item em {
    margin-top: 3px;
    color: #cbd5e1;
    font-size: 12px;
    font-style: normal;
}

.rank-more {
    width: 100%;
    margin-top: 18px;
    background: var(--orange);
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    padding: 76px 0;
}

.page-hero h1 {
    max-width: 860px;
    margin: 0 0 16px;
    font-size: clamp(38px, 5vw, 56px);
    line-height: 1.1;
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    margin: 0;
    color: #dbeafe;
    font-size: 19px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    color: #dbeafe;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

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

.category-overview-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.category-overview-main {
    min-height: 160px;
    border-radius: 0;
}

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

.mini-links a {
    overflow: hidden;
    color: #374151;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-links a:hover {
    color: var(--blue);
}

.filter-bar {
    display: block;
}

.filter-input-wrap {
    max-width: 720px;
    margin: 0 auto 18px;
}

.filter-input-wrap.large {
    max-width: 860px;
}

.movie-filter-input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: 0;
    padding: 16px 18px;
    box-shadow: var(--shadow-soft);
}

.movie-filter-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
}

.filter-chip {
    border: 0;
    border-radius: 999px;
    color: #374151;
    background: #ffffff;
    padding: 9px 16px;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.filter-chip.active,
.filter-chip:hover {
    color: #ffffff;
    background: var(--blue);
}

.empty-state {
    display: none;
    padding: 60px 0;
    color: var(--muted);
    text-align: center;
    font-size: 18px;
}

.filter-bar.is-empty .empty-state {
    display: block;
}

.filter-bar.is-empty .movie-grid {
    display: none;
}

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

.ranking-card {
    display: grid;
    grid-template-columns: 72px 86px 1fr;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.ranking-index {
    color: var(--orange);
    font-size: 28px;
    font-weight: 900;
    text-align: center;
}

.ranking-card img {
    width: 86px;
    height: 116px;
    object-fit: cover;
    border-radius: 14px;
}

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

.ranking-info strong {
    color: #111827;
    font-size: 20px;
}

.ranking-info em {
    margin: 4px 0 8px;
    color: var(--blue);
    font-style: normal;
    font-weight: 700;
}

.ranking-info span {
    color: var(--muted);
}

.movie-hero-detail {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
    padding: 44px 0 118px;
}

.movie-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(16px) brightness(0.55);
    transform: scale(1.08);
    opacity: 0.72;
}

.movie-hero-detail .container {
    position: relative;
    z-index: 2;
}

.movie-detail-section {
    margin-top: -88px;
    padding-bottom: 72px;
}

.detail-layout {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
    align-items: start;
}

.video-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.video-shell.is-playing .player-cover {
    opacity: 0;
    pointer-events: none;
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.1));
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.player-play-icon {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.95);
    font-size: 32px;
    box-shadow: 0 20px 42px rgba(249, 115, 22, 0.32);
}

.player-tools {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 4;
    display: flex;
    gap: 10px;
    pointer-events: none;
}

.player-tools button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.82);
    padding: 9px 14px;
    cursor: pointer;
    pointer-events: auto;
}

.player-tools button:hover {
    background: var(--orange);
}

.detail-card,
.info-panel,
.prose-card {
    border-radius: 24px;
    background: #ffffff;
    padding: 28px;
    box-shadow: var(--shadow-soft);
}

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

.detail-tags a,
.detail-tags span,
.tag-list span {
    color: var(--blue);
    background: #dbeafe;
}

.detail-card h1 {
    margin: 0 0 14px;
    color: #111827;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.18;
}

.detail-one-line {
    color: #374151;
    font-size: 19px;
}

.detail-card h2 {
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 24px;
}

.detail-card p {
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
}

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

.detail-poster {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow);
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.info-panel {
    margin-top: 18px;
}

.info-panel h2 {
    margin-bottom: 18px;
    font-size: 24px;
}

.info-panel div {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.info-panel div:last-child {
    border-bottom: 0;
}

.info-panel span {
    color: var(--muted);
}

.info-panel strong {
    text-align: right;
}

.prose-card {
    max-width: 860px;
}

.prose-card h2 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 26px;
}

.prose-card p {
    color: #374151;
    font-size: 17px;
}

.site-footer {
    color: #d1d5db;
    background: #111827;
    padding: 56px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 34px;
}

.footer-brand {
    color: #ffffff;
    font-size: 21px;
}

.site-footer p {
    color: #9ca3af;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 10px;
}

.site-footer a:hover {
    color: #fdba74;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 36px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-top {
    color: #fdba74;
}

@media (max-width: 1120px) {
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

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

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

    .nav-bar {
        min-height: 68px;
    }

    .mobile-toggle {
        display: block;
        margin-left: auto;
    }

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

    .hero-carousel {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 54px 0 160px;
    }

    .hero-poster {
        width: min(320px, 82vw);
        height: 380px;
        margin: 0 auto;
        transform: none;
    }

    .hero-controls {
        flex-direction: column;
        align-items: stretch;
        bottom: 44px;
    }

    .hero-search {
        min-width: 0;
    }

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

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

    .poster-frame,
    .compact-grid .poster-frame,
    .search-grid .poster-frame {
        height: 210px;
    }

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

@media (max-width: 620px) {
    .container {
        width: min(100% - 24px, 1200px);
    }

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

    .hero-desc {
        font-size: 17px;
    }

    .hero-search {
        flex-direction: column;
        border-radius: 18px;
    }

    .hero-search button {
        min-height: 46px;
    }

    .stats-grid,
    .category-grid,
    .category-overview-grid,
    .footer-grid,
    .mini-links {
        grid-template-columns: 1fr;
    }

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

    .poster-frame,
    .compact-grid .poster-frame,
    .search-grid .poster-frame {
        height: 190px;
    }

    .card-body {
        padding: 12px;
    }

    .ranking-card {
        grid-template-columns: 46px 74px 1fr;
        gap: 12px;
        padding: 14px;
    }

    .ranking-card img {
        width: 74px;
        height: 102px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-card,
    .info-panel,
    .prose-card {
        padding: 20px;
    }

    .player-tools {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .player-tools button {
        padding: 8px 10px;
        font-size: 13px;
    }
}
