:root {
    color-scheme: dark;
    --stone-950: #0c0a09;
    --stone-900: #1c1917;
    --stone-850: #211d1a;
    --stone-800: #292524;
    --stone-750: #342f2c;
    --stone-700: #44403c;
    --stone-500: #78716c;
    --stone-400: #a8a29e;
    --stone-300: #d6d3d1;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-300: #fcd34d;
    --white: #ffffff;
    --shadow-soft: 0 22px 70px rgba(0, 0, 0, 0.35);
    --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.28);
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--stone-900);
    color: var(--stone-300);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    background: rgba(28, 25, 23, 0.96);
    border-bottom: 1px solid rgba(68, 64, 60, 0.75);
    transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(28, 25, 23, 0.86);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-icon {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--amber-600), #4b3425 78%);
    color: var(--white);
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 12px 30px rgba(217, 119, 6, 0.25);
}

.brand-text {
    display: grid;
    line-height: 1.2;
}

.brand-text strong {
    color: #fff7ed;
    font-size: 20px;
    letter-spacing: 0.02em;
}

.brand-text small {
    color: var(--stone-400);
    font-size: 12px;
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--stone-300);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-dropdown:hover .dropdown-toggle {
    background: var(--amber-600);
    color: var(--white);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    display: grid;
    min-width: 180px;
    padding: 8px;
    border: 1px solid var(--stone-700);
    border-radius: 14px;
    background: rgba(41, 37, 36, 0.98);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--stone-300);
}

.dropdown-panel a:hover {
    background: var(--stone-700);
    color: var(--white);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(280px, 28vw);
}

.header-search input,
.mobile-panel input,
.search-page-form input {
    width: 100%;
    border: 1px solid var(--stone-700);
    border-radius: 12px;
    background: rgba(68, 64, 60, 0.58);
    color: var(--white);
    outline: none;
    padding: 10px 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-panel input:focus,
.search-page-form input:focus {
    border-color: var(--amber-600);
    box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.16);
}

.header-search button,
.mobile-panel button,
.search-page-form button {
    border: 0;
    border-radius: 12px;
    background: var(--amber-600);
    color: var(--white);
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-panel button:hover,
.search-page-form button:hover {
    background: var(--amber-700);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--stone-800);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--stone-300);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-panel {
    display: none;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: var(--stone-950);
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 5.5s ease;
}

.hero-slide.is-active img {
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 28%, rgba(245, 158, 11, 0.26), transparent 28%),
        linear-gradient(90deg, rgba(12, 10, 9, 0.92), rgba(12, 10, 9, 0.55) 48%, rgba(12, 10, 9, 0.26)),
        linear-gradient(0deg, var(--stone-900), rgba(28, 25, 23, 0.18) 42%);
}

.hero-content {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    justify-content: flex-end;
    padding: 150px 0 92px;
}

.hero-kicker,
.detail-kicker,
.page-hero span,
.section-heading span {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.16);
    color: var(--amber-300);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 6px 12px;
}

.hero h1 {
    max-width: 820px;
    margin: 18px 0 18px;
    color: var(--white);
    font-size: clamp(40px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero p {
    max-width: 720px;
    margin: 0 0 22px;
    color: var(--stone-300);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.detail-tags,
.tag-cloud,
.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags a,
.detail-tags a,
.tag-cloud a,
.chip-list a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(168, 162, 158, 0.24);
    background: rgba(68, 64, 60, 0.52);
    color: var(--stone-300);
    padding: 0 13px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hero-tags a:hover,
.detail-tags a:hover,
.tag-cloud a:hover,
.chip-list a:hover {
    border-color: var(--amber-600);
    background: rgba(217, 119, 6, 0.18);
    color: var(--white);
}

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

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

.primary-btn {
    background: var(--amber-600);
    color: var(--white);
    box-shadow: 0 15px 30px rgba(217, 119, 6, 0.25);
}

.primary-btn:hover {
    background: var(--amber-700);
    transform: translateY(-2px);
}

.secondary-btn {
    border: 1px solid rgba(214, 211, 209, 0.24);
    background: rgba(12, 10, 9, 0.42);
    color: var(--white);
}

.secondary-btn:hover {
    border-color: var(--amber-600);
    background: rgba(217, 119, 6, 0.18);
    transform: translateY(-2px);
}

.primary-btn.small {
    min-height: 40px;
    padding: 0 16px;
}

.primary-btn.full {
    width: 100%;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.38);
    color: var(--white);
    font-size: 36px;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(217, 119, 6, 0.82);
    transform: translateY(-50%) scale(1.06);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

.hero-dot.is-active {
    width: 32px;
    background: var(--amber-600);
}

.quick-panel,
.content-section,
.rank-section {
    padding: 68px 0;
}

.quick-panel {
    background: var(--stone-800);
}

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

.quick-grid > div,
.info-card,
.meta-panel,
.related-panel,
.poster-panel {
    border: 1px solid rgba(68, 64, 60, 0.8);
    border-radius: var(--radius-lg);
    background: rgba(41, 37, 36, 0.9);
    box-shadow: var(--shadow-card);
}

.quick-grid > div {
    padding: 24px;
}

.quick-grid h2,
.info-card h2,
.meta-panel h2,
.related-panel h2 {
    margin: 0 0 16px;
    color: var(--white);
    font-size: 20px;
}

.content-section:nth-of-type(even) {
    background: var(--stone-850);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.section-heading h2 {
    margin: 10px 0 0;
    color: var(--white);
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
}

.section-more {
    color: var(--amber-300);
    font-weight: 700;
}

.section-more:hover {
    color: var(--white);
}

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

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

.catalog-grid {
    margin-top: 24px;
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(68, 64, 60, 0.72);
    border-radius: var(--radius-md);
    background: var(--stone-800);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(217, 119, 6, 0.64);
    box-shadow: var(--shadow-card);
    transform: translateY(-5px);
}

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

.card-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--stone-700), var(--stone-900));
}

.wide-cover {
    aspect-ratio: 16 / 9;
}

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

.movie-card:hover .card-cover img,
.mini-card:hover img,
.rank-row:hover img {
    transform: scale(1.08);
}

.card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .card-shade {
    opacity: 1;
}

.card-badge,
.card-year,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    border-radius: 8px;
    padding: 0 8px;
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
}

