* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #e5e7eb;
    background: #020617;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(18px);
}

.nav-shell {
    display: flex;
    align-items: center;
    gap: 28px;
    width: min(1280px, calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981, #22d3ee);
    box-shadow: 0 0 28px rgba(16, 185, 129, 0.45);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 1;
}

.nav-link,
.mobile-link {
    color: #cbd5e1;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: #34d399;
}

.header-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    width: 320px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.84);
}

.header-search input,
.mobile-search input,
.filter-field input,
.filter-field select {
    width: 100%;
    color: #ffffff;
    border: 0;
    outline: 0;
    background: transparent;
}

.header-search input {
    padding: 11px 14px 11px 18px;
}

.header-search button,
.mobile-search button {
    margin-right: 4px;
    padding: 8px 14px;
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    background: #10b981;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.9);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: #e5e7eb;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-panel {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0 22px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}

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

.mobile-link {
    display: block;
    padding: 11px 0;
}

.mobile-search {
    display: flex;
    align-items: center;
    margin-top: 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.84);
}

.mobile-search input {
    padding: 12px 16px;
}

.mobile-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.mobile-category-links a {
    padding: 7px 12px;
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
}

.hero-carousel {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.35), transparent 30%), #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.82) 42%, rgba(2, 6, 23, 0.35) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.08) 44%, rgba(2, 6, 23, 0.28) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    max-width: 720px;
    padding-top: 40px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 5px 12px;
    color: #6ee7b7;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(16, 185, 129, 0.45);
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
}

.hero-content h1,
.page-hero h1 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.03;
    letter-spacing: -0.06em;
}

.hero-content p,
.page-hero p,
.section-intro p {
    margin: 0;
    max-width: 820px;
    color: #cbd5e1;
    font-size: 18px;
}

.hero-tags,
.tag-row,
.detail-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;
    padding: 5px 10px;
    color: #d1fae5;
    font-size: 12px;
    border: 1px solid rgba(52, 211, 153, 0.25);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.68);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 22px;
    color: #cbd5e1;
}

.hero-stats span {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
}

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

.primary-button,
.secondary-button,
.more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    font-weight: 800;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #0ea5e9);
    box-shadow: 0 18px 36px rgba(16, 185, 129, 0.25);
}

.secondary-button,
.more-link {
    color: #d1fae5;
    border: 1px solid rgba(52, 211, 153, 0.3);
    background: rgba(15, 23, 42, 0.78);
}

.primary-button:hover,
.secondary-button:hover,
.more-link:hover,
.category-tile:hover,
.movie-card:hover {
    transform: translateY(-3px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.58);
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-arrow-left {
    left: 24px;
}

.hero-arrow-right {
    right: 24px;
}

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

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

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

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

.section-shell {
    padding: 72px 0;
}

.no-side-padding {
    width: 100%;
}

.page-shell,
.detail-shell {
    padding: 46px 0 72px;
}

.section-intro {
    padding-top: 50px;
    padding-bottom: 30px;
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.8fr);
    gap: 28px;
    align-items: center;
    padding: 30px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(5, 46, 22, 0.42));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.intro-grid h2,
.section-heading h2,
.category-overview-head h2,
.detail-content h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: -0.04em;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.quick-stats span {
    display: block;
    padding: 18px;
    text-align: center;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.48);
}

.quick-stats strong {
    display: block;
    color: #6ee7b7;
    font-size: 30px;
}

.section-heading,
.category-overview-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.compact-heading {
    margin-bottom: 16px;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

.six-cols {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

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

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

.movie-card {
    min-width: 0;
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.62);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    box-shadow: 0 24px 50px rgba(16, 185, 129, 0.14);
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(14, 165, 233, 0.16)),
        #0f172a;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

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

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

.poster-badge,
.poster-duration {
    position: absolute;
    top: 10px;
    z-index: 2;
    padding: 4px 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.88);
}

.poster-badge {
    left: 10px;
}

.poster-duration {
    right: 10px;
    background: rgba(2, 6, 23, 0.78);
}

.poster-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.22));
    transition: opacity 0.25s ease;
}

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

.poster-overlay span {
    padding: 11px 18px;
    border-radius: 999px;
    background: #10b981;
    box-shadow: 0 14px 28px rgba(16, 185, 129, 0.3);
}

.movie-card-body {
    padding: 13px 4px 4px;
}

.movie-card h3 {
    margin: 0 0 6px;
    overflow: hidden;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card p {
    min-height: 42px;
    margin: 0 0 10px;
    overflow: hidden;
    color: #94a3b8;
    font-size: 13px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #cbd5e1;
    font-size: 12px;
}

.movie-card .tag-row {
    margin-top: 10px;
}

.movie-card .tag-row span {
    padding: 3px 8px;
    color: #a7f3d0;
    font-size: 11px;
}

.feature-band {
    background:
        radial-gradient(circle at 85% 10%, rgba(14, 165, 233, 0.22), transparent 28%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.98));
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.72);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.22;
}

.category-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.25));
}

.category-tile strong,
.category-tile em,
.category-tile p {
    position: relative;
    z-index: 2;
    display: block;
}

.category-tile strong {
    margin-top: 46px;
    color: #ffffff;
    font-size: 26px;
}

.category-tile em {
    margin: 8px 0 12px;
    color: #6ee7b7;
    font-style: normal;
    font-weight: 800;
}

.category-tile p {
    color: #cbd5e1;
    font-size: 14px;
}

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

.rank-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.9));
}

