:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --border: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --dim: #64748b;
    --sky: #38bdf8;
    --sky-soft: rgba(56, 189, 248, 0.14);
    --cyan: #22d3ee;
    --amber: #f59e0b;
    --rose: #fb7185;
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 0%, rgba(56, 189, 248, 0.18), transparent 34rem),
        radial-gradient(circle at 88% 12%, rgba(14, 165, 233, 0.12), transparent 30rem),
        linear-gradient(135deg, #020617 0%, #0f172a 52%, #020617 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent 72%);
    z-index: -1;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.62), transparent);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.site-header.is-scrolled {
    background: rgba(2, 6, 23, 0.94);
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.34);
}

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

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

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #00111d;
    background: linear-gradient(135deg, var(--sky), var(--cyan));
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.34);
}

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

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

.nav-link,
.nav-dropdown-button {
    border: 0;
    color: #cbd5e1;
    background: transparent;
    padding: 10px 13px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-dropdown:hover .nav-dropdown-button {
    color: #ffffff;
    background: rgba(56, 189, 248, 0.12);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 180px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown-panel a {
    display: block;
    padding: 10px 12px;
    color: #cbd5e1;
    border-radius: 12px;
}

.nav-dropdown-panel a:hover {
    color: #ffffff;
    background: var(--sky-soft);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.global-search {
    position: relative;
    width: 260px;
}

.global-search input,
.filter-bar input {
    width: 100%;
    color: var(--text);
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    padding: 11px 16px;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.global-search input:focus,
.filter-bar input:focus {
    border-color: rgba(56, 189, 248, 0.88);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
    background: rgba(15, 23, 42, 0.95);
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(430px, 88vw);
    max-height: 460px;
    overflow: auto;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(2, 6, 23, 0.96);
    box-shadow: var(--shadow);
    display: none;
}

.search-results.is-open {
    display: block;
}

.search-result-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    color: #e2e8f0;
}

.search-result-item:hover {
    background: rgba(56, 189, 248, 0.12);
}

.search-result-item img {
    width: 48px;
    height: 64px;
    object-fit: cover;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.7);
}

.search-result-item strong {
    display: block;
    margin-bottom: 4px;
}

.search-result-item span {
    color: var(--muted);
    font-size: 13px;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.75);
}

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

.mobile-nav {
    display: none;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.94);
}

.hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 76px;
    background: #020617;
}

.hero-slider {
    position: relative;
    min-height: calc(100vh - 76px);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
    align-items: center;
    gap: 48px;
    padding: 110px max(32px, calc((100vw - 1280px) / 2 + 32px)) 160px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.9s ease;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(to top, #020617, transparent);
}

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

.hero-kicker,
.section-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    color: var(--sky);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    max-width: 850px;
    margin: 16px 0 18px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.08em;
}

.hero-content p,
.page-hero p,
.detail-one-line {
    max-width: 720px;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.75;
}

.hero-tags,
.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.card-tags span,
.detail-tags span {
    color: #bae6fd;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
}

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

.primary-button,
.ghost-button,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 0 20px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.primary-button {
    color: #00111d;
    background: linear-gradient(135deg, var(--sky), var(--cyan));
    box-shadow: 0 18px 46px rgba(56, 189, 248, 0.26);
}

.ghost-button,
.section-more {
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.68);
}

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

.hero-poster {
    justify-self: center;
    width: min(360px, 80%);
    aspect-ratio: 2 / 3;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 34px 110px rgba(0, 0, 0, 0.52);
    transform: rotate(2deg);
}

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

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 32px;
    z-index: 4;
    width: min(1280px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.hero-dots,
.hero-thumbs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-dot {
    width: 28px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.42);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 52px;
    background: var(--sky);
}

.hero-thumb {
    display: grid;
    grid-template-columns: 38px 1fr;
    align-items: center;
    gap: 10px;
    max-width: 160px;
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 8px 10px 8px 8px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(12px);
}

.hero-thumb.active,
.hero-thumb:hover {
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.58);
    background: rgba(14, 165, 233, 0.18);
}

.hero-thumb img {
    width: 38px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
}

.content-section,
.page-hero,
.detail-wrap {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

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

.hot-section {
    margin-top: -40px;
    position: relative;
    z-index: 5;
}

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

.section-heading h2,
.rank-panel-head h2,
.player-header h2,
.detail-text-grid h2 {
    margin: 8px 0 0;
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -0.05em;
}

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

.horizontal-list {
    display: grid;
    grid-auto-columns: minmax(210px, 250px);
    grid-auto-flow: column;
    gap: 18px;
    overflow-x: auto;
    padding: 6px 4px 24px;
    scroll-snap-type: x proximity;
}

.horizontal-list::-webkit-scrollbar {
    height: 8px;
}

.horizontal-list::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.28);
    border-radius: 999px;
}

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

.movie-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.24);
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
    scroll-snap-align: start;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(15, 23, 42, 0.92);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.8);
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.06);
    opacity: 0.92;
}

.poster-gradient {
    position: absolute;
    inset: auto 0 0;
    height: 48%;
    background: linear-gradient(to top, rgba(2, 6, 23, 0.95), transparent);
}

.rank-badge,
.play-chip {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-weight: 800;
}

