:root {
    --bg: #fff7ed;
    --panel: #ffffff;
    --ink: #111827;
    --muted: #6b7280;
    --line: rgba(17, 24, 39, 0.08);
    --orange: #f97316;
    --orange-dark: #ea580c;
    --red: #ef4444;
    --amber: #f59e0b;
    --night: #111827;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --shadow-soft: 0 24px 70px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 18px 40px rgba(15, 23, 42, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 76px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 900;
    white-space: nowrap;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.34);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 700;
    color: #374151;
    flex: 1;
}

.nav-links a {
    padding: 10px 2px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--orange);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px;
}

.nav-search input {
    width: 210px;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 10px;
}

.nav-search button,
.large-search button,
.home-search-panel button {
    border: 0;
    color: #ffffff;
    cursor: pointer;
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 10px 22px rgba(239, 68, 68, 0.24);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: #fff7ed;
    border-radius: 14px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
    border-top: 1px solid var(--line);
}

.mobile-panel.open {
    display: grid;
    gap: 10px;
}

.mobile-panel a {
    padding: 11px 14px;
    border-radius: 14px;
    background: #fff7ed;
    font-weight: 700;
}

.mobile-panel form {
    display: flex;
    gap: 8px;
}

.mobile-panel input {
    min-width: 0;
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
}

.mobile-panel button {
    border: 0;
    border-radius: 14px;
    padding: 12px 18px;
    color: #ffffff;
    font-weight: 800;
    background: var(--orange);
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    color: #ffffff;
    background: #0f172a;
}

.hero-track {
    position: relative;
    min-height: 680px;
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.12) contrast(1.05);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.76) 45%, rgba(15, 23, 42, 0.28) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.84), transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 680px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 118px 24px 96px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 56px;
}

.eyebrow,
.hero-copy > span,
.page-hero > span,
.category-hero span,
.section-heading span,
.side-title span,
.watch-copy span {
    display: inline-flex;
    align-items: center;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.18);
    border: 1px solid rgba(253, 186, 116, 0.30);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 22px 0 16px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-meta {
    color: #ffedd5;
    font-weight: 800;
}

.hero-summary {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
}

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

.hero-tags span,
.detail-tags a,
.tag-row span {
    color: #9a3412;
    background: #ffedd5;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
}

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

.primary-btn,
.ghost-btn,
.center-action a,
.filter-bar a,
.category-preview-head a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 900;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--red));
    box-shadow: 0 16px 34px rgba(239, 68, 68, 0.30);
}

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

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

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

.hero-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    text-align: center;
    padding: 12px;
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(12px);
    font-weight: 900;
}

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

.hero-dots button {
    width: 13px;
    height: 13px;
    padding: 0;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
}

.hero-dots button.active {
    width: 34px;
    background: #ffffff;
}

.home-search-panel,
.content-block,
.page-hero,
.category-hero,
.filter-bar,
.detail-inner,
.watch-section,
.detail-content,
.rank-list {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.home-search-panel {
    margin-top: -54px;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 28px;
    align-items: center;
    padding: 28px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.home-search-panel span {
    color: var(--orange);
    font-weight: 900;
}

.home-search-panel h2 {
    margin: 4px 0 6px;
    font-size: 30px;
}

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

.home-search-panel form,
.large-search {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 8px;
}

.home-search-panel input,
.large-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 12px 16px;
}

.content-block {
    padding: 76px 24px 0;
}

.with-side {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
    align-items: start;
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading span {
    color: var(--orange-dark);
    background: #ffedd5;
    border-color: #fed7aa;
}

.section-heading h2,
.side-title h2 {
    margin: 12px 0 6px;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
    max-width: 780px;
}

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

.movie-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.32);
    box-shadow: var(--shadow-card);
}

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

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

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

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 58%;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.72), transparent);
}

.play-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.92);
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 12px;
    font-weight: 900;
}

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

.movie-meta-line {
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 8px;
}

.movie-card h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
}

