:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #fff7ed;
    --text: #111827;
    --muted: #6b7280;
    --border: #e5e7eb;
    --dark: #0f172a;
    --dark-soft: #111827;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --yellow: #facc15;
    --red: #ef4444;
    --blue: #3b82f6;
    --green: #22c55e;
    --purple: #8b5cf6;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
    --radius: 22px;
    --radius-sm: 14px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 60%, #fff7ed 100%);
    color: var(--text);
    line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #111827 0%, #1f2937 50%, #0f172a 100%);
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(1200px, calc(100% - 32px));
    height: 66px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    background: linear-gradient(135deg, var(--orange), var(--yellow));
    box-shadow: 0 0 22px rgba(249, 115, 22, 0.42);
    font-size: 14px;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-link {
    color: #d1d5db;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--orange);
}

.menu-toggle {
    display: none;
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
}

.nav-subbar {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.62);
}

.nav-subbar-inner {
    width: min(1200px, calc(100% - 32px));
    min-height: 38px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 18px;
    overflow-x: auto;
}

.nav-sub-link {
    white-space: nowrap;
    font-size: 13px;
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.nav-sub-link:hover {
    color: #ffffff;
}

.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #050816;
}

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

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    filter: saturate(1.12);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 28%, rgba(249, 115, 22, 0.34), transparent 32%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.52));
}

.hero-carousel::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(0deg, var(--bg), transparent);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: center;
    gap: 56px;
    color: #ffffff;
}

.hero-copy {
    max-width: 760px;
    animation: fadeInUp 0.8s ease both;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--orange);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 16px 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    font-weight: 900;
    text-shadow: 0 16px 42px rgba(0, 0, 0, 0.34);
}

.hero-copy p {
    margin: 0 0 22px;
    max-width: 680px;
    color: #e5e7eb;
    font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.movie-mini-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.12);
    color: #c2410c;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags .tag-pill {
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.hero-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: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid transparent;
    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(--orange), #ef4444);
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.30);
}

.btn-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

.full-width {
    width: 100%;
}

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

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    z-index: 1;
    pointer-events: none;
}

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

.hero-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    font-size: 32px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(249, 115, 22, 0.82);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 34px;
    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.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--orange);
}

.quick-search-strip {
    position: relative;
    z-index: 5;
    margin-top: -34px;
}

.quick-search-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.quick-search-inner strong {
    display: block;
    font-size: 20px;
}

.quick-search-inner span {
    color: var(--muted);
    font-size: 14px;
}

.quick-search-form {
    display: flex;
    min-width: min(460px, 100%);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #ffffff;
}

.quick-search-form input {
    min-width: 0;
    flex: 1;
    border: 0;
    padding: 14px 18px;
    outline: none;
}

.quick-search-form button {
    border: 0;
    padding: 0 22px;
    color: #ffffff;
    font-weight: 800;
    background: var(--orange);
    cursor: pointer;
}

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

.content-section + .content-section {
    padding-top: 40px;
}

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

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

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

.section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
}

.section-more {
    color: var(--orange-dark);
    font-weight: 800;
    white-space: nowrap;
}

.dark-section .section-more {
    color: #fdba74;
}

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

