:root {
    --bg: #f8fafc;
    --bg-soft: #f1f5f9;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --card: #ffffff;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --amber: #f59e0b;
    --orange: #f97316;
    --rose: #f43f5e;
    --blue: #2563eb;
    --cyan: #06b6d4;
    --green: #16a34a;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
    min-height: 100vh;
}

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: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(120, 53, 15, 0.94));
    color: #ffffff;
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
}

.nav-wrap {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 26px;
    align-items: center;
    min-height: 72px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand span:last-child,
.footer-brand span:last-child {
    background: linear-gradient(90deg, #fde68a, #fed7aa, #ffedd5);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 10px 22px rgba(249, 115, 22, 0.28);
    font-size: 15px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    justify-content: center;
}

.site-nav a {
    color: #e2e8f0;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: #fcd34d;
    transform: translateY(-1px);
}

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

.nav-search input,
.search-page-panel input,
.filter-panel input,
.filter-panel select,
.hero-search-panel input {
    width: 100%;
    border: 1px solid rgba(226, 232, 240, 0.75);
    border-radius: 999px;
    padding: 12px 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-search input {
    width: 230px;
    padding: 10px 14px;
    background: rgba(51, 65, 85, 0.82);
    color: #ffffff;
    border-color: rgba(148, 163, 184, 0.38);
}

.nav-search input::placeholder {
    color: #cbd5e1;
}

.nav-search input:focus,
.search-page-panel input:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.hero-search-panel input:focus {
    border-color: #fbbf24;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.16);
}

.nav-search button,
.search-page-panel button,
.hero-search-panel button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    color: #ffffff;
    font-weight: 700;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.22);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(51, 65, 85, 0.8);
    padding: 10px;
}

.menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #ffffff;
    border-radius: 999px;
}

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

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
    transform: scale(1.04);
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 26%, rgba(245, 158, 11, 0.34), transparent 28%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.78) 42%, rgba(15, 23, 42, 0.42) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.2));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(720px, calc(100% - 32px));
    margin-left: max(16px, calc((100vw - 1180px) / 2));
    padding-top: 150px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 13px;
    background: rgba(245, 158, 11, 0.14);
    color: #f59e0b;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-kicker {
    color: #fde68a;
    border: 1px solid rgba(253, 230, 138, 0.32);
    background: rgba(15, 23, 42, 0.38);
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1.02;
    max-width: 820px;
    letter-spacing: -0.05em;
    background: linear-gradient(90deg, #fff7ed, #fde68a, #fed7aa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    margin: 0;
    max-width: 680px;
    color: #e2e8f0;
    font-size: clamp(18px, 2.5vw, 24px);
    line-height: 1.75;
}

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

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--amber), var(--orange));
    box-shadow: 0 14px 26px rgba(249, 115, 22, 0.28);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
}

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

.hero-dot {
    width: 42px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
}

.hero-dot.is-active {
    background: linear-gradient(90deg, var(--amber), var(--orange));
}

.hero-search-panel {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 24px;
    width: min(920px, calc(100% - 32px));
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.36);
}

.hero-search-panel form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

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

.hero-quick-links a {
    border-radius: 999px;
    padding: 8px 13px;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
}

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

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

.section-heading h2 {
    margin: 12px 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-heading p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.section-link {
    flex: 0 0 auto;
    color: var(--orange);
    font-weight: 800;
}

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

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

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

.movie-card-link {
    display: grid;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: var(--shadow-soft);
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.movie-card-link:hover {
    transform: translateY(-7px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: var(--shadow);
}

.movie-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #0f172a, #334155);
}

.movie-grid.dense .movie-thumb {
    aspect-ratio: 3 / 4;
}

.movie-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.movie-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), transparent 52%);
    opacity: 0.76;
}

.movie-badge,
.movie-score {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    font-size: 12px;
    line-height: 1;
}

.movie-badge {
    top: 12px;
    left: 12px;
    padding: 7px 10px;
    background: linear-gradient(90deg, var(--amber), var(--orange));
}

