:root {
    --color-bg: #f9fafb;
    --color-surface: #ffffff;
    --color-text: #1f2937;
    --color-muted: #6b7280;
    --color-border: #e5e7eb;
    --color-red: #dc2626;
    --color-red-dark: #b91c1c;
    --color-black: #111827;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.10);
    --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.08);
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-text);
    background: var(--color-bg);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 22px;
}

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

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: var(--color-red);
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(220, 38, 38, 0.25);
}

.brand-copy {
    display: grid;
    line-height: 1.2;
}

.brand-copy strong {
    font-size: 20px;
    color: var(--color-black);
}

.brand-copy small {
    color: var(--color-muted);
    font-size: 12px;
}

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

.nav-link,
.nav-dropdown > button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 12px;
    color: #374151;
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.is-active,
.nav-dropdown:hover > button {
    color: var(--color-red);
    background: #fef2f2;
}

.nav-dropdown {
    position: relative;
}

.nav-drop-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 360px;
    padding: 14px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .nav-drop-panel,
.nav-dropdown:focus-within .nav-drop-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-drop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.nav-drop-grid a {
    padding: 10px 12px;
    color: #4b5563;
    background: #f9fafb;
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-drop-grid a:hover {
    color: var(--color-red);
    background: #fee2e2;
}

.nav-search {
    position: relative;
    width: min(260px, 25vw);
}

.nav-search input,
.mobile-search input,
.hero-search input,
.search-panel input,
.search-panel select,
.toolbar-card input {
    width: 100%;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: #ffffff;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
    height: 42px;
    padding: 0 44px 0 16px;
}

.nav-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.search-panel input:focus,
.search-panel select:focus,
.toolbar-card input:focus {
    border-color: var(--color-red);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
}

.nav-search button {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    color: #ffffff;
    background: var(--color-red);
    border: 0;
    border-radius: 9px;
    cursor: pointer;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 10px;
    background: #f3f4f6;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--color-black);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    padding: 10px 16px 18px;
    border-top: 1px solid var(--color-border);
    background: #ffffff;
}

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

.mobile-panel > a,
.mobile-category-grid a {
    padding: 12px 14px;
    background: #f9fafb;
    border-radius: 10px;
}

.mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.mobile-search input {
    padding: 12px 14px;
}

.mobile-search button {
    border: 0;
    color: #ffffff;
    background: var(--color-red);
    border-radius: 10px;
    padding: 0 16px;
}

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

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: #020617;
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.65s ease, visibility 0.65s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-slide__shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 25%, rgba(220, 38, 38, 0.25), transparent 35%),
        linear-gradient(90deg, rgba(3, 7, 18, 0.92) 0%, rgba(3, 7, 18, 0.62) 42%, rgba(3, 7, 18, 0.18) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent 55%);
}

.hero-slide__content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 76px;
}

.hero-copy {
    max-width: 720px;
    color: #ffffff;
}

.hero-kicker,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--color-red);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 650px;
    margin: 0 0 22px;
    color: #e5e7eb;
    font-size: 19px;
}

.hero-tags,
.tag-row,
.related-chip-row,
.chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag-row span,
.related-chip-row a,
.related-chip-row span,
.chip-cloud a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    color: #374151;
    background: #f3f4f6;
    border-radius: 999px;
    font-size: 13px;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(220, 38, 38, 0.82);
    backdrop-filter: blur(8px);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button--primary,
.button--block {
    color: #ffffff;
    background: var(--color-red);
    box-shadow: 0 12px 28px rgba(220, 38, 38, 0.22);
}

.button--primary:hover,
.button--block:hover {
    background: var(--color-red-dark);
}

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

.button--light {
    color: #374151;
    background: #f3f4f6;
}

.button--block {
    width: 100%;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    pointer-events: none;
}

.hero-controls button {
    pointer-events: auto;
    border: 0;
    cursor: pointer;
}

.hero-controls > button {
    width: 40px;
    height: 40px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-size: 28px;
    line-height: 1;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
    border-radius: 999px;
}

.hero-dot.is-active {
    width: 28px;
    background: var(--color-red);
}

.section {
    padding: 58px 0;
}

.section-soft {
    background: #ffffff;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

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

.section-head--compact {
    margin-bottom: 18px;
}

.section-head h2,
.ranking-card__head h2 {
    margin: 0;
    color: var(--color-black);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.2;
}

.section-more {
    color: var(--color-red);
    font-weight: 800;
}

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

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

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

.movie-card {
    min-width: 0;
}

.movie-card__poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(220, 38, 38, 0.85), rgba(17, 24, 39, 0.95));
    border-radius: 14px;
    box-shadow: var(--shadow-card);
}

.movie-card--compact .movie-card__poster,
.movie-grid--wide .movie-card__poster {
    aspect-ratio: 16 / 10;
}

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

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

.movie-card__poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card__poster:hover::after {
    opacity: 1;
}

