:root {
    --brand-orange: #ea580c;
    --brand-red: #dc2626;
    --brand-yellow: #f97316;
    --text-main: #111827;
    --text-muted: #6b7280;
    --line: #e5e7eb;
    --card: #ffffff;
    --bg: #f9fafb;
    --dark: #111827;
    --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
    --soft-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-red));
    box-shadow: 0 12px 28px rgba(185, 28, 28, 0.22);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    width: min(1180px, calc(100% - 32px));
    height: 66px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding-left: 2px;
    color: var(--brand-orange);
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 10px 20px rgba(17, 24, 39, 0.15);
}

.brand-name {
    font-size: 1.25rem;
}

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

.nav-link {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.header-search,
.mobile-search,
.hero-search {
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.header-search input,
.mobile-search input,
.hero-search input {
    width: 210px;
    border: 0;
    outline: 0;
    padding: 10px 14px;
    color: var(--text-main);
    background: transparent;
}

.header-search button,
.mobile-search button,
.hero-search button {
    border: 0;
    padding: 10px 16px;
    color: #ffffff;
    background: var(--brand-orange);
    cursor: pointer;
    transition: background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover {
    background: #c2410c;
}

.menu-toggle {
    display: none;
    border: 0;
    color: #ffffff;
    background: transparent;
    font-size: 1.8rem;
    cursor: pointer;
}

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

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

.mobile-search {
    margin: 4px 0 14px;
}

.mobile-search input {
    width: 100%;
}

.mobile-nav-link {
    display: block;
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
    color: #fff7ed;
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.hero-track {
    min-height: 640px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 48px;
    padding: 74px max(32px, calc((100vw - 1180px) / 2)) 112px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.66), rgba(17, 24, 39, 0.28)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.2) 44%, rgba(17, 24, 39, 0.7)),
        var(--hero-image) center / cover no-repeat;
    transform: scale(1.04);
}

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

.hero-copy,
.hero-poster {
    position: relative;
    z-index: 1;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    padding: 7px 14px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-red));
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 18px 0 16px;
    font-size: clamp(2.4rem, 5vw, 4.85rem);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-copy p {
    max-width: 700px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.08rem;
}

.hero-meta,
.detail-meta,
.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-meta span,
.detail-meta span,
.card-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.86rem;
}

.hero-meta span,
.detail-meta span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.hero-tags span,
.tag-row span {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
}

.hero-tags span {
    color: #ffedd5;
    background: rgba(234, 88, 12, 0.22);
    border: 1px solid rgba(251, 146, 60, 0.32);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    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(90deg, var(--brand-orange), var(--brand-red));
    box-shadow: 0 12px 22px rgba(234, 88, 12, 0.24);
}

.btn.ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.btn.ghost.light {
    background: rgba(255, 255, 255, 0.18);
}

.hero-poster {
    display: block;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    padding-left: 4px;
    color: var(--brand-orange);
    background: #ffffff;
    border-radius: 999px;
    font-size: 1.5rem;
}

