:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;
    --purple-500: #8b5cf6;
    --text-main: #172033;
    --text-soft: #60708c;
    --card: #ffffff;
    --line: rgba(96, 165, 250, 0.22);
    --shadow: 0 20px 50px rgba(37, 99, 235, 0.12);
    --shadow-strong: 0 28px 80px rgba(15, 23, 42, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text-main);
    background: linear-gradient(180deg, rgba(239, 246, 255, 0.68), #ffffff 32%, rgba(239, 246, 255, 0.52));
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.08);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 72px;
}

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

.logo-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #ffffff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue-400), var(--cyan-400));
    box-shadow: 0 12px 24px rgba(34, 211, 238, 0.28);
    transition: transform 0.5s ease;
}

.logo:hover .logo-icon {
    transform: rotate(180deg) scale(1.06);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.logo-text strong,
.footer-logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: transparent;
    background: linear-gradient(90deg, var(--blue-500), var(--cyan-500));
    -webkit-background-clip: text;
    background-clip: text;
}

.logo-text small {
    margin-top: 3px;
    color: #7c8aa5;
    font-size: 12px;
}

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

.nav-link {
    position: relative;
    color: #4a5973;
    font-weight: 600;
    transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue-600);
}

.nav-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--blue-400), var(--cyan-400));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.top-search,
.mobile-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--blue-200);
    border-radius: 999px;
    background: rgba(239, 246, 255, 0.72);
    overflow: hidden;
}

.top-search input,
.mobile-search input {
    width: 210px;
    border: 0;
    outline: 0;
    padding: 10px 6px 10px 16px;
    background: transparent;
    color: var(--text-main);
}

.top-search button,
.mobile-search button {
    border: 0;
    width: 42px;
    height: 42px;
    cursor: pointer;
    color: var(--blue-600);
    background: transparent;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--blue-50);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 99px;
    background: var(--blue-600);
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

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

.mobile-panel a {
    display: block;
    padding: 12px 4px;
    color: #4a5973;
    font-weight: 600;
}

.mobile-search {
    margin: 14px 0 8px;
}

.mobile-search input {
    flex: 1;
    width: auto;
}

.hero-slider {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: #0b1220;
}

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

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.82), rgba(15, 23, 42, 0.28) 48%, rgba(14, 165, 233, 0.16)), linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent 55%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 92px;
}

.hero-copy {
    width: min(760px, 100%);
    color: #ffffff;
}

.hero-kicker,
.detail-title-row .eyebrow,
.eyebrow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 16px;
    color: var(--blue-600);
    font-weight: 800;
    letter-spacing: 0.05em;
}

.hero-kicker span {
    padding: 7px 13px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
}

.hero-kicker span:first-child {
    background: rgba(59, 130, 246, 0.9);
}

.hero-copy h1,
.hero-copy h2,
.ranking-hero-copy h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy p,
.ranking-hero-copy p {
    width: min(680px, 100%);
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
    line-height: 1.8;
}

.hero-tags,
.side-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.side-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    color: var(--blue-700, #1d4ed8);
    background: rgba(219, 234, 254, 0.9);
    font-size: 13px;
    font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.section-more,
.text-link,
.filter-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
    color: var(--blue-600);
    background: #ffffff;
    box-shadow: 0 18px 35px rgba(255, 255, 255, 0.18);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover,
.filter-reset:hover {
    transform: translateY(-2px) scale(1.02);
}

.ghost-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-dots {
    position: absolute;
    z-index: 3;
    right: calc((100vw - min(1180px, calc(100vw - 32px))) / 2);
    bottom: 46px;
    display: flex;
    gap: 10px;
}

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

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

.hero-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.18);
    backdrop-filter: blur(12px);
    cursor: pointer;
    font-size: 32px;
    transform: translateY(-50%);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

.section-head h2,
.panel-head h2,
.detail-panel h2,
.side-card h2 {
    margin: 0 0 8px;
    color: var(--text-main);
    font-size: clamp(26px, 4vw, 36px);
    letter-spacing: -0.04em;
}

.section-head p,
.panel-head p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.8;
}

.section-more,
.text-link,
.panel-head a {
    color: var(--blue-600);
    background: var(--blue-50);
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(191, 219, 254, 0.75);
    border-radius: 24px;
    background: var(--card);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.movie-card:hover {
    border-color: rgba(96, 165, 250, 0.76);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue-100), rgba(34, 211, 238, 0.18));
}

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

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

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

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.58), transparent 54%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.movie-card:hover .poster-wrap::after {
    opacity: 1;
}

