:root {
    --color-primary: #d97706;
    --color-primary-dark: #b45309;
    --color-accent: #f97316;
    --color-bg: #f9fafb;
    --color-surface: #ffffff;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-line: #e5e7eb;
    --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 8px 25px rgba(15, 23, 42, 0.08);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

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

img,
video {
    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: 100;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    box-shadow: 0 8px 24px rgba(180, 83, 9, 0.28);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.brand-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.20);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff7ed;
    font-weight: 700;
}

.desktop-nav > a,
.nav-dropdown > button {
    position: relative;
    border: 0;
    background: transparent;
    color: inherit;
    padding: 20px 0;
    cursor: pointer;
}

.desktop-nav > a:hover,
.desktop-nav > a.active,
.nav-dropdown:hover > button {
    color: #fffbeb;
}

.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% - 4px);
    display: grid;
    min-width: 180px;
    padding: 10px;
    border-radius: 16px;
    background: #ffffff;
    color: #111827;
    box-shadow: var(--shadow-card);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu a {
    padding: 9px 12px;
    border-radius: 10px;
    color: #374151;
}

.dropdown-menu a:hover {
    background: #fff7ed;
    color: var(--color-primary-dark);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    padding: 9px;
}

.mobile-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #ffffff;
    border-radius: 99px;
}

.mobile-nav {
    display: grid;
    gap: 6px;
    padding: 12px 16px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 700;
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.18);
}

.mobile-nav-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}

.hero {
    position: relative;
    overflow: hidden;
    background: #0f172a;
}

.hero-slider {
    position: relative;
    height: 600px;
}

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

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

.hero-bg,
.hero-bg img,
.player-poster,
.player-poster img {
    width: 100%;
    height: 100%;
}

.hero-bg img,
.player-poster img,
.poster-frame img {
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.20) 55%, rgba(0, 0, 0, 0.10)),
        radial-gradient(circle at 15% 70%, rgba(217, 119, 6, 0.45), transparent 36%);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    max-width: 1180px;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 88px;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.16);
    color: #fbbf24;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-content h1,
.page-hero h1 {
    max-width: 820px;
    margin: 0 0 16px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p {
    max-width: 720px;
    margin: 0 0 24px;
    color: #f3f4f6;
    font-size: clamp(17px, 2vw, 22px);
}

.hero-meta,
.detail-meta,
.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span,
.detail-meta span,
.meta-row span {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff7ed;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
}

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

.primary-button,
.ghost-button,
.quick-search button,
.filter-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 0 24px;
    border: 0;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-button,
.quick-search button,
.filter-controls button {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.30);
}

.primary-button:hover,
.quick-search button:hover,
.filter-controls button:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.ghost-button {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.ghost-button.light {
    background: #ffffff;
    color: var(--color-primary-dark);
}

.hero-control {
    position: absolute;
    z-index: 4;
    top: 50%;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.48);
    color: #ffffff;
    font-size: 34px;
    cursor: pointer;
    transform: translateY(-50%);
}

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

.hero-control.prev {
    left: 18px;
}

.hero-control.next {
    right: 18px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    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.active {
    width: 34px;
    background: #f59e0b;
}

.search-strip {
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.search-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
}

.search-strip strong,
.search-strip span {
    display: block;
}

.search-strip span {
    color: var(--color-muted);
    font-size: 14px;
}

.quick-search {
    display: flex;
    width: min(460px, 100%);
    gap: 10px;
}

.quick-search input,
.filter-controls input,
.filter-controls select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--color-text);
    padding: 0 16px;
    outline: none;
}

.quick-search input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
}

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

.panel-section {
    margin: 18px 0;
    padding: 32px;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

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

.section-heading h2,
.ranking-heading h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--color-muted);
}

.section-heading a,
.ranking-heading a,
.breadcrumb a,
.poster-summary a {
    color: var(--color-primary-dark);
    font-weight: 800;
}

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

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

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

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

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

.card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.poster-frame {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.45), transparent 30%),
        linear-gradient(135deg, #1f2937, #92400e 52%, #111827);
}

