:root {
    --amber: #f59e0b;
    --amber-dark: #d97706;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --rose: #f43f5e;
    --purple: #8b5cf6;
    --blue: #38bdf8;
    --ink: #111827;
    --muted: #6b7280;
    --line: #fed7aa;
    --surface: #ffffff;
    --soft: #fff7ed;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 36%, #ffffff 100%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

body.is-nav-open {
    overflow: hidden;
}

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

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

button, input, select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(251, 191, 36, 0.34);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.12);
    backdrop-filter: blur(16px);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 22px;
}

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

.brand-icon, .footer-logo span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.38);
}

.brand-text strong {
    display: block;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
    background: linear-gradient(90deg, var(--amber-dark), var(--orange-dark));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--muted);
}

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

.nav-link, .mobile-nav-link {
    display: inline-flex;
    align-items: center;
    border-radius: 14px;
    padding: 10px 16px;
    font-weight: 700;
    color: #374151;
    transition: 0.2s ease;
}

.nav-link:hover, .nav-link.is-active, .mobile-nav-link:hover, .mobile-nav-link.is-active {
    color: #ffffff;
    background: linear-gradient(90deg, #fbbf24, #fb923c);
    box-shadow: 0 10px 22px rgba(245, 158, 11, 0.28);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff7ed;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #374151;
    border-radius: 999px;
}

.category-strip {
    display: flex;
    gap: 8px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 22px 12px;
    overflow-x: auto;
}

.category-pill {
    flex: 0 0 auto;
    padding: 6px 12px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    color: #4b5563;
    background: #ffffff;
    font-size: 14px;
    transition: 0.2s ease;
}

.category-pill:hover {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(90deg, #fbbf24, #fb923c);
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.22);
}

.mobile-nav {
    display: none;
}

.hero-carousel {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(90deg, #fef3c7, #ffedd5, #fef3c7);
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1280px) / 2 + 24px));
    top: 50%;
    width: min(680px, calc(100% - 48px));
    color: #ffffff;
    transform: translateY(-50%);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
    padding: 8px 16px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.32);
}

.hero-content h1, .page-hero h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 640px;
    margin: 22px 0 0;
    color: #e5e7eb;
    font-size: 20px;
}

.hero-meta, .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-meta span {
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    font-size: 14px;
}

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

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    box-shadow: 0 14px 34px rgba(249, 115, 22, 0.36);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.46);
}

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

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.24);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    font-size: 34px;
    transform: translateY(-50%);
    transition: 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: 0.2s ease;
}

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

.hero-search {
    position: absolute;
    right: max(24px, calc((100vw - 1280px) / 2 + 24px));
    bottom: 26px;
    z-index: 5;
    display: flex;
    width: min(420px, calc(100% - 48px));
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 0 14px;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.hero-search button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    padding: 8px 18px;
    font-weight: 800;
}

.page-shell {
    width: min(1280px, calc(100% - 44px));
    margin: 0 auto;
    padding: 48px 0 72px;
}

.home-shell {
    padding-top: 56px;
}

.content-section {
    margin-bottom: 72px;
}

.soft-panel {
    border-radius: 32px;
    padding: 32px;
    box-shadow: var(--shadow);
}

.blue-panel {
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.warm-panel {
    background: linear-gradient(135deg, #fefce8, #fff7ed, #ffe4e6);
}

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

.section-heading h2, .center-heading h2, .detail-copy h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-heading p, .center-heading p, .single-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--amber-dark);
    font-weight: 800;
}

.section-more span {
    font-size: 26px;
    line-height: 1;
}

.center-heading {
    margin-bottom: 28px;
    text-align: center;
}

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

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

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

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

.movie-card {
    position: relative;
    border: 1px solid rgba(254, 215, 170, 0.78);
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: #fdba74;
    box-shadow: 0 24px 46px rgba(245, 158, 11, 0.18);
}

.card-link {
    display: block;
    height: 100%;
}

.card-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    margin: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #fef3c7, #ffedd5);
}

.card-poster-wide {
    width: 190px;
    min-height: 142px;
    aspect-ratio: 16 / 10;
    flex: 0 0 190px;
    border-radius: 18px;
}

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