.hero-controls {
    position: absolute;
    right: max(32px, calc((100vw - 1180px) / 2));
    bottom: 42px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-controls button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

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

.hero-dot {
    width: 10px !important;
    height: 10px !important;
    padding: 0;
    background: rgba(255, 255, 255, 0.45) !important;
}

.hero-dot.active {
    width: 28px !important;
    background: #ffffff !important;
}

.hero-mini-list {
    position: absolute;
    left: max(32px, calc((100vw - 1180px) / 2));
    bottom: 34px;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: min(560px, calc(100% - 64px));
}

.mini-card {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.mini-card img {
    width: 46px;
    height: 62px;
    object-fit: cover;
    border-radius: 10px;
}

.mini-card span {
    overflow: hidden;
    font-size: 0.86rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.section-raised {
    margin-top: -46px;
    position: relative;
    z-index: 3;
}

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

.section-heading h2 {
    margin: 10px 0 0;
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1.1;
}

.section-heading a {
    color: var(--brand-orange);
    font-weight: 800;
}

.section-heading.simple {
    display: block;
}

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

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

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

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

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fecaca);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.28s ease;
}

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

.card-category {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    color: #ffffff;
    background: var(--brand-orange);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.play-pill {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    padding-left: 3px;
    color: var(--brand-orange);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-body {
    padding: 16px;
}

.card-body h3 {
    display: -webkit-box;
    min-height: 52px;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--text-main);
    font-size: 1.08rem;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-body h3 a:hover {
    color: var(--brand-orange);
}

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

.card-meta span {
    color: #4b5563;
    background: #f3f4f6;
}

.tag-row {
    margin-top: 12px;
}

.tag-row span {
    color: #c2410c;
    background: #fff7ed;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
    align-items: start;
}

.rank-box {
    position: sticky;
    top: 92px;
    padding: 22px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: var(--soft-shadow);
}

.rank-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.rank-head h2 {
    margin: 0;
    font-size: 1.4rem;
}

.rank-box ol {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-box a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.rank-box a:hover {
    background: #fff7ed;
}

.rank-no {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-red));
    border-radius: 999px;
    font-weight: 900;
}

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

.rank-score {
    color: var(--brand-orange);
    font-weight: 900;
}

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

.category-tile,
.category-card-large a {
    display: block;
    min-height: 142px;
    padding: 22px;
    color: #ffffff;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.26), transparent 34%),
        linear-gradient(135deg, var(--brand-orange), var(--brand-red));
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(234, 88, 12, 0.18);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.category-card-large a:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 52px rgba(234, 88, 12, 0.28);
}

.category-tile strong,
.category-card-large h2 {
    display: block;
    margin: 0 0 10px;
    font-size: 1.2rem;
}

.category-tile span,
.category-card-large p {
    display: block;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.92rem;
}

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

.category-icon {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    margin-bottom: 22px;
    color: var(--brand-orange);
    background: #ffffff;
    border-radius: 16px;
    font-weight: 900;
}

.page-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 300px;
    padding: 58px max(32px, calc((100vw - 1180px) / 2));
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(120deg, #ea580c, #dc2626 58%, #7f1d1d);
}

.small-hero {
    min-height: 260px;
}

.page-hero h1 {
    margin: 16px 0 10px;
    font-size: clamp(2.1rem, 4vw, 4rem);
    line-height: 1.05;
}

.page-hero p {
    max-width: 680px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
}

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 18px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: var(--soft-shadow);
}

.filter-panel input {
    flex: 1 1 280px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 16px;
    outline: 0;
}

.filter-panel input:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.1);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-buttons button {
    border: 0;
    padding: 9px 14px;
    color: #4b5563;
    background: #f3f4f6;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.filter-buttons button:hover,
.filter-buttons button.active {
    color: #ffffff;
    background: var(--brand-orange);
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 92px 54px minmax(0, 1fr) 90px;
    gap: 18px;
    align-items: center;
    padding: 14px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: var(--soft-shadow);
}

.ranking-poster img {
    width: 92px;
    height: 64px;
    object-fit: cover;
    border-radius: 14px;
}

.ranking-index {
    color: var(--brand-orange);
    font-size: 1.7rem;
    font-weight: 900;
}

.ranking-info h2 {
    margin: 0 0 6px;
    font-size: 1.2rem;
}

.ranking-info h2 a:hover {
    color: var(--brand-orange);
}

.ranking-info p {
    display: -webkit-box;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 0.92rem;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-score {
    text-align: center;
    color: var(--brand-orange);
}

.ranking-score strong {
    display: block;
    font-size: 1.65rem;
    line-height: 1;
}

.ranking-score span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.search-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.search-result-head h2 {
    margin: 0;
    font-size: 1.8rem;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.42)),
        var(--detail-image) center / cover no-repeat;
    filter: saturate(1.04);
    transform: scale(1.04);
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 58px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 26px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.32);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-copy h1 {
    margin: 16px 0 14px;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 1.06;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
}