.duration,
.rank-badge,
.play-mark {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(10px);
}

.duration {
    right: 12px;
    top: 12px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
}

.rank-badge {
    left: 12px;
    top: 12px;
    display: grid;
    min-width: 32px;
    height: 32px;
    place-items: center;
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
    font-style: normal;
    font-weight: 900;
}

.play-mark {
    left: 50%;
    top: 50%;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    background: rgba(255, 255, 255, 0.92);
    color: var(--blue-600);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.card-body {
    padding: 18px;
}

.card-meta,
.metric-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #7b8aa7;
    font-size: 13px;
    font-weight: 700;
}

.card-body h3 {
    margin: 12px 0 8px;
    color: var(--text-main);
    font-size: 19px;
    line-height: 1.35;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-body p {
    min-height: 48px;
    margin: 0 0 14px;
    color: var(--text-soft);
    line-height: 1.7;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.metric-row {
    justify-content: space-between;
    margin-top: 14px;
    font-size: 12px;
}

.category-band {
    padding: 70px 0;
    background: linear-gradient(90deg, rgba(239, 246, 255, 0.9), rgba(236, 254, 255, 0.9));
}

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

.category-tile {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow);
    background: #0b1220;
}

.category-tile img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.tile-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(37, 99, 235, 0.18));
}

.category-tile strong,
.category-tile small {
    position: absolute;
    left: 22px;
    right: 22px;
    z-index: 2;
    color: #ffffff;
}

.category-tile strong {
    bottom: 72px;
    font-size: 28px;
}

.category-tile small {
    bottom: 24px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
    padding-top: 70px;
    padding-bottom: 70px;
}

.ranking-panel,
.side-card,
.detail-panel,
.filter-panel,
.category-card-large {
    border: 1px solid rgba(191, 219, 254, 0.7);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.09);
}

.ranking-panel {
    position: sticky;
    top: 92px;
    padding: 24px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 34px 64px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.rank-row:hover {
    background: var(--blue-50);
    transform: translateX(4px);
}

.list-rank {
    display: grid;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
    font-weight: 900;
}

.rank-row img {
    width: 64px;
    height: 46px;
    border-radius: 12px;
    object-fit: cover;
}

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

.rank-info strong,
.rank-info small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info strong {
    color: var(--text-main);
    font-size: 15px;
}

.rank-info small,
.rank-row em {
    color: var(--text-soft);
    font-size: 12px;
    font-style: normal;
}

.page-hero,
.ranking-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
}

.soft-hero {
    padding: 78px 0 66px;
    background: radial-gradient(circle at 18% 10%, rgba(34, 211, 238, 0.28), transparent 32%), linear-gradient(135deg, rgba(239, 246, 255, 0.96), #ffffff 56%, rgba(224, 242, 254, 0.72));
}

.page-hero h1 {
    width: min(820px, 100%);
    margin: 0;
    color: var(--text-main);
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.page-hero p {
    width: min(720px, 100%);
    margin: 18px 0 0;
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.9;
}

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

.category-card-large {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
}

.category-cover {
    position: relative;
    overflow: hidden;
    min-height: 168px;
    border-radius: 22px;
    background: #0b1220;
}

.category-cover img {
    width: 100%;
    height: 100%;
    min-height: 168px;
    object-fit: cover;
}

.category-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.65), transparent 56%);
}

.category-cover span {
    position: absolute;
    z-index: 2;
    left: 16px;
    bottom: 16px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
}

.category-card-large h2 {
    margin: 6px 0 10px;
    font-size: 25px;
}

.category-card-large p {
    margin: 0 0 14px;
    color: var(--text-soft);
    line-height: 1.7;
}

.category-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.category-previews a {
    max-width: 180px;
    overflow: hidden;
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--blue-600);
    background: var(--blue-50);
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 30px;
    padding: 18px;
}

.filter-field {
    display: grid;
    gap: 8px;
}

.filter-field label {
    color: #6c7d99;
    font-size: 13px;
    font-weight: 800;
}

.filter-field input,
.filter-field select {
    width: 100%;
    height: 46px;
    border: 1px solid var(--blue-200);
    border-radius: 999px;
    outline: 0;
    padding: 0 16px;
    color: var(--text-main);
    background: rgba(239, 246, 255, 0.58);
}