.poster-frame::after {
    content: attr(data-fallback-title);
    position: absolute;
    inset: auto 14px 14px 14px;
    z-index: 0;
    color: rgba(255, 255, 255, 0.90);
    font-size: 14px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.poster-frame img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    transition: transform 0.45s ease;
}

.card-link:hover .poster-frame img {
    transform: scale(1.08);
}

.movie-card .poster-frame {
    aspect-ratio: 16 / 9;
}

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

.type-badge,
.rank-badge,
.mini-rank {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
}

.type-badge {
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    background: rgba(217, 119, 6, 0.94);
}

.rank-badge {
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    background: rgba(220, 38, 38, 0.94);
}

.card-body {
    padding: 17px;
}

.card-body h3 {
    margin: 0 0 8px;
    overflow: hidden;
    color: #111827;
    font-size: 18px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.card-link:hover h3 {
    color: var(--color-primary-dark);
}

.card-body p {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--color-muted);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.meta-row {
    gap: 7px;
}

.meta-row span {
    overflow: hidden;
    max-width: 100%;
    background: #fff7ed;
    color: #92400e;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.ranking-panel,
.side-card,
.detail-card,
.player-card,
.filter-panel,
.info-card,
.category-card-body {
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.ranking-panel,
.side-card,
.detail-card,
.player-card,
.filter-panel,
.info-card {
    padding: 24px;
}

.ranking-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.mini-poster {
    aspect-ratio: 4 / 3;
    border-radius: 14px;
}

.mini-rank {
    top: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    background: #dc2626;
}

.mini-card strong,
.mini-card span {
    display: block;
}

.mini-card strong {
    overflow: hidden;
    color: #111827;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-card span {
    display: -webkit-box;
    overflow: hidden;
    color: var(--color-muted);
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
    padding: 74px 0;
    background: linear-gradient(135deg, #111827, #92400e 52%, #f97316);
    color: #ffffff;
}

.subtle-hero::before,
.category-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.16), transparent 26%),
        radial-gradient(circle at 88% 10%, rgba(251, 191, 36, 0.24), transparent 30%);
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.category-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 34px;
    align-items: center;
}

.category-hero-art {
    aspect-ratio: 16 / 10;
    border-radius: 26px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #fde68a;
    font-size: 14px;
    font-weight: 700;
}

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

.stats-grid div {
    padding: 22px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.stats-grid strong,
.stats-grid span {
    display: block;
}

.stats-grid strong {
    color: var(--color-primary-dark);
    font-size: 30px;
    line-height: 1.2;
}

.stats-grid span {
    color: var(--color-muted);
}

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

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

.category-card > a {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card > a:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.category-collage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    aspect-ratio: 16 / 10;
    gap: 2px;
    background: #111827;
}

.category-collage .poster-frame {
    min-height: 0;
}

.category-card-body {
    padding: 18px;
    box-shadow: none;
}

.category-card-body h2 {
    margin: 0 0 8px;
    font-size: 21px;
}

.category-card-body p {
    min-height: 48px;
    margin: 0 0 12px;
    color: var(--color-muted);
    font-size: 14px;
}

.category-card-body span {
    color: var(--color-primary-dark);
    font-weight: 900;
}

.filter-panel {
    margin: 28px 0 12px;
}

.filter-title {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.filter-title span {
    color: var(--color-muted);
    font-size: 14px;
}

.filter-controls {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 160px 160px auto;
    gap: 12px;
}

.empty-result {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    color: var(--color-muted);
    text-align: center;
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    align-items: start;
}

.sticky-panel,
.detail-sidebar {
    position: sticky;
    top: 92px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 30px;
    align-items: start;
    padding-top: 30px;
}

.detail-primary {
    min-width: 0;
}

.player-card {
    margin-bottom: 24px;
    padding: 0;
    overflow: hidden;
    background: #000000;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-element,
.player-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-element {
    z-index: 1;
    background: #000000;
}

.player-poster {
    z-index: 2;
    transition: opacity 0.25s ease;
}

.video-shell.is-playing .player-poster,
.video-shell.is-playing .play-overlay {
    opacity: 0;
    pointer-events: none;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: 0;
    background: rgba(0, 0, 0, 0.38);
    color: #ffffff;
    cursor: pointer;
}

.play-overlay span {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 50%;
    background: var(--color-primary);
    box-shadow: 0 16px 35px rgba(217, 119, 6, 0.35);
    font-size: 34px;
    text-indent: 4px;
}

.play-overlay strong {
    margin-top: -40px;
    font-size: 18px;
}

.player-status {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 4;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #ffffff;
    padding: 7px 12px;
    font-size: 13px;
}

.detail-card h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
}

.detail-card section {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--color-line);
}

.detail-card h2,
.side-card h2,
.info-card h2,
.sitemap-section h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.detail-card p {
    color: #374151;
}

.detail-meta span {
    background: #fff7ed;
    color: #92400e;
}

.review-box {
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, #fffbeb, #fff7ed);
    padding: 20px;
}

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

.tag-list span {
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 700;
}

.prev-next {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 0;
}

.prev-next a {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    color: var(--color-primary-dark);
    padding: 16px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detail-sidebar {
    display: grid;
    gap: 20px;
}

.poster-summary .poster-frame {
    aspect-ratio: 4 / 3;
    margin-bottom: 18px;
    border-radius: var(--radius-md);
}

.poster-summary dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.poster-summary dl div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-line);
}

.poster-summary dt {
    color: var(--color-muted);
}

.poster-summary dd {
    margin: 0;
    color: #111827;
    font-weight: 800;
    text-align: right;
}

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

.info-card p {
    margin: 0;
    color: var(--color-muted);
}

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

.sitemap-section {
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    padding: 24px;
}

.sitemap-section ul {
    display: grid;
    max-height: 560px;
    gap: 8px;
    margin: 0;
    padding: 0;
    overflow: auto;
    list-style: none;
}

.sitemap-section li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px dashed var(--color-line);
    padding-bottom: 7px;
}