.rank-badge {
    top: 10px;
    left: 10px;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #00111d;
    background: linear-gradient(135deg, #fbbf24, #f97316);
}

.play-chip {
    right: 10px;
    bottom: 10px;
    padding: 7px 10px;
    color: #e0f2fe;
    background: rgba(2, 6, 23, 0.72);
    border: 1px solid rgba(186, 230, 253, 0.2);
}

.card-body {
    padding: 15px;
}

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

.card-body h3 {
    margin: 10px 0 8px;
    font-size: 18px;
    line-height: 1.3;
}

.card-body h3 a:hover,
.ranking-info h3 a:hover {
    color: var(--sky);
}

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

.compact-card .card-body p {
    min-height: 64px;
}

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

.category-card {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 26px;
    background:
        radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.18), transparent 52%),
        rgba(15, 23, 42, 0.72);
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(56, 189, 248, 0.42);
}

.category-link {
    display: block;
    padding: 22px 22px 10px;
}

.category-accent {
    color: var(--sky);
    font-size: 13px;
    font-weight: 800;
}

.category-card h3 {
    margin: 16px 0 10px;
    font-size: 24px;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.category-samples {
    display: grid;
    gap: 6px;
    padding: 0 22px 22px;
}

.category-samples a {
    color: #cbd5e1;
    font-size: 14px;
}

.category-samples a:hover {
    color: var(--sky);
}

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

.rank-panel {
    position: sticky;
    top: 100px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 28px;
    padding: 24px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: var(--shadow);
}

.rank-panel-head span {
    color: var(--sky);
    font-weight: 800;
}

.rank-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.rank-list a {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    color: #cbd5e1;
}

.rank-list a:hover {
    background: rgba(56, 189, 248, 0.1);
    color: #ffffff;
}

.rank-list strong {
    color: var(--sky);
}

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

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

.page-main {
    padding-top: 96px;
}

.page-hero {
    padding: 70px 0 20px;
}

.compact-hero {
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

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

.filter-bar {
    display: grid;
    gap: 14px;
    max-width: 820px;
    margin-top: 26px;
}

.year-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.year-filters button {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.72);
    padding: 8px 14px;
}

.year-filters button.active,
.year-filters button:hover {
    color: #00111d;
    background: var(--sky);
    border-color: var(--sky);
}

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

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

.ranking-row {
    display: grid;
    grid-template-columns: 72px 88px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.74);
}

.ranking-row:hover {
    border-color: rgba(56, 189, 248, 0.42);
    background: rgba(15, 23, 42, 0.94);
}

.ranking-index {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: #00111d;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--sky), var(--cyan));
    font-weight: 900;
}

.ranking-poster img {
    width: 88px;
    height: 124px;
    object-fit: cover;
    border-radius: 16px;
}

.ranking-info h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

.ranking-info p {
    margin: 0 0 12px;
    color: var(--muted);
    line-height: 1.6;
}

.ranking-side {
    display: grid;
    gap: 10px;
    justify-items: end;
    color: var(--muted);
}

.ranking-side a {
    color: #bae6fd;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0 64px;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center;
    filter: saturate(1.08);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(2, 6, 23, 0.18), #020617 100%);
}

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

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

.detail-info h1 {
    font-size: clamp(38px, 6vw, 72px);
}

.detail-meta {
    margin: 18px 0;
}

.detail-meta span {
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.player-section {
    padding-top: 28px;
}

.player-header {
    margin-bottom: 18px;
}

.player-stage {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 32px;
    background: #000000;
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 40px 110px rgba(0, 0, 0, 0.48);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.14), rgba(2, 6, 23, 0.42));
    transition: opacity 0.2s ease;
}

.play-overlay span {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sky), var(--cyan));
    box-shadow: 0 20px 60px rgba(56, 189, 248, 0.32);
}

.play-overlay span::before {
    content: "";
    width: 0;
    height: 0;
    margin-left: 6px;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 24px solid #00111d;
}

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

.detail-text-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 22px;
}

.detail-text-grid article {
    padding: 26px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.72);
}

.detail-text-grid p {
    margin: 14px 0 0;
    color: #cbd5e1;
    line-height: 1.9;
}

.site-footer {
    margin-top: 48px;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 16px;
}

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

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

@media (max-width: 1100px) {
    .movie-grid,
    .category-grid,
    .category-movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .rank-panel {
        position: relative;
        top: auto;
    }
}

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

    .global-search {
        width: min(48vw, 240px);
    }

    .menu-button {
        display: block;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 30px;
        padding: 86px 18px 170px;
    }

    .hero-poster {
        display: none;
    }

    .hero-content h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: clamp(36px, 12vw, 58px);
    }

    .hero-thumbs {
        display: none;
    }

    .hero-controls {
        justify-content: center;
    }

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

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

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

    .detail-poster {
        width: min(280px, 72vw);
    }

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

    .ranking-row {
        grid-template-columns: 48px 74px minmax(0, 1fr);
    }

    .ranking-side {
        grid-column: 3;
        justify-items: start;
        display: flex;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .header-inner {
        width: min(100% - 20px, 1280px);
        gap: 10px;
    }

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

    .global-search {
        width: 42vw;
    }

    .global-search input {
        padding: 10px 12px;
    }

    .hero-content p,
    .page-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .content-section,
    .page-hero,
    .detail-wrap,
    .footer-inner {
        width: min(100% - 22px, 1280px);
    }

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

    .card-body {
        padding: 12px;
    }

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

    .card-body p {
        display: none;
    }

    .player-stage {
        border-radius: 20px;
    }
}