.movie-card:hover .card-poster img, .category-feature-card:hover img, .recommend-card:hover img {
    transform: scale(1.08);
}

.card-poster::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.year-badge, .type-badge, .rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.year-badge {
    left: 12px;
    top: 12px;
    background: rgba(0, 0, 0, 0.48);
}

.type-badge {
    right: 12px;
    top: 12px;
    background: linear-gradient(90deg, var(--amber), var(--orange));
}

.rank-badge {
    left: 12px;
    bottom: 12px;
    background: linear-gradient(135deg, #f43f5e, #fb923c);
}

.card-poster figcaption {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.card-body {
    padding: 18px;
}

.card-body h2 {
    display: -webkit-box;
    min-height: 52px;
    margin: 0 0 8px;
    overflow: hidden;
    color: #111827;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 900;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.18s ease;
}

.movie-card:hover .card-body h2 {
    color: var(--amber-dark);
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #4b5563;
    font-size: 13px;
}

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

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 700;
}

.movie-card-horizontal .card-link {
    display: flex;
    gap: 18px;
    padding: 16px;
}

.movie-card-horizontal .card-body {
    min-width: 0;
    padding: 0;
}

.movie-card-horizontal .card-body h2 {
    min-height: auto;
}

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

.category-feature-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 24px;
    color: #ffffff;
    background: #111827;
    box-shadow: var(--shadow);
}

.category-feature-card img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    opacity: 0.78;
    transition: transform 0.35s ease;
}

.category-feature-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.78));
}

.category-feature-card span, .category-feature-card strong {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
}

.category-feature-card span {
    bottom: 56px;
    color: #fed7aa;
    font-weight: 800;
}

.category-feature-card strong {
    bottom: 20px;
    display: -webkit-box;
    overflow: hidden;
    font-size: 17px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.recommend-card {
    display: flex;
    gap: 18px;
    align-items: center;
    border-radius: 24px;
    padding: 16px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.recommend-card.is-warm {
    background: linear-gradient(135deg, #ffe4e6, #fce7f3);
}

.recommend-card.is-cool {
    background: linear-gradient(135deg, #ede9fe, #f3e8ff);
}

.recommend-card img {
    width: 150px;
    height: 96px;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.35s ease;
}

.recommend-card h2 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.recommend-card p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
}

.page-hero {
    position: relative;
    border-radius: 34px;
    margin-bottom: 42px;
    padding: 54px;
    color: #ffffff;
    overflow: hidden;
    background: radial-gradient(circle at 15% 20%, rgba(251, 191, 36, 0.95), transparent 24%), linear-gradient(135deg, #111827, #7c2d12 46%, #ea580c);
    box-shadow: var(--shadow);
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.page-hero > * {
    position: relative;
    z-index: 2;
}

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

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

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 160px 180px;
    gap: 14px;
    align-items: end;
    margin-bottom: 26px;
    border: 1px solid #fed7aa;
    border-radius: 24px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.1);
}

.filter-field {
    display: grid;
    gap: 7px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 800;
}

.filter-field input, .filter-field select {
    width: 100%;
    height: 44px;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    outline: 0;
    background: #ffffff;
    padding: 0 12px;
    color: #111827;
}

.filter-field input:focus, .filter-field select:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.14);
}

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

.category-overview-card a {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    height: 100%;
    border: 1px solid #fed7aa;
    border-radius: 28px;
    padding: 18px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    transition: 0.22s ease;
}

.category-overview-card a:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 46px rgba(245, 158, 11, 0.17);
}

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

.category-thumb-stack img {
    width: 100%;
    height: 104px;
    object-fit: cover;
    border-radius: 16px;
    background: #ffedd5;
}

.category-overview-body span {
    color: var(--amber-dark);
    font-weight: 900;
}

.category-overview-body h2 {
    margin: 8px 0;
    font-size: 28px;
}

.category-overview-body p {
    margin: 0;
    color: var(--muted);
}

.detail-shell {
    padding-top: 30px;
}

.detail-breadcrumb {
    color: #92400e;
}

