:root {
    color-scheme: dark;
    --deep-space-950: #020617;
    --deep-space-900: #0f172a;
    --deep-space-850: #111c33;
    --deep-space-800: #1e293b;
    --deep-space-700: #334155;
    --cloud-realm-500: #0ea5e9;
    --cloud-realm-400: #38bdf8;
    --cloud-realm-300: #7dd3fc;
    --cyber-blue-600: #2563eb;
    --cyber-blue-950: #172554;
    --text-main: #f8fafc;
    --text-soft: #d1d5db;
    --text-muted: #94a3b8;
    --line-soft: rgba(7, 89, 133, 0.3);
    --card-shadow: 0 24px 70px rgba(2, 6, 23, 0.48);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 34rem),
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.13), transparent 32rem),
        var(--deep-space-950);
    color: var(--text-main);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line-soft);
}

.nav-shell {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 76px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--cloud-realm-400);
    filter: drop-shadow(0 0 18px rgba(14, 165, 233, 0.45));
}

.brand-mark svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--cloud-realm-400), #60a5fa 72%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.desktop-nav a,
.mobile-menu a {
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a {
    padding: 10px 12px;
}

.desktop-nav a:hover,
.mobile-menu a:hover {
    color: var(--cloud-realm-400);
    background: rgba(30, 41, 59, 0.95);
}

.header-search,
.mobile-search,
.search-page-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--line-soft);
    background: rgba(30, 41, 59, 0.82);
    border-radius: 14px;
    overflow: hidden;
}

.header-search input,
.mobile-search input,
.search-page-form input {
    width: 240px;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--text-main);
    padding: 12px 14px;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.search-page-form input::placeholder,
.filter-input::placeholder {
    color: #64748b;
}

.header-search button,
.mobile-search button,
.search-page-form button {
    border: 0;
    cursor: pointer;
    color: white;
    background: #0284c7;
    padding: 12px 16px;
    font-weight: 700;
    transition: background 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.search-page-form button:hover {
    background: #0369a1;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.9);
    color: var(--text-main);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    border-top: 1px solid var(--line-soft);
    padding: 16px 24px 22px;
    background: rgba(15, 23, 42, 0.98);
}

.mobile-menu.is-open {
    display: grid;
    gap: 8px;
}

.mobile-menu a {
    padding: 12px 14px;
}

.mobile-search {
    margin-bottom: 8px;
}

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

.hero-carousel {
    position: relative;
    height: 78vh;
    min-height: 560px;
    overflow: hidden;
    background: #000;
}

.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;
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.55) 42%, rgba(2, 6, 23, 0.18)),
        linear-gradient(0deg, var(--deep-space-950), transparent 38%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(100% - 48px, 1280px);
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 48px 0 90px;
}

.hero-pill,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: white;
    background: rgba(37, 99, 235, 0.86);
    border: 1px solid rgba(125, 211, 252, 0.25);
    box-shadow: 0 14px 36px rgba(37, 99, 235, 0.28);
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-content h1 {
    max-width: 760px;
    margin: 18px 0 16px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 700px;
    margin: 0 0 28px;
    color: var(--text-soft);
    font-size: clamp(17px, 2.2vw, 22px);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-actions,
.page-hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
    color: white;
    background: #0284c7;
    box-shadow: 0 18px 44px rgba(14, 165, 233, 0.28);
}

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

.primary-button:hover {
    background: #0369a1;
}

.ghost-button {
    color: var(--text-main);
    border: 1px solid rgba(125, 211, 252, 0.28);
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(12px);
}

.hero-meta {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-muted);
    font-size: 14px;
}

.hero-meta span {
    padding: 7px 10px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 999px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 9px;
}

.hero-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--cloud-realm-500);
}

.hero-category-strip {
    position: absolute;
    left: 50%;
    bottom: 72px;
    transform: translateX(-50%);
    z-index: 3;
    width: min(100% - 48px, 1280px);
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.hero-category-strip a {
    flex: 0 0 auto;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(125, 211, 252, 0.22);
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.content-section {
    width: min(100% - 48px, 1280px);
    margin: 0 auto;
    padding: 74px 0;
}

.section-alt {
    width: 100%;
    max-width: none;
    padding-left: max(24px, calc((100% - 1280px) / 2));
    padding-right: max(24px, calc((100% - 1280px) / 2));
    background: rgba(15, 23, 42, 0.68);
    border-top: 1px solid rgba(7, 89, 133, 0.22);
    border-bottom: 1px solid rgba(7, 89, 133, 0.22);
}

.section-gradient {
    width: 100%;
    max-width: none;
    padding-left: max(24px, calc((100% - 1280px) / 2));
    padding-right: max(24px, calc((100% - 1280px) / 2));
    background:
        radial-gradient(circle at 18% 0%, rgba(14, 165, 233, 0.18), transparent 26rem),
        linear-gradient(135deg, rgba(23, 37, 84, 0.78), rgba(2, 6, 23, 0.94));
    border-top: 1px solid rgba(125, 211, 252, 0.2);
    border-bottom: 1px solid rgba(125, 211, 252, 0.16);
}

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

.section-title-row h2 {
    margin: 12px 0 0;
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.section-more {
    color: var(--cloud-realm-400);
    font-weight: 800;
    white-space: nowrap;
}

.section-more span {
    font-size: 22px;
    vertical-align: -1px;
}

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

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

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

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

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

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

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

.movie-card-link {
    display: block;
    height: 100%;
}

.movie-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    background: var(--deep-space-800);
    box-shadow: var(--card-shadow);
}

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

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

.movie-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.74), transparent 58%);
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    transform: translate(-50%, -50%) scale(0.84);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.88);
    color: white;
    opacity: 0;
    transition: opacity 0.24s ease, transform 0.24s ease;
    box-shadow: 0 12px 32px rgba(14, 165, 233, 0.38);
}

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

