:root {
    color-scheme: light;
    --site-blue: #2563eb;
    --site-cyan: #06b6d4;
    --site-teal: #0d9488;
    --site-orange: #f97316;
    --site-red: #ef4444;
    --site-green: #16a34a;
    --site-gray: #f8fafc;
    --site-dark: #0f172a;
    --site-text: #111827;
    --site-muted: #6b7280;
    --site-border: #e5e7eb;
    --site-card: #ffffff;
    --site-radius: 18px;
    --site-shadow: 0 16px 35px rgba(15, 23, 42, 0.10);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--site-gray);
    color: var(--site-text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.95);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(16px);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.logo-text {
    background: linear-gradient(90deg, var(--site-blue), var(--site-cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 650;
    color: #374151;
}

.nav-links a {
    position: relative;
    padding: 24px 0;
    transition: color 0.2s ease;
}

.nav-links a::after {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 16px;
    height: 2px;
    background: linear-gradient(90deg, var(--site-blue), var(--site-cyan));
    border-radius: 99px;
    content: "";
    opacity: 0;
    transform: scaleX(0.4);
    transition: all 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--site-blue);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    color: #111827;
    font-size: 24px;
}

.mobile-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
}

.mobile-panel a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    font-weight: 650;
    color: #374151;
}

.mobile-panel a:hover {
    background: #eff6ff;
    color: var(--site-blue);
}

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

.page-shell {
    min-height: 70vh;
}

.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2563eb 0%, #0891b2 48%, #0d9488 100%);
    color: #ffffff;
}

.hero-section::before {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
        radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.16), transparent 24%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.02));
    content: "";
}

.hero-inner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 74px 24px 82px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.94fr);
    align-items: center;
    gap: 56px;
}

.hero-slide.is-active {
    display: grid;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.hero-title {
    max-width: 760px;
    margin: 0;
    font-size: clamp(36px, 6vw, 70px);
    line-height: 1.03;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.hero-highlight {
    color: #cffafe;
}

.hero-movie-title {
    margin: 0;
    font-size: clamp(25px, 3vw, 40px);
    line-height: 1.15;
    font-weight: 800;
}

.hero-text {
    max-width: 720px;
    margin: 0;
    color: #e0f2fe;
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 8px;
}

.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 14px;
    font-weight: 800;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #ffffff;
    color: var(--site-blue);
    box-shadow: 0 18px 28px rgba(15, 23, 42, 0.18);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    background: #eff6ff;
}

.btn-secondary {
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

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

.btn-ghost {
    background: #eff6ff;
    color: var(--site-blue);
}

.btn-ghost:hover {
    background: #dbeafe;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 8px;
}

.hero-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #f0f9ff;
    font-size: 14px;
    font-weight: 650;
}

.hero-media {
    position: relative;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.06));
    box-shadow: 0 34px 70px rgba(15, 23, 42, 0.35);
    transform: rotate(1deg);
}

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

.hero-poster:hover img {
    transform: scale(1.05);
}

.hero-poster::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(15, 23, 42, 0.78));
    content: "";
}

.hero-card-caption {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    z-index: 2;
}

.hero-card-caption strong {
    display: block;
    margin-bottom: 6px;
    font-size: 22px;
}

.hero-card-caption span {
    color: #dbeafe;
    font-size: 14px;
}

.hero-controls {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1280px;
    margin: -46px auto 0;
    padding: 0 24px 30px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 22px;
}

.hero-dot {
    width: 38px;
    height: 6px;
    border-radius: 999px;
    opacity: 0.6;
}

.hero-dot.is-active {
    width: 58px;
    background: #ffffff;
    opacity: 1;
}

.search-band {
    margin-top: -32px;
    position: relative;
    z-index: 3;
}

.search-box {
    display: flex;
    gap: 12px;
    max-width: 960px;
    margin: 0 auto;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--site-shadow);
}

.search-box input {
    flex: 1;
    min-width: 0;
    height: 48px;
    border: 1px solid var(--site-border);
    border-radius: 14px;
    padding: 0 16px;
    color: var(--site-text);
    outline: none;
}

.search-box input:focus {
    border-color: var(--site-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.search-box button {
    border: 0;
    border-radius: 14px;
    padding: 0 22px;
    background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
    color: #ffffff;
    font-weight: 800;
}

.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 24px;
}

.section.compact {
    padding-top: 38px;
    padding-bottom: 38px;
}

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

.section-header.centered {
    display: block;
    text-align: center;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--site-blue);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-desc {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--site-muted);
    line-height: 1.8;
}

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

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

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--site-radius);
    background: var(--site-card);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
}

.poster-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.20), rgba(6, 182, 212, 0.20)),
        #e5e7eb;
}

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

.movie-card:hover .poster-frame img {
    transform: scale(1.06);
}

.poster-shade {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0);
    color: #ffffff;
    opacity: 0;
    transition: all 0.2s ease;
}

.movie-card:hover .poster-shade {
    background: rgba(15, 23, 42, 0.34);
    opacity: 1;
}

.play-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--site-blue);
    font-weight: 900;
}

.corner-badge,
.duration-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.corner-badge {
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    background: var(--site-red);
}

.duration-badge {
    right: 10px;
    bottom: 10px;
    padding: 5px 8px;
    background: rgba(15, 23, 42, 0.76);
}