.filter-field input:focus,
.filter-field select:focus {
    border-color: var(--blue-400);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

.filter-reset {
    height: 46px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue-500), var(--cyan-500));
    cursor: pointer;
}

.empty-result {
    display: none;
    padding: 50px 20px;
    color: var(--text-soft);
    text-align: center;
    border: 1px dashed var(--blue-200);
    border-radius: 24px;
    background: rgba(239, 246, 255, 0.46);
}

.empty-result.visible {
    display: block;
}

.ranking-hero,
.detail-hero {
    height: 460px;
    background: #0b1220;
}

.ranking-hero-layer,
.detail-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.35)), linear-gradient(0deg, rgba(2, 6, 23, 0.85), transparent 70%);
}

.ranking-hero-copy,
.detail-hero-copy {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 58px;
    color: #ffffff;
}

.narrow-section {
    padding-top: 0;
}

.full-rank-list {
    border: 1px solid rgba(191, 219, 254, 0.7);
    border-radius: 26px;
    background: #ffffff;
    padding: 16px;
}

.detail-hero-copy {
    gap: 22px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

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

.detail-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.detail-title-row h1 {
    width: min(820px, 100%);
    margin: 0;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.detail-title-row p {
    width: min(760px, 100%);
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.85;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
    padding-top: 42px;
    padding-bottom: 80px;
}

.detail-main,
.detail-side {
    display: grid;
    gap: 24px;
}

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

.movie-video {
    display: block;
    width: 100%;
    height: 100%;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.16), rgba(2, 6, 23, 0.38));
}

.player-overlay span {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    border-radius: 50%;
    color: var(--blue-600);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
    font-size: 34px;
    transition: transform 0.25s ease;
}

.player-overlay:hover span {
    transform: scale(1.06);
}

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

.detail-panel {
    padding: 26px;
}

.detail-panel p {
    margin: 0;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 2;
}

.detail-side {
    position: sticky;
    top: 96px;
}

.side-card {
    padding: 22px;
}

.cover-card {
    overflow: hidden;
    padding: 0;
}

.cover-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.info-list {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px 14px;
    margin: 0;
}

.info-list dt {
    color: #7a8ba8;
    font-weight: 800;
}

.info-list dd {
    margin: 0;
    color: var(--text-main);
    line-height: 1.6;
}

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

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

.site-footer h3 {
    margin: 0 0 16px;
    font-size: 17px;
}

.site-footer p {
    margin: 12px 0 0;
    color: var(--text-soft);
    line-height: 1.8;
}

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

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

.site-footer a {
    color: #60708c;
    transition: color 0.25s ease;
}

.site-footer a:hover {
    color: var(--blue-600);
}

.footer-bottom {
    padding: 18px 16px 28px;
    color: #7a8ba8;
    text-align: center;
    border-top: 1px solid var(--line);
}

@media (max-width: 1080px) {
    .desktop-nav {
        gap: 12px;
    }

    .top-search input {
        width: 170px;
    }

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

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

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

    .ranking-panel,
    .detail-side {
        position: static;
    }
}

@media (max-width: 820px) {
    .desktop-nav,
    .top-search {
        display: none;
    }

    .site-nav {
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
    }

    .hero-slider {
        height: 560px;
    }

    .hero-content {
        padding-bottom: 76px;
    }

    .hero-arrow {
        display: none;
    }

    .hero-dots {
        right: 20px;
        bottom: 30px;
    }

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

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

    .category-card-large {
        grid-template-columns: 1fr;
    }

    .detail-title-row {
        display: block;
    }

    .detail-title-row .primary-btn {
        margin-top: 22px;
    }
}

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

    .logo-text strong {
        font-size: 20px;
    }

    .hero-slider {
        height: 520px;
    }

    .hero-copy p,
    .ranking-hero-copy p,
    .detail-title-row p {
        font-size: 16px;
        line-height: 1.7;
    }

    .hero-actions {
        display: grid;
    }

    .three-grid,
    .four-grid,
    .category-grid,
    .category-large-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .content-section,
    .category-band {
        padding: 46px 0;
    }

    .section-head,
    .panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .rank-row {
        grid-template-columns: 30px 54px minmax(0, 1fr);
    }

    .rank-row em {
        display: none;
    }

    .ranking-hero,
    .detail-hero {
        height: 520px;
    }

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