:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-100: #f1f5f9;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-500: #64748b;
    --gray-700: #334155;
    --cyan-500: #06b6d4;
    --cyan-600: #0891b2;
    --blue-600: #2563eb;
    --yellow-400: #facc15;
    --orange-500: #f97316;
    --pink-500: #ec4899;
    --white: #ffffff;
    --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.16);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.12);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.image-empty {
    opacity: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: var(--white);
    background: linear-gradient(90deg, var(--slate-900), var(--slate-800));
    box-shadow: 0 10px 28px rgba(2, 6, 23, 0.3);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

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

.site-logo span:last-child,
.footer-logo span:last-child {
    background: linear-gradient(90deg, #67e8f9, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    font-size: 14px;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

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

.nav-link {
    opacity: 0.88;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #67e8f9;
    opacity: 1;
}

.mobile-toggle {
    display: none;
    border: 0;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

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

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

.mobile-link {
    padding: 11px 14px;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.88);
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.page-main {
    min-height: 60vh;
}

.hero-slider {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: var(--slate-900);
}

.hero-slides,
.hero-slide {
    min-height: 640px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 48px;
    padding: 72px max(32px, calc((100vw - 1180px) / 2)) 82px;
    color: var(--white);
    background-size: cover;
    background-position: center;
    transition: opacity 0.65s ease, visibility 0.65s ease;
}

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle at 20% 20%, rgba(14, 165, 233, 0.22), transparent 35%), radial-gradient(circle at 85% 10%, rgba(250, 204, 21, 0.12), transparent 28%);
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--yellow-400);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 13px;
}

.hero-content h1 {
    max-width: 820px;
    margin: 16px 0 18px;
    color: var(--white);
    font-size: clamp(44px, 6vw, 78px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 24px;
    color: rgba(226, 232, 240, 0.96);
    font-size: clamp(18px, 2vw, 23px);
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.hero-meta span,
.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(14, 165, 233, 0.16);
    border: 1px solid rgba(103, 232, 249, 0.22);
    font-size: 14px;
}

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

.primary-button,
.ghost-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-button {
    color: var(--white);
    background: linear-gradient(90deg, var(--cyan-500), var(--blue-600));
    box-shadow: 0 16px 36px rgba(8, 145, 178, 0.36);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.ghost-button {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(14px);
}

.hero-poster {
    display: block;
    overflow: hidden;
    border-radius: 30px;
    min-height: 480px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.35), rgba(37, 99, 235, 0.18));
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
}

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

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(6, 182, 212, 0.88);
    box-shadow: 0 16px 40px rgba(6, 182, 212, 0.42);
}

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

.hero-dots button {
    width: 34px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    transition: width 0.22s ease, background 0.22s ease;
}

.hero-dots button.active {
    width: 56px;
    background: var(--cyan-500);
}

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

.feature-band {
    padding-top: 82px;
}

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

.inline-heading {
    align-items: center;
}

.section-heading h2 {
    margin: 6px 0 4px;
    color: #1f2937;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 0;
    color: var(--gray-500);
}

.section-more {
    min-height: 40px;
    color: var(--cyan-600);
    background: #ecfeff;
}

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

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

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

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

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

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.18);
}

.poster-link,
.poster-wrap {
    display: block;
}

.poster-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #dbeafe, #cffafe 48%, #f8fafc);
}

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

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

.type-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    max-width: calc(100% - 24px);
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--white);
    background: var(--orange-500);
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
}

.rank-badge {
    left: 12px;
    right: auto;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 3px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(6, 182, 212, 0.9);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

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

.movie-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: #111827;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: var(--cyan-600);
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
    color: var(--gray-500);
    font-size: 13px;
}

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

.tag-row,
.detail-tags,
.overview-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span,
.detail-tags span,
.overview-tags span {
    padding: 4px 8px;
    border-radius: 8px;
    color: var(--gray-500);
    background: var(--gray-100);
    font-size: 12px;
}

.compact .movie-title {
    min-height: 42px;
    font-size: 15px;
}

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

.compact .movie-card-body p {
    min-height: 44px;
    font-size: 13px;
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    padding: 22px;
    border-radius: var(--radius-md);
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
    box-shadow: var(--shadow-card);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.94));
}

.category-tile strong,
.category-tile em,
.category-tile small,
.category-glow {
    position: relative;
    z-index: 2;
}

.category-tile strong {
    font-size: 24px;
    line-height: 1.2;
}

.category-tile em {
    color: #cffafe;
    font-size: 14px;
    font-style: normal;
}

.category-tile small {
    display: -webkit-box;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.75);
    font-size: 12px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-tile:hover img {
    opacity: 0.38;
    transform: scale(1.08);
}

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

.rank-panel {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
    box-shadow: var(--shadow-soft);
}

.sticky-panel {
    position: sticky;
    top: 96px;
}

.rank-panel-head {
    padding: 24px 24px 12px;
    color: var(--white);
}

.rank-panel-head span {
    color: var(--yellow-400);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rank-panel-head h2 {
    margin: 4px 0 0;
    font-size: 28px;
}

.rank-list {
    display: grid;
    gap: 2px;
    padding: 0 14px 16px;
}

.rank-item {
    display: grid;
    grid-template-columns: 30px 54px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.88);
    transition: background 0.2s ease, color 0.2s ease;
}

.rank-item:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.rank-number {
    color: var(--yellow-400);
    font-size: 20px;
    font-weight: 900;
    text-align: center;
}

.rank-item img {
    width: 54px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
}

.rank-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

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

.rank-copy strong {
    font-size: 14px;
}