.detail-section {
    padding-bottom: 20px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    width: 100%;
    background: #000000;
    border-radius: 28px;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 8px;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle, rgba(234, 88, 12, 0.36), transparent 32%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28));
    cursor: pointer;
}

.player-overlay.hidden {
    display: none;
}

.big-play {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    padding-left: 6px;
    color: var(--brand-orange);
    background: #ffffff;
    border-radius: 999px;
    font-size: 2rem;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
}

.player-overlay strong {
    font-size: 1.4rem;
}

.player-overlay small {
    max-width: 80%;
    color: rgba(255, 255, 255, 0.82);
}

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

.content-card {
    padding: 26px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: var(--soft-shadow);
}

.content-card h2 {
    margin: 0 0 12px;
    font-size: 1.45rem;
}

.content-card p {
    margin: 0;
    color: #374151;
}

.meta-card {
    grid-column: 1 / -1;
}

.meta-card dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.meta-card div {
    padding: 14px;
    background: #f9fafb;
    border-radius: 14px;
}

.meta-card dt {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.meta-card dd {
    margin: 4px 0 0;
    font-weight: 800;
}

.meta-card a {
    color: var(--brand-orange);
}

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

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937 55%, #111827);
}

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

.footer-brand p {
    max-width: 430px;
    margin: 16px 0 0;
    color: #9ca3af;
}

.footer-logo .brand-mark {
    color: #111827;
}

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

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

.footer-links a {
    color: #9ca3af;
}

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

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

[data-movie-card].hidden {
    display: none !important;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 42px;
    color: var(--text-muted);
    background: #ffffff;
    border-radius: 22px;
    text-align: center;
    box-shadow: var(--soft-shadow);
}

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

    .header-search {
        margin-left: auto;
    }

    .menu-toggle {
        display: block;
    }

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

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

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

    .split-section {
        grid-template-columns: 1fr;
    }

    .rank-box {
        position: static;
    }
}

@media (max-width: 820px) {
    .header-inner {
        gap: 12px;
    }

    .header-search {
        display: none;
    }

    .hero,
    .hero-track {
        min-height: 720px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 42px 18px 180px;
    }

    .hero-poster {
        width: min(230px, 70vw);
        margin: 0 auto;
        transform: rotate(0deg);
    }

    .hero-controls {
        left: 18px;
        right: auto;
        bottom: 116px;
    }

    .hero-mini-list {
        left: 18px;
        right: 18px;
        bottom: 24px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: auto;
    }

    .section,
    .detail-hero-inner {
        width: min(100% - 28px, 1180px);
    }

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

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

    .page-hero {
        display: block;
        padding: 44px 18px;
    }

    .hero-search {
        margin-top: 24px;
    }

    .hero-search input {
        width: 100%;
    }

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

    .ranking-index,
    .ranking-score {
        display: none;
    }

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

    .detail-poster {
        width: min(230px, 72vw);
    }

    .detail-content,
    .meta-card dl,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .search-result-head {
        display: block;
    }

    .search-shortcuts {
        margin-top: 12px;
    }
}

@media (max-width: 520px) {
    .brand-name {
        font-size: 1.05rem;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .movie-grid,
    .compact-grid,
    .category-movie-grid,
    .related-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .detail-copy h1 {
        font-size: 2.15rem;
    }

    .hero-mini-list {
        display: none;
    }

    .hero,
    .hero-track {
        min-height: 660px;
    }

    .hero-slide {
        padding-bottom: 100px;
    }

    .hero-controls {
        bottom: 32px;
    }

    .filter-panel {
        display: block;
    }

    .filter-panel input {
        width: 100%;
        margin-bottom: 12px;
    }
}