.movie-card__play {
    position: absolute;
    inset: 50% auto auto 50%;
    z-index: 2;
    transform: translate(-50%, -50%) scale(0.88);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    color: #ffffff;
    background: rgba(220, 38, 38, 0.92);
    border-radius: 999px;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card__poster:hover .movie-card__play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-card__badge,
.movie-card__score,
.category-card__count {
    position: absolute;
    z-index: 2;
    padding: 4px 8px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.72);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 800;
}

.movie-card__badge {
    top: 10px;
    left: 10px;
}

.movie-card__score {
    right: 10px;
    bottom: 10px;
    background: var(--color-red);
}

.movie-card__body {
    padding: 12px 2px 0;
}

.movie-card__body h2 {
    margin: 0 0 4px;
    font-size: 16px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-card__body h2 a:hover {
    color: var(--color-red);
}

.movie-card__body p {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 8px;
    color: var(--color-muted);
    font-size: 13px;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #9ca3af;
    font-size: 12px;
}

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

.category-tile,
.category-card {
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: end;
    min-height: 160px;
    padding: 18px;
    color: #ffffff;
    background: #111827;
    border-radius: 18px;
    box-shadow: var(--shadow-card);
}

.category-tile img,
.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.52;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.category-tile:hover img,
.category-card:hover img {
    opacity: 0.72;
    transform: scale(1.08);
}

.category-tile span,
.category-tile small,
.category-card strong,
.category-card small,
.category-card__count {
    position: relative;
    z-index: 1;
}

.category-tile span,
.category-card strong {
    font-size: 22px;
    font-weight: 900;
}

.category-tile small,
.category-card small {
    color: rgba(255, 255, 255, 0.78);
}

.category-card__count {
    top: 14px;
    right: 14px;
    background: var(--color-red);
}

.two-column-section,
.ranking-layout,
.detail-layout,
.split-chips {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: start;
}

.ranking-card,
.ranking-main-card,
.ranking-side,
.content-card,
.side-card,
.toolbar-card,
.search-panel,
.cta-panel,
.player-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.ranking-card,
.ranking-main-card,
.ranking-side,
.content-card,
.side-card,
.toolbar-card,
.search-panel,
.cta-panel {
    padding: 24px;
}

.ranking-card__head {
    margin-bottom: 18px;
}

.ranking-card__head span {
    color: var(--color-red);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ranking-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.ranking-item a {
    display: grid;
    grid-template-columns: 36px 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-item a:hover {
    background: #f9fafb;
    transform: translateX(2px);
}

.ranking-item__rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 999px;
    font-weight: 900;
}

.ranking-item--top .ranking-item__rank {
    color: #ffffff;
    background: var(--color-red);
}

.ranking-item img {
    width: 46px;
    height: 62px;
    object-fit: cover;
    border-radius: 8px;
    background: #111827;
}

.ranking-item__body {
    min-width: 0;
}

.ranking-item__body strong,
.ranking-item__body small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-item__body small {
    color: var(--color-muted);
    font-size: 12px;
}

.ranking-item__score {
    color: var(--color-red);
    font-weight: 900;
}

.ranking-list--large .ranking-item a {
    grid-template-columns: 48px 58px minmax(0, 1fr) auto;
    padding: 14px;
    border: 1px solid #f3f4f6;
}

.ranking-list--large .ranking-item img {
    width: 58px;
    height: 78px;
}

.cta-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 26px;
    align-items: center;
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, var(--color-red), var(--color-black));
    border: 0;
}

.cta-panel h2 {
    margin: 0 0 8px;
    font-size: clamp(26px, 4vw, 42px);
}

.cta-panel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
}

.hero-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.hero-search input {
    padding: 15px 18px;
}

.hero-search button {
    padding: 0 24px;
    color: #ffffff;
    background: var(--color-black);
    border: 0;
    border-radius: 12px;
    font-weight: 900;
}

.page-hero {
    padding: 64px 0;
    color: #ffffff;
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
}

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

.page-hero--red {
    background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
}

