:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --sky: #0ea5e9;
    --sky-dark: #0284c7;
    --rose: #f43f5e;
    --amber: #f59e0b;
    --green: #16a34a;
    --shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 14px 35px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.header-inner {
    width: min(1280px, calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #0f172a;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), #2563eb);
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.35);
}

.logo-text {
    font-size: 22px;
    letter-spacing: -0.02em;
}

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

.nav-link {
    color: #4b5563;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--sky-dark);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 12px;
    background: #f1f5f9;
}

.menu-button span {
    width: 19px;
    height: 2px;
    border-radius: 999px;
    background: #0f172a;
}

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 10px;
    border-radius: 16px;
    background: #f8fafc;
}

.mobile-nav.is-open {
    display: grid;
    gap: 4px;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 12px;
    color: #475569;
    font-weight: 650;
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--sky-dark);
    background: #e0f2fe;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 560px;
    overflow: hidden;
    background: linear-gradient(120deg, #0f172a 0%, #334155 100%);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
}

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 25%, rgba(14, 165, 233, 0.36), transparent 32%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.58) 48%, rgba(2, 6, 23, 0.22) 100%);
}

.hero-content {
    position: absolute;
    left: max(32px, calc((100% - 1280px) / 2));
    right: max(32px, calc((100% - 1280px) / 2));
    bottom: 76px;
    z-index: 2;
    max-width: 780px;
    color: #ffffff;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(14, 165, 233, 0.88);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--sky-dark);
    background: #e0f2fe;
}

.hero h1,
.hero h2 {
    margin: 18px 0 14px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
    text-shadow: 0 14px 30px rgba(0, 0, 0, 0.36);
}

.hero p {
    max-width: 660px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

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

.hero-tags span,
.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-size: 14px;
}

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

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

.primary-button,
.search-box button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky), #2563eb);
    box-shadow: 0 16px 35px rgba(14, 165, 233, 0.32);
}

.glass-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
    backdrop-filter: blur(14px);
}

.outline-button {
    color: var(--sky-dark);
    border: 1px solid #bae6fd;
    background: #ffffff;
}

.primary-button:hover,
.glass-button:hover,
.outline-button:hover,
.search-box button:hover {
    transform: translateY(-2px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(12px);
    font-size: 42px;
    line-height: 1;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    transition: width 0.2s ease, background 0.2s ease;
}

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

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

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

.search-band {
    padding: 34px 0;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.search-inner {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 460px);
    align-items: center;
    gap: 28px;
}

.search-inner h2,
.section-title h2,
.rank-head h2,
.page-hero h1,
.detail-copy h1,
.detail-article h2,
.detail-side h2 {
    margin: 0;
    color: #0f172a;
    letter-spacing: -0.04em;
}

.search-inner h2,
.section-title h2,
.rank-head h2 {
    font-size: clamp(28px, 3vw, 38px);
}

.search-inner p,
.page-hero p,
.category-card p,
.category-overview-body p,
.detail-one-line,
.detail-article p,
.horizontal-copy p,
.card-line {
    color: var(--muted);
}

.search-box,
.page-search {
    display: flex;
    gap: 10px;
}

.search-box input,
.page-search input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #0f172a;
    background: #f8fafc;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus,
.page-search input:focus {
    border-color: #7dd3fc;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

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

.section-title a {
    color: var(--sky-dark);
    font-weight: 800;
}

.section-title.compact {
    margin-bottom: 20px;
}

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

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

.five-cols {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

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

.card-link,
.horizontal-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.82);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.card-link:hover,
.horizontal-link:hover {
    transform: translateY(-5px);
    border-color: rgba(14, 165, 233, 0.34);
    box-shadow: var(--soft-shadow);
}

.poster-wrap,
.horizontal-poster,
.category-cover {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe, #f8fafc);
}

.poster-wrap {
    aspect-ratio: 3 / 4;
}

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

.card-link:hover img,
.horizontal-link:hover img {
    transform: scale(1.06);
}

.poster-mask {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.1));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.poster-mask span,
.play-float {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
}

.card-link:hover .poster-mask {
    opacity: 1;
}

.type-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.type-badge {
    top: 10px;
    right: 10px;
    padding: 5px 9px;
    background: rgba(15, 23, 42, 0.68);
}

.rank-badge {
    top: 10px;
    left: 10px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--amber), var(--rose));
}