.corner-badge,
.duration-badge {
    position: absolute;
    z-index: 2;
    padding: 5px 8px;
    border-radius: 8px;
    color: white;
    font-size: 12px;
    font-weight: 800;
}

.corner-badge {
    top: 10px;
    left: 10px;
    background: rgba(37, 99, 235, 0.9);
}

.duration-badge {
    right: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.78);
}

.movie-card-body {
    display: block;
    padding-top: 13px;
}

.movie-card-body strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #e5e7eb;
    font-size: 16px;
    line-height: 1.38;
    transition: color 0.2s ease;
}

.movie-card-link:hover strong {
    color: var(--cloud-realm-400);
}

.movie-line {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
    margin-top: 8px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    color: #64748b;
    font-size: 12px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 11px;
}

.tag-row span {
    color: var(--cloud-realm-300);
    background: rgba(14, 165, 233, 0.09);
    border: 1px solid rgba(14, 165, 233, 0.18);
    border-radius: 999px;
    padding: 5px 8px;
    font-size: 12px;
    line-height: 1;
}

.movie-card-large .movie-thumb {
    border-radius: 22px;
}

.movie-card-large .movie-card-body strong {
    font-size: 20px;
}

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

.category-card,
.category-overview-card {
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(7, 89, 133, 0.3);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.5);
}

.category-card a,
.category-overview-main {
    display: block;
}

.category-images {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: repeat(2, 72px);
    gap: 4px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(37, 99, 235, 0.06));
}

.category-images.wide {
    grid-template-rows: repeat(2, 86px);
}

.category-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13px;
}

.category-images img:first-child {
    grid-row: 1 / span 2;
}

.category-copy {
    display: block;
    padding: 18px;
}

.category-copy strong {
    display: block;
    margin-bottom: 9px;
    font-size: 19px;
}

.category-copy span {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.7;
}

.category-sample-links {
    display: grid;
    gap: 8px;
    padding: 0 18px 18px;
}

.category-sample-links a {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.5;
}

.category-sample-links a:hover {
    color: var(--cloud-realm-400);
}

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

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

.rank-item a {
    display: grid;
    grid-template-columns: 54px 142px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(7, 89, 133, 0.28);
    padding: 13px;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.rank-item a:hover {
    background: rgba(30, 41, 59, 0.78);
    border-color: rgba(56, 189, 248, 0.36);
    transform: translateY(-2px);
}

.rank-no {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #eab308, #f97316);
    color: #020617;
    font-weight: 900;
    font-size: 18px;
}

.rank-item img {
    width: 142px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 14px;
}

.rank-info {
    min-width: 0;
}

.rank-info strong {
    display: block;
    color: #e5e7eb;
    font-size: 16px;
    margin-bottom: 6px;
}

.rank-info span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
}

.rank-info em {
    display: block;
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
    font-style: normal;
}

.page-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 0%, rgba(14, 165, 233, 0.2), transparent 34rem),
        linear-gradient(135deg, rgba(23, 37, 84, 0.72), rgba(2, 6, 23, 0.95));
    border-bottom: 1px solid rgba(7, 89, 133, 0.32);
}

.compact-hero {
    padding: 84px 24px 70px;
}

.page-hero-inner {
    width: min(100%, 1280px);
    margin: 0 auto;
}

