:root {
    --color-bg: #020617;
    --color-panel: #0f172a;
    --color-panel-soft: #111827;
    --color-card: rgba(15, 23, 42, 0.92);
    --color-card-strong: #111827;
    --color-text: #f8fafc;
    --color-muted: #94a3b8;
    --color-soft: #cbd5e1;
    --color-line: rgba(148, 163, 184, 0.18);
    --color-red: #ef4444;
    --color-red-dark: #b91c1c;
    --color-red-soft: rgba(239, 68, 68, 0.16);
    --shadow-large: 0 24px 80px rgba(0, 0, 0, 0.36);
    --shadow-card: 0 20px 48px rgba(0, 0, 0, 0.22);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --container-width: 1220px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-text);
    background:
        radial-gradient(circle at top left, rgba(239, 68, 68, 0.16), transparent 32rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 30rem),
        var(--color-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(2, 6, 23, 0.86);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 14px 0;
}

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

.brand-mark {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.36);
}

.brand-text {
    font-size: 21px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.main-nav a {
    position: relative;
    flex: 0 0 auto;
    color: var(--color-soft);
    font-size: 14px;
    transition: color 0.2s ease;
}

.main-nav a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    background: var(--color-red);
    transition: transform 0.2s ease;
}

.main-nav a:hover {
    color: #ffffff;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 280px;
}

.header-search input,
.large-search input,
.filter-search input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    outline: none;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.76);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    padding: 10px 14px;
}

.header-search input:focus,
.large-search input:focus,
.filter-search input:focus {
    border-color: rgba(239, 68, 68, 0.62);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
}

.header-search button,
.large-search button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.large-search button,
.button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
    box-shadow: 0 14px 30px rgba(239, 68, 68, 0.28);
}

.header-search button {
    padding: 10px 15px;
}

.button,
.large-search button {
    padding: 12px 20px;
    font-weight: 700;
}

.button-ghost {
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    background: rgba(15, 23, 42, 0.56);
    box-shadow: none;
}

.button:hover,
.header-search button:hover,
.large-search button:hover {
    transform: translateY(-2px);
}

.mobile-menu-button {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.82);
}

.mobile-menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    border-radius: 999px;
    background: #ffffff;
}

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #020617;
}

.hero-slider,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    filter: saturate(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.78) 35%, rgba(2, 6, 23, 0.16) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, rgba(2, 6, 23, 0.08) 48%, rgba(2, 6, 23, 0.8) 100%);
}

.hero-content {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 680px;
    padding: 90px 0 110px;
}

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

.hero-kicker,
.eyebrow {
    margin: 0 0 12px;
    color: #fecaca;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 8vw, 86px);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.hero-line {
    width: min(720px, 100%);
    margin: 24px 0 0;
    color: var(--color-soft);
    font-size: clamp(18px, 2.4vw, 24px);
}

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

.hero-tags {
    margin: 26px 0 0;
}

.hero-tags span,
.detail-tags span,
.hot-tags a,
.chip-row button {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.62);
}

.hero-tags span,
.detail-tags span,
.hot-tags a {
    padding: 8px 13px;
    font-size: 13px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 32px 0 0;
}

.hero-dots {
    position: absolute;
    right: 0;
    bottom: 48px;
    left: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 9px;
}

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

.hero-dot.is-active {
    background: var(--color-red);
}

.quick-search-panel {
    position: relative;
    z-index: 6;
    padding: 24px;
    margin-top: -42px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.9);
    box-shadow: var(--shadow-large);
    backdrop-filter: blur(18px);
}

.large-search {
    display: flex;
    gap: 12px;
}

.large-search input {
    min-height: 54px;
    padding: 0 20px;
}

.hot-tags {
    margin-top: 14px;
}

.hot-tags a:hover,
.chip-row button:hover,
.chip-row button.is-active {
    border-color: rgba(239, 68, 68, 0.8);
    background: rgba(239, 68, 68, 0.24);
}

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

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 3.4vw, 40px);
    letter-spacing: -0.03em;
}

.section-more {
    color: #fecaca;
    font-weight: 700;
}

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

.category-card,
.category-overview-card,
.ranking-card,
.article-card,
.player-card,
.filter-panel,
.ranking-row {
    border: 1px solid var(--color-line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72));
    box-shadow: var(--shadow-card);
}

