:root {
    --bg: #f9fafb;
    --surface: #ffffff;
    --surface-soft: #f3f4f6;
    --text: #111827;
    --muted: #6b7280;
    --faint: #9ca3af;
    --line: rgba(17, 24, 39, 0.10);
    --line-strong: rgba(17, 24, 39, 0.16);
    --shadow: 0 24px 80px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 45%, #f7f7f8 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    backdrop-filter: blur(18px);
}

.nav-shell {
    height: 72px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #4b5563);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.22);
}

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

.desktop-nav a,
.mobile-panel a {
    color: #4b5563;
    font-size: 14px;
    font-weight: 600;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: #111827;
}

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(360px, 35vw);
    padding: 6px;
    background: rgba(243, 244, 246, 0.9);
    border: 1px solid rgba(209, 213, 219, 0.8);
    border-radius: 999px;
}

.header-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 8px 12px;
    background: transparent;
    color: var(--text);
}

.header-search button {
    border: 0;
    padding: 8px 14px;
    color: #ffffff;
    background: #111827;
    border-radius: 999px;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 14px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
    border-radius: 99px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
}

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

.mobile-panel-inner {
    display: grid;
    gap: 12px;
    padding: 18px 0 22px;
}

.mobile-category-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.mobile-category-links a {
    padding: 7px 10px;
    background: var(--surface-soft);
    border-radius: 999px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 900ms ease, transform 900ms ease;
    transform: scale(1.02);
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-image,
.hero-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image img {
    object-fit: cover;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.12), transparent 28%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(31, 41, 55, 0.76) 48%, rgba(17, 24, 39, 0.46) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 520px;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(680px, 100%);
    padding: 56px 0;
    color: #ffffff;
}

.hero-pill,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #374151;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    backdrop-filter: blur(12px);
}

.eyebrow {
    color: #6b7280;
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero-copy p {
    max-width: 620px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag-list a {
    padding: 8px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 999px;
    font-size: 13px;
    backdrop-filter: blur(10px);
}

.tag-list a {
    color: #374151;
    background: #f3f4f6;
    border-color: #e5e7eb;
}

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

.primary-button,
.ghost-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.primary-button {
    color: #111827;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.18);
}

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

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

.ghost-button.light {
    color: #111827;
    background: #ffffff;
    border-color: var(--line);
}

.small-button {
    min-height: 40px;
    color: #ffffff;
    background: #111827;
    box-shadow: none;
}

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

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

.hero-dots button.is-active {
    background: #ffffff;
}

.content-section {
    margin-top: 62px;
}

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

.section-heading h2,
.page-hero h1,
.channel-hero h1,
.detail-info h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p,
.channel-hero p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--muted);
}

.section-more {
    flex: 0 0 auto;
    min-height: 42px;
    color: #111827;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

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

.movie-card,
.rank-mini-card,
.ranking-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.movie-card:hover,
.rank-mini-card:hover,
.ranking-card:hover,
.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-soft);
}

.poster-frame {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.40), transparent 28%),
        linear-gradient(135deg, #111827, #6b7280);
}

.movie-card .poster-frame {
    aspect-ratio: 16 / 10;
}

.poster-frame img,
.mini-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

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

.poster-missing::after {
    content: attr(data-fallback-title);
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.02em;
}

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 6px 10px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 12px;
    backdrop-filter: blur(10px);
}

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

.movie-meta-line,
.movie-card-footer,
.detail-meta-grid,
.ranking-info div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.movie-meta-line span,
.movie-card-footer span,
.ranking-info span {
    padding: 4px 8px;
    background: #f3f4f6;
    border-radius: 999px;
}

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

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

.home-intro {
    margin-top: 34px;
}

.intro-card {
    padding: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.intro-card h2 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.intro-card p {
    max-width: 820px;
    margin: 0;
    color: var(--muted);
}

.intro-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.intro-stats span {
    padding: 10px 14px;
    background: #f3f4f6;
    border-radius: 999px;
    color: #4b5563;
}

.intro-stats strong {
    color: #111827;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 26px;
    align-items: start;
}

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

.category-card {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    overflow: hidden;
    color: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.category-card img,
.category-card-overlay,
.category-overview-card > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card-overlay {
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.90), rgba(17, 24, 39, 0.18));
}

.category-card div:last-child {
    position: relative;
    z-index: 2;
}

.category-card span,
.category-overview-card span {
    display: inline-block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 700;
}

.category-card h3,
.category-overview-card h2 {
    margin: 0 0 8px;
    font-size: 25px;
    line-height: 1.1;
}

.category-card p,
.category-overview-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.80);
    font-size: 14px;
}

.rank-panel,
.sidebar-card {
    padding: 22px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.compact-heading {
    display: block;
}

.rank-list,
.mini-card-list {
    display: grid;
    gap: 10px;
}

.rank-row {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
}

.rank-number {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: #111827;
    border-radius: 14px;
    font-weight: 900;
}

.rank-row strong,
.rank-mini-card strong {
    display: block;
    line-height: 1.35;
}

.rank-row small,
.rank-row em,
.rank-mini-card span {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.page-main {
    min-height: 70vh;
}

.page-hero {
    padding: 70px 0 36px;
}

.page-hero h1 {
    font-size: clamp(42px, 7vw, 72px);
}

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

.category-overview-card {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.category-overview-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.18));
}