.card-badge {
    top: 10px;
    left: 10px;
    background: var(--amber-600);
}

.card-year {
    right: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.58);
}

.rank-badge {
    right: 10px;
    top: 10px;
    background: rgba(0, 0, 0, 0.72);
}

.card-body {
    padding: 14px;
}

.movie-card-large .card-body {
    padding: 18px;
}

.card-body h3 {
    display: -webkit-box;
    min-height: 42px;
    margin: 0 0 8px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--white);
    font-size: 16px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.movie-card-large .card-body h3 {
    min-height: 0;
    font-size: 21px;
}

.movie-card:hover h3 {
    color: var(--amber-300);
}

.card-body p,
.mini-card p,
.rank-info em {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: var(--stone-400);
    font-size: 14px;
    font-style: normal;
}

.mini-tags,
.rank-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.mini-tags span,
.rank-tags span {
    border-radius: 999px;
    background: rgba(68, 64, 60, 0.72);
    color: var(--stone-300);
    font-size: 12px;
    padding: 4px 8px;
}

.page-main {
    min-height: 60vh;
    padding-top: 68px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 12%, rgba(217, 119, 6, 0.28), transparent 35%),
        linear-gradient(135deg, var(--stone-800), var(--stone-950));
}

.compact-hero {
    padding: 82px 0 58px;
}

.page-hero h1 {
    max-width: 760px;
    margin: 14px 0 10px;
    color: var(--white);
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--stone-300);
    font-size: 18px;
}

.page-tags {
    margin-top: 24px;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 26px;
}

.pagination a {
    display: inline-flex;
    min-width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--stone-700);
    border-radius: 10px;
    background: var(--stone-800);
    color: var(--stone-300);
    padding: 0 12px;
}

.pagination a:hover,
.pagination a.active {
    border-color: var(--amber-600);
    background: var(--amber-600);
    color: var(--white);
}

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

.rank-row {
    border: 1px solid rgba(68, 64, 60, 0.8);
    border-radius: var(--radius-md);
    background: var(--stone-800);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    border-color: var(--amber-600);
    transform: translateY(-2px);
}

.rank-row a {
    display: grid;
    grid-template-columns: 58px 104px 1fr;
    gap: 18px;
    align-items: center;
    padding: 12px 16px;
}

.rank-number {
    color: var(--amber-300);
    font-size: 26px;
    font-weight: 900;
    text-align: center;
}

.rank-row img {
    width: 104px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    object-fit: cover;
    background: var(--stone-700);
    transition: transform 0.35s ease;
}

.rank-info {
    display: grid;
    gap: 5px;
}

.rank-info strong {
    color: var(--white);
    font-size: 18px;
}

.rank-info small {
    color: var(--stone-400);
}

.detail-main {
    min-height: 100vh;
    padding-top: 68px;
    background: var(--stone-900);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 36px 0 72px;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    height: 470px;
    overflow: hidden;
    opacity: 0.18;
    filter: blur(2px);
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-backdrop::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, var(--stone-900), rgba(28, 25, 23, 0.32));
}

.detail-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--stone-400);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--amber-300);
}

.breadcrumb strong {
    color: var(--white);
}

