* {
    box-sizing: border-box;
}

:root {
    color-scheme: light;
    --bg: #fff7ed;
    --bg-soft: #fff1f2;
    --paper: #ffffff;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: rgba(251, 191, 36, 0.22);
    --amber: #d97706;
    --amber-bright: #f59e0b;
    --rose: #fb7185;
    --rose-deep: #be123c;
    --shadow: 0 22px 60px rgba(146, 64, 14, 0.12);
    --shadow-hover: 0 32px 80px rgba(146, 64, 14, 0.2);
    --radius: 22px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 32rem),
        radial-gradient(circle at top right, rgba(251, 113, 133, 0.18), transparent 30rem),
        linear-gradient(135deg, #fff7ed 0%, #ffffff 45%, #fff1f2 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(255, 241, 242, 0.94), rgba(255, 251, 235, 0.94));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 8px 28px rgba(146, 64, 14, 0.08);
    backdrop-filter: blur(18px);
}

.site-header-inner {
    width: min(1280px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 800;
    font-size: 21px;
    background: linear-gradient(135deg, #f59e0b, #fb7185, #fbbf24);
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.28);
}

.brand-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: transparent;
    background: linear-gradient(90deg, #b45309, #e11d48, #d97706);
    -webkit-background-clip: text;
    background-clip: text;
}

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

.nav-link,
.mobile-nav-link {
    position: relative;
    color: #374151;
    font-weight: 600;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: #d97706;
    transition: width 0.25s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
    width: 100%;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(251, 191, 36, 0.16);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #92400e;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

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

.mobile-nav-link {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 247, 237, 0.76);
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.75s ease;
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.04) contrast(1.02);
    transform: scale(1.02);
}

.hero-overlay,
.rankings-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.88) 0%, rgba(17, 24, 39, 0.46) 48%, rgba(17, 24, 39, 0.2) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.76) 0%, transparent 48%);
}

.hero-content,
.page-hero-content {
    position: relative;
    z-index: 2;
    width: min(760px, calc(100% - 32px));
    margin-left: max(16px, calc((100vw - 1280px) / 2));
    padding: 90px 0 160px;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 14px;
    border: 1px solid rgba(251, 191, 36, 0.42);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(146, 64, 14, 0.28);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero h1,
.page-hero h1,
.detail-content h1 {
    margin: 0;
    font-size: clamp(42px, 6vw, 82px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.04em;
}

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

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

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

.hero-tags span,
.movie-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #92400e;
    background: rgba(251, 191, 36, 0.18);
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button,
.section-more,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #f43f5e);
    box-shadow: 0 18px 36px rgba(244, 63, 94, 0.28);
}

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

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

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 112px;
    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.46);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-search {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 28px;
    width: min(900px, calc(100% - 32px));
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.34);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
}

.hero-search label,
.search-box {
    display: grid;
    gap: 6px;
}

.hero-search span,
.search-box span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fde68a;
}

.hero-search input,
.search-box input {
    width: 100%;
    min-height: 46px;
    border: 0;
    outline: 0;
    border-radius: 16px;
    padding: 0 16px;
    color: #111827;
    background: rgba(255, 255, 255, 0.92);
}

.hero-search button {
    min-width: 130px;
    border: 0;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #fb7185);
    font-weight: 900;
    cursor: pointer;
}

main {
    width: 100%;
}

.content-section,
.search-panel,
.breadcrumb,
.detail-layout {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

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

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.15;
    color: #1f2937;
}

.section-heading p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
}

.section-more,
.text-link {
    color: #b45309;
    background: rgba(251, 191, 36, 0.16);
}

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.24);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.movie-card:hover {
    border-color: rgba(251, 113, 133, 0.38);
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #78350f, #9f1239);
}

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

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