.movie-card p {
    margin: 8px 0 12px;
    color: var(--muted);
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-compact {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
}

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

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

.movie-card-compact h3 {
    font-size: 15px;
}

.movie-card-compact .tag-row {
    display: none;
}

.side-panel {
    position: sticky;
    top: 102px;
    border-radius: var(--radius-xl);
    background: #111827;
    color: #ffffff;
    padding: 22px;
    box-shadow: var(--shadow-soft);
}

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

.side-panel .movie-card {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.side-panel .movie-card h3,
.side-panel .movie-meta-line {
    color: #ffffff;
}

.side-panel .movie-card p {
    color: rgba(255, 255, 255, 0.72);
}

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

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

.category-tile {
    min-height: 174px;
    padding: 22px;
    border-radius: var(--radius-lg);
    border: 1px solid #fed7aa;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    font-weight: 900;
}

.category-tile strong {
    display: block;
    margin: 16px 0 8px;
    font-size: 20px;
}

.category-tile em {
    display: block;
    color: var(--muted);
    font-style: normal;
    font-size: 14px;
}

.ranking-block {
    padding-bottom: 18px;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 52px 70px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.rank-no {
    color: var(--orange);
    font-weight: 1000;
    font-size: 20px;
}

.ranking-item img {
    width: 70px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.rank-info strong,
.rank-info em {
    display: block;
}

.rank-info strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.center-action {
    text-align: center;
    margin-top: 28px;
}

.page-hero,
.category-hero {
    margin-top: 38px;
    padding: 60px 24px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.20), transparent 34%),
        linear-gradient(135deg, #111827, #7c2d12);
    color: #ffffff;
    box-shadow: var(--shadow-soft);
}

.page-hero h1,
.category-hero h1 {
    margin: 18px 0 10px;
    font-size: clamp(36px, 6vw, 64px);
    letter-spacing: -0.05em;
    line-height: 1;
}

.page-hero p,
.category-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
}

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

.category-feature {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
}

.category-feature img {
    width: 110px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 16px;
}

.category-feature strong,
.category-feature span {
    display: block;
}

.category-feature span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    margin-top: 6px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.74);
    margin-top: 20px;
    font-weight: 700;
}

.breadcrumb b {
    color: rgba(255, 255, 255, 0.34);
}

.breadcrumb em {
    font-style: normal;
    color: #ffffff;
}

.filter-bar {
    margin-top: 26px;
    padding: 0 24px;
    display: flex;
    gap: 14px;
    align-items: center;
}

.filter-bar.wide {
    max-width: 980px;
}

.filter-bar input {
    min-width: 0;
    flex: 1;
    border: 1px solid #fed7aa;
    background: #ffffff;
    border-radius: 999px;
    padding: 15px 20px;
    outline: 0;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.08);
}

.filter-bar a,
.category-preview-head a {
    color: #ffffff;
    background: var(--night);
}

.empty-state {
    display: none;
    margin: 24px 0 0;
    padding: 22px;
    border-radius: 18px;
    background: #fff7ed;
    color: var(--muted);
    text-align: center;
}

.empty-state.show {
    display: block;
}

.stacked-previews {
    display: grid;
    gap: 28px;
}

.category-preview {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: 24px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.category-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.category-preview-head span {
    color: var(--orange);
    font-weight: 900;
}

.category-preview-head h2 {
    margin: 6px 0 0;
    font-size: 22px;
}

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

.rank-list {
    padding: 34px 24px 0;
    display: grid;
    gap: 16px;
}

.rank-card {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.rank-cover {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #111827;
}

.rank-cover span {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    color: #ffffff;
    background: var(--orange);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 900;
}

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

.rank-card p {
    color: var(--orange-dark);
    font-weight: 900;
    margin: 4px 0 6px;
}

.rank-card h2 {
    margin: 0;
    font-size: 24px;
}

.rank-card em {
    display: block;
    margin: 10px 0 14px;
    color: var(--muted);
    font-style: normal;
}

.large-search {
    max-width: 720px;
    margin-top: 26px;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
}

.large-search input {
    color: #ffffff;
}

.large-search input::placeholder {
    color: rgba(255, 255, 255, 0.64);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #ffffff;
    background: #111827;
}

.detail-bg {
    position: absolute;
    inset: 0;
}

.detail-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) saturate(1.1);
    transform: scale(1.04);
}