.movie-score {
    right: 12px;
    bottom: 12px;
    padding: 8px 10px;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.movie-card-body {
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.movie-card-body h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.movie-meta span {
    border-radius: 999px;
    padding: 5px 8px;
    background: #f1f5f9;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.movie-tags span {
    border-radius: 999px;
    padding: 5px 8px;
    color: #2563eb;
    background: #eff6ff;
    font-size: 12px;
    font-weight: 700;
}

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

.category-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: 24px;
    color: #ffffff;
    min-height: 190px;
    box-shadow: var(--shadow-soft);
    isolation: isolate;
}

.category-card::before,
.category-overview-card::before {
    content: "";
    position: absolute;
    inset: -30% -20%;
    z-index: -1;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 42%);
    transform: rotate(18deg);
}

.category-card span,
.category-overview-card span {
    display: inline-flex;
    margin-bottom: 22px;
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 800;
}

.category-card strong,
.category-overview-card p {
    display: block;
    line-height: 1.65;
}

.category-card em {
    display: block;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-style: normal;
    font-size: 13px;
    line-height: 1.6;
}

.tone-blue { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.tone-amber { background: linear-gradient(135deg, #f59e0b, #f97316); }
.tone-rose { background: linear-gradient(135deg, #f43f5e, #be123c); }
.tone-violet { background: linear-gradient(135deg, #7c3aed, #4c1d95); }
.tone-green { background: linear-gradient(135deg, #16a34a, #047857); }
.tone-pink { background: linear-gradient(135deg, #ec4899, #db2777); }
.tone-orange { background: linear-gradient(135deg, #ea580c, #dc2626); }
.tone-cyan { background: linear-gradient(135deg, #0891b2, #2563eb); }
.tone-slate { background: linear-gradient(135deg, #334155, #020617); }
.tone-indigo { background: linear-gradient(135deg, #4f46e5, #312e81); }
.tone-red { background: linear-gradient(135deg, #ef4444, #991b1b); }
.tone-emerald { background: linear-gradient(135deg, #059669, #065f46); }

.ranking-band {
    background: linear-gradient(90deg, #f1f5f9, #e2e8f0);
}

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

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

.rank-row {
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.rank-link {
    display: grid;
    grid-template-columns: 62px 82px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 10px 14px;
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-weight: 900;
}

.rank-link img {
    width: 82px;
    height: 58px;
    object-fit: cover;
    border-radius: 12px;
}

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

.rank-main strong {
    margin-bottom: 4px;
    font-size: 16px;
}

.rank-main em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
    line-height: 1.5;
}

.rank-info {
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.sub-hero {
    padding: 72px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 18%, rgba(245, 158, 11, 0.32), transparent 30%),
        linear-gradient(120deg, #0f172a, #1e293b 55%, #7c2d12);
}

.sub-hero h1 {
    margin: 16px 0 12px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.sub-hero p {
    max-width: 760px;
    margin: 0;
    color: #e2e8f0;
    font-size: 18px;
    line-height: 1.8;
}

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

.detail-breadcrumb {
    color: #64748b;
    margin: 28px 0 18px;
}

.filter-panel,
.search-page-panel {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 26px;
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: var(--radius-xl);
    padding: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

.search-page-panel form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.category-overview-card {
    display: grid;
    gap: 18px;
}

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

.category-mini-list {
    display: grid;
    gap: 8px;
}

.category-mini-list a {
    overflow: hidden;
    border-radius: 12px;
    padding: 9px 11px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.12);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-wrap {
    padding-bottom: 40px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
}

.player-card,
.detail-card,
.poster-card,
.side-rank {
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.player-card {
    background: #000000;
    border-color: rgba(15, 23, 42, 0.92);
}

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

.video-player {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-shade {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    text-align: center;
    cursor: pointer;
    background:
        radial-gradient(circle at 50% 42%, rgba(245, 158, 11, 0.32), transparent 28%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.35));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-shade.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-circle {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    padding-left: 5px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.38);
    font-size: 28px;
}

.player-shade strong {
    max-width: min(560px, 92%);
    font-size: clamp(22px, 4vw, 38px);
}

.player-shade em {
    font-style: normal;
    color: #fde68a;
    font-weight: 800;
}

.detail-card {
    margin-top: 22px;
    padding: 28px;
}

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

.detail-title-row h1 {
    margin: 14px 0 0;
    font-size: clamp(30px, 5vw, 50px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.detail-score {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    border-radius: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-size: 24px;
    font-weight: 900;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.detail-meta span,
.detail-tags a {
    border-radius: 999px;
    padding: 8px 12px;
    color: #334155;
    background: #f1f5f9;
    font-size: 13px;
    font-weight: 800;
}

.detail-section {
    margin-top: 24px;
}

.detail-section h2,
.side-rank h2,
.poster-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.detail-section p {
    margin: 0;
    color: #475569;
    line-height: 1.9;
    text-align: justify;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 28px;
}

.detail-tags a {
    color: #2563eb;
    background: #eff6ff;
}

.poster-card {
    padding: 18px;
}

.poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    background: #0f172a;
}

.poster-card h2 {
    margin-top: 18px;
}

.poster-card p {
    color: var(--muted);
    line-height: 1.75;
}

.poster-card .btn {
    width: 100%;
    margin-top: 8px;
}

.side-rank {
    margin-top: 22px;
    padding: 18px;
}

.rank-list.small {
    grid-template-columns: 1fr;
}

.rank-list.small .rank-link {
    grid-template-columns: 42px 56px 1fr;
    gap: 10px;
    padding: 8px;
}

.rank-list.small .rank-number {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 12px;
}

.rank-list.small img {
    width: 56px;
    height: 42px;
}

.rank-list.small .rank-info,
.rank-list.small .rank-main em {
    display: none;
}

.related-section {
    padding-top: 50px;
}

.site-footer {
    margin-top: 40px;
    color: #cbd5e1;
    background: linear-gradient(180deg, #0f172a, #020617);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 36px;
    padding: 46px 0;
}

.footer-grid p {
    max-width: 420px;
    color: #94a3b8;
    line-height: 1.7;
}

.footer-grid h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 18px 16px;
    color: #94a3b8;
    text-align: center;
}

[data-card].is-hidden {
    display: none;
}

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

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

    .detail-side {
        display: grid;
        grid-template-columns: 320px 1fr;
        gap: 22px;
    }

    .side-rank {
        margin-top: 0;
    }
}

@media (max-width: 860px) {
    .nav-wrap {
        grid-template-columns: auto auto;
        justify-content: space-between;
    }

    .menu-button {
        display: block;
    }

    .site-nav,
    .nav-search {
        display: none;
    }

    .site-nav.is-open,
    .nav-search.is-open {
        display: flex;
        grid-column: 1 / -1;
        width: 100%;
    }

    .site-nav.is-open {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border-top: 1px solid rgba(148, 163, 184, 0.24);
        padding-top: 12px;
    }

    .site-nav.is-open a {
        padding: 12px 0;
    }

    .nav-search.is-open input {
        flex: 1;
        width: auto;
    }

    .hero {
        min-height: 720px;
    }

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

    .hero-search-panel form,
    .search-page-panel form,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .rank-list.compact,
    .rank-link {
        grid-template-columns: 1fr;
    }

    .rank-link {
        display: grid;
        grid-template-columns: 52px 78px 1fr;
    }

    .rank-info {
        grid-column: 3;
    }

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

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

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

    .hero h1 {
        font-size: 40px;
    }

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

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

    .page-section {
        padding: 42px 0;
    }

    .detail-card {
        padding: 20px;
    }

    .detail-title-row {
        flex-direction: column;
    }

    .detail-score {
        width: 58px;
        height: 58px;
        border-radius: 18px;
    }
}