.page-hero--dark {
    background:
        radial-gradient(circle at 80% 20%, rgba(220, 38, 38, 0.28), transparent 28%),
        linear-gradient(135deg, #111827, #030712);
}

.page-hero--gray {
    color: var(--color-black);
    background: linear-gradient(135deg, #ffffff, #f3f4f6);
    border-bottom: 1px solid var(--color-border);
}

.page-hero--gray p {
    color: var(--color-muted);
}

.toolbar-card {
    margin-bottom: 26px;
}

.toolbar-card label,
.search-panel label {
    display: block;
    margin-bottom: 8px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 800;
}

.toolbar-card input,
.search-panel input,
.search-panel select {
    min-height: 44px;
    padding: 0 14px;
}

.toolbar-card--row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.toolbar-card--row div {
    display: grid;
}

.toolbar-card--row div span {
    color: var(--color-muted);
    font-size: 13px;
}

.toolbar-card--row input {
    width: min(420px, 100%);
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(280px, 1.4fr) repeat(4, minmax(130px, 1fr)) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 24px;
}

.search-panel button {
    min-height: 44px;
    padding: 0 22px;
    color: #ffffff;
    background: var(--color-red);
    border: 0;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
}

.search-summary {
    margin-bottom: 22px;
    color: var(--color-muted);
}

.chip-cloud a small {
    color: var(--color-muted);
}

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

.related-chip-row a:hover,
.chip-cloud a:hover {
    color: var(--color-red);
    background: #fee2e2;
}

.related-chip-row--compact {
    gap: 8px;
}

.related-chip-row--compact a,
.related-chip-row--compact span {
    font-size: 12px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 38px;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
}

.pagination a:hover {
    color: #ffffff;
    background: var(--color-red);
    border-color: var(--color-red);
}

.detail-top {
    padding: 20px 0;
    background: #000000;
}

.back-link {
    color: #ffffff;
    font-weight: 800;
}

.detail-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    padding: 34px 0 0;
}

.detail-main {
    display: grid;
    gap: 24px;
}

.player-card {
    overflow: hidden;
    background: #000000;
    border: 0;
}

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

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background:
        radial-gradient(circle at center, rgba(220, 38, 38, 0.18), transparent 32%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.20));
    cursor: pointer;
}

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

.play-overlay span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    color: #ffffff;
    background: var(--color-red);
    border-radius: 999px;
    font-size: 38px;
    box-shadow: 0 20px 45px rgba(220, 38, 38, 0.35);
}

.player-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 22px;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), transparent);
    pointer-events: none;
}

.player-caption span {
    color: #d1d5db;
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 18px;
    display: none;
    padding: 12px 14px;
    color: #ffffff;
    background: rgba(185, 28, 28, 0.90);
    border-radius: 12px;
}

.player-message.is-visible {
    display: block;
}

.detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.detail-title-row h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
}

.detail-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    height: 64px;
    color: #ffffff;
    background: var(--color-red);
    border-radius: 18px;
    font-size: 24px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.detail-meta span {
    padding: 7px 12px;
    color: #4b5563;
    background: #f3f4f6;
    border-radius: 999px;
    font-size: 13px;
}

.detail-one-line {
    margin: 0;
    color: #374151;
    font-size: 18px;
    font-weight: 700;
}

.detail-section {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.detail-section h2,
.side-card h2 {
    margin: 0 0 12px;
    color: var(--color-black);
    font-size: 22px;
}

.detail-section p {
    margin: 0;
    color: #4b5563;
    font-size: 16px;
}

.detail-side {
    display: grid;
    gap: 20px;
    position: sticky;
    top: 86px;
}

.side-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    margin-bottom: 18px;
    background: linear-gradient(135deg, var(--color-red), var(--color-black));
    border-radius: 14px;
}

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

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

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

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

.sitemap-links ul {
    columns: 4 220px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sitemap-links li {
    break-inside: avoid;
    margin: 0 0 10px;
}

.sitemap-links a:hover {
    color: var(--color-red);
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 34px;
    padding: 46px 0;
}

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

.footer-grid p {
    margin: 12px 0 0;
    color: #9ca3af;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

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

.footer-bottom {
    padding: 18px 0;
    color: #6b7280;
    border-top: 1px solid #1f2937;
    text-align: center;
}

[data-cover].is-missing {
    opacity: 0;
}

.is-filtered-out {
    display: none !important;
}

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

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

    .nav-search {
        width: min(320px, 40vw);
    }

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

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

    .two-column-section,
    .ranking-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-side {
        position: static;
    }

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

    .search-panel__main {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .header-inner {
        min-height: 58px;
        gap: 10px;
    }

    .brand-copy small,
    .nav-search {
        display: none;
    }

    .brand-copy strong {
        font-size: 17px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .hero {
        height: 560px;
    }

    .hero-slide__content {
        padding-bottom: 86px;
    }

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

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

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

    .section {
        padding: 42px 0;
    }

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

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

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

    .category-tile,
    .category-card {
        min-height: 132px;
    }

    .cta-panel,
    .split-chips,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-search button,
    .mobile-search button {
        min-height: 44px;
    }

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

    .toolbar-card--row {
        align-items: stretch;
        flex-direction: column;
    }

    .toolbar-card--row input {
        width: 100%;
    }

    .ranking-item a {
        grid-template-columns: 30px 44px minmax(0, 1fr);
    }

    .ranking-item__score {
        display: none;
    }

    .player-caption {
        display: grid;
        padding: 16px;
    }

    .play-overlay span {
        width: 72px;
        height: 72px;
        font-size: 30px;
    }

    .detail-title-row {
        display: grid;
    }

    .sitemap-links ul {
        columns: 1;
    }
}

@media (max-width: 430px) {
    .movie-grid,
    .movie-grid--wide,
    .movie-grid--side {
        gap: 12px;
    }

    .movie-card__body h2 {
        font-size: 14px;
    }

    .movie-card__body p {
        font-size: 12px;
    }
}