.detail-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.84)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.94), transparent 42%);
}

.detail-inner {
    position: relative;
    z-index: 2;
    min-height: 620px;
    padding: 78px 24px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 44px;
    align-items: center;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: 0 34px 74px rgba(0, 0, 0, 0.42);
}

.detail-copy h1 {
    margin: 18px 0 12px;
    font-size: clamp(34px, 6vw, 70px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.detail-meta {
    color: #fed7aa;
    font-weight: 900;
}

.detail-one-line {
    max-width: 840px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 19px;
}

.detail-tags {
    margin: 22px 0 30px;
}

.watch-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: stretch;
    padding: 54px 24px 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 16 / 9;
}

.movie-video {
    display: block;
    width: 100%;
    height: 100%;
    background: #000000;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.70), rgba(2, 6, 23, 0.30));
    z-index: 3;
}

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

.play-icon {
    width: 76px;
    height: 76px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--red));
    position: relative;
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.34);
}

.play-icon::after {
    content: "";
    position: absolute;
    left: 31px;
    top: 24px;
    border-left: 22px solid #ffffff;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
}

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

.watch-copy {
    border-radius: 30px;
    background: #111827;
    color: #ffffff;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.watch-copy h2 {
    margin: 18px 0 10px;
    font-size: 34px;
    line-height: 1.1;
}

.watch-copy p {
    color: rgba(255, 255, 255, 0.74);
}

.detail-content {
    padding: 54px 24px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 24px;
}

.detail-content article {
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    padding: 28px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.detail-content article:first-child {
    grid-row: span 2;
}

.detail-content h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

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

.movie-info-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.movie-info-list div {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
}

.movie-info-list dt {
    color: var(--muted);
    font-weight: 900;
}

.movie-info-list dd {
    margin: 0;
}

.related-block {
    padding-bottom: 78px;
}

.site-footer {
    margin-top: 88px;
    color: #d1d5db;
    background: #111827;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 52px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
    gap: 36px;
}

.footer-inner p {
    max-width: 560px;
    color: #9ca3af;
}

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

.footer-inner a:not(.footer-brand) {
    display: block;
    color: #9ca3af;
    margin: 8px 0;
}

.footer-inner a:hover {
    color: #fed7aa;
}

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

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

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

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

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 900px) {
    .hero-content,
    .home-search-panel,
    .with-side,
    .category-hero,
    .detail-inner,
    .watch-section,
    .detail-content,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding-top: 104px;
    }

    .hero-poster {
        display: none;
    }

    .side-panel {
        position: static;
    }

    .nav-search {
        display: none;
    }

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

    .detail-content article:first-child {
        grid-row: auto;
    }

    .watch-copy {
        min-height: 220px;
    }
}

@media (max-width: 640px) {
    .nav-wrap {
        padding: 0 16px;
    }

    .brand {
        font-size: 18px;
    }

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

    .hero-carousel,
    .hero-track,
    .hero-content {
        min-height: 620px;
    }

    .hero-content {
        padding: 92px 18px 84px;
    }

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

    .home-search-panel,
    .content-block,
    .rank-list,
    .detail-inner,
    .watch-section,
    .detail-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .home-search-panel form,
    .large-search,
    .filter-bar,
    .mobile-panel form {
        border-radius: 22px;
        flex-direction: column;
        align-items: stretch;
    }

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

    .movie-card-compact {
        grid-template-columns: 1fr;
    }

    .page-hero,
    .category-hero {
        margin-top: 18px;
        border-radius: 0;
        padding: 42px 18px;
    }

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

    .category-feature img {
        width: 86px;
    }

    .rank-card {
        grid-template-columns: 94px minmax(0, 1fr);
        padding: 12px;
    }

    .rank-card h2 {
        font-size: 18px;
    }

    .filter-bar {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 420px) {
    .movie-grid,
    .category-grid,
    .category-grid.large,
    .ranking-grid,
    .compact-grid {
        grid-template-columns: 1fr;
    }
}
