:root {
    --brand-a: #14b8a6;
    --brand-b: #2563eb;
    --brand-c: #f97316;
    --text: #111827;
    --muted: #6b7280;
    --soft: #f8fafc;
    --line: #e5e7eb;
    --dark: #0f172a;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 38%, #f8fafc 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.92);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 232px;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    font-size: 22px;
    background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-name {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #0f766e, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-sub {
    color: #64748b;
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    white-space: nowrap;
}

.desktop-nav a,
.mobile-nav a {
    color: #334155;
    font-weight: 700;
    position: relative;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--brand-a);
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 2px;
    background: var(--brand-a);
    transition: right 0.2s ease;
}

.desktop-nav a:hover::after {
    right: 0;
}

.nav-search {
    margin-left: auto;
    position: relative;
    width: min(300px, 28vw);
}

.nav-search input,
.hero-search input,
.page-filter input,
.page-filter select,
.search-page-input {
    width: 100%;
    height: 44px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    border-radius: 999px;
    padding: 0 18px;
    outline: none;
    background: rgba(248, 250, 252, 0.96);
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input:focus,
.hero-search input:focus,
.page-filter input:focus,
.page-filter select:focus,
.search-page-input:focus {
    border-color: rgba(20, 184, 166, 0.8);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.13);
    background: #ffffff;
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    max-height: 390px;
    overflow: auto;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 8px;
    z-index: 80;
}

.search-results.is-open {
    display: grid;
    gap: 6px;
}

.search-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.search-item:hover {
    background: #f0fdfa;
    transform: translateX(2px);
}

.search-item img {
    width: 48px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    background: linear-gradient(135deg, #ccfbf1, #dbeafe);
}

.search-item strong {
    display: block;
    font-size: 14px;
    line-height: 1.25;
}

.search-item span {
    color: var(--muted);
    font-size: 12px;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #f1f5f9;
    cursor: pointer;
    color: #334155;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    border-top: 1px solid #e2e8f0;
}

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
}

.hero-slider {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

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

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

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
}

.hero-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 25%, rgba(20, 184, 166, 0.45), transparent 32%),
        radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.42), transparent 35%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.55) 55%, rgba(15, 23, 42, 0.78));
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 380px;
    gap: 42px;
    align-items: center;
    padding: 80px 0 120px;
}

.hero-kicker {
    display: inline-flex;
    width: fit-content;
    gap: 8px;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    font-weight: 700;
}

.hero-title {
    margin: 20px 0 12px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.06em;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.hero-movie-title {
    display: block;
    margin: 0 0 18px;
    font-size: clamp(26px, 4vw, 44px);
    line-height: 1.1;
    font-weight: 900;
}

.hero-desc {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
    line-height: 1.8;
    text-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 900;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
}

.btn-light {
    color: #1d4ed8;
    background: #ffffff;
    box-shadow: 0 14px 28px rgba(255, 255, 255, 0.22);
}

.btn-ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.hero-panel {
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(20px);
    padding: 18px;
}

.hero-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    background: linear-gradient(135deg, #ccfbf1, #dbeafe);
}

.hero-panel-meta {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.hero-panel-meta strong {
    font-size: 22px;
}

.hero-panel-meta span {
    color: rgba(255, 255, 255, 0.78);
}

.hero-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    background: linear-gradient(180deg, transparent, rgba(248, 250, 252, 0.98));
    padding: 130px 0 20px;
    pointer-events: none;
}

.hero-tools {
    position: relative;
    z-index: 6;
    width: min(1180px, calc(100% - 32px));
    margin: -82px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    pointer-events: auto;
}

.hero-search {
    position: relative;
    border-radius: 28px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.hero-search input {
    height: 56px;
    border-radius: 18px;
    font-weight: 700;
}

.hero-dots {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: linear-gradient(135deg, var(--brand-a), var(--brand-b));
}

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

.section {
    margin-bottom: 82px;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 950;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, #0f766e, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-title::before {
    content: "";
    width: 8px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--brand-a), var(--brand-b));
}

.section-subtitle {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #ccfbf1, #dbeafe);
}

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

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

.card-badge,
.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand-c), #ef4444);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.22);
}

.card-score {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: #92400e;
    font-weight: 900;
    font-size: 12px;
    background: rgba(254, 243, 199, 0.95);
}

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

.movie-card h3 {
    margin: 0 0 8px;
    min-height: 42px;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.32;
    font-weight: 900;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: #64748b;
    font-size: 12px;
}

.card-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f1f5f9;
}

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

.category-card {
    display: grid;
    gap: 12px;
    min-height: 210px;
    padding: 26px;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff, #f0fdfa 54%, #eff6ff);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-card strong {
    font-size: 24px;
    font-weight: 950;
}

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