.rank-copy em {
    color: rgba(226, 232, 240, 0.68);
    font-size: 12px;
    font-style: normal;
}

.sub-hero {
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-600), var(--blue-600) 48%, var(--slate-900));
}

.sub-hero > div {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 82px 0;
}

.sub-hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.sub-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 19px;
}

.rank-hero {
    background: linear-gradient(135deg, #7c3aed, #db2777 46%, var(--slate-900));
}

.search-hero {
    background: linear-gradient(135deg, #0f766e, #0891b2 44%, var(--slate-900));
}

.category-hero {
    background: linear-gradient(135deg, var(--slate-900), var(--cyan-600));
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
    overflow: hidden;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.category-cover {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

.category-cover span {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: inline-flex;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--white);
    background: rgba(8, 145, 178, 0.92);
    font-weight: 800;
}

.category-overview-card h2 {
    margin: 8px 0 8px;
    color: #111827;
    font-size: 26px;
}

.category-overview-card h2 a:hover {
    color: var(--cyan-600);
}

.category-overview-card p {
    margin: 0 0 18px;
    color: var(--gray-500);
}

.local-search {
    margin-top: 26px;
}

.local-search input,
.search-panel input,
.search-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 999px;
    padding: 0 18px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.94);
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.local-search input:focus,
.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--cyan-500);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

.small-search {
    width: min(260px, 100%);
    margin-top: 0;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 220px 220px;
    gap: 14px;
    max-width: 900px;
    margin-top: 30px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
}

.search-panel label {
    display: grid;
    gap: 8px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
    font-weight: 800;
}

.breadcrumb-bar {
    width: min(1180px, calc(100% - 32px));
    margin: 24px auto 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--gray-500);
    font-size: 14px;
}

.breadcrumb-bar a:hover {
    color: var(--cyan-600);
}

.breadcrumb-bar strong {
    color: #111827;
}

.watch-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 22px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.movie-player {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000000;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.player-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    object-fit: cover;
}

.player-start {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.28), rgba(2, 6, 23, 0.72));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-start span {
    width: 82px;
    height: 82px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
    box-shadow: 0 18px 48px rgba(6, 182, 212, 0.42);
    font-size: 30px;
}

.player-start strong {
    font-size: 20px;
}

.movie-player.is-playing .player-start {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-card,
.side-info {
    margin-top: 24px;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-card);
}

.detail-card h1 {
    margin: 0 0 14px;
    color: #111827;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.detail-card h2,
.side-info h2 {
    margin: 28px 0 10px;
    color: #111827;
    font-size: 22px;
}

.detail-card p {
    margin: 0 0 14px;
    color: var(--gray-700);
}

.lead-text {
    padding: 16px 18px;
    border-left: 4px solid var(--cyan-500);
    border-radius: 12px;
    background: #ecfeff;
    font-size: 18px;
}

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

.side-poster {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #dbeafe, #cffafe);
    box-shadow: var(--shadow-card);
}

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

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

.side-info h2 {
    margin-top: 0;
}

.side-info dl {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0;
}

.side-info dt {
    color: var(--gray-500);
}

.side-info dd {
    margin: 0;
    color: #111827;
    font-weight: 700;
}

.side-info a {
    color: var(--cyan-600);
}

.related-section {
    padding-top: 54px;
}

.site-footer {
    margin-top: 40px;
    color: #cbd5e1;
    background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 60px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 38px;
}

.footer-grid h2 {
    margin: 0 0 12px;
    color: var(--white);
    font-size: 18px;
}

.footer-grid p {
    margin: 14px 0 0;
    max-width: 360px;
    color: #94a3b8;
    font-size: 14px;
}

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

.footer-grid a:hover {
    color: #67e8f9;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-bottom p {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
}

.footer-bottom button {
    border: 0;
    color: #cbd5e1;
    background: transparent;
}

.footer-bottom button:hover {
    color: #67e8f9;
}

[hidden] {
    display: none !important;
}

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

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

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

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 58px;
    }

    .hero-poster {
        width: min(360px, 100%);
        min-height: 420px;
    }

    .hero-poster img {
        min-height: 420px;
    }

    .three-cols,
    .four-cols,
    .split-layout,
    .watch-shell,
    .rank-page-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .sticky-panel {
        position: static;
    }

    .watch-shell {
        gap: 20px;
    }

    .detail-side {
        display: grid;
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 18px;
    }

    .side-info {
        margin-top: 0;
    }

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

@media (max-width: 720px) {
    .nav-shell {
        padding: 12px 0;
    }

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

    .hero-slider,
    .hero-slides,
    .hero-slide {
        min-height: 620px;
    }

    .hero-slide {
        padding-left: 16px;
        padding-right: 16px;
        gap: 28px;
    }

    .hero-content h1 {
        font-size: 42px;
    }

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

    .hero-poster {
        min-height: 330px;
        transform: none;
    }

    .hero-poster img {
        min-height: 330px;
    }

    .section-shell {
        width: min(100% - 24px, 1180px);
        padding: 52px 0;
    }

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

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

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

    .category-cover {
        min-height: 260px;
    }

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

    .movie-title {
        min-height: 42px;
        font-size: 15px;
    }

    .movie-card-body p {
        min-height: 42px;
        font-size: 13px;
    }

    .watch-shell,
    .breadcrumb-bar {
        width: min(100% - 24px, 1180px);
    }

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

    .side-poster {
        max-width: 260px;
    }

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

@media (max-width: 460px) {
    .six-cols,
    .compact-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 34px;
    }

    .sub-hero h1 {
        font-size: 36px;
    }

    .poster-wrap {
        aspect-ratio: 16 / 11;
    }
}
