:root {
    --red: #dc2626;
    --red-dark: #b91c1c;
    --orange: #ea580c;
    --amber: #f59e0b;
    --blue: #2563eb;
    --cyan: #0891b2;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f8fafc;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

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

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

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

.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.28);
    font-size: 14px;
}

.logo-text {
    font-size: 25px;
    background: linear-gradient(90deg, var(--red), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #374151;
    font-weight: 700;
}

.main-nav a,
.nav-dropdown > button {
    border: 0;
    background: transparent;
    color: #374151;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.nav-dropdown:hover > button {
    color: var(--red);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    display: grid;
    min-width: 180px;
    padding: 8px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    padding: 10px 12px;
    border-radius: 10px;
    white-space: nowrap;
}

.dropdown-panel a:hover {
    background: #fef2f2;
}

.top-search,
.mobile-search,
.inline-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input,
.mobile-search input,
.inline-search input,
.filter-panel input,
.filter-panel select {
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #ffffff;
    color: var(--ink);
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
    width: 240px;
    padding: 10px 16px;
}

.top-search input:focus,
.mobile-search input:focus,
.inline-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.12);
}

.top-search button,
.mobile-search button,
.inline-search button,
.primary-button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.top-search button {
    padding: 10px 18px;
}

.top-search button:hover,
.mobile-search button:hover,
.inline-search button:hover,
.primary-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 16px 34px rgba(220, 38, 38, 0.3);
}

.mobile-toggle {
    display: none;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f3f4f6;
    color: var(--ink);
    font-size: 22px;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    border-top: 1px solid var(--line);
}

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

.mobile-panel a {
    padding: 10px 2px;
    font-weight: 700;
}

.mobile-search input {
    flex: 1;
    padding: 10px 14px;
}

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

.hero-slider {
    position: relative;
    background: #030712;
}

.hero-stage {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease, visibility 0.55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 35%, rgba(239, 68, 68, 0.35), transparent 26%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.55) 46%, rgba(0, 0, 0, 0.2)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent 52%);
}

.hero-content {
    position: absolute;
    left: max(48px, calc((100vw - 1180px) / 2));
    top: 50%;
    width: min(620px, calc(100% - 96px));
    transform: translateY(-50%);
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 16px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hero-content h1,
.hero-content h2 {
    margin: 0 0 16px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 620px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
}

.hero-tags,
.movie-tags,
.detail-stats,
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-tags span,
.movie-tags span {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    font-weight: 800;
}

.movie-tags span {
    background: #fef2f2;
    color: var(--red-dark);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 28px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 800;
}

.hero-meta span {
    display: inline-flex;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(12px);
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    font-weight: 900;
}

.ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    transition: background 0.2s ease, transform 0.2s ease;
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    font-size: 38px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.68);
    transform: translateY(-50%) scale(1.04);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 24px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

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

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

.quick-search-band {
    background: linear-gradient(90deg, #fff7ed, #fef2f2);
    border-bottom: 1px solid #fed7aa;
}

.quick-search-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 0;
}

.quick-search-inner h2 {
    margin: 0 0 4px;
    font-size: 26px;
}

.quick-search-inner p {
    margin: 0;
    color: var(--muted);
}

.inline-search {
    min-width: min(520px, 100%);
}

.inline-search input {
    flex: 1;
    padding: 13px 18px;
}

.inline-search button {
    padding: 13px 22px;
}

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

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
}

.section-title > span {
    width: 6px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--red), var(--orange));
}

.section-title h2 {
    flex: 1;
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    letter-spacing: -0.04em;
}

.section-title a {
    color: var(--red);
    font-weight: 900;
}

.blue-title > span {
    background: linear-gradient(180deg, var(--blue), var(--cyan));
}

.amber-title > span {
    background: linear-gradient(180deg, var(--amber), var(--orange));
}

.light-title {
    color: #ffffff;
}

.light-title a {
    color: #fde68a;
}

.light-title > span {
    background: linear-gradient(180deg, #fbbf24, #f97316);
}

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

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(248, 113, 113, 0.55);
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #7f1d1d);
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 45%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(220, 38, 38, 0.9);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: 0.25s ease;
}

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

.movie-type,
.movie-score,
.rank-number {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.movie-type {
    left: 10px;
    top: 10px;
    padding: 5px 10px;
    background: rgba(220, 38, 38, 0.92);
}

.movie-score {
    right: 10px;
    top: 10px;
    padding: 5px 9px;
    background: rgba(0, 0, 0, 0.62);
}

.rank-number {
    left: 10px;
    bottom: 10px;
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-style: normal;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

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

.movie-card-body h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card-body h3 a:hover {
    color: var(--red);
}

.movie-card-body p {
    display: -webkit-box;
    min-height: 45px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    gap: 6px;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.movie-meta span {
    padding: 3px 7px;
    border-radius: 999px;
    background: #f1f5f9;
}

.movie-tags {
    gap: 6px;
}

.movie-tags span {
    font-size: 11px;
}

.soft-section {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.dark-section {
    background: linear-gradient(135deg, #111827, #030712);
}

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

.category-tile {
    display: grid;
    gap: 8px;
    min-height: 142px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    transition: transform 0.2s ease, background 0.2s ease;
}

.category-tile:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.32), rgba(249, 115, 22, 0.12));
    transform: translateY(-4px);
}

.category-tile span {
    font-size: 22px;
    font-weight: 900;
}

.category-tile small {
    color: rgba(255, 255, 255, 0.72);
}

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

.movie-card-featured {
    background: rgba(255, 255, 255, 0.96);
}

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

.compact-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.compact-card:hover {
    border-color: rgba(220, 38, 38, 0.4);
    transform: translateY(-2px);
}

.compact-card img {
    width: 80px;
    height: 108px;
    border-radius: 12px;
    object-fit: cover;
    background: #111827;
}

.compact-info {
    display: grid;
    gap: 6px;
}

.compact-info strong {
    font-size: 17px;
}

.compact-info small {
    color: var(--muted);
}

.compact-rank {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--red));
    font-weight: 900;
}