.card-body {
    padding: 14px;
}

.card-body h3,
.horizontal-copy h3 {
    margin: 0 0 7px;
    overflow: hidden;
    color: #111827;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.card-link:hover h3,
.horizontal-link:hover h3 {
    color: var(--sky-dark);
}

.card-line {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 9px;
    overflow: hidden;
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    gap: 8px;
    color: #64748b;
    font-size: 12px;
}

.category-panel {
    padding: 44px;
    border-radius: 32px;
    background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 48%, #ffffff 100%);
    box-shadow: inset 0 0 0 1px rgba(186, 230, 253, 0.72);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 34px;
}

.category-card {
    display: block;
    min-height: 132px;
    padding: 20px;
    border: 1px solid rgba(186, 230, 253, 0.95);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 30px rgba(14, 165, 233, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(14, 165, 233, 0.14);
}

.category-card span {
    display: block;
    margin-bottom: 8px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 850;
}

.category-card p {
    margin: 0;
    font-size: 14px;
}

.category-strip + .category-strip {
    margin-top: 28px;
}

.strip-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.strip-heading h3 {
    margin: 0;
    padding-left: 12px;
    border-left: 5px solid var(--sky);
    font-size: 22px;
}

.strip-heading a {
    color: var(--sky-dark);
    font-weight: 800;
}

.horizontal-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 220px;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 4px 16px;
    scroll-snap-type: x proximity;
}

.horizontal-scroll .movie-card {
    scroll-snap-align: start;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
}

.latest-list,
.ranking-list {
    display: grid;
    gap: 16px;
}

.horizontal-link {
    display: grid;
    grid-template-columns: 180px 1fr;
}

.horizontal-poster {
    min-height: 132px;
}

.play-float {
    position: absolute;
    inset: 50% auto auto 50%;
    color: #ffffff;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease;
}

.horizontal-link:hover .play-float {
    opacity: 1;
}

.horizontal-copy {
    padding: 18px;
}

.horizontal-copy p {
    display: -webkit-box;
    margin: 0 0 14px;
    overflow: hidden;
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-panel {
    position: sticky;
    top: 96px;
    height: fit-content;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.rank-head {
    margin-bottom: 16px;
}

.mini-list {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.mini-link {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 11px 10px;
    border-radius: 14px;
    color: #334155;
    background: #f8fafc;
    transition: background 0.2s ease, color 0.2s ease;
}

.mini-link:hover {
    color: var(--sky-dark);
    background: #e0f2fe;
}

.mini-link span {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--rose));
    font-size: 12px;
    font-weight: 850;
}

.mini-link strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-link em {
    color: #94a3b8;
    font-style: normal;
    font-size: 12px;
}

.page-hero {
    padding: 78px 0 60px;
    color: #0f172a;
    background:
        radial-gradient(circle at 18% 10%, rgba(14, 165, 233, 0.18), transparent 34%),
        linear-gradient(135deg, #ffffff, #f0f9ff 56%, #eff6ff);
    border-bottom: 1px solid rgba(186, 230, 253, 0.72);
}

.page-hero h1 {
    margin-top: 10px;
    font-size: clamp(40px, 5vw, 62px);
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #64748b;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--sky-dark);
    font-weight: 750;
}

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

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.filter-chips button {
    padding: 9px 14px;
    border: 1px solid #bae6fd;
    border-radius: 999px;
    color: #0369a1;
    background: #ffffff;
    font-weight: 750;
}

.filter-chips button.active,
.filter-chips button:hover {
    color: #ffffff;
    background: var(--sky);
}

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

.category-overview-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.category-cover {
    height: 150px;
    display: flex;
    align-items: end;
    padding: 20px;
    color: #ffffff;
    background:
        linear-gradient(0deg, rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.12)),
        linear-gradient(135deg, #0ea5e9, #6366f1);
}

.category-cover span {
    font-size: 28px;
    font-weight: 900;
}

.category-overview-body {
    padding: 20px;
}

.category-overview-body h2 {
    margin: 0 0 10px;
}

.category-overview-body h2 a:hover {
    color: var(--sky-dark);
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.category-samples a {
    max-width: 100%;
    padding: 7px 10px;
    overflow: hidden;
    border-radius: 999px;
    color: #0369a1;
    background: #e0f2fe;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-hero-section {
    padding: 34px 0 56px;
    background:
        radial-gradient(circle at 18% 20%, rgba(14, 165, 233, 0.16), transparent 35%),
        linear-gradient(180deg, #ffffff, #f8fafc);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 34px;
    align-items: center;
}

.player-panel {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.14));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-circle {
    width: 78px;
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
    font-size: 28px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.26);
}

.player-overlay strong {
    font-size: 18px;
}

.detail-copy h1 {
    margin: 8px 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
}

.detail-one-line {
    margin: 0 0 20px;
    font-size: 18px;
}

.detail-meta span {
    color: #0f172a;
    background: #e0f2fe;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag-list span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #475569;
    background: #ffffff;
    border: 1px solid var(--line);
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 36px;
    padding: 48px 0 0;
}

.detail-article,
.detail-side {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.detail-article h2,
.detail-side h2 {
    margin-bottom: 14px;
    font-size: 28px;
}

.detail-article h2 + p {
    margin: 0 0 24px;
    color: #334155;
    font-size: 17px;
}

.detail-side .movie-grid {
    gap: 16px;
}

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

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

.footer-brand p {
    max-width: 520px;
    margin: 14px 0 0;
    color: #64748b;
}

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

.footer-links a {
    color: #475569;
    font-weight: 700;
}

.footer-links a:hover {
    color: var(--sky-dark);
}

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: #94a3b8;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

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

@media (max-width: 1180px) {
    .six-cols,
    .five-cols {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .rank-panel {
        position: static;
    }
}

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

    .menu-button {
        display: inline-flex;
    }

    .hero {
        min-height: 620px;
    }

    .hero-content {
        left: 20px;
        right: 20px;
        bottom: 70px;
    }

    .hero-control {
        display: none;
    }

    .search-inner,
    .detail-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

    .detail-copy {
        order: -1;
    }
}

@media (max-width: 640px) {
    .header-inner {
        height: 64px;
    }

    .logo-text {
        font-size: 18px;
    }

    .hero {
        height: 76vh;
        min-height: 560px;
    }

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

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

    .hero-actions,
    .search-box {
        flex-direction: column;
        align-items: stretch;
    }

    .section-block {
        padding-top: 52px;
    }

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

    .category-panel {
        padding: 28px 16px;
        border-radius: 24px;
    }

    .category-grid,
    .category-overview-grid,
    .six-cols,
    .five-cols,
    .two-cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .horizontal-link {
        grid-template-columns: 118px 1fr;
    }

    .horizontal-copy {
        padding: 14px;
    }

    .horizontal-copy p {
        -webkit-line-clamp: 2;
    }

    .page-hero {
        padding: 52px 0 44px;
    }

    .detail-article,
    .detail-side {
        padding: 20px;
    }

    .footer-links {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .category-grid,
    .category-overview-grid,
    .six-cols,
    .five-cols,
    .two-cols {
        grid-template-columns: 1fr;
    }

    .horizontal-scroll {
        grid-auto-columns: 76%;
    }
}