.page-hero h1 {
    max-width: 820px;
    margin: 16px 0 14px;
    font-size: clamp(38px, 5.8vw, 68px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 780px;
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.8;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 220px;
    gap: 14px;
    margin-bottom: 30px;
    border: 1px solid rgba(7, 89, 133, 0.3);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
    padding: 14px;
}

.filter-input,
.filter-select {
    min-height: 48px;
    width: 100%;
    border: 1px solid rgba(7, 89, 133, 0.32);
    border-radius: 14px;
    outline: none;
    background: rgba(30, 41, 59, 0.8);
    color: var(--text-main);
    padding: 0 14px;
}

.filter-select {
    cursor: pointer;
}

.empty-state {
    display: none;
    margin: 32px 0 0;
    color: var(--text-muted);
    text-align: center;
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    border-bottom: 1px solid rgba(7, 89, 133, 0.3);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) saturate(0.72);
    transform: scale(1.12);
    opacity: 0.36;
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.72)),
        linear-gradient(0deg, var(--deep-space-950), transparent 52%);
}

.detail-shell {
    position: relative;
    z-index: 2;
    width: min(100% - 48px, 1280px);
    margin: 0 auto;
    min-height: 560px;
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    align-items: center;
    gap: 44px;
    padding: 70px 0;
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 34px 100px rgba(0, 0, 0, 0.52);
    border: 1px solid rgba(125, 211, 252, 0.22);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--cloud-realm-300);
}

.detail-info h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 5vw, 70px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 760px;
    margin: 0 0 22px;
    color: var(--text-soft);
    font-size: 19px;
    line-height: 1.8;
}

.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 16px;
}

.detail-meta-row span {
    color: var(--text-soft);
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(125, 211, 252, 0.18);
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 13px;
}

.detail-tags {
    margin-bottom: 24px;
}

.player-section {
    padding-bottom: 28px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(125, 211, 252, 0.24);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    cursor: pointer;
    color: white;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.32), rgba(0, 0, 0, 0.68) 55%, rgba(0, 0, 0, 0.82));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-icon {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.92);
    box-shadow: 0 20px 58px rgba(14, 165, 233, 0.38);
    font-size: 34px;
    text-indent: 5px;
}

.player-overlay span:last-child {
    font-size: 18px;
    font-weight: 800;
}

.detail-article {
    padding-top: 34px;
}

.article-card {
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(7, 89, 133, 0.32);
    padding: 30px;
    box-shadow: var(--card-shadow);
}

.article-card h2 {
    margin: 8px 0 16px;
    font-size: 28px;
}

.article-card h2:not(:first-child) {
    margin-top: 32px;
}

.article-card p {
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.95;
    margin: 0 0 15px;
}

.search-page-form {
    max-width: 760px;
    margin-bottom: 28px;
}

.search-page-form input {
    width: 100%;
    min-height: 54px;
    font-size: 16px;
}

.search-result-title {
    margin-bottom: 24px;
    color: var(--text-soft);
    font-weight: 800;
}

.site-footer {
    border-top: 1px solid var(--line-soft);
    background: rgba(2, 6, 23, 0.96);
}

.footer-shell {
    width: min(100% - 48px, 1280px);
    margin: 0 auto;
    padding: 46px 0 34px;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 36px;
}

.footer-brand p {
    max-width: 420px;
    color: var(--text-muted);
    line-height: 1.8;
}

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

.footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.footer-column a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-column a:hover {
    color: var(--cloud-realm-400);
}

.footer-bottom {
    width: min(100% - 48px, 1280px);
    margin: 0 auto;
    padding: 20px 0 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(7, 89, 133, 0.22);
    color: #64748b;
    font-size: 14px;
}

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

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

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

    .hero-carousel {
        height: 72vh;
        min-height: 520px;
    }

    .hero-category-strip {
        bottom: 68px;
    }

    .grid-six,
    .grid-five,
    .grid-four,
    .grid-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-two,
    .rank-grid {
        grid-template-columns: 1fr;
    }

    .detail-shell {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .detail-cover {
        max-width: 520px;
    }

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

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

@media (max-width: 640px) {
    .nav-shell,
    .content-section,
    .footer-shell,
    .footer-bottom,
    .detail-shell {
        width: min(100% - 32px, 1280px);
    }

    .nav-shell {
        min-height: 68px;
        padding: 0 16px;
    }

    .brand-name {
        font-size: 19px;
    }

    .hero-carousel {
        min-height: 590px;
    }

    .hero-content {
        width: min(100% - 32px, 1280px);
        padding-bottom: 126px;
    }

    .hero-category-strip {
        width: calc(100% - 32px);
        bottom: 72px;
    }

    .hero-dots {
        bottom: 28px;
    }

    .content-section,
    .section-alt,
    .section-gradient {
        padding-top: 52px;
        padding-bottom: 52px;
    }

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

    .grid-six,
    .grid-five,
    .grid-four,
    .grid-three,
    .grid-two,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .rank-item a {
        grid-template-columns: 42px 96px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-no {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .rank-item img {
        width: 96px;
    }

    .compact-hero {
        padding: 58px 16px 48px;
    }

    .detail-info h1,
    .page-hero h1 {
        letter-spacing: -0.04em;
    }

    .article-card {
        padding: 22px;
    }

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