* {
    box-sizing: border-box;
}

:root {
    --primary-50: #f0f9ff;
    --primary-100: #e0f2fe;
    --primary-200: #bae6fd;
    --primary-500: #0ea5e9;
    --primary-600: #0284c7;
    --primary-700: #0369a1;
    --primary-800: #075985;
    --neutral-50: #fafafa;
    --neutral-100: #f5f5f5;
    --neutral-200: #e5e5e5;
    --neutral-300: #d4d4d4;
    --neutral-500: #737373;
    --neutral-600: #525252;
    --neutral-700: #404040;
    --neutral-800: #262626;
    --neutral-900: #171717;
    --shadow-md: 0 10px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.14);
    --shadow-xl: 0 28px 70px rgba(15, 23, 42, 0.18);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--neutral-800);
    background: linear-gradient(180deg, var(--neutral-50), #ffffff 38%, var(--neutral-50));
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 229, 229, 0.86);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

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

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-600);
    font-size: 24px;
    font-weight: 800;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.site-brand:hover {
    color: var(--primary-700);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    border-radius: 12px;
    box-shadow: 0 12px 24px rgba(2, 132, 199, 0.28);
    font-size: 14px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.nav-links a {
    color: var(--neutral-700);
    font-weight: 600;
    transition: color 0.2s ease;
}

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

.site-search,
.mobile-search,
.search-page-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-search input,
.mobile-search input,
.search-page-form input,
.category-search-input {
    width: 260px;
    border: 1px solid var(--neutral-300);
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--neutral-800);
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search input:focus,
.mobile-search input:focus,
.search-page-form input:focus,
.category-search-input:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.16);
}

.site-search button,
.mobile-search button,
.search-page-form button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    color: #ffffff;
    background: var(--primary-600);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.site-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover {
    background: var(--primary-700);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--primary-50);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--primary-700);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0 20px;
    border-top: 1px solid var(--neutral-200);
}

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

.mobile-links {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.mobile-links a {
    padding: 11px 14px;
    border-radius: 12px;
    color: var(--neutral-700);
    font-weight: 600;
    background: var(--neutral-50);
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    color: #ffffff;
    background: var(--neutral-900);
}

.hero-track,
.hero-slide,
.hero-slide img,
.hero-scrim {
    position: absolute;
    inset: 0;
}

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

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

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

.hero-scrim {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.54) 46%, rgba(0, 0, 0, 0.18)), linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 54%);
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: min(720px, calc(100% - 48px));
    margin-left: max(24px, calc((100% - 1280px) / 2));
    padding-top: clamp(72px, 12vh, 138px);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--primary-100);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.hero h2 {
    margin: 0 0 12px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero-title {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
}

.hero-summary {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

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

.hero-tags span,
.movie-tags span,
.detail-tags span {
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
}

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 128px;
    border-radius: 999px;
    padding: 13px 22px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    color: #ffffff;
    background: var(--primary-600);
    box-shadow: 0 18px 34px rgba(2, 132, 199, 0.28);
}

.btn.primary:hover {
    background: var(--primary-700);
}

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

.hero-controls {
    position: absolute;
    z-index: 4;
    left: max(24px, calc((100% - 1280px) / 2));
    bottom: 34px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 56px;
    background: #ffffff;
}

.hero-panel {
    position: absolute;
    z-index: 3;
    right: max(24px, calc((100% - 1280px) / 2));
    bottom: 34px;
    width: min(360px, calc(100% - 48px));
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 24px;
    padding: 22px;
    background: rgba(15, 23, 42, 0.48);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(18px);
}

.hero-panel h2 {
    margin: 0 0 14px;
    font-size: 20px;
}

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

.hero-rank-list a {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease;
}

.hero-rank-list a:hover {
    background: rgba(255, 255, 255, 0.18);
}

.hero-rank-list span {
    color: var(--primary-200);
    font-weight: 900;
}

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

.hero-rank-list em {
    color: rgba(255, 255, 255, 0.68);
    font-style: normal;
    font-size: 12px;
}

.page-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.page-shell.narrow {
    max-width: 920px;
}

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

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

.section-heading h2 {
    margin: 0;
    color: var(--neutral-900);
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--neutral-600);
    line-height: 1.7;
}