.category-card {
    position: relative;
    min-height: 180px;
    padding: 24px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card::after {
    position: absolute;
    right: -42px;
    bottom: -46px;
    width: 140px;
    height: 140px;
    content: "";
    border-radius: 999px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.28), transparent 65%);
}

.category-card:hover,
.movie-card:hover,
.ranking-row:hover {
    transform: translateY(-5px);
    border-color: rgba(239, 68, 68, 0.52);
}

.category-count {
    color: #fecaca;
    font-weight: 800;
}

.category-card h3,
.category-overview-card h2,
.ranking-info h2,
.article-card h2,
.player-heading h2 {
    margin: 10px 0 8px;
    font-size: 22px;
}

.category-card p,
.category-card small,
.category-overview-card p,
.ranking-info p,
.article-card p,
.player-note,
.search-meta {
    color: var(--color-muted);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.84);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(15, 23, 42, 0.9));
}

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

.poster-frame.poster-missing::before {
    position: absolute;
    inset: 20px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.46);
    content: "COVER";
    letter-spacing: 0.14em;
}

.movie-card:hover .poster-frame img,
.category-cover:hover img,
.detail-poster:hover img,
.ranking-poster:hover img {
    transform: scale(1.08);
}

.card-badge,
.play-cue {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.card-badge {
    top: 10px;
    left: 10px;
    padding: 5px 9px;
    background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
}

.play-cue {
    right: 10px;
    bottom: 10px;
    padding: 6px 10px;
    opacity: 0;
    background: rgba(0, 0, 0, 0.68);
    transition: opacity 0.2s ease;
}

.movie-card:hover .play-cue {
    opacity: 1;
}

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

.movie-card-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card-title:hover,
.card-bottom a:hover,
.footer-links a:hover,
.mini-links a:hover,
.ranking-info a:hover {
    color: #fca5a5;
}

.movie-card-meta,
.movie-card-desc,
.card-bottom {
    font-size: 13px;
}

.movie-card-meta {
    margin: 8px 0 6px;
    color: var(--color-muted);
}

.movie-card-desc {
    display: -webkit-box;
    min-height: 42px;
    margin: 0;
    overflow: hidden;
    color: #cbd5e1;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    color: var(--color-muted);
}

.card-bottom span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.card-bottom a {
    flex: 0 0 auto;
    color: #fecaca;
    font-weight: 700;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
}

.ranking-card {
    position: sticky;
    top: 86px;
    align-self: start;
    padding: 22px;
    border-radius: var(--radius-lg);
}

.compact-heading {
    margin-bottom: 12px;
}

.rank-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.rank-list li {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 10px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-line);
}

.rank-number {
    color: #fecaca;
    font-weight: 900;
}

.rank-list a {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-list em {
    color: var(--color-muted);
    font-style: normal;
}

.page-hero {
    position: relative;
    padding: 78px 0 48px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(127, 29, 29, 0.6), rgba(15, 23, 42, 0.86)),
        radial-gradient(circle at top right, rgba(239, 68, 68, 0.26), transparent 30rem);
}

.compact-page-hero {
    padding: 76px 0;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 64px);
    letter-spacing: -0.04em;
}

.page-hero p {
    width: min(760px, 100%);
    color: var(--color-soft);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--color-muted);
    font-size: 14px;
}

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

.page-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.page-stats span {
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.36);
}

.filter-panel {
    display: grid;
    gap: 16px;
    padding: 20px;
    margin-bottom: 24px;
    border-radius: var(--radius-lg);
}

.filter-search input {
    min-height: 48px;
    padding: 0 16px;
}

.filter-row {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 14px;
    align-items: start;
}

.filter-row strong {
    padding-top: 6px;
    color: #ffffff;
}

.chip-row button {
    padding: 7px 12px;
}

.result-count {
    margin-bottom: 16px;
    color: var(--color-muted);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    padding: 18px;
    border-radius: var(--radius-lg);
}

.category-cover {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.8);
}

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

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.mini-links a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #fecaca;
    background: rgba(239, 68, 68, 0.12);
    font-size: 13px;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 64px 96px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius-lg);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.ranking-index {
    color: #fecaca;
    font-size: 28px;
    font-weight: 900;
}