.page-hero {
    position: relative;
    color: #ffffff;
    background:
        radial-gradient(circle at 82% 18%, rgba(249, 115, 22, 0.45), transparent 24%),
        linear-gradient(135deg, #111827, #7f1d1d 58%, #111827);
}

.simple-hero .section-inner {
    padding: 74px 0 70px;
}

.simple-hero h1 {
    max-width: 820px;
    margin: 0 0 14px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.simple-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.breadcrumb-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
}

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

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

.category-overview-card {
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.category-overview-head h2 {
    margin: 0 0 8px;
    font-size: 27px;
}

.category-overview-head p {
    margin: 0 0 16px;
    color: var(--muted);
}

.category-overview-head a {
    display: inline-flex;
    color: var(--red);
    font-weight: 900;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 16px;
    margin-bottom: 24px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 900;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    padding: 12px 14px;
}

.empty-state {
    margin: 32px 0 0;
    padding: 34px;
    border-radius: 24px;
    color: var(--muted);
    background: #f8fafc;
    text-align: center;
    font-weight: 800;
}

.detail-top {
    color: #ffffff;
    background:
        radial-gradient(circle at 16% 16%, rgba(239, 68, 68, 0.38), transparent 24%),
        linear-gradient(135deg, #030712, #111827 54%, #7f1d1d);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(360px, 0.8fr);
    gap: 34px;
    align-items: center;
    padding: 44px 0;
}

.player-panel {
    min-width: 0;
}

.player-box {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    background: #000000;
    opacity: 1;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-cover-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 45%, rgba(239, 68, 68, 0.32), transparent 28%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.32));
}

.player-button {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.42);
    font-size: 30px;
}

.detail-info h1 {
    margin: 22px 0 14px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.06;
    letter-spacing: -0.05em;
}

.detail-one-line {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.detail-stats {
    margin-bottom: 18px;
}

.detail-stats span {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 900;
}

.detail-tags span {
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
}

.detail-info .primary-button {
    margin-top: 22px;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 48px 0 0;
}

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

.detail-content h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.detail-content p + h2,
.info-list + h2 {
    margin-top: 28px;
}

.detail-content p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.info-list div {
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
}

.info-list dt {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.info-list dd {
    margin: 5px 0 0;
    font-weight: 900;
}

.site-footer {
    margin-top: 20px;
    color: #d1d5db;
    background: linear-gradient(180deg, #111827, #030712);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
    gap: 32px;
    padding: 48px 0;
}

.footer-logo {
    color: #ffffff;
    font-size: 22px;
}

.footer-brand p,
.footer-group p {
    color: #9ca3af;
}

.footer-group h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 17px;
}

.footer-group ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-group a:hover {
    color: #fca5a5;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 16px;
    color: #9ca3af;
    text-align: center;
}

@media (max-width: 1100px) {
    .top-search {
        display: none;
    }

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

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

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

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

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

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

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

    .main-nav {
        display: none;
    }

    .mobile-toggle {
        display: grid;
        place-items: center;
    }

    .logo-text {
        font-size: 21px;
    }

    .hero-stage {
        height: 560px;
    }

    .hero-content {
        left: 22px;
        width: calc(100% - 44px);
    }

    .hero-content p {
        font-size: 17px;
    }

    .hero-arrow {
        display: none;
    }

    .quick-search-inner {
        align-items: stretch;
        flex-direction: column;
    }

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

    .movie-grid,
    .library-grid,
    .rank-grid,
    .compact-grid,
    .poster-strip,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }

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

    .detail-layout {
        padding: 28px 0;
    }

    .player-box {
        border-radius: 18px;
    }

    .detail-content article {
        padding: 22px;
    }

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

@media (max-width: 520px) {
    .header-inner,
    .section-inner,
    .footer-inner,
    .mobile-panel {
        width: min(100% - 24px, 1180px);
    }

    .movie-grid,
    .library-grid,
    .rank-grid,
    .compact-grid,
    .poster-strip {
        grid-template-columns: 1fr;
    }

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

    .hero-stage {
        height: 520px;
    }

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

    .hero-meta {
        gap: 8px;
    }

    .simple-hero .section-inner {
        padding: 54px 0;
    }

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