.movie-year,
.movie-play {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.movie-year {
    top: 12px;
    left: 12px;
    padding: 0 10px;
    color: #78350f;
    background: rgba(254, 243, 199, 0.94);
}

.movie-play {
    right: 12px;
    bottom: 12px;
    padding: 0 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #f43f5e);
    box-shadow: 0 12px 28px rgba(244, 63, 94, 0.3);
}

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

.movie-title,
.rank-title {
    display: -webkit-box;
    overflow: hidden;
    color: #111827;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover,
.rank-title:hover {
    color: #d97706;
}

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

.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #92400e;
    font-size: 13px;
    font-weight: 700;
}

.movie-meta span,
.detail-meta span {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.14);
}

.movie-tags {
    margin-top: 12px;
}

.movie-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(251, 191, 36, 0.2);
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.movie-card-footer a {
    color: #d97706;
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: var(--shadow);
    background: #111827;
}

.category-tile img,
.category-cover img,
.mini-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-tile:hover img,
.category-overview-card:hover .category-cover img,
.mini-feature:hover img {
    transform: scale(1.08);
}

.category-tile::after,
.category-cover::after,
.mini-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.1));
}

.category-tile strong,
.category-tile em {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
    color: #ffffff;
}

.category-tile strong {
    bottom: 58px;
    font-size: 22px;
    font-style: normal;
    font-weight: 900;
}

.category-tile em {
    bottom: 18px;
    display: -webkit-box;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-style: normal;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 48px;
    padding: 100px max(16px, calc((100vw - 1280px) / 2));
    background:
        radial-gradient(circle at 18% 20%, rgba(251, 191, 36, 0.35), transparent 28rem),
        radial-gradient(circle at 88% 12%, rgba(251, 113, 133, 0.28), transparent 26rem),
        linear-gradient(135deg, #78350f, #881337 56%, #451a03);
    color: #ffffff;
}

.compact-hero {
    min-height: 330px;
}

.category-hero {
    min-height: 380px;
}

.rankings-hero {
    min-height: 520px;
    padding: 0;
    background: #111827;
}

.rankings-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    gap: 24px;
    align-items: center;
    margin-top: 54px;
    padding: 24px;
    border: 1px solid rgba(251, 191, 36, 0.24);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.search-panel h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

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

.search-box span {
    color: #b45309;
}

.search-box input {
    border: 1px solid rgba(251, 191, 36, 0.32);
    background: #ffffff;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 22px;
    overflow: hidden;
    padding: 18px;
    border: 1px solid rgba(251, 191, 36, 0.24);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.category-cover {
    position: relative;
    display: block;
    min-height: 190px;
    overflow: hidden;
    border-radius: 20px;
    background: #111827;
}

.category-overview-card h2 {
    margin: 6px 0 10px;
    font-size: 26px;
}

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

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.category-samples a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #92400e;
    background: rgba(251, 191, 36, 0.14);
    font-size: 13px;
    font-weight: 700;
}

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

.mini-feature {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: 22px;
    background: #111827;
    box-shadow: var(--shadow);
}

.mini-feature span {
    position: absolute;
    z-index: 2;
    left: 14px;
    right: 14px;
    bottom: 14px;
    color: #ffffff;
    font-weight: 900;
    line-height: 1.4;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 116px 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(251, 191, 36, 0.24);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.rank-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 18px;
    background: #111827;
}

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

.rank-poster span {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #fb7185);
    font-weight: 900;
}

.rank-title {
    font-size: 22px;
}

.rank-heat {
    min-width: 120px;
    text-align: right;
}

.rank-heat strong {
    display: block;
    color: #d97706;
    font-size: 24px;
}

.rank-heat span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 30px 0 20px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.breadcrumb a {
    color: #b45309;
}

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

.detail-main,
.detail-sidebar {
    min-width: 0;
}

.player-card,
.detail-content,
.side-panel {
    border: 1px solid rgba(251, 191, 36, 0.24);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

.player-card {
    overflow: hidden;
}

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

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

.player-start {
    position: absolute;
    left: 50%;
    top: 50%;
    min-width: 150px;
    min-height: 54px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #f43f5e);
    box-shadow: 0 22px 50px rgba(244, 63, 94, 0.35);
    font-weight: 900;
    cursor: pointer;
    transform: translate(-50%, -50%);
}

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

.player-caption {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 18px;
    color: #92400e;
    font-size: 13px;
    font-weight: 800;
    background: linear-gradient(90deg, rgba(255, 247, 237, 0.9), rgba(255, 241, 242, 0.92));
}

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

.detail-content h1 {
    color: #111827;
    font-size: clamp(34px, 5vw, 60px);
}

.detail-content h2,
.side-panel h2 {
    margin: 30px 0 12px;
    color: #1f2937;
    font-size: 24px;
}

.detail-content p {
    margin: 0;
    color: #4b5563;
    font-size: 17px;
    line-height: 1.9;
}

.detail-meta {
    margin: 18px 0;
}

.detail-tags {
    margin: 14px 0 26px;
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.inline-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #92400e;
    background: rgba(251, 191, 36, 0.16);
    font-weight: 800;
}

.side-poster {
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    box-shadow: var(--shadow);
}

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

.side-panel {
    margin-top: 20px;
    padding: 22px;
}

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

.side-panel dl {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 12px 14px;
    margin: 0;
}

.side-panel dt {
    color: var(--muted);
    font-weight: 800;
}

.side-panel dd {
    margin: 0;
    color: #1f2937;
    font-weight: 700;
    line-height: 1.5;
}

.side-panel a {
    color: #d97706;
}

.site-footer {
    margin-top: 90px;
    color: #ffffff;
    background: linear-gradient(135deg, #78350f, #881337, #92400e);
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 34px;
}

.footer-brand {
    display: grid;
    gap: 12px;
    align-content: start;
}

.footer-brand p {
    margin: 0;
    max-width: 360px;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.8;
}

.footer-column {
    display: grid;
    gap: 10px;
    align-content: start;
}

.footer-column h2 {
    margin: 0 0 8px;
    color: #fde68a;
    font-size: 17px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.76);
    transition: color 0.25s ease;
}

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

.silk-shine {
    position: relative;
    overflow: hidden;
}

.silk-shine::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
    animation: silk-shine-animation 3s infinite;
}

.silk-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25), rgba(251, 113, 133, 0.25), rgba(251, 191, 36, 0.25));
    background-size: 400% 400%;
    animation: silk-gradient-flow 8s ease infinite;
    pointer-events: none;
}

