:root {
    --volcanic-950: #160b08;
    --volcanic-900: #24100b;
    --volcanic-850: #32160f;
    --volcanic-800: #421c13;
    --volcanic-700: #6f2a1b;
    --volcanic-600: #a33a23;
    --lava-500: #ef6a32;
    --lava-400: #ff9b54;
    --ash-950: #09090b;
    --ash-900: #141417;
    --ash-800: #25262b;
    --ash-700: #3f424a;
    --ash-600: #646977;
    --ash-100: #f2eee9;
    --ash-50: #fbf8f3;
    --white: #ffffff;
    --shadow-soft: 0 18px 55px rgba(36, 16, 11, 0.18);
    --shadow-card: 0 10px 30px rgba(20, 20, 23, 0.12);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ash-900);
    background: linear-gradient(180deg, #fffaf2 0%, #f6efe8 45%, #ffffff 100%);
}

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

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

button,
input {
    font: inherit;
}

main {
    min-height: 60vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(66, 28, 19, 0.96), rgba(22, 11, 8, 0.96));
    color: var(--white);
    box-shadow: 0 14px 40px rgba(22, 11, 8, 0.32);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--white);
    background: radial-gradient(circle at 35% 25%, var(--lava-400), var(--volcanic-600));
    box-shadow: 0 0 28px rgba(239, 106, 50, 0.45);
    font-size: 18px;
    padding-left: 2px;
}

.brand-text strong {
    display: block;
    font-size: 22px;
    line-height: 1.05;
    letter-spacing: 0.03em;
}

.brand-text small {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 15px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
    border-radius: 2px;
}

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

.mobile-sub-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.mobile-sub-link {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
}

.hero-carousel {
    position: relative;
    height: min(72vh, 660px);
    min-height: 540px;
    overflow: hidden;
    background: var(--volcanic-950);
}

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

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

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

.hero-bg.image-missing {
    opacity: 0;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 74% 38%, rgba(239, 106, 50, 0.28), transparent 30%),
        linear-gradient(90deg, rgba(22, 11, 8, 0.94), rgba(36, 16, 11, 0.70) 44%, rgba(20, 20, 23, 0.18)),
        linear-gradient(0deg, rgba(20, 20, 23, 0.94), rgba(20, 20, 23, 0.12) 55%, rgba(20, 20, 23, 0.44));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: end;
    gap: 48px;
    padding: 90px 0 78px;
}

.hero-copy {
    max-width: 760px;
    color: var(--white);
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #ffe3cf;
    background: rgba(239, 106, 50, 0.16);
    border: 1px solid rgba(255, 155, 84, 0.28);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    text-shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
}

.hero-copy p {
    max-width: 700px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 19px;
    line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.84);
    font-size: 13px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.primary-btn,
.secondary-btn,
.ghost-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: var(--white);
    background: linear-gradient(135deg, var(--volcanic-600), var(--lava-500));
    box-shadow: 0 14px 32px rgba(239, 106, 50, 0.28);
}