.ranking-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.8);
}

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

.ranking-info h2 {
    margin: 0 0 6px;
}

.ranking-info p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 10px;
    color: var(--color-muted);
    font-size: 13px;
}

.ranking-meta span,
.ranking-meta a {
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.12);
}

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #020617;
}

.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px) saturate(1.1);
    transform: scale(1.08);
    opacity: 0.42;
}

.detail-mask {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.82) 42%, rgba(2, 6, 23, 0.48) 100%),
        linear-gradient(0deg, #020617 0%, transparent 50%, rgba(2, 6, 23, 0.82) 100%);
}

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

.detail-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: var(--shadow-large);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.detail-copy h1 {
    margin: 0;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.detail-line {
    width: min(820px, 100%);
    margin: 22px 0 0;
    color: var(--color-soft);
    font-size: 20px;
}

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

.detail-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 26px 0 0;
}

.detail-meta div {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.58);
}

.detail-meta dt {
    color: var(--color-muted);
    font-size: 12px;
}

.detail-meta dd {
    margin: 4px 0 0;
    color: #ffffff;
    font-weight: 800;
}

.player-card {
    padding: 22px;
    border-radius: var(--radius-xl);
}

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

.player-heading span {
    color: var(--color-muted);
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
}

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

.video-overlay-button {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.64));
    cursor: pointer;
    font-size: 18px;
    font-weight: 900;
}

.video-overlay-button span {
    display: grid;
    width: 72px;
    height: 72px;
    margin: 0 auto;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-red), var(--color-red-dark));
    box-shadow: 0 20px 60px rgba(239, 68, 68, 0.36);
}

.video-overlay-button.is-hidden {
    display: none;
}

.player-note {
    margin: 14px 0 0;
    font-size: 14px;
}

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

.article-card {
    padding: 24px;
    border-radius: var(--radius-lg);
}

.article-card h2 {
    margin-top: 0;
}

.article-card p {
    margin: 0;
    white-space: pre-wrap;
}

.search-page .large-search {
    margin-bottom: 18px;
}

.site-footer {
    margin-top: 60px;
    padding: 42px 0;
    border-top: 1px solid var(--color-line);
    background: rgba(2, 6, 23, 0.92);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
}

.footer-brand {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 900;
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.site-footer p,
.footer-links a {
    color: var(--color-muted);
}

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

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

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

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

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

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

    .ranking-card {
        position: static;
    }
}

@media (max-width: 900px) {
    .header-inner {
        justify-content: space-between;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border: 1px solid var(--color-line);
        border-radius: 18px;
        background: rgba(2, 6, 23, 0.96);
        box-shadow: var(--shadow-large);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 12px 10px;
    }

    .main-nav a::after {
        display: none;
    }

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

    .hero,
    .hero-content {
        min-height: 600px;
    }

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

    .category-grid,
    .category-overview-grid,
    .detail-content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .ranking-row {
        grid-template-columns: 44px 82px 1fr;
    }

    .ranking-button {
        display: none;
    }
}

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

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

    .hero,
    .hero-content {
        min-height: 560px;
    }

    .hero-content {
        padding-top: 70px;
    }

    .hero-overlay {
        background:
            linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.42) 48%, rgba(2, 6, 23, 0.82) 100%),
            rgba(2, 6, 23, 0.34);
    }

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

    .quick-search-panel {
        padding: 16px;
        border-radius: 20px;
    }

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

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

    .category-grid,
    .movie-grid,
    .movie-grid-small {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .movie-card-body {
        padding: 12px;
    }

    .movie-card-title {
        font-size: 15px;
    }

    .category-overview-card {
        grid-template-columns: 104px 1fr;
    }

    .detail-hero-inner {
        padding: 40px 0 56px;
    }

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

    .detail-poster {
        width: 190px;
    }

    .detail-line {
        font-size: 17px;
    }

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

    .player-card,
    .article-card {
        padding: 16px;
        border-radius: 18px;
    }

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

    .ranking-row {
        grid-template-columns: 38px 72px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .ranking-index {
        font-size: 20px;
    }

    .filter-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}
