:root {
    --color-emerald: #059669;
    --color-teal: #0d9488;
    --color-cyan: #0891b2;
    --color-yellow: #f59e0b;
    --color-bg: #f8fafc;
    --color-text: #111827;
    --color-muted: #64748b;
    --color-border: #e5e7eb;
    --color-dark: #111827;
    --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.10);
    --shadow-hover: 0 24px 55px rgba(15, 23, 42, 0.18);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --site-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-emerald), var(--color-teal));
    box-shadow: 0 12px 30px rgba(5, 150, 105, 0.28);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.brand-name {
    white-space: nowrap;
    font-size: 20px;
}

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

.desktop-nav a {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover {
    color: #d1fae5;
}

.header-search {
    display: flex;
    align-items: center;
    min-width: 280px;
    border-radius: 999px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.header-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 10px 14px;
    color: var(--color-text);
}

.header-search button,
.hero-search button {
    border: 0;
    color: #ffffff;
    background: var(--color-emerald);
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.header-search button:hover,
.hero-search button:hover {
    background: #047857;
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(var(--site-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.mobile-nav.is-open {
    display: grid;
    gap: 12px;
}

.mobile-nav a {
    font-weight: 700;
    color: #ffffff;
}

.mobile-nav form {
    display: flex;
    overflow: hidden;
    border-radius: 999px;
    background: #ffffff;
}

.mobile-nav input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 10px 14px;
    color: var(--color-text);
}

.mobile-nav button {
    border: 0;
    color: #ffffff;
    background: var(--color-emerald);
    padding: 10px 16px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 560px;
    color: #ffffff;
    background: linear-gradient(135deg, #059669 0%, #0d9488 45%, #0891b2 100%);
}

.hero-background {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
        radial-gradient(circle at 82% 12%, rgba(34, 211, 238, 0.30), transparent 30%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.18));
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 92px;
    background: linear-gradient(0deg, var(--color-bg), transparent);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(var(--site-width), calc(100% - 32px));
    min-height: 560px;
    margin: 0 auto;
    padding: 56px 0 90px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
    align-items: center;
    gap: 44px;
    min-height: 420px;
}

.hero-slide.is-active {
    display: grid;
    animation: fadeSlide 0.55s ease both;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #a7f3d0;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 900;
}

.hero h2 {
    margin: 0 0 16px;
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 800;
}

.hero p,
.page-hero p {
    margin: 0;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.90);
    font-size: 20px;
}

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

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

.button:hover {
    transform: translateY(-2px);
}

.button-light {
    color: var(--color-emerald);
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.18);
}

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

.button-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-emerald), var(--color-teal));
    box-shadow: 0 14px 32px rgba(5, 150, 105, 0.24);
}

.full-width {
    width: 100%;
}

.hero-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.38);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.08));
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    z-index: 1;
    pointer-events: none;
}

.hero-poster img,
.movie-poster img,
.detail-poster img,
.ranking-item img,
.category-cover-stack img,
.ranking-hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #0f766e, #164e63);
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 52px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 34px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
}

.hero-dot.is-active {
    background: #ffffff;
}

.section {
    width: min(var(--site-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0;
}

.section-raised {
    margin-top: -36px;
    position: relative;
    z-index: 2;
}

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

.section-title-row h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.1;
}

.section-kicker {
    margin-bottom: 6px;
    color: var(--color-emerald);
    font-size: 13px;
}

.more-link {
    color: var(--color-emerald);
    font-weight: 800;
    white-space: nowrap;
}

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

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

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

.movie-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #059669, #0891b2);
}

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

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

.movie-card h3 {
    margin: 0;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 850;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    color: #065f46;
    background: #d1fae5;
    font-size: 12px;
    font-weight: 700;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    color: #475569;
    background: #f1f5f9;
    font-size: 12px;
    font-weight: 700;
}

.tag-row-large span {
    min-height: 30px;
    padding: 0 12px;
    font-size: 14px;
}

.ranking-band {
    color: #ffffff;
    background: #111827;
    padding: 56px max(16px, calc((100% - var(--site-width)) / 2));
}

.section-title-row-dark h2,
.section-title-row-dark .more-link {
    color: #ffffff;
}

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

.ranking-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.12);
}

.ranking-item img {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    border-radius: 14px;
}

.list-rank,
.rank-badge {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-yellow), #f97316);
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.30);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
}

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

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

.ranking-info em {
    color: #94a3b8;
    font-size: 13px;
    font-style: normal;
}

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

.category-tile,
.category-overview-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--color-emerald), var(--color-teal));
    color: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile {
    min-height: 190px;
    padding: 24px;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.category-tile strong {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

.category-tile span {
    display: inline-flex;
    margin-bottom: 16px;
    color: #d1fae5;
    font-weight: 800;
}

.category-tile p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-emerald), var(--color-teal));
    padding: 76px max(16px, calc((100% - var(--site-width)) / 2));
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.2), transparent 24%),
        radial-gradient(circle at 90% 5%, rgba(34, 211, 238, 0.25), transparent 30%);
}

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

.page-hero-compact {
    padding-top: 52px;
    padding-bottom: 54px;
}

.hero-count,
.breadcrumb-light {
    display: inline-flex;
    margin-top: 16px;
    color: #d1fae5;
    font-weight: 800;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    min-height: 220px;
    background: #ffffff;
    color: var(--color-text);
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 12px;
    background: linear-gradient(135deg, var(--color-emerald), var(--color-teal));
}

.category-cover-stack img {
    min-height: 86px;
    border-radius: 12px;
}

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

.category-overview-body span {
    color: var(--color-emerald);
    font-weight: 900;
}