.rank-badge {
    top: 12px;
    right: 12px;
    min-width: 36px;
    padding: 5px 9px;
    background: linear-gradient(135deg, var(--site-orange), var(--site-red));
    text-align: center;
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

.card-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 45px;
    margin: 0;
    color: #111827;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-summary {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--site-muted);
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    color: #6b7280;
    font-size: 12px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--site-blue);
    font-size: 12px;
    font-weight: 800;
}

.pill.green {
    background: #dcfce7;
    color: var(--site-green);
}

.pill.orange {
    background: #ffedd5;
    color: var(--site-orange);
}

.pill.gray {
    background: #f3f4f6;
    color: #4b5563;
}

.category-card {
    display: flex;
    min-height: 188px;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: var(--site-radius);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: all 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 42px rgba(15, 23, 42, 0.14);
}

.category-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--site-blue), var(--site-cyan));
    color: #ffffff;
    font-size: 22px;
}

.category-card h3 {
    margin: 16px 0 8px;
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    margin: 0;
    color: var(--site-muted);
    font-size: 14px;
    line-height: 1.65;
}

.category-card strong {
    margin-top: 18px;
    color: var(--site-blue);
    font-size: 14px;
}

.banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2563eb, #0891b2 48%, #0d9488);
    color: #ffffff;
}

.banner::before {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.26), transparent 32%);
    content: "";
}

.banner-inner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: 62px 24px;
}

.banner h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.banner p {
    max-width: 850px;
    margin: 16px 0 0;
    color: #e0f2fe;
    font-size: 18px;
    line-height: 1.8;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 26px;
}

.filter-button {
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #ffffff;
    color: #374151;
    padding: 10px 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.18s ease;
}

.filter-button:hover,
.filter-button.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--site-orange), var(--site-red));
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.20);
}

.toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
}

.toolbar input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--site-border);
    border-radius: 14px;
    padding: 0 16px;
    outline: none;
}

.toolbar input:focus {
    border-color: var(--site-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.result-count {
    color: var(--site-muted);
    font-weight: 700;
    white-space: nowrap;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 18px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: var(--site-radius);
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    transition: all 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.14);
}

.rank-thumb {
    position: relative;
    overflow: hidden;
    min-height: 106px;
    background: #e5e7eb;
}

.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-body {
    min-width: 0;
    padding: 16px 16px 16px 0;
}

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

.rank-body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 10px;
    color: var(--site-muted);
    font-size: 13px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 0.92fr);
    gap: 30px;
}

.player-card,
.detail-card,
.sidebar-card {
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: var(--site-radius);
    background: #ffffff;
    box-shadow: var(--site-shadow);
}

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

.player-wrap {
    position: relative;
    background: #020617;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.18), rgba(2, 6, 23, 0.68));
    cursor: pointer;
    z-index: 2;
}

.player-cover.is-hidden {
    display: none;
}

.player-cover button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--site-blue);
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 900;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
    cursor: pointer;
}

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

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

.breadcrumb a {
    color: var(--site-blue);
    font-weight: 800;
}

.detail-title {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.detail-meta,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.detail-section {
    padding-top: 24px;
    border-top: 1px solid var(--site-border);
}

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

.detail-section h2 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 900;
}

.detail-section p {
    margin: 0 0 12px;
    color: #374151;
    font-size: 16px;
    line-height: 1.9;
}

.review-box {
    border-radius: 16px;
    background: linear-gradient(135deg, #fff7ed, #fef2f2);
    padding: 22px;
}

.star-row {
    color: #facc15;
    font-size: 18px;
    letter-spacing: 0.08em;
}

.sidebar-card {
    position: sticky;
    top: 94px;
    padding: 22px;
}

.sidebar-card h2 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 900;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.related-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border-radius: 14px;
    padding: 8px;
    transition: background 0.18s ease;
}

.related-item:hover {
    background: #f8fafc;
}

.related-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    background: #e5e7eb;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-info h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 6px;
    color: #111827;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-info p {
    margin: 0;
    color: var(--site-muted);
    font-size: 12px;
}

.site-footer {
    background: #0f172a;
    color: #cbd5e1;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 19px;
    font-weight: 900;
}

.footer-inner h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
}

.footer-inner p,
.footer-inner li {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.8;
}

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

.footer-inner a:hover {
    color: #67e8f9;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px 28px;
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
}

.empty-state {
    display: none;
    padding: 38px;
    border: 1px dashed #cbd5e1;
    border-radius: var(--site-radius);
    color: var(--site-muted);
    text-align: center;
}

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

.card-hidden {
    display: none !important;
}

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

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

    .sidebar-card {
        position: static;
    }

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

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

    .mobile-toggle {
        display: inline-flex;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hero-inner {
        padding-top: 54px;
        padding-bottom: 76px;
    }

    .hero-controls {
        margin-top: -42px;
    }

    .search-box {
        flex-direction: column;
    }

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

    .section-header {
        display: block;
    }

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

@media (max-width: 560px) {
    .site-nav {
        height: 64px;
        padding: 0 16px;
    }

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

    .logo-mark {
        width: 38px;
        height: 38px;
    }

    .hero-inner,
    .section,
    .banner-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-actions,
    .hero-meta {
        width: 100%;
    }

    .btn-primary,
    .btn-secondary,
    .btn-ghost {
        width: 100%;
    }

    .grid.cards-grid,
    .grid.category-grid,
    .grid.rank-grid,
    .rank-list {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 112px minmax(0, 1fr);
    }

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

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