:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f1f5f9;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --primary: #0f766e;
    --primary-strong: #0d9488;
    --accent: #0891b2;
    --dark: #0f172a;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1220px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 14px 25px rgba(13, 148, 136, 0.28);
}

.logo-text {
    font-size: 24px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    position: relative;
    padding: 8px 0;
    transition: color 0.25s ease;
}

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

.nav-link:hover,
.nav-link.is-active {
    color: var(--primary);
}

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

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.header-search input,
.mobile-search input,
.search-large input,
.filter-panel input,
.filter-panel select {
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.header-search input {
    width: 210px;
    padding: 8px 10px 8px 16px;
}

.header-search button,
.mobile-search button,
.search-large button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 9px 18px;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 0;
    border-radius: 14px;
    background: var(--surface-soft);
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

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

.mobile-search {
    display: flex;
    gap: 8px;
    padding: 6px;
    margin-bottom: 14px;
    background: var(--surface-soft);
    border-radius: 999px;
}

.mobile-search input {
    flex: 1;
    padding: 8px 14px;
}

.mobile-nav {
    display: grid;
    gap: 8px;
}

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    color: #334155;
    background: #f8fafc;
}

.hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 10% 10%, rgba(45, 212, 191, 0.35), transparent 32%), linear-gradient(135deg, #0f766e 0%, #0891b2 100%);
}

.hero-shell {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0 34px;
}

.hero-slider {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.35);
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 34px;
    align-items: center;
    padding: 64px;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.02);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(16px) brightness(0.45) saturate(1.2);
    transform: scale(1.08);
}

.hero-bg::after,
.detail-hero-bg::after,
.ranking-hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.22));
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 1;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 6px;
    color: #ccfbf1;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow.dark,
.section-kicker {
    color: var(--primary);
}

.hero h1 {
    max-width: 720px;
    margin: 12px 0 16px;
    color: #ffffff;
    font-size: clamp(40px, 7vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-desc {
    max-width: 680px;
    color: #dbeafe;
    font-size: 18px;
}

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

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    padding: 7px 12px;
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.tag-row span {
    padding: 5px 9px;
    color: #0f766e;
    background: #ccfbf1;
}

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

.primary-button,
.ghost-button,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
    padding: 0 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-strong), var(--accent));
    box-shadow: 0 18px 35px rgba(8, 145, 178, 0.35);
}

.ghost-button {
    padding: 0 22px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.hero-poster {
    display: block;
    align-self: center;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 55px rgba(0, 0, 0, 0.36);
    aspect-ratio: 2 / 3;
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-dots {
    position: absolute;
    z-index: 3;
    left: 64px;
    bottom: 34px;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.is-active {
    width: 38px;
    background: #ffffff;
}

.hero-thumbs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.hero-thumb {
    display: grid;
    grid-template-columns: 54px 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    color: #ecfeff;
    background: rgba(15, 23, 42, 0.25);
    text-align: left;
    backdrop-filter: blur(10px);
}

.hero-thumb.is-active {
    background: rgba(255, 255, 255, 0.22);
}

.hero-thumb img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
}

.hero-thumb span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 13px;
    font-weight: 800;
}

.quick-categories {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

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

.category-tile {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, #f0fdfa, #ecfeff);
    border: 1px solid #cffafe;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.category-tile span {
    color: var(--text);
    font-size: 18px;
    font-weight: 900;
}

.category-tile em {
    color: var(--primary);
    font-size: 13px;
    font-style: normal;
    font-weight: 800;
}

.main-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    padding: 38px 0 60px;
}

.content-section,
.ranking-panel,
.listing-section,
.category-overview,
.search-page,
.detail-layout {
    margin-top: 34px;
}

.content-section:first-child,
.ranking-panel:first-child {
    margin-top: 0;
}

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

.section-heading h2 {
    margin: 4px 0 0;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.section-heading a,
.text-link {
    color: var(--primary);
    font-weight: 900;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #dbeafe;
}

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

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

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.04));
    transition: opacity 0.25s ease;
}

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

.card-type,
.rank-badge,
.card-play {
    position: absolute;
    z-index: 2;
}

.card-type {
    left: 10px;
    top: 10px;
    padding: 5px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.92);
}

.rank-badge {
    right: 10px;
    top: 10px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.card-play {
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--primary-strong);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
    padding: 14px 14px 16px;
}

.card-body h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
}

.card-body h3 a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.card-meta,
.ranking-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

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

.ranking-item {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 13px;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.ranking-cover {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 2 / 3;
}

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

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

.ranking-number {
    display: inline-flex;
    min-width: 30px;
    height: 26px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
}

.ranking-info h3 {
    margin: 7px 0 5px;
    font-size: 16px;
}

.ranking-info p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.page-hero {
    padding: 64px 0;
    color: var(--text);
    background: linear-gradient(135deg, #ecfeff, #f0fdfa 48%, #ffffff);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    max-width: 820px;
    margin: 8px 0 12px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.06;
    letter-spacing: -0.05em;
}

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

.category-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding-bottom: 60px;
}

.category-card-large {
    display: grid;
    grid-template-columns: 230px 1fr;
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.category-card-media {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 10px;
    background: #0f172a;
}

.category-card-media img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 12px;
}

.category-card-body {
    padding: 28px;
}

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

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

.category-card-body p {
    color: var(--muted);
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
    padding: 14px;
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f8fafc;
}

.empty-state {
    display: none;
    padding: 36px;
    text-align: center;
    color: var(--muted);
    background: #ffffff;
    border-radius: 24px;
}

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

.ranking-hero {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    color: #ffffff;
    background: #0f172a;
}

.ranking-hero-bg,
.detail-hero-bg {
    position: absolute;
    inset: 0;
}

.ranking-hero-bg img,
.detail-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) brightness(0.55);
    transform: scale(1.06);
}