.category-overview-body h2 {
    margin: 8px 0 12px;
    font-size: 30px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
    margin-bottom: 16px;
    padding: 18px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #334155;
    font-weight: 800;
}

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

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--color-emerald);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

.filter-panel button {
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: #ffffff;
    background: #0f766e;
    font-weight: 800;
    cursor: pointer;
}

.filter-summary {
    margin: 0 0 24px;
    color: var(--color-muted);
    font-weight: 700;
}

.search-hero-inner {
    max-width: 860px;
}

.hero-search {
    display: flex;
    max-width: 760px;
    margin-top: 28px;
    overflow: hidden;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 16px 22px;
    color: var(--color-text);
}

.search-fallback h2 {
    margin-top: 48px;
}

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

.detail-hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: 0.22;
    filter: blur(2px) saturate(1.1);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.86), rgba(15, 23, 42, 0.88));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    width: min(var(--site-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 54px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: #d1fae5;
    font-weight: 700;
}

.detail-hero-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 34px;
    align-items: center;
}

.detail-poster {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    box-shadow: 0 26px 65px rgba(15, 23, 42, 0.36);
}

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 900;
}

.detail-copy p {
    max-width: 780px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.90);
    font-size: 19px;
}

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

.detail-section {
    padding-top: 42px;
}

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

.detail-content {
    display: grid;
    gap: 24px;
}

.player-card,
.content-card,
.related-panel,
.ranking-hero-card {
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.player-card {
    overflow: hidden;
}

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

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.74));
    cursor: pointer;
}

.play-overlay strong {
    display: block;
    font-size: 22px;
}

.play-icon {
    display: inline-grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    color: var(--color-emerald);
    background: #ffffff;
    font-size: 32px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.32);
}

.player-card.is-playing .play-overlay {
    opacity: 0;
    pointer-events: none;
}

.player-status {
    position: absolute;
    left: 18px;
    bottom: 12px;
    margin: 0;
    color: rgba(255, 255, 255, 0.80);
    font-size: 13px;
}

.content-card {
    padding: 28px;
}

.content-card h2,
.related-panel h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.content-card p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

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

.info-list div {
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
}

.info-list dt {
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 800;
}

.info-list dd {
    margin: 4px 0 0;
    font-weight: 800;
}

.related-panel {
    position: sticky;
    top: 88px;
    align-self: start;
    padding: 22px;
}

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

.related-panel .ranking-item {
    background: #f8fafc;
    color: var(--color-text);
}

.related-panel .ranking-info em {
    color: var(--color-muted);
}

.ranking-hero-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    overflow: hidden;
    margin-bottom: 32px;
}

.ranking-hero-card img {
    height: 100%;
    min-height: 320px;
}

.ranking-hero-card div {
    padding: 34px;
}

.ranking-hero-card h2 {
    margin: 0 0 14px;
    font-size: 38px;
}

.ranking-hero-card p {
    color: #475569;
    font-size: 18px;
}

.narrow-section {
    max-width: 880px;
}

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

.stats-grid div {
    padding: 24px;
    border-radius: var(--radius-xl);
    background: #ffffff;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.stats-grid strong {
    display: block;
    color: var(--color-emerald);
    font-size: 34px;
}

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

.sitemap-list {
    columns: 3;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sitemap-list li {
    break-inside: avoid;
    margin: 0 0 10px;
}

.sitemap-list a {
    color: #0f766e;
    font-weight: 700;
}

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

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

.footer-brand {
    color: #ffffff;
    font-size: 20px;
    margin-bottom: 14px;
}

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

.site-footer p {
    margin: 0 0 10px;
    color: #9ca3af;
}

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

.site-footer li {
    margin-bottom: 8px;
}

.site-footer a:hover {
    color: #6ee7b7;
}

.footer-bottom {
    width: min(var(--site-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 14px;
}

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

    .mobile-menu-button {
        display: inline-grid;
        place-items: center;
    }

    .header-search {
        margin-left: auto;
    }

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

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

@media (max-width: 860px) {
    .site-header-inner {
        height: auto;
        min-height: 64px;
        padding: 12px 0;
    }

    .brand-name {
        font-size: 18px;
    }

    .header-search {
        display: none;
    }

    .hero,
    .hero-inner {
        min-height: auto;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: 0;
    }

    .hero-poster {
        max-width: 360px;
        width: 100%;
    }

    .hero-dots {
        position: static;
        margin-top: 22px;
    }

    .section-title-row,
    .footer-bottom {
        align-items: start;
        flex-direction: column;
    }

    .movie-grid,
    .movie-grid-featured,
    .category-movie-grid,
    .ranking-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .ranking-grid,
    .category-grid,
    .category-overview-grid,
    .footer-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .category-overview-card,
    .detail-hero-layout,
    .detail-main,
    .ranking-hero-card,
    .filter-panel,
    .search-filter-panel {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        max-width: 260px;
    }

    .related-panel {
        position: static;
    }

    .sitemap-list {
        columns: 1;
    }
}

@media (max-width: 560px) {
    .hero h1,
    .page-hero h1 {
        font-size: 34px;
    }

    .hero p,
    .page-hero p,
    .detail-copy p {
        font-size: 16px;
    }

    .movie-grid,
    .movie-grid-featured,
    .category-movie-grid,
    .ranking-card-grid {
        grid-template-columns: 1fr;
    }

    .hero-search {
        border-radius: 18px;
        flex-direction: column;
    }

    .hero-search button {
        min-height: 48px;
    }

    .detail-hero-inner {
        padding-top: 24px;
    }

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

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