[data-search-card].is-hidden {
    display: none;
}

@keyframes silk-shine-animation {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

@keyframes silk-gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

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

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

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

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

    .detail-sidebar {
        display: grid;
        grid-template-columns: 260px 1fr;
        gap: 20px;
    }

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

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

    .mobile-menu-button {
        display: block;
    }

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

    .hero {
        min-height: 620px;
    }

    .hero-content,
    .page-hero-content {
        padding: 72px 0 160px;
    }

    .hero p,
    .page-hero p {
        font-size: 16px;
    }

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

    .hero-search button {
        min-height: 46px;
    }

    .section-heading,
    .search-panel {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .section-heading {
        display: grid;
    }

    .movie-grid,
    .featured-grid,
    .category-grid,
    .mini-feature-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .rank-card {
        grid-template-columns: 86px 1fr;
    }

    .rank-heat {
        grid-column: 2;
        text-align: left;
    }

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

@media (max-width: 560px) {
    .site-header-inner {
        width: min(100% - 20px, 1280px);
    }

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

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

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

    .movie-grid,
    .featured-grid,
    .category-grid,
    .mini-feature-row,
    .footer-inner,
    .detail-sidebar {
        grid-template-columns: 1fr;
    }

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

    .page-hero {
        padding-top: 78px;
        padding-bottom: 78px;
    }

    .player-start {
        min-width: 128px;
        min-height: 48px;
    }
}