.section-more {
    flex-shrink: 0;
    color: var(--primary-600);
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 229, 229, 0.86);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-100), var(--neutral-200));
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.48), transparent 62%);
    opacity: 0.86;
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: #ffffff;
    background: rgba(2, 132, 199, 0.9);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-body {
    padding: 18px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--neutral-500);
    font-size: 12px;
    font-weight: 700;
}

.movie-meta span + span::before {
    content: "·";
    margin-right: 8px;
    color: var(--neutral-300);
}

.movie-card h3 {
    display: -webkit-box;
    min-height: 52px;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--neutral-900);
    font-size: 18px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card h3 a {
    transition: color 0.2s ease;
}

.movie-card:hover h3 a {
    color: var(--primary-600);
}

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

.movie-tags span,
.detail-tags span {
    color: var(--neutral-700);
    background: var(--neutral-100);
}

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

.category-card,
.category-overview-card {
    display: block;
    min-height: 180px;
    border-radius: 24px;
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
    box-shadow: var(--shadow-lg);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:nth-child(2n),
.category-overview-card:nth-child(2n) {
    background: linear-gradient(135deg, var(--neutral-800), var(--neutral-900));
}

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

.category-card span,
.category-main-link span {
    display: block;
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 900;
}

.category-card p,
.category-main-link p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.75;
}

.category-samples {
    display: grid;
    gap: 9px;
    margin-top: 22px;
}

.category-samples a {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.ranking-section {
    border-top: 1px solid var(--neutral-200);
    border-bottom: 1px solid var(--neutral-200);
}

.ranking-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-list a {
    display: grid;
    grid-template-columns: 46px 1fr auto;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--neutral-200);
    border-radius: 18px;
    padding: 14px;
    background: #ffffff;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-list a:hover {
    transform: translateY(-2px);
    border-color: var(--primary-200);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: #ffffff;
    background: var(--primary-600);
    border-radius: 12px;
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--neutral-900);
    font-weight: 800;
}

.rank-meta {
    color: var(--neutral-500);
    font-size: 13px;
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
}

.soft-hero {
    background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.34), transparent 34%), linear-gradient(135deg, var(--neutral-800), var(--neutral-900));
}

.category-hero {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-800));
}

.ranking-hero {
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.42), transparent 30%), linear-gradient(135deg, var(--neutral-900), #0f172a);
}

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

.page-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 62px);
    letter-spacing: -0.04em;
}

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

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 36px 0 4px;
    border: 1px solid var(--neutral-200);
    border-radius: 24px;
    padding: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.category-search-input {
    width: min(420px, 100%);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.filter-chip {
    border: 1px solid var(--neutral-200);
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--neutral-700);
    background: #ffffff;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.filter-chip.is-active,
.filter-chip:hover {
    color: #ffffff;
    border-color: var(--primary-600);
    background: var(--primary-600);
}

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

.top-rank-card {
    position: relative;
    overflow: hidden;
    min-height: 260px;
    border-radius: 24px;
    color: #ffffff;
    box-shadow: var(--shadow-lg);
}

.top-rank-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.top-rank-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.08));
}

.top-rank-card:hover img {
    transform: scale(1.08);
}

.top-rank-card span,
.top-rank-card strong,
.top-rank-card em {
    position: absolute;
    z-index: 1;
}

.top-rank-card span {
    top: 18px;
    left: 18px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: var(--primary-600);
    border-radius: 14px;
    font-weight: 900;
}

.top-rank-card strong {
    left: 20px;
    right: 20px;
    bottom: 48px;
    font-size: 22px;
}

.top-rank-card em {
    left: 20px;
    bottom: 22px;
    color: rgba(255, 255, 255, 0.76);
    font-style: normal;
}

.search-page-form {
    max-width: 680px;
    margin-top: 26px;
}

.search-page-form input {
    flex: 1;
    width: auto;
}

.search-result-section {
    padding-bottom: 12px;
}

.watch-hero {
    padding: 28px 0 0;
    background: linear-gradient(180deg, #0f172a, var(--neutral-900) 560px, var(--neutral-50) 561px);
}

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

.breadcrumb a:hover {
    color: #ffffff;
}

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

.player-card,
.detail-content,
.related-sidebar {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-lg);
}

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

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

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