.rank-item {
    display: grid;
    grid-template-columns: 44px 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.rank-number {
    color: #6ee7b7;
    font-size: 20px;
    font-weight: 900;
}

.rank-item img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.9);
}

.rank-info strong,
.rank-info em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info strong {
    color: #ffffff;
    font-size: 14px;
}

.rank-info em {
    color: #94a3b8;
    font-size: 12px;
    font-style: normal;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 34px;
    padding: 56px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 34px;
    background:
        radial-gradient(circle at 15% 20%, rgba(16, 185, 129, 0.32), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.22), transparent 24%),
        linear-gradient(135deg, #0f172a, #020617);
}

.compact-page-hero h1,
.category-page-hero h1 {
    font-size: clamp(38px, 5vw, 62px);
}

.filter-panel {
    display: flex;
    align-items: end;
    gap: 16px;
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.78);
}

.filter-field {
    min-width: 170px;
}

.grow-field {
    flex: 1;
}

.filter-field label {
    display: block;
    margin-bottom: 7px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
}

.filter-field input,
.filter-field select {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 14px;
    background: rgba(2, 6, 23, 0.62);
}

.filter-count,
.search-summary {
    color: #a7f3d0;
    font-weight: 800;
}

.search-summary {
    margin: 18px 0 26px;
}

.category-overview-block {
    margin-bottom: 46px;
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.54);
}

.small-button {
    min-height: 40px;
    padding: 0 16px;
    font-size: 14px;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 22px;
    color: #94a3b8;
    font-size: 14px;
}

.breadcrumb a {
    color: #a7f3d0;
}

.player-section {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.8fr);
    gap: 26px;
    align-items: stretch;
    margin-bottom: 34px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #ffffff;
    border: 0;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18), rgba(2, 6, 23, 0.58));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.player-start span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: linear-gradient(135deg, #10b981, #0ea5e9);
    box-shadow: 0 18px 45px rgba(16, 185, 129, 0.38);
}

.player-copy {
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.92));
}

.player-copy h1 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.1;
}

.player-copy p {
    color: #cbd5e1;
}

.detail-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 30px;
    margin-bottom: 24px;
}

.detail-poster-card {
    position: sticky;
    top: 96px;
    align-self: start;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 26px;
    background: rgba(15, 23, 42, 0.78);
}

.detail-poster-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(14, 165, 233, 0.14));
}

.full-button {
    width: 100%;
    margin-top: 14px;
}

.detail-content {
    padding: 28px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.62);
}

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

.detail-content h2:first-child {
    margin-top: 0;
}

.detail-content p {
    margin: 0 0 12px;
    color: #cbd5e1;
    font-size: 16px;
}

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

.info-list div {
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.4);
}

.info-list dt {
    color: #94a3b8;
    font-size: 12px;
    font-weight: 800;
}

.info-list dd {
    margin: 4px 0 0;
    color: #ffffff;
}

.info-list a {
    color: #6ee7b7;
}

.large-tags span {
    padding: 7px 12px;
    font-size: 13px;
}

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

.sitemap-block {
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.62);
}

.sitemap-block h2 {
    display: flex;
    justify-content: space-between;
    margin: 0 0 14px;
    color: #ffffff;
}

.sitemap-block h2 span {
    color: #6ee7b7;
    font-size: 14px;
}

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

.sitemap-block li {
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.sitemap-block a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    color: #e5e7eb;
    font-size: 14px;
}

.sitemap-block a span {
    flex-shrink: 0;
    color: #94a3b8;
}

.site-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-shell {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
}

.footer-brand p,
.site-footer li a {
    color: #94a3b8;
}

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

.site-footer li {
    margin-bottom: 8px;
}

.site-footer li a:hover {
    color: #6ee7b7;
}

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

.footer-bottom p {
    margin: 0;
}

.hidden-by-filter {
    display: none !important;
}

@media (max-width: 1180px) {
    .six-cols,
    .five-cols {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .header-search {
        width: 260px;
    }
}

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

    .nav-shell {
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
    }

    .hero-carousel {
        min-height: 78vh;
    }

    .hero-content {
        padding: 80px 0 50px;
    }

    .hero-content h1,
    .page-hero h1 {
        font-size: clamp(38px, 13vw, 58px);
    }

    .hero-arrow {
        display: none;
    }

    .intro-grid,
    .split-layout,
    .player-section,
    .detail-grid,
    .footer-shell {
        grid-template-columns: 1fr;
    }

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

    .category-grid,
    .six-cols,
    .five-cols,
    .four-cols,
    .three-cols {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filter-panel {
        align-items: stretch;
        flex-direction: column;
    }

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

@media (max-width: 620px) {
    .section-shell,
    .page-shell,
    .detail-shell,
    .nav-shell,
    .mobile-panel,
    .footer-shell,
    .footer-bottom {
        width: min(100% - 22px, 1280px);
    }

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

    .hero-content p,
    .page-hero p,
    .section-intro p {
        font-size: 16px;
    }

    .page-hero {
        padding: 34px 22px;
        border-radius: 24px;
    }

    .section-shell {
        padding: 46px 0;
    }

    .category-grid,
    .six-cols,
    .five-cols,
    .four-cols,
    .three-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .movie-card h3 {
        font-size: 15px;
    }

    .movie-card p {
        display: none;
    }

    .quick-stats {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .category-overview-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .player-copy,
    .detail-content,
    .category-overview-block {
        padding: 20px;
    }

    .sitemap-block a {
        display: block;
    }

    .sitemap-block a span {
        display: block;
        margin-top: 3px;
    }
}