.category-card {
    position: relative;
    min-height: 224px;
    padding: 24px;
    border-radius: var(--radius);
    overflow: hidden;
    color: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card strong {
    position: relative;
    z-index: 2;
    display: block;
    margin-top: 18px;
    font-size: 20px;
}

.category-card p {
    position: relative;
    z-index: 2;
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
}

.category-card img {
    position: absolute;
    right: -24px;
    bottom: -28px;
    width: 132px;
    height: 176px;
    object-fit: cover;
    border-radius: 18px;
    opacity: 0.42;
    transform: rotate(8deg);
}

.category-icon {
    position: relative;
    z-index: 2;
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
}

.accent-orange,
.accent-amber,
.accent-yellow {
    background: linear-gradient(135deg, #f97316, #facc15);
}

.accent-red,
.accent-pink {
    background: linear-gradient(135deg, #ef4444, #ec4899);
}

.accent-blue,
.accent-cyan {
    background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.accent-green {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

.accent-purple {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.accent-slate {
    background: linear-gradient(135deg, #334155, #0f172a);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.dark-section .movie-card {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: #111827;
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.poster-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.0);
    font-size: 34px;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    background: rgba(0, 0, 0, 0.34);
}

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

.movie-card-title {
    display: block;
    min-height: 42px;
    font-weight: 900;
    line-height: 1.32;
    transition: color 0.2s ease;
}

.movie-card-title:hover,
.rank-title:hover {
    color: var(--orange-dark);
}

.movie-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.dark-section .movie-card-meta {
    color: #cbd5e1;
}

.movie-card-meta span {
    position: relative;
}

.movie-card-meta span + span::before {
    content: "·";
    margin-right: 8px;
    color: #cbd5e1;
}

.movie-card-desc {
    min-height: 44px;
    margin: 10px 0 12px;
    color: var(--muted);
    font-size: 13px;
}

.dark-section .movie-card-desc {
    color: #d1d5db;
}

.movie-card-list {
    display: grid;
    grid-template-columns: 190px 1fr;
}

.movie-card-list .movie-poster img {
    height: 100%;
    aspect-ratio: auto;
}

.movie-card-list .movie-card-body {
    padding: 20px;
}

.movie-card-list .movie-card-title {
    min-height: auto;
    font-size: 18px;
}

.movie-card-list .movie-card-desc {
    min-height: auto;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.34), transparent 30%),
        linear-gradient(135deg, #111827, #020617);
}

.compact-hero {
    padding: 72px 0;
}

.page-hero h1 {
    margin: 12px 0 12px;
    font-size: clamp(38px, 6vw, 66px);
    line-height: 1;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: #e5e7eb;
    font-size: 18px;
}

.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 42px;
}

.category-hero-stack,
.ranking-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 260px;
}

.category-hero-stack img,
.ranking-showcase img {
    width: 150px;
    height: 220px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.34);
    margin-left: -60px;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.category-hero-stack img:first-child,
.ranking-showcase img:first-child {
    margin-left: 0;
}

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

.category-summary-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 22px;
    min-height: 260px;
    padding: 24px;
    border-radius: var(--radius);
    color: #ffffff;
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-summary-covers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.category-summary-covers img {
    width: 100%;
    height: 100%;
    min-height: 96px;
    object-fit: cover;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.18);
}

.category-summary-body p {
    color: rgba(255, 255, 255, 0.88);
}

.filter-panel {
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.filter-search {
    display: flex;
    gap: 12px;
}

.filter-search input,
.sort-select {
    border: 1px solid var(--border);
    border-radius: 999px;
    outline: none;
    background: #ffffff;
}

.filter-search input {
    width: 100%;
    padding: 14px 18px;
}

.sort-select {
    min-width: 142px;
    padding: 0 14px;
    color: var(--text);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.filter-chip {
    border: 0;
    border-radius: 999px;
    padding: 8px 13px;
    color: #334155;
    background: #f1f5f9;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.filter-chip.is-active,
.filter-chip:hover {
    color: #ffffff;
    background: var(--orange);
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 66px 112px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-number {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), #ef4444);
}

.rank-thumb {
    overflow: hidden;
    border-radius: 16px;
    background: #111827;
}

.rank-thumb img {
    width: 112px;
    height: 76px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.rank-title {
    display: inline-block;
    font-weight: 900;
    font-size: 18px;
}

.rank-content p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.rank-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    height: 38px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--orange);
    font-weight: 800;
    font-size: 13px;
}

.player-hero {
    padding: 34px 0 46px;
    background: linear-gradient(180deg, #020617, #111827);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    color: #d1d5db;
    font-size: 14px;
}

.breadcrumb a {
    color: #fdba74;
}

.player-panel {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    aspect-ratio: 16 / 9;
}

.video-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 50% 44%, rgba(249, 115, 22, 0.28), transparent 28%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.72));
    cursor: pointer;
}

.player-panel.is-playing .player-overlay {
    display: none;
    pointer-events: none;
}

.player-play-icon {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    background: linear-gradient(135deg, var(--orange), var(--yellow));
    box-shadow: 0 0 40px rgba(249, 115, 22, 0.48);
    font-size: 34px;
}

.player-overlay strong {
    font-size: 24px;
}

.player-overlay em {
    color: #d1d5db;
    font-style: normal;
}

.detail-section {
    padding-top: 46px;
}

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

.detail-card,
.sidebar-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.detail-card {
    padding: 28px;
    margin-bottom: 24px;
}

.detail-heading h1 {
    margin: 10px 0 12px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.08;
}

.detail-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0;
}

.detail-meta-grid div {
    padding: 16px;
    border-radius: 16px;
    background: #f8fafc;
}

.detail-meta-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.detail-meta-grid strong {
    display: block;
    margin-top: 6px;
    font-size: 15px;
}

.article-block {
    margin-top: 28px;
}

.article-block h2,
.sidebar-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.article-block p {
    margin: 0;
    color: #374151;
    font-size: 16px;
}

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

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

.detail-sidebar {
    position: sticky;
    top: 120px;
}

.sidebar-card {
    padding: 18px;
    margin-bottom: 18px;
}

.poster-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 16px;
    background: #111827;
}