.category-link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.category-link-row span {
    color: #0f766e;
    background: #ccfbf1;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff, #eff6ff);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-cover {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #ccfbf1, #dbeafe);
}

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

.rank-badge {
    top: 8px;
    left: 8px;
    border-radius: 12px;
}

.rank-copy h3 {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 950;
}

.rank-copy p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.page-hero {
    background: linear-gradient(135deg, #14b8a6, #2563eb 64%, #1d4ed8);
    color: #ffffff;
    padding: 74px 0;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: -40% auto auto -8%;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    filter: blur(12px);
}

.page-hero-inner {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

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

.breadcrumb a {
    color: #0f766e;
    font-weight: 800;
}

.page-filter {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 16px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

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

.detail-main,
.detail-aside,
.content-panel {
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.detail-main {
    overflow: hidden;
}

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

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    color: #ffffff;
    cursor: pointer;
    background: #020617;
    overflow: hidden;
}

.player-cover.is-hidden {
    display: none;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.52;
    filter: saturate(1.04);
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(20, 184, 166, 0.12), rgba(2, 6, 23, 0.72));
}

.play-core {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    gap: 14px;
}

.play-icon {
    width: 84px;
    height: 84px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: #2563eb;
    font-size: 34px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
    transition: transform 0.22s ease;
}

.player-cover:hover .play-icon {
    transform: scale(1.08);
}

.play-core strong {
    font-size: 22px;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.46);
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 4;
    display: none;
    padding: 10px 14px;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.74);
    backdrop-filter: blur(10px);
}

.player-message.is-visible {
    display: block;
}

.detail-copy {
    padding: 30px;
}

.detail-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    color: #64748b;
}

.detail-meta span {
    padding: 7px 11px;
    border-radius: 999px;
    background: #f1f5f9;
    font-weight: 750;
}

.detail-one-line {
    margin: 0 0 20px;
    font-size: 18px;
    line-height: 1.75;
    color: #334155;
    font-weight: 750;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tag-row a,
.tag-row span {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    color: #0f766e;
    background: #ccfbf1;
    font-size: 13px;
    font-weight: 800;
}

.content-panel {
    padding: 28px;
    margin-top: 24px;
}

.content-panel h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    font-size: 24px;
    font-weight: 950;
}

.content-panel h2::before {
    content: "";
    width: 6px;
    height: 26px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--brand-a), var(--brand-b));
}

.content-panel p {
    margin: 0;
    color: #334155;
    line-height: 1.9;
    font-size: 16px;
}

.detail-aside {
    position: sticky;
    top: 100px;
    padding: 22px;
}

.detail-aside h2 {
    margin: 0 0 18px;
    font-size: 22px;
    font-weight: 950;
}

.side-list {
    display: grid;
    gap: 14px;
}

.side-card {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #f8fafc;
    transition: background 0.2s ease, transform 0.2s ease;
}

.side-card:hover {
    background: #f0fdfa;
    transform: translateX(3px);
}

.side-card img {
    width: 86px;
    height: 64px;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, #ccfbf1, #dbeafe);
}

.side-card strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.3;
}

.side-card span {
    color: var(--muted);
    font-size: 12px;
}

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

.search-page-box {
    max-width: 760px;
    margin: 0 auto 32px;
    position: relative;
}

.search-page-input {
    height: 60px;
    border-radius: 22px;
    font-size: 18px;
    padding: 0 22px;
}

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

.site-footer {
    margin-top: 40px;
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #111827);
}

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

.footer-inner h2,
.footer-inner h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.footer-inner p {
    margin: 0;
    line-height: 1.75;
}

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

.footer-links a:hover {
    color: #5eead4;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: #94a3b8;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

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

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

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

    .hero-inner {
        grid-template-columns: 1fr 320px;
    }
}

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

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

    .brand {
        min-width: 0;
    }

    .brand-name {
        font-size: 16px;
    }

    .hero-slider,
    .hero-inner {
        min-height: 740px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        padding-top: 54px;
        padding-bottom: 160px;
    }

    .hero-panel {
        display: none;
    }

    .hero-tools {
        grid-template-columns: 1fr;
        margin-top: -112px;
    }

    .hero-dots {
        width: fit-content;
    }

    .section-head {
        display: grid;
    }

    .movie-grid,
    .search-page-results {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-grid,
    .ranking-list,
    .detail-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .detail-aside {
        position: static;
    }

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

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

@media (max-width: 620px) {
    .nav-shell,
    .main,
    .page-hero-inner,
    .hero-inner,
    .hero-tools,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 24px, 1180px);
    }

    .brand-sub {
        display: none;
    }

    .hero-title {
        font-size: 38px;
    }

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

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

    .rank-item {
        grid-template-columns: 106px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .rank-cover {
        aspect-ratio: 3 / 4;
    }

    .detail-copy,
    .content-panel {
        padding: 22px;
    }

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