:root {
    color-scheme: dark;
    --bg: #09090b;
    --panel: rgba(24, 24, 27, 0.78);
    --panel-solid: #18181b;
    --line: rgba(63, 63, 70, 0.8);
    --muted: #a1a1aa;
    --text: #f4f4f5;
    --cyan: #22d3ee;
    --blue: #3b82f6;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(6, 182, 212, 0.18), transparent 36rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 38rem),
        var(--bg);
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(39, 39, 42, 0.95);
    background: rgba(9, 9, 11, 0.92);
    backdrop-filter: blur(18px);
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #fff;
    font-size: 18px;
    box-shadow: 0 12px 40px rgba(6, 182, 212, 0.3);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.03em;
    background: linear-gradient(90deg, #67e8f9, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text em {
    margin-top: 4px;
    color: #71717a;
    font-size: 11px;
    font-style: normal;
    letter-spacing: 0.14em;
}

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

.desktop-nav a,
.mobile-panel a,
.mobile-category-links a {
    color: #d4d4d8;
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a {
    padding: 10px 14px;
    font-size: 14px;
}

.desktop-nav a:hover,
.mobile-panel a:hover,
.mobile-category-links a:hover {
    color: var(--cyan);
    background: rgba(39, 39, 42, 0.82);
}

.nav-search {
    display: flex;
    align-items: center;
    width: min(34vw, 360px);
    min-width: 260px;
    border: 1px solid #3f3f46;
    border-radius: 14px;
    overflow: hidden;
    background: #18181b;
}

.nav-search input,
.mobile-search input,
.large-search input,
.filter-bar input,
.search-form input {
    width: 100%;
    border: 0;
    outline: none;
    color: var(--text);
    background: transparent;
    font: inherit;
}

.nav-search input {
    padding: 10px 12px;
    font-size: 14px;
}

.nav-search button,
.mobile-search button,
.large-search button,
.search-form button {
    border: 0;
    cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    font-weight: 700;
    white-space: nowrap;
}

.nav-search button {
    align-self: stretch;
    padding: 0 16px;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid #3f3f46;
    border-radius: 14px;
    color: #d4d4d8;
    background: #18181b;
    font-size: 22px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid #27272a;
    padding: 16px 24px 22px;
    background: rgba(9, 9, 11, 0.97);
}

.mobile-panel.is-open {
    display: grid;
    gap: 10px;
}

.mobile-panel a {
    padding: 11px 12px;
}

.mobile-search {
    display: flex;
    overflow: hidden;
    margin-bottom: 6px;
    border: 1px solid #3f3f46;
    border-radius: 14px;
    background: #18181b;
}

.mobile-search input {
    padding: 12px;
}

.mobile-search button {
    padding: 0 16px;
}

.mobile-category-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 6px;
}

main {
    min-height: 60vh;
}

.hero-slider {
    position: relative;
    height: 720px;
    min-height: 620px;
    overflow: hidden;
    background: #09090b;
}

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

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

.hero-bg,
.detail-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.18)),
        linear-gradient(0deg, #09090b 0%, transparent 45%),
        radial-gradient(circle at 18% 50%, rgba(6, 182, 212, 0.25), transparent 28rem);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 80px 24px 110px;
}

.hero-content > * {
    max-width: 760px;
}

.hero-badge,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border: 1px solid rgba(34, 211, 238, 0.5);
    border-radius: 999px;
    color: #67e8f9;
    background: rgba(8, 145, 178, 0.18);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-badge {
    margin-bottom: 22px;
    padding: 7px 13px;
}

.section-kicker {
    margin-bottom: 10px;
    padding: 5px 10px;
}

.hero-content h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-shadow: 0 18px 70px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    margin: 22px 0 0;
    color: #d4d4d8;
    font-size: 18px;
    max-width: 680px;
}

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

.hero-meta span,
.detail-meta span {
    border: 1px solid rgba(113, 113, 122, 0.55);
    border-radius: 999px;
    padding: 6px 12px;
    color: #e4e4e7;
    background: rgba(24, 24, 27, 0.72);
}

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

.hero-tags,
.detail-tags {
    margin-top: 18px;
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 999px;
    padding: 5px 10px;
    color: #a5f3fc;
    background: rgba(8, 145, 178, 0.12);
    font-size: 12px;
    line-height: 1;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 14px;
    padding: 0 20px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 16px 44px rgba(6, 182, 212, 0.28);
}

.btn-ghost {
    border: 1px solid rgba(113, 113, 122, 0.65);
    color: #f4f4f5;
    background: rgba(24, 24, 27, 0.64);
}

.btn-ghost:hover {
    border-color: rgba(34, 211, 238, 0.7);
}