.info-list {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px 12px;
    margin: 0;
    font-size: 14px;
}

.info-list dt {
    color: var(--muted);
}

.info-list dd {
    margin: 0;
    font-weight: 700;
}

.info-list a {
    color: var(--orange-dark);
}

.site-footer {
    padding: 58px 0;
    color: #d1d5db;
    background: linear-gradient(180deg, #111827, #020617);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 34px;
}

.footer-brand {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 20px;
}

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

.site-footer p {
    margin: 0;
    color: #9ca3af;
    font-size: 14px;
}

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

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

.site-footer a {
    color: #cbd5e1;
    font-size: 14px;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--orange);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .hero-content,
    .page-hero-grid,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .category-hero-stack,
    .ranking-showcase {
        display: none;
    }

    .detail-sidebar {
        position: static;
    }
}

@media (max-width: 820px) {
    .nav-links {
        position: fixed;
        top: 66px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border-radius: 18px;
        background: #111827;
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-link {
        padding: 12px;
        border-radius: 12px;
    }

    .nav-link:hover,
    .nav-link.is-active {
        background: rgba(249, 115, 22, 0.14);
    }

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

    .hero-carousel {
        height: 560px;
    }

    .hero-content {
        text-align: center;
        justify-items: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-arrow {
        display: none;
    }

    .quick-search-inner,
    .section-heading,
    .filter-search {
        flex-direction: column;
        align-items: stretch;
    }

    .quick-search-form {
        min-width: 100%;
    }

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

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

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

    .rank-row {
        grid-template-columns: 52px 86px minmax(0, 1fr);
    }

    .rank-action {
        grid-column: 2 / 4;
        width: 100%;
    }

    .rank-thumb img {
        width: 86px;
        height: 64px;
    }
}

@media (max-width: 560px) {
    .container,
    .nav-shell,
    .nav-subbar-inner {
        width: min(100% - 24px, 1200px);
    }

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

    .hero-carousel {
        height: 530px;
    }

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

    .category-grid,
    .movie-grid,
    .movie-list-grid,
    .category-summary-grid,
    .related-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-list {
        grid-template-columns: 130px 1fr;
    }

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

    .content-section {
        padding: 52px 0;
    }

    .page-hero {
        padding: 58px 0;
    }

    .detail-card {
        padding: 20px;
    }

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