:root {
    --bg: #f9fafb;
    --panel: #ffffff;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --amber: #d97706;
    --amber-dark: #92400e;
    --orange-dark: #7c2d12;
    --dark: #111827;
    --deep: #0f172a;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #fff;
    background: linear-gradient(90deg, #78350f 0%, #9a3412 100%);
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.18);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 650;
    white-space: nowrap;
}

.main-nav a,
.mobile-nav a {
    transition: color 0.2s ease, opacity 0.2s ease;
}

.main-nav a:hover,
.mobile-nav a:hover {
    color: #fde68a;
}

.site-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.site-search input,
.filter-card input,
.filter-card select {
    width: 230px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    outline: none;
    padding: 10px 14px;
    color: #111827;
    background: rgba(255, 255, 255, 0.95);
}

.site-search button,
.btn-primary,
.rank-action,
.panel-link {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    color: #fff;
    background: var(--amber);
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.site-search button:hover,
.btn-primary:hover,
.rank-action:hover,
.panel-link:hover {
    transform: translateY(-1px);
    background: #b45309;
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.28);
}

.search-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    width: min(420px, 90vw);
    max-height: 520px;
    overflow: auto;
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

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

.search-result {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
}

.search-result:hover {
    background: #fffbeb;
}

.search-result img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    background: #1f2937;
}

.search-result strong {
    display: block;
    font-size: 15px;
    line-height: 1.35;
}

.search-result span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 3px;
}

.search-empty {
    margin: 0;
    padding: 18px;
    color: var(--muted);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #fff;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(120, 53, 15, 0.98);
}

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

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

.mobile-nav nav {
    display: grid;
    gap: 10px;
    padding: 12px 0 18px;
}

.mobile-search {
    padding-top: 14px;
}

.home-hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: linear-gradient(90deg, #111827, #1f2937);
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.58) 45%, rgba(0, 0, 0, 0.14) 100%);
}

.hero-content {
    position: absolute;
    left: max(24px, calc((100vw - 1180px) / 2));
    top: 50%;
    width: min(650px, calc(100% - 48px));
    transform: translateY(-50%);
    color: #fff;
}

.hero-kicker,
.page-hero p:first-child {
    display: inline-block;
    margin: 0 0 14px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #fde68a;
    background: rgba(217, 119, 6, 0.18);
    font-weight: 800;
}

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

.hero-text {
    margin: 20px 0 0;
    color: #e5e7eb;
    font-size: clamp(18px, 2.5vw, 24px);
    line-height: 1.55;
}

.hero-meta,
.detail-meta,
.meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta {
    margin-top: 24px;
}

.hero-meta span,
.detail-meta span {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.92);
    color: #fff;
    font-weight: 800;
}

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

.btn-primary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 999px;
    padding: 10px 18px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.44);
    font-size: 34px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.7);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
}

.hero-dots button.is-active {
    background: var(--amber);
}

.hero-search {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 82px;
    z-index: 6;
    margin-left: 0;
    padding: 12px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.62);
    backdrop-filter: blur(12px);
}

.section-block {
    padding: 72px 0;
}

.section-band {
    padding: 72px 0;
}