.hero-control {
    position: absolute;
    z-index: 5;
    top: 50%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 64px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    color: #fff;
    background: rgba(24, 24, 27, 0.5);
    backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 42px;
    transform: translateY(-50%);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

.hero-dot.is-active {
    background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.section-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 24px;
}

.intro-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: 28px;
    align-items: center;
    margin-top: -54px;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(63, 63, 70, 0.75);
    border-radius: 28px;
    padding: 32px;
    background: rgba(24, 24, 27, 0.82);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.intro-panel h2,
.section-heading h2,
.page-hero h1,
.detail-info h1,
.detail-article h2 {
    margin: 0;
    color: #fff;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.intro-panel h2,
.section-heading h2 {
    font-size: clamp(26px, 4vw, 42px);
}

.intro-panel p,
.page-hero p,
.detail-one-line,
.detail-article p,
.ranking-card p,
.footer-brand p {
    color: var(--muted);
}

.large-search,
.search-form {
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(63, 63, 70, 0.95);
    border-radius: 18px;
    background: #111113;
}

.large-search input,
.search-form input {
    padding: 16px 18px;
}

.large-search button,
.search-form button {
    padding: 0 24px;
}

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

.compact-heading {
    align-items: center;
}

.text-link {
    color: #67e8f9;
    font-weight: 800;
}

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

.category-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border: 1px solid rgba(63, 63, 70, 0.82);
    border-radius: 24px;
    background: #18181b;
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.28);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-card:hover img {
    transform: scale(1.06);
    opacity: 0.76;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.1));
}

.category-card span,
.category-card em {
    position: relative;
    z-index: 1;
    display: block;
    padding: 0 20px;
}

.category-card span {
    margin-top: 104px;
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.category-card em {
    margin-top: 8px;
    color: #d4d4d8;
    font-style: normal;
    font-size: 13px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(63, 63, 70, 0.72);
    border-radius: 22px;
    background: rgba(24, 24, 27, 0.72);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(34, 211, 238, 0.72);
    box-shadow: 0 24px 70px rgba(6, 182, 212, 0.1);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #18181b;
}

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

.movie-card:hover .movie-poster img,
.ranking-card:hover .movie-poster img {
    transform: scale(1.05);
}

.poster-badge {
    position: absolute;
    right: 10px;
    top: 10px;
    border-radius: 999px;
    padding: 4px 9px;
    color: #cffafe;
    background: rgba(8, 47, 73, 0.82);
    border: 1px solid rgba(34, 211, 238, 0.45);
    font-size: 12px;
    font-weight: 800;
}

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

.movie-title {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-title:hover {
    color: var(--cyan);
}

.movie-meta {
    overflow: hidden;
    margin-top: 7px;
    color: #8b8b95;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-desc {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    margin: 10px 0 12px;
    color: #b7b7c0;
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-panel {
    position: sticky;
    top: 96px;
    border: 1px solid rgba(63, 63, 70, 0.75);
    border-radius: 26px;
    padding: 24px;
    background: rgba(24, 24, 27, 0.75);
    box-shadow: var(--shadow);
}

.rank-list {
    display: grid;
    gap: 12px;
}

.rank-item {
    display: grid;
    grid-template-columns: 38px 56px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border-radius: 18px;
    padding: 10px;
    background: rgba(39, 39, 42, 0.62);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: rgba(8, 145, 178, 0.2);
    transform: translateX(3px);
}

.rank-index {
    color: #67e8f9;
    font-size: 18px;
    font-weight: 900;
}

.rank-item img {
    width: 56px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
}

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

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

.rank-info strong {
    color: #fff;
    font-size: 14px;
}

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

.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 340px;
    padding: 110px 24px 70px;
    background:
        radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.25), transparent 24rem),
        linear-gradient(135deg, rgba(24, 24, 27, 0.96), rgba(9, 9, 11, 0.98));
    border-bottom: 1px solid rgba(63, 63, 70, 0.68);
}

.page-hero > div {
    max-width: 1280px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: clamp(38px, 5vw, 64px);
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    font-size: 17px;
}

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

.category-overview-card {
    display: grid;
    gap: 18px;
    border: 1px solid rgba(63, 63, 70, 0.74);
    border-radius: 26px;
    padding: 18px;
    background: rgba(24, 24, 27, 0.74);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-overview-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.68);
}

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

.category-thumb-stack img {
    aspect-ratio: 2 / 3;
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
}