.sitemap-section a {
    color: #111827;
    font-weight: 700;
}

.sitemap-section span {
    flex: 0 0 auto;
    color: var(--color-muted);
    font-size: 13px;
}

.site-footer {
    margin-top: 56px;
    background: #111827;
    color: #d1d5db;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 46px 0;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer p {
    margin: 0;
    color: #d1d5db;
}

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

.footer-links a:hover {
    color: #fbbf24;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    padding: 16px;
    color: #9ca3af;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
}

.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.35);
}

.back-to-top.visible {
    display: grid;
    place-items: center;
}

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

@media (max-width: 1100px) {
    .desktop-nav {
        gap: 13px;
        font-size: 14px;
    }

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

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

    .sticky-panel,
    .detail-sidebar {
        position: static;
    }
}

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

    .mobile-toggle {
        display: block;
    }

    .hero-slider {
        height: 520px;
    }

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

    .search-strip-inner,
    .section-heading,
    .filter-title {
        align-items: stretch;
        flex-direction: column;
    }

    .quick-search {
        width: 100%;
    }

    .featured-grid,
    .medium-grid,
    .small-grid,
    .catalog-grid,
    .category-grid,
    .stats-grid,
    .footer-grid,
    .info-grid,
    .sitemap-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .category-hero-art {
        max-width: 420px;
    }
}

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

    .brand {
        font-size: 17px;
    }

    .hero-slider {
        height: 500px;
    }

    .hero-control {
        width: 38px;
        height: 38px;
        font-size: 28px;
    }

    .hero-content h1,
    .page-hero h1 {
        font-size: 34px;
    }

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

    .featured-grid,
    .medium-grid,
    .small-grid,
    .catalog-grid,
    .category-grid,
    .stats-grid,
    .footer-grid,
    .info-grid,
    .sitemap-grid,
    .prev-next {
        grid-template-columns: 1fr;
    }

    .panel-section,
    .ranking-panel,
    .side-card,
    .detail-card,
    .filter-panel,
    .info-card {
        padding: 18px;
        border-radius: 18px;
    }

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

    .mini-card {
        grid-template-columns: 76px minmax(0, 1fr);
    }
}