.amber-band {
    background: linear-gradient(90deg, #fff7ed 0%, #fffbeb 100%);
}

.dark-band {
    color: #fff;
    background: linear-gradient(90deg, #111827 0%, #1f2937 100%);
}

.editor-band,
.ranking-hero {
    color: #fff;
    background: linear-gradient(90deg, #78350f 0%, #9a3412 100%);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

.section-heading > span {
    flex: 0 0 5px;
    width: 5px;
    height: 40px;
    border-radius: 999px;
    background: var(--amber);
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.2;
}

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

.section-heading.light p {
    color: #fde68a;
}

.more-link {
    margin-left: auto;
    color: var(--amber-dark);
    font-weight: 800;
}

.dark-band .more-link,
.editor-band .more-link {
    color: #fde68a;
}

.movie-grid {
    display: grid;
    gap: 24px;
}

.six-col {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

.movie-card {
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link,
.poster-wrap {
    display: block;
}

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #78350f);
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--amber);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.type-badge {
    position: absolute;
    right: 10px;
    top: 10px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(217, 119, 6, 0.95);
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 14px;
}

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

.card-body h3 a:hover,
.rank-main h2 a:hover,
.category-panel h2 a:hover {
    color: var(--amber-dark);
}

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

.meta-line {
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.meta-line span + span::before {
    content: "·";
    margin-right: 8px;
    color: #c7cdd5;
}

.dark-cards .movie-card {
    background: #fff;
    color: var(--ink);
}

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

.category-tile,
.category-panel {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.category-tile {
    display: block;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.tile-covers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    aspect-ratio: 16 / 10;
    background: #111827;
}

.tile-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile-text {
    display: block;
    padding: 16px;
}

.tile-text strong {
    display: block;
    font-size: 20px;
}

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

.year-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 30px;
}

.year-pills a {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 9px 14px;
    color: #fde68a;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 800;
}

.wide-card-grid,
.compact-list {
    display: grid;
    gap: 16px;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    align-items: center;
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease;
}

.compact-card:hover {
    transform: translateY(-4px);
}

.compact-card img {
    width: 96px;
    height: 78px;
    object-fit: cover;
    background: #111827;
}

.compact-card span {
    min-width: 0;
    padding-right: 14px;
}

.compact-card strong,
.compact-card em {
    display: block;
}

.compact-card strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.compact-card em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.page-hero {
    padding: 74px 0;
    color: #fff;
    background: linear-gradient(90deg, #78350f 0%, #9a3412 50%, #111827 100%);
}

.channel-hero {
    background: linear-gradient(90deg, #111827 0%, #78350f 100%);
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.1;
}

.page-hero-desc {
    max-width: 760px;
    margin: 18px 0 0;
    color: #fde68a;
    font-size: 20px;
}

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

.hero-mini-links a {
    border-radius: 999px;
    padding: 10px 16px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 800;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #fde68a;
    font-weight: 750;
}

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

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

.category-panel {
    padding: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-panel h2 {
    margin: 0;
    font-size: 26px;
}

.category-panel p {
    margin: 8px 0 18px;
    color: var(--muted);
}

.panel-link {
    display: inline-flex;
    margin-top: 18px;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 270px 1fr;
    gap: 28px;
    padding: 54px 0 78px;
}

.filter-card {
    position: sticky;
    top: 92px;
    align-self: start;
    padding: 22px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.filter-card h2 {
    margin: 0 0 18px;
    font-size: 22px;
}

.filter-card label {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
    color: #374151;
    font-weight: 750;
}

.filter-card input,
.filter-card select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.catalog-results {
    min-width: 0;
}

.empty-state {
    display: none;
    padding: 38px;
    border-radius: 18px;
    background: #fff;
    color: var(--muted);
    text-align: center;
    box-shadow: var(--shadow);
}

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

.rank-layout {
    padding: 56px 0;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 70px 110px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.rank-num {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange-dark));
    font-size: 20px;
    font-weight: 900;
}

.rank-cover img {
    width: 110px;
    height: 76px;
    object-fit: cover;
    border-radius: 12px;
    background: #111827;
}

.rank-main h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.rank-main p {
    margin: 0 0 9px;
    color: var(--muted);
}

.rank-action {
    display: inline-flex;
    justify-content: center;
}

.year-block + .year-block {
    margin-top: 54px;
}

.watch-section {
    padding: 32px 0 44px;
    color: #fff;
    background: linear-gradient(90deg, #111827 0%, #1f2937 100%);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #000;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.62));
    font-size: 20px;
    font-weight: 900;
}

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

.overlay-play {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    border-radius: 999px;
    background: var(--amber);
    box-shadow: 0 16px 40px rgba(217, 119, 6, 0.35);
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 32px;
    padding: 56px 0 22px;
}

.detail-main,
.detail-side {
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}

.detail-main {
    padding: 34px;
}

.detail-main h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.15;
}

.detail-meta {
    margin: 18px 0;
}

.detail-lead {
    margin: 0 0 26px;
    color: #374151;
    font-size: 20px;
    font-weight: 650;
}

.detail-main h2 {
    margin: 28px 0 10px;
    font-size: 26px;
}

.detail-main p {
    color: #374151;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.tag-cloud span {
    border-radius: 999px;
    padding: 7px 12px;
    color: #92400e;
    background: #fffbeb;
    font-weight: 800;
}

.detail-side {
    align-self: start;
    overflow: hidden;
}

.detail-side img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #111827;
}

.detail-side dl {
    margin: 0;
    padding: 20px;
}

.detail-side dl div {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.detail-side dt {
    color: var(--muted);
    font-weight: 800;
}

.detail-side dd {
    margin: 0;
}

.related-block {
    padding-top: 34px;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(90deg, #111827 0%, #1f2937 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 34px;
    padding: 46px 0;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
    color: #fff;
}

.site-footer p,
.site-footer ul {
    margin: 0;
}

.site-footer ul {
    list-style: none;
    padding: 0;
}

.site-footer li + li {
    margin-top: 8px;
}

.site-footer a:hover {
    color: #fbbf24;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 0;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

.back-top {
    position: fixed;
    right: 20px;
    bottom: 22px;
    z-index: 80;
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--amber);
    box-shadow: var(--shadow);
}

.back-top.is-visible {
    display: block;
}

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

    .menu-toggle {
        display: block;
    }

    .site-header .nav-wrap > .site-search {
        display: none;
    }

    .mobile-search {
        display: flex;
    }

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

    .four-col,
    .wide-card-grid,
    .category-panel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .filter-card {
        position: static;
    }

    .detail-side {
        max-width: 360px;
    }

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

@media (max-width: 720px) {
    .container,
    .nav-wrap,
    .mobile-nav nav,
    .mobile-search {
        width: min(100% - 24px, 1180px);
    }

    .brand {
        font-size: 18px;
    }

    .home-hero {
        min-height: 78vh;
    }

    .hero-content {
        left: 18px;
        width: calc(100% - 36px);
    }

    .hero-text {
        font-size: 17px;
    }

    .hero-search {
        left: 18px;
        right: 18px;
        bottom: 70px;
        border-radius: 18px;
    }

    .hero-search input {
        width: 100%;
    }

    .hero-arrow {
        display: none;
    }

    .section-block,
    .section-band {
        padding: 48px 0;
    }

    .section-heading {
        align-items: flex-start;
    }

    .more-link {
        display: none;
    }

    .six-col,
    .four-col,
    .category-grid,
    .wide-card-grid,
    .category-panel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .card-body {
        padding: 12px;
    }

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

    .card-body p {
        font-size: 13px;
    }

    .page-hero {
        padding: 54px 0;
    }

    .catalog-layout {
        padding-top: 28px;
    }

    .rank-row {
        grid-template-columns: 48px 74px 1fr;
        gap: 12px;
    }

    .rank-num {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 15px;
    }

    .rank-cover img {
        width: 74px;
        height: 92px;
    }

    .rank-action {
        grid-column: 2 / 4;
        width: max-content;
    }

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

    .rank-main p {
        display: none;
    }

    .detail-main {
        padding: 22px;
    }

    .detail-lead {
        font-size: 17px;
    }

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

    .site-search {
        display: grid;
        grid-template-columns: 1fr auto;
        width: 100%;
    }

    .site-search input {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .six-col,
    .four-col,
    .category-grid,
    .wide-card-grid,
    .category-panel-grid {
        grid-template-columns: 1fr;
    }
}