.ranking-hero-content {
    position: relative;
    z-index: 2;
    padding: 88px 0;
}

.ranking-hero h1 {
    max-width: 760px;
    margin: 12px 0 14px;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.ranking-hero p {
    max-width: 700px;
    margin: 0 0 28px;
    color: #dbeafe;
    font-size: 18px;
}

.wide-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 26px;
}

.search-page {
    padding-bottom: 60px;
}

.search-large {
    display: flex;
    gap: 10px;
    padding: 10px;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.search-large input {
    flex: 1;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 16px;
    background: #f8fafc;
}

.search-large button {
    min-width: 110px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    padding: 36px 0 48px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 26px;
    color: #cbd5e1;
    font-size: 14px;
}

.breadcrumb a {
    color: #ccfbf1;
}

.detail-top {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
    align-items: end;
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 2 / 3;
    box-shadow: 0 28px 55px rgba(0, 0, 0, 0.36);
}

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

.detail-title-area h1 {
    max-width: 850px;
    margin: 10px 0 12px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-title-area p {
    max-width: 780px;
    margin: 0 0 18px;
    color: #e2e8f0;
    font-size: 18px;
}

.detail-meta {
    color: #cbd5e1;
    margin-bottom: 18px;
}

.detail-tags span {
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.15);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    padding-bottom: 60px;
}

.player-card,
.detail-content,
.side-recommend {
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.player-card {
    padding: 14px;
}

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.76), rgba(15, 23, 42, 0.22));
}

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

.play-circle {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 34px;
    background: linear-gradient(135deg, var(--primary-strong), var(--accent));
    box-shadow: 0 20px 45px rgba(8, 145, 178, 0.38);
}

.player-overlay strong {
    max-width: min(86%, 720px);
    font-size: 22px;
}

.detail-content {
    margin-top: 24px;
    padding: 30px;
}

.detail-block + .detail-block {
    margin-top: 28px;
}

.detail-block h2,
.side-recommend h2 {
    margin: 0 0 14px;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.detail-block p {
    margin: 0;
    color: #334155;
    font-size: 17px;
    line-height: 1.9;
}

.side-recommend {
    padding: 18px;
    position: sticky;
    top: 92px;
}

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

.side-card-list .movie-card .card-body p,
.side-card-list .movie-card .tag-row {
    display: none;
}

.side-card-list .movie-card .card-body {
    padding: 10px;
}

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

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #111827);
}

.footer-inner {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 34px;
    padding: 48px 0;
}

.footer-logo {
    color: #ffffff;
    font-size: 24px;
}

.footer-brand p {
    max-width: 520px;
    color: #94a3b8;
}

.footer-column h3 {
    margin: 0 0 16px;
    color: #ffffff;
}

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

.footer-column a {
    color: #cbd5e1;
}

.footer-column a:hover {
    color: #5eead4;
}

.footer-bottom {
    padding: 18px 0;
    color: #94a3b8;
    text-align: center;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

    .mobile-menu-button {
        display: block;
    }

    .hero-slide {
        grid-template-columns: 1fr 280px;
        padding: 44px;
    }

    .hero-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .side-recommend {
        position: static;
    }

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

    .category-overview,
    .wide-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    .header-inner {
        height: 62px;
    }

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

    .hero-shell {
        padding: 24px 0;
    }

    .hero-slider {
        min-height: 650px;
        border-radius: 24px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: end;
        padding: 28px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-poster {
        width: 180px;
        margin: 0 auto 18px;
        order: -1;
    }

    .hero-dots {
        left: 28px;
        bottom: 22px;
    }

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

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

    .main-layout,
    .listing-section,
    .category-overview,
    .detail-layout,
    .search-page {
        margin-top: 24px;
    }

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

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

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

    .category-card-media img {
        height: 120px;
    }

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

    .detail-cover {
        width: 210px;
    }

    .detail-content {
        padding: 22px;
    }

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

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

@media (max-width: 480px) {
    .container,
    .header-inner,
    .hero-shell,
    .footer-inner,
    .mobile-panel {
        width: min(100% - 22px, 1220px);
    }

    .hero-slider {
        min-height: 610px;
    }

    .hero-slide {
        padding: 22px;
    }

    .hero-desc {
        font-size: 15px;
    }

    .hero-thumbs {
        display: none;
    }

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

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

    .ranking-item {
        grid-template-columns: 74px 1fr;
    }

    .side-card-list {
        grid-template-columns: 1fr 1fr;
    }
}