.category-overview-content {
    position: relative;
    z-index: 2;
    padding: 26px;
    color: #ffffff;
}

.category-overview-card small {
    display: block;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.70);
}

.channel-hero {
    position: relative;
    min-height: 410px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

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

.channel-hero-overlay {
    z-index: 1;
    background:
        radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.14), transparent 30%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.58));
}

.channel-hero-content {
    position: relative;
    z-index: 2;
    padding: 72px 0 52px;
}

.channel-hero h1,
.channel-hero p {
    color: #ffffff;
}

.channel-stats span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.detail-primary .breadcrumb {
    color: #6b7280;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: 14px;
    align-items: center;
    margin-bottom: 24px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.filter-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.filter-search input {
    width: 100%;
    min-height: 44px;
    border: 0;
    outline: 0;
    background: transparent;
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-select {
    min-height: 46px;
    padding: 0 14px;
    color: #374151;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.filter-count {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

.empty-state {
    display: none;
    padding: 36px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
}

.empty-state.is-visible {
    display: block;
}

.mini-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.rank-mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
}

.mini-poster {
    position: relative;
    width: 82px;
    height: 58px;
    flex: 0 0 auto;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #9ca3af);
    border-radius: 12px;
}

.mini-card-content {
    min-width: 0;
}

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

.ranking-card {
    display: grid;
    grid-template-columns: 72px 116px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
}

.ranking-index {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: #111827;
    border-radius: 18px;
    font-weight: 900;
}

.ranking-card .mini-poster {
    width: 116px;
    height: 76px;
}

.ranking-info h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.ranking-info p {
    display: -webkit-box;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.player-section {
    margin-top: 18px;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #111827;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #111827;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    width: 100%;
    color: #ffffff;
    background:
        radial-gradient(circle at center, rgba(255, 255, 255, 0.08), transparent 34%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.78), rgba(17, 24, 39, 0.30));
    border: 0;
    cursor: pointer;
    font-size: 18px;
    font-weight: 800;
}

.player-start span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    padding-left: 6px;
    color: #111827;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
}

.player-shell.is-playing .player-start {
    opacity: 0;
    pointer-events: none;
}

.detail-info,
.detail-text-block,
.related-section {
    margin-top: 28px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

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

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

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.detail-meta-grid span {
    display: grid;
    gap: 4px;
    padding: 12px;
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.detail-meta-grid strong {
    color: var(--faint);
    font-size: 12px;
}

.detail-text-block h2,
.sidebar-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.detail-text-block p {
    margin: 0;
    color: #374151;
    font-size: 16px;
    line-height: 1.9;
}

.detail-sidebar {
    display: grid;
    align-content: start;
    gap: 18px;
    position: sticky;
    top: 92px;
}

.sidebar-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.site-footer {
    margin-top: 80px;
    background: linear-gradient(180deg, #f3f4f6, #e5e7eb);
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1.2fr;
    gap: 30px;
    padding: 44px 0;
}

.footer-logo {
    margin-bottom: 12px;
}

.site-footer p,
.site-footer a {
    display: block;
    color: #4b5563;
    font-size: 14px;
}

.site-footer h3 {
    margin: 0 0 14px;
    font-size: 16px;
}

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

.footer-bottom {
    padding: 18px;
    color: #6b7280;
    text-align: center;
    border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    width: 46px;
    height: 46px;
    display: none;
    color: #ffffff;
    background: #111827;
    border: 0;
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.back-to-top.is-visible {
    display: grid;
    place-items: center;
}

.not-found {
    min-height: 50vh;
    display: grid;
    place-items: center;
    text-align: center;
}

.center-actions {
    justify-content: center;
}

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

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

    .detail-sidebar {
        position: static;
    }

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

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

    .menu-toggle {
        display: block;
    }

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

    .hero-copy {
        padding: 86px 0 64px;
    }

    .section-heading,
    .detail-title-row {
        display: block;
    }

    .section-more,
    .detail-title-row .primary-button {
        margin-top: 14px;
    }

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

    .ranking-card {
        grid-template-columns: 48px 82px 1fr;
        gap: 10px;
    }

    .ranking-index {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 13px;
    }

    .ranking-card .mini-poster {
        width: 82px;
        height: 58px;
    }

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

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

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, var(--container));
    }

    .nav-shell {
        height: 64px;
    }

    .logo {
        font-size: 17px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
    }

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

    .hero-actions,
    .filter-actions {
        display: grid;
        width: 100%;
    }

    .primary-button,
    .ghost-button,
    .filter-select {
        width: 100%;
    }

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

    .category-card,
    .category-overview-card {
        min-height: 230px;
    }

    .detail-info,
    .detail-text-block,
    .related-section,
    .rank-panel,
    .sidebar-card {
        padding: 18px;
        border-radius: 20px;
    }

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

    .rank-row {
        grid-template-columns: 38px 1fr;
    }

    .rank-row em {
        grid-column: 2;
    }
}