.secondary-btn {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.secondary-btn.dark {
    color: var(--volcanic-800);
    background: #fff6ed;
    border-color: rgba(163, 58, 35, 0.18);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(36, 16, 11, 0.22);
}

.hero-poster {
    align-self: end;
    display: block;
    position: relative;
    min-height: 420px;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-poster-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.hero-poster-img.image-missing {
    opacity: 0;
}

.hero-poster span {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(22, 11, 8, 0.72);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.hero-dots {
    position: absolute;
    z-index: 5;
    bottom: 30px;
    left: 50%;
    display: flex;
    gap: 9px;
    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.2s ease, background 0.2s ease;
}

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

.search-band,
.content-section,
.category-grid-section,
.ranking-panel,
.filter-panel,
.ranking-page-list,
.detail-layout,
.player-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.search-band {
    position: relative;
    z-index: 10;
    margin-top: -34px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.search-box {
    display: flex;
    gap: 10px;
    padding: 6px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid rgba(100, 105, 119, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 0 18px;
    background: transparent;
    color: var(--ash-900);
}

.search-box button {
    border: 0;
    border-radius: 999px;
    min-width: 88px;
    padding: 0 18px;
    color: var(--white);
    background: linear-gradient(135deg, var(--volcanic-600), var(--lava-500));
    cursor: pointer;
}

.large-search {
    min-height: 56px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.quick-links a {
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--volcanic-800);
    background: #fff2e6;
    transition: transform 0.2s ease, background 0.2s ease;
}

.quick-links a:hover {
    background: #ffe1c9;
    transform: translateY(-1px);
}

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

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

.section-heading h2 {
    margin: 0;
    color: var(--ash-950);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.section-more {
    color: var(--volcanic-700);
    font-weight: 700;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 55px rgba(36, 16, 11, 0.20);
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 155, 84, 0.32), transparent 34%),
        linear-gradient(145deg, #2b1711, #7a2d1e);
}

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

.poster-img.image-missing,
.wide-img.image-missing,
.detail-img.image-missing,
.category-cover-img.image-missing {
    opacity: 0;
}

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

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent 55%);
}

.play-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: var(--white);
    font-weight: 800;
}

.play-pill {
    right: 12px;
    bottom: 12px;
    padding: 7px 11px;
    background: rgba(239, 106, 50, 0.88);
    transform: translateY(8px);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.movie-card:hover .play-pill {
    transform: translateY(0);
    opacity: 1;
}

.rank-badge {
    top: 12px;
    left: 12px;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--lava-400), var(--volcanic-600));
    box-shadow: 0 10px 24px rgba(163, 58, 35, 0.28);
}

.card-body {
    padding: 15px;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.card-body h3 a:hover,
.wide-content h3 a:hover {
    color: var(--volcanic-700);
}

.card-body p {
    min-height: 42px;
    margin: 0 0 12px;
    color: var(--ash-600);
    font-size: 13px;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--ash-600);
    font-size: 12px;
}

.card-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(100, 105, 119, 0.08);
}

.card-body .tag-row {
    margin-top: 11px;
}

.card-body .tag-row span {
    color: var(--volcanic-700);
    background: #fff2e8;
}

.ranking-panel {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 32px;
    margin-top: 76px;
    padding: 36px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--volcanic-900), var(--volcanic-800));
    color: var(--white);
    box-shadow: var(--shadow-soft);
}

.ranking-copy {
    align-self: start;
    position: sticky;
    top: 110px;
}

.ranking-copy h2 {
    margin: 0 0 16px;
    font-size: 42px;
    letter-spacing: -0.04em;
}

.ranking-copy p {
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.8;
}

.ranking-list,
.wide-list,
.ranking-page-list {
    display: grid;
    gap: 16px;
}

.wide-card {
    display: grid;
    grid-template-columns: auto 150px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 12px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.94);
    color: var(--ash-900);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-panel .wide-card {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.wide-card:hover {
    transform: translateX(4px);
    box-shadow: 0 18px 45px rgba(36, 16, 11, 0.18);
}

.wide-number {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: var(--white);
    font-weight: 900;
    background: linear-gradient(135deg, var(--volcanic-600), var(--lava-500));
}

.wide-cover {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(145deg, #2b1711, #7a2d1e);
}

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

.wide-content h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.wide-content p {
    margin: 0 0 10px;
    color: var(--ash-600);
    line-height: 1.65;
}

.ranking-panel .wide-content p,
.ranking-panel .card-meta {
    color: rgba(255, 255, 255, 0.72);
}

.ghost-link {
    color: var(--volcanic-700);
    background: #fff0e3;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 75% 25%, rgba(239, 106, 50, 0.34), transparent 28%),
        linear-gradient(135deg, var(--volcanic-900), var(--ash-950));
}

.compact-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
    min-height: 300px;
    display: flex;
    align-items: end;
    padding: 46px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.compact-hero h1 {
    max-width: 760px;
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.compact-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.8;
}

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

.category-tile {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
    padding: 20px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-card);
}

.category-cover {
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 3 / 4;
    background: linear-gradient(145deg, #2b1711, #7a2d1e);
}

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

.category-info h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.category-info p {
    margin: 0 0 16px;
    color: var(--ash-600);
    line-height: 1.7;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.category-samples a {
    padding: 6px 9px;
    border-radius: 999px;
    color: var(--volcanic-700);
    background: #fff2e6;
    font-size: 13px;
}

.filter-panel {
    margin-top: 28px;
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-card);
}

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

.filter-buttons button {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--ash-700);
    background: #f4ebe2;
    cursor: pointer;
}

.filter-buttons button.active,
.filter-buttons button:hover {
    color: var(--white);
    background: linear-gradient(135deg, var(--volcanic-600), var(--lava-500));
}

.ranking-page-list {
    padding-top: 40px;
}

.player-section {
    padding-top: 32px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 16px;
    color: var(--ash-600);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--volcanic-700);
    font-weight: 700;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000;
    box-shadow: 0 28px 76px rgba(0, 0, 0, 0.28);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-content: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    text-align: center;
    cursor: pointer;
    background:
        radial-gradient(circle at 50% 42%, rgba(239, 106, 50, 0.32), transparent 24%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.34));
}

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