.category-overview-card h2 {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.category-overview-card p {
    margin: 8px 0 0;
    color: var(--muted);
}

.mini-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.mini-tab {
    border: 1px solid rgba(63, 63, 70, 0.85);
    border-radius: 999px;
    padding: 8px 13px;
    color: #d4d4d8;
    background: rgba(24, 24, 27, 0.72);
}

.mini-tab.active,
.mini-tab:hover {
    border-color: rgba(34, 211, 238, 0.68);
    color: #67e8f9;
    background: rgba(8, 145, 178, 0.16);
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
    border: 1px solid rgba(63, 63, 70, 0.85);
    border-radius: 18px;
    padding: 12px 16px;
    background: rgba(24, 24, 27, 0.72);
}

.filter-bar input {
    min-height: 40px;
}

.filter-bar span,
.search-meta {
    color: var(--muted);
    font-size: 14px;
}

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

.ranking-card {
    display: grid;
    grid-template-columns: 70px 112px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    border: 1px solid rgba(63, 63, 70, 0.72);
    border-radius: 24px;
    padding: 14px;
    background: rgba(24, 24, 27, 0.72);
}

.big-rank {
    color: #67e8f9;
    font-size: 28px;
    font-weight: 950;
    text-align: center;
}

.ranking-card .movie-poster {
    border-radius: 16px;
}

.ranking-card-body p {
    margin: 8px 0;
}

.search-workspace {
    max-width: 1180px;
}

.search-form {
    margin-bottom: 18px;
}

.detail-hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    background: #09090b;
}

.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.76) 48%, rgba(0, 0, 0, 0.34)),
        linear-gradient(0deg, #09090b 0%, transparent 42%);
    backdrop-filter: blur(3px);
}

.detail-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    max-width: 1280px;
    min-height: 720px;
    margin: 0 auto;
    padding: 106px 24px 70px;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
}

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

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

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

.detail-info h1 {
    font-size: clamp(40px, 6vw, 76px);
    line-height: 1.04;
}

.detail-one-line {
    max-width: 790px;
    margin: 18px 0 0;
    font-size: 19px;
}

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

.player-box {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(63, 63, 70, 0.85);
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-start {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    min-height: 54px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 20px 60px rgba(6, 182, 212, 0.3);
    cursor: pointer;
    font-size: 16px;
    font-weight: 900;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.player-start:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.player-start.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.player-status {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 12px;
    margin: 0;
    color: #fef3c7;
    text-align: center;
    font-size: 14px;
}

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

.detail-article {
    border: 1px solid rgba(63, 63, 70, 0.72);
    border-radius: 26px;
    padding: 28px;
    background: rgba(24, 24, 27, 0.72);
}

.detail-article p {
    margin: 14px 0 0;
    font-size: 16px;
}

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

.site-footer {
    border-top: 1px solid rgba(39, 39, 42, 0.95);
    background: rgba(9, 9, 11, 0.96);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(160px, 0.7fr));
    gap: 32px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 46px 24px;
}

.footer-brand p {
    max-width: 560px;
    margin: 16px 0 0;
}

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

.footer-links strong {
    color: #fff;
    margin-bottom: 4px;
}

.footer-links a {
    color: var(--muted);
    font-size: 14px;
}

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

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

.empty-state {
    grid-column: 1 / -1;
    border: 1px solid rgba(63, 63, 70, 0.72);
    border-radius: 22px;
    padding: 34px;
    color: var(--muted);
    text-align: center;
    background: rgba(24, 24, 27, 0.72);
}

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

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

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

    .ranking-panel {
        position: static;
    }

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

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

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

    .hero-slider,
    .detail-hero {
        min-height: 680px;
        height: auto;
    }

    .hero-content {
        padding: 100px 20px 110px;
    }

    .hero-control {
        display: none;
    }

    .intro-panel,
    .detail-inner,
    .detail-content-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .intro-panel {
        margin: 0 16px;
        padding: 24px;
    }

    .detail-inner {
        gap: 28px;
        min-height: auto;
    }

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

    .ranking-card {
        grid-template-columns: 54px 94px minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .nav-shell {
        height: 66px;
        padding: 0 16px;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
    }

    .brand-text strong {
        font-size: 17px;
    }

    .brand-text em {
        display: none;
    }

    .section-shell {
        padding: 42px 16px;
    }

    .page-hero {
        padding: 96px 16px 54px;
    }

    .hero-content h1,
    .detail-info h1 {
        font-size: 38px;
    }

    .large-search,
    .search-form,
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .large-search button,
    .search-form button {
        min-height: 48px;
    }

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

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

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

    .movie-desc {
        font-size: 12px;
    }

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

    .big-rank {
        text-align: left;
    }
}

@media (max-width: 420px) {
    .category-grid,
    .category-overview-grid,
    .movie-grid,
    .category-movie-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .detail-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