.player-box {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(68, 64, 60, 0.9);
    border-radius: 18px;
    background: #000000;
    box-shadow: var(--shadow-soft);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 8px;
    border: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.18));
    color: var(--white);
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    border-radius: 999px;
    background: var(--amber-600);
    box-shadow: 0 18px 40px rgba(217, 119, 6, 0.35);
    font-size: 34px;
    text-indent: 4px;
}

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

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

.player-message {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 4;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: var(--stone-300);
    font-size: 13px;
    padding: 8px 12px;
}

.detail-copy {
    margin-top: 28px;
}

.title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.title-row h1 {
    margin: 12px 0 0;
    color: var(--white);
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.1;
}

.detail-tags {
    margin: 0 0 22px;
}

.info-card {
    margin-bottom: 18px;
    padding: 24px;
}

.info-card p {
    margin: 0;
    color: var(--stone-300);
    white-space: pre-line;
}

.detail-aside {
    display: grid;
    align-content: start;
    gap: 18px;
}

.poster-panel {
    padding: 16px;
}

.poster-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    object-fit: cover;
    background: var(--stone-700);
    margin-bottom: 14px;
}

.meta-panel,
.related-panel {
    padding: 20px;
}

.meta-panel dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.meta-panel div {
    display: grid;
}

.meta-panel dt {
    color: var(--stone-500);
    font-size: 13px;
}

.meta-panel dd {
    margin: 0;
    color: var(--stone-300);
}

.meta-panel a:hover {
    color: var(--amber-300);
}

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

.mini-card {
    overflow: hidden;
    border-radius: 14px;
    background: rgba(68, 64, 60, 0.48);
}

.mini-card-link {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px;
    min-height: 82px;
}

.mini-card img {
    width: 120px;
    height: 100%;
    min-height: 82px;
    object-fit: cover;
    background: var(--stone-700);
    transition: transform 0.35s ease;
}

.mini-card div {
    display: grid;
    align-content: center;
    padding: 10px 10px 10px 0;
}

.mini-card span {
    color: var(--amber-300);
    font-size: 12px;
}

.mini-card strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    color: var(--white);
}

.search-page-form {
    display: flex;
    max-width: 640px;
    gap: 10px;
    margin-top: 26px;
}

.empty-state {
    border: 1px solid var(--stone-700);
    border-radius: var(--radius-md);
    background: var(--stone-800);
    color: var(--stone-400);
    padding: 38px;
    text-align: center;
}

.site-footer {
    border-top: 1px solid rgba(68, 64, 60, 0.72);
    background: var(--stone-950);
    color: var(--stone-400);
    padding-top: 52px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 30px;
}

.footer-brand {
    margin-bottom: 14px;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 16px;
}

.site-footer p {
    margin: 0;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--amber-300);
}

.footer-bottom {
    margin-top: 42px;
    border-top: 1px solid rgba(68, 64, 60, 0.72);
    padding: 18px 16px;
    text-align: center;
}

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

    .mobile-toggle {
        display: block;
    }

    .mobile-panel.is-open {
        display: block;
        border-top: 1px solid var(--stone-700);
        background: rgba(28, 25, 23, 0.98);
        padding: 14px 16px 18px;
    }

    .mobile-panel nav,
    .mobile-panel form {
        width: min(100%, var(--container));
        margin: 0 auto;
    }

    .mobile-panel nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 12px;
    }

    .mobile-panel .nav-link,
    .mobile-panel nav a {
        border-radius: 10px;
        background: var(--stone-800);
        padding: 10px 12px;
    }

    .mobile-panel form {
        display: flex;
        gap: 8px;
    }

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

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

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

    .detail-aside {
        grid-template-columns: minmax(240px, 340px) 1fr;
    }
}

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

    .brand-text strong {
        font-size: 17px;
    }

    .brand-text small {
        display: none;
    }

    .hero {
        min-height: 620px;
        height: 78vh;
    }

    .hero-content {
        padding: 130px 0 84px;
    }

    .hero-control {
        display: none;
    }

    .quick-grid,
    .large-grid,
    .footer-grid,
    .detail-aside {
        grid-template-columns: 1fr;
    }

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

    .content-section,
    .quick-panel,
    .rank-section {
        padding: 46px 0;
    }

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

    .card-body {
        padding: 11px;
    }

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

    .rank-row a {
        grid-template-columns: 42px 86px 1fr;
        gap: 10px;
        padding: 10px;
    }

    .rank-row img {
        width: 86px;
    }

    .rank-number {
        font-size: 20px;
    }

    .rank-info em,
    .rank-tags {
        display: none;
    }

    .title-row {
        flex-direction: column;
    }

    .mini-card-link {
        grid-template-columns: 96px 1fr;
    }

    .mini-card img {
        width: 96px;
    }

    .search-page-form {
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

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