.big-play {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    margin: 0 auto 4px;
    border-radius: 50%;
    padding-left: 5px;
    background: linear-gradient(135deg, var(--volcanic-600), var(--lava-500));
    box-shadow: 0 18px 38px rgba(239, 106, 50, 0.36);
    font-size: 34px;
}

.player-overlay strong {
    font-size: clamp(24px, 4vw, 44px);
    letter-spacing: -0.03em;
}

.player-overlay em {
    font-style: normal;
    color: rgba(255, 255, 255, 0.78);
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 34px;
    padding-top: 42px;
}

.detail-poster {
    position: sticky;
    top: 106px;
    align-self: start;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    background: linear-gradient(145deg, #2b1711, #7a2d1e);
}

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

.detail-main {
    padding: 32px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.90);
    box-shadow: var(--shadow-card);
}

.detail-main h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--volcanic-700);
    background: #fff2e6;
    font-weight: 700;
}

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

.detail-tags span {
    color: var(--ash-700);
    background: rgba(100, 105, 119, 0.10);
}

.detail-main h2 {
    margin: 28px 0 12px;
    font-size: 24px;
}

.detail-main p {
    margin: 0;
    color: var(--ash-700);
    line-height: 1.95;
    font-size: 17px;
}

.prev-next {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.prev-next a {
    padding: 11px 16px;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--volcanic-600), var(--lava-500));
}

.related-section {
    padding-bottom: 70px;
}

.site-footer {
    margin-top: 80px;
    color: rgba(255, 255, 255, 0.78);
    background: linear-gradient(135deg, var(--ash-950), var(--volcanic-900));
}

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

.footer-logo {
    margin-bottom: 12px;
    color: var(--white);
    font-size: 24px;
    font-weight: 900;
}

.footer-brand p {
    max-width: 420px;
    margin: 0;
    line-height: 1.75;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
}

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

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

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

    .hero-content {
        grid-template-columns: 1fr 260px;
    }

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

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

    .ranking-copy {
        position: static;
    }
}

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

    .menu-toggle {
        display: block;
    }

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

    .mobile-panel .nav-link {
        width: 100%;
        margin-top: 8px;
    }

    .hero-carousel {
        min-height: 620px;
        height: auto;
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-items: end;
        padding-top: 92px;
        gap: 24px;
    }

    .hero-poster {
        display: none;
    }

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

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

    .category-tile {
        grid-template-columns: 150px minmax(0, 1fr);
    }

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

    .detail-poster {
        position: static;
        max-width: 320px;
    }

    .wide-card {
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .wide-number {
        display: none;
    }

    .wide-cover {
        width: 90px;
        aspect-ratio: 3 / 4;
    }

    .ghost-link {
        grid-column: 1 / -1;
        width: fit-content;
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .site-nav {
        min-height: 66px;
    }

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

    .brand-text small {
        display: none;
    }

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

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

    .search-band,
    .compact-hero,
    .ranking-panel,
    .detail-main {
        border-radius: 22px;
    }

    .compact-hero {
        padding: 30px 22px;
    }

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

    .movie-grid,
    .small-grid {
        grid-template-columns: 1fr;
    }

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

    .category-cover {
        max-height: 320px;
    }

    .search-box {
        border-radius: 18px;
        flex-direction: column;
        padding: 10px;
    }

    .search-box input {
        min-height: 42px;
    }

    .search-box button {
        min-height: 42px;
    }
}