.poster-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.24), rgba(0, 0, 0, 0.38));
    cursor: pointer;
}

.poster-play span {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    padding-left: 5px;
    border-radius: 50%;
    background: rgba(2, 132, 199, 0.92);
    box-shadow: 0 22px 50px rgba(2, 132, 199, 0.4);
    font-size: 34px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.poster-play:hover span {
    transform: scale(1.08);
    background: var(--primary-700);
}

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

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

.detail-heading h1 {
    margin: 0 0 12px;
    color: var(--neutral-900);
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -0.04em;
}

.detail-heading p {
    margin: 0 0 22px;
    color: var(--neutral-600);
    font-size: 18px;
    line-height: 1.8;
}

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

.detail-meta-box span {
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--neutral-700);
    background: var(--neutral-100);
    font-weight: 700;
}

.detail-content section {
    margin-top: 30px;
}

.detail-content h2,
.related-sidebar h2 {
    margin: 0 0 14px;
    color: var(--neutral-900);
    font-size: 24px;
}

.detail-content section p {
    margin: 0;
    color: var(--neutral-700);
    font-size: 16px;
    line-height: 1.9;
}

.related-sidebar {
    position: sticky;
    top: 92px;
    padding: 24px;
}

.side-related-list {
    display: grid;
    gap: 16px;
}

.side-related-list a {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    align-items: center;
}

.side-related-list img {
    width: 110px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    background: var(--neutral-200);
}

.side-related-list span {
    display: -webkit-box;
    overflow: hidden;
    color: var(--neutral-900);
    font-weight: 800;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.side-related-list em {
    display: block;
    margin-top: 4px;
    color: var(--neutral-500);
    font-style: normal;
    font-size: 13px;
}

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

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

.site-footer {
    margin-top: 30px;
    color: var(--neutral-300);
    background: var(--neutral-900);
}

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

.footer-logo {
    color: #ffffff;
}

.footer-brand p {
    max-width: 560px;
    color: var(--neutral-500);
    line-height: 1.8;
}

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

.footer-links h3 {
    margin: 0 0 16px;
    color: #ffffff;
}

.footer-links a {
    display: block;
    margin-bottom: 10px;
    color: var(--neutral-400);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-400);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px;
    color: var(--neutral-500);
    text-align: center;
}

.is-hidden-by-filter,
.is-hidden-by-search {
    display: none;
}

.empty-results {
    grid-column: 1 / -1;
    border: 1px dashed var(--neutral-300);
    border-radius: 20px;
    padding: 40px;
    color: var(--neutral-600);
    text-align: center;
    background: #ffffff;
}

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

    .site-search {
        margin-left: auto;
    }

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

    .hero-panel {
        display: none;
    }

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

    .related-sidebar {
        position: static;
    }
}

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

    .mobile-toggle {
        display: block;
    }

    .mobile-search input {
        width: 100%;
        flex: 1;
    }

    .hero {
        min-height: 620px;
    }

    .hero-copy {
        width: calc(100% - 32px);
        margin-left: 16px;
        padding-top: 84px;
    }

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

    .hero-title {
        font-size: 30px;
    }

    .hero-summary {
        font-size: 16px;
    }

    .hero-controls {
        left: 16px;
        bottom: 24px;
    }

    .section-heading,
    .filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-chips {
        justify-content: flex-start;
    }

    .movie-grid,
    .movie-grid.large-grid,
    .category-grid,
    .category-overview-grid,
    .top-rank-grid,
    .ranking-list,
    .footer-inner,
    .footer-links {
        grid-template-columns: 1fr;
    }

    .ranking-list a {
        grid-template-columns: 42px 1fr;
    }

    .rank-meta {
        grid-column: 2;
    }

    .detail-content {
        padding: 22px;
    }
}

@media (max-width: 520px) {
    .nav-shell {
        width: calc(100% - 24px);
    }

    .site-brand {
        font-size: 20px;
    }

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

    .page-shell {
        width: calc(100% - 24px);
    }

    .page-hero .page-shell {
        padding: 48px 0 56px;
    }

    .movie-grid,
    .movie-grid.large-grid {
        gap: 18px;
    }

    .side-related-list a {
        grid-template-columns: 96px 1fr;
    }

    .side-related-list img {
        width: 96px;
    }
}