.detail-hero {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 34px;
    align-items: center;
    border-radius: 34px;
    padding: 34px;
    margin-bottom: 42px;
    background: linear-gradient(135deg, #111827, #7c2d12 58%, #ea580c);
    color: #ffffff;
    box-shadow: var(--shadow);
}

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

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

.detail-info h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 60px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.detail-one-line {
    margin: 18px 0 0;
    color: #fef3c7;
    font-size: 20px;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 680px;
    margin: 24px 0 0;
}

.detail-meta div {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.12);
}

.detail-meta dt {
    color: #fed7aa;
    font-size: 12px;
    font-weight: 800;
}

.detail-meta dd {
    margin: 4px 0 0;
    color: #ffffff;
    font-weight: 800;
}

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

.player-section {
    margin-bottom: 42px;
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: var(--shadow);
}

.video-frame video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.42));
    opacity: 1;
    transition: opacity 0.22s ease;
}

.player-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.play-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 42px rgba(249, 115, 22, 0.42);
    font-size: 38px;
    transform: translateX(3px);
}

.play-error {
    border-radius: 999px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.64);
    font-weight: 800;
}

.player-controls {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: flex;
    gap: 10px;
    pointer-events: none;
}

.player-controls button {
    pointer-events: auto;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    padding: 8px 14px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.player-controls button:hover {
    background: rgba(245, 158, 11, 0.88);
}

.detail-copy {
    border: 1px solid #fed7aa;
    border-radius: 28px;
    padding: 30px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.detail-copy h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.detail-copy p {
    margin: 0 0 24px;
    color: #374151;
    font-size: 17px;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(180deg, #111827, #000000);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 42px;
    width: min(1280px, calc(100% - 44px));
    margin: 0 auto;
    padding: 48px 0;
}

.footer-logo {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.footer-brand p {
    max-width: 480px;
    margin: 18px 0 0;
    color: #d1d5db;
}

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

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

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

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

.filter-card.is-hidden {
    display: none;
}

@media (max-width: 1080px) {
    .grid-four, .grid-three, .category-feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

@media (max-width: 820px) {
    .desktop-nav, .category-strip {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .brand {
        min-width: 0;
    }

    .brand-text strong {
        font-size: 20px;
    }

    .mobile-nav {
        display: none;
        padding: 12px 22px 22px;
        border-top: 1px solid #fed7aa;
        background: #ffffff;
    }

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

    .mobile-category-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding-top: 8px;
        border-top: 1px solid #fed7aa;
    }

    .mobile-category-link {
        border-radius: 12px;
        padding: 9px;
        text-align: center;
        background: #fff7ed;
        color: #4b5563;
        font-weight: 700;
    }

    .hero-carousel {
        height: 640px;
    }

    .hero-content {
        top: 44%;
    }

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

    .hero-arrow {
        display: none;
    }

    .hero-search {
        left: 24px;
        right: auto;
        bottom: 72px;
    }

    .grid-four, .grid-three, .grid-two, .category-feature-grid, .recommend-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .detail-poster {
        max-width: 360px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    .topbar {
        padding: 12px 16px;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
    }

    .brand-text small {
        display: none;
    }

    .page-shell {
        width: min(100% - 28px, 1280px);
        padding-top: 32px;
    }

    .hero-carousel {
        height: 600px;
    }

    .hero-content h1, .page-hero h1 {
        font-size: 36px;
    }

    .hero-actions {
        gap: 8px;
    }

    .primary-button, .ghost-button {
        min-height: 42px;
        padding: 0 16px;
        font-size: 14px;
    }

    .hero-search {
        width: calc(100% - 36px);
        left: 18px;
        bottom: 64px;
    }

    .soft-panel, .page-hero, .detail-hero, .detail-copy {
        border-radius: 24px;
        padding: 22px;
    }

    .grid-four, .grid-three, .grid-two, .category-feature-grid, .recommend-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal .card-link, .recommend-card, .category-overview-card a {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .card-poster-wide, .recommend-card img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }

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

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

    .player-controls {
        position: static;
        padding: 12px;
        background: #111827;
    }
}
