:root {
    color-scheme: dark;
    --night-950: #050713;
    --night-900: #0b1022;
    --night-800: #11182d;
    --silver-900: #151b2e;
    --silver-800: #1c243a;
    --silver-700: #33405f;
    --silver-500: #8e9ab8;
    --silver-300: #c8d0e5;
    --moonlight-700: #5d3fd3;
    --moonlight-600: #6d55f3;
    --moonlight-500: #8b7cff;
    --moonlight-300: #c5b8ff;
    --gold: #f6c365;
    --rose: #ff6b9d;
    --max-width: 1240px;
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.42);
    --shadow-card: 0 18px 45px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    color: #f7f8ff;
    background:
        radial-gradient(circle at 12% 8%, rgba(139, 124, 255, 0.26), transparent 30%),
        radial-gradient(circle at 82% 14%, rgba(246, 195, 101, 0.12), transparent 28%),
        linear-gradient(135deg, #050713 0%, #0b1022 45%, #11182d 100%);
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(200, 208, 229, 0.12);
    background: rgba(5, 7, 19, 0.86);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--moonlight-600), var(--rose));
    box-shadow: 0 12px 28px rgba(109, 85, 243, 0.36);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--silver-300);
}

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

.nav-link::after {
    position: absolute;
    left: 0;
    bottom: 1px;
    width: 0;
    height: 2px;
    content: "";
    border-radius: 999px;
    background: var(--moonlight-500);
    transition: width 0.25s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link:hover::after {
    width: 100%;
}

.header-search,
.mobile-search,
.hero-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-search input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(200, 208, 229, 0.16);
    outline: none;
    color: #ffffff;
    background: rgba(28, 36, 58, 0.72);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header-search input,
.mobile-search input,
.hero-search input,
.filter-search input {
    border-radius: 999px;
    padding: 12px 16px;
}

.header-search input {
    width: 240px;
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.filter-search input:focus,
.filter-panel select:focus {
    border-color: rgba(139, 124, 255, 0.72);
    box-shadow: 0 0 0 4px rgba(139, 124, 255, 0.14);
    background: rgba(28, 36, 58, 0.92);
}

.header-search button,
.mobile-search button,
.hero-search button,
.btn,
.view-more,
.rank-action,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, var(--moonlight-600), var(--moonlight-700));
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header-search button,
.mobile-search button,
.hero-search button {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
}

.header-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.btn:hover,
.view-more:hover,
.rank-action:hover,
.text-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(109, 85, 243, 0.32);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(200, 208, 229, 0.14);
    border-radius: 14px;
    background: rgba(28, 36, 58, 0.72);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: #ffffff;
}

.mobile-menu {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.mobile-link {
    padding: 12px 14px;
    border: 1px solid rgba(200, 208, 229, 0.12);
    border-radius: 14px;
    color: var(--silver-300);
    background: rgba(28, 36, 58, 0.55);
}

.sub-link {
    color: var(--moonlight-300);
}

.hero-carousel {
    position: relative;
    min-height: 700px;
    overflow: hidden;
    border-bottom: 1px solid rgba(200, 208, 229, 0.08);
}

.hero-track {
    position: relative;
    min-height: 700px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 46px;
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
}

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

.hero-image {
    position: absolute;
    inset: 0 auto 0 45%;
    width: 55vw;
    height: 100%;
    max-width: none;
    object-fit: cover;
    opacity: 0.46;
    filter: saturate(1.08) contrast(1.08);
    mask-image: linear-gradient(90deg, transparent 0%, #000 24%, #000 78%, transparent 100%);
}

.hero-glow {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 7, 19, 0.98) 0%, rgba(5, 7, 19, 0.82) 34%, rgba(5, 7, 19, 0.26) 74%, rgba(5, 7, 19, 0.84) 100%),
        radial-gradient(circle at 72% 42%, rgba(139, 124, 255, 0.28), transparent 32%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding-top: 40px;
}

.hero-eyebrow,
.section-heading span,
.page-hero span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--moonlight-300);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h1,
.hero-content h2,
.page-hero h1 {
    margin: 18px 0;
    max-width: 760px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-content p,
.page-hero p {
    max-width: 680px;
    color: var(--silver-300);
    font-size: 18px;
}

.hero-tags,
.tag-list,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag-list span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border: 1px solid rgba(200, 208, 229, 0.12);
    border-radius: 999px;
    color: var(--silver-300);
    background: rgba(28, 36, 58, 0.55);
}

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

.btn {
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
}

.btn-ghost {
    border: 1px solid rgba(200, 208, 229, 0.18);
    background: rgba(28, 36, 58, 0.58);
}

.btn-text {
    color: var(--moonlight-300);
    background: transparent;
}

.hero-card {
    position: relative;
    z-index: 2;
    align-self: center;
    overflow: hidden;
    border: 1px solid rgba(200, 208, 229, 0.14);
    border-radius: var(--radius-xl);
    background: rgba(17, 24, 45, 0.58);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

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

.hero-card div {
    padding: 18px;
}

.hero-card span {
    display: block;
    color: var(--silver-500);
    font-size: 14px;
}

.hero-card strong {
    display: block;
    margin-top: 6px;
    color: #ffffff;
}

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

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

.hero-dot.is-active {
    background: var(--moonlight-500);
}

.hero-search {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 7;
    width: min(760px, calc(100% - 32px));
    padding: 10px;
    border: 1px solid rgba(200, 208, 229, 0.12);
    border-radius: 999px;
    background: rgba(5, 7, 19, 0.72);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
}

.hero-search input {
    min-height: 48px;
    background: rgba(28, 36, 58, 0.72);
}

.section-block,
.sub-page,
.detail-page {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
}

.section-block {
    padding: 78px 0;
}

.dark-band {
    width: 100%;
    max-width: none;
    padding: 78px max(16px, calc((100% - var(--max-width)) / 2));
    border-block: 1px solid rgba(200, 208, 229, 0.08);
    background: rgba(10, 15, 32, 0.48);
}

.section-heading {
    margin-bottom: 30px;
}

.center-heading {
    text-align: center;
}

.center-heading h2,
.split-heading h2,
.recommend-box h2,
.detail-main-text h2 {
    margin: 8px 0 0;
    color: #ffffff;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.15;
}

.center-heading p {
    max-width: 680px;
    margin: 14px auto 0;
    color: var(--silver-500);
}

.split-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.view-more,
.text-link {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 800;
}

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

.category-tile {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgba(200, 208, 229, 0.12);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(28, 36, 58, 0.84), rgba(17, 24, 45, 0.62));
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.movie-card:hover,
.category-overview-card:hover,
.rank-row:hover {
    transform: translateY(-5px);
    border-color: rgba(139, 124, 255, 0.48);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

.category-tile span {
    position: relative;
    z-index: 2;
    display: block;
    font-size: 34px;
}

.category-tile strong {
    position: relative;
    z-index: 2;
    display: block;
    margin-top: 20px;
    font-size: 18px;
}

.category-tile em {
    position: relative;
    z-index: 2;
    display: block;
    margin-top: 8px;
    color: var(--silver-500);
    font-style: normal;
    font-size: 13px;
}

.category-tile img {
    position: absolute;
    right: -18px;
    bottom: -30px;
    width: 130px;
    height: 180px;
    object-fit: cover;
    border-radius: 18px;
    opacity: 0.22;
    transform: rotate(8deg);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(200, 208, 229, 0.11);
    border-radius: var(--radius-lg);
    background: rgba(17, 24, 45, 0.72);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0b1022;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.74) 100%);
}

.poster-year {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(5, 7, 19, 0.7);
    backdrop-filter: blur(10px);
}

.poster-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--moonlight-600), var(--rose));
    box-shadow: 0 12px 28px rgba(109, 85, 243, 0.42);
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--silver-500);
    font-size: 13px;
}

.card-meta a {
    color: var(--moonlight-300);
}

.movie-card h3,
.rank-row h3 {
    margin: 10px 0 8px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-row h3 a:hover,
.category-overview-card h2 a:hover,
.footer-links a:hover {
    color: var(--moonlight-300);
}

.movie-card p,
.rank-row p,
.category-overview-card p,
.footer-grid p {
    margin: 0;
    color: var(--silver-500);
    font-size: 14px;
}

.tag-list {
    margin-top: 14px;
}

.tag-list span {
    min-height: 26px;
    padding: 4px 9px;
    font-size: 12px;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 62px 92px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border: 1px solid rgba(200, 208, 229, 0.11);
    border-radius: var(--radius-md);
    background: rgba(17, 24, 45, 0.72);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.rank-number {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(139, 124, 255, 0.9), rgba(255, 107, 157, 0.8));
}

.rank-thumb img {
    width: 92px;
    height: 124px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-action {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    font-weight: 800;
}

.masonry-grid {
    columns: 4 220px;
    column-gap: 22px;
}

.masonry-grid .movie-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 22px;
    break-inside: avoid;
}

.sub-page,
.detail-page {
    padding: 34px 0 80px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin: 22px 0 28px;
    padding: 58px;
    border: 1px solid rgba(200, 208, 229, 0.12);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 82% 20%, rgba(139, 124, 255, 0.32), transparent 28%),
        linear-gradient(135deg, rgba(28, 36, 58, 0.84), rgba(17, 24, 45, 0.62));
    box-shadow: var(--shadow-soft);
}

.small-hero h1,
.category-hero h1,
.ranking-hero h1 {
    max-width: 900px;
    font-size: clamp(36px, 6vw, 64px);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin: 22px 0;
    color: var(--silver-500);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--moonlight-300);
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    border: 1px solid rgba(200, 208, 229, 0.11);
    border-radius: var(--radius-lg);
    background: rgba(17, 24, 45, 0.72);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-overview-image {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.category-overview-image img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
}

.category-overview-image span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    font-size: 24px;
    background: rgba(5, 7, 19, 0.72);
    backdrop-filter: blur(10px);
}

.category-overview-card h2 {
    margin: 6px 0 8px;
    color: #ffffff;
}

.category-overview-card ul {
    margin: 16px 0;
    padding-left: 18px;
    color: var(--silver-300);
}

.category-overview-card li + li {
    margin-top: 6px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(130px, 190px));
    gap: 14px;
    align-items: end;
    margin: 28px 0;
    padding: 16px;
    border: 1px solid rgba(200, 208, 229, 0.12);
    border-radius: var(--radius-lg);
    background: rgba(17, 24, 45, 0.72);
}

.filter-panel label {
    display: grid;
    gap: 6px;
    color: var(--silver-500);
    font-size: 13px;
}

.filter-panel select {
    min-height: 46px;
    padding: 0 12px;
    border-radius: 14px;
}

.library-grid {
    padding-top: 8px;
}

.empty-state {
    margin: 34px 0;
    padding: 28px;
    border: 1px solid rgba(200, 208, 229, 0.12);
    border-radius: var(--radius-lg);
    color: var(--silver-300);
    text-align: center;
    background: rgba(17, 24, 45, 0.72);
}

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

.player-panel,
.detail-side-card,
.detail-main-text,
.recommend-box {
    border: 1px solid rgba(200, 208, 229, 0.11);
    border-radius: var(--radius-xl);
    background: rgba(17, 24, 45, 0.72);
    box-shadow: var(--shadow-card);
}

.player-panel {
    padding: 16px;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    width: 100%;
    height: 100%;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    background:
        radial-gradient(circle at 50% 50%, rgba(139, 124, 255, 0.26), transparent 28%),
        linear-gradient(180deg, rgba(5, 7, 19, 0.18), rgba(5, 7, 19, 0.72));
}

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

.play-orb {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    padding-left: 5px;
    border-radius: 50%;
    font-size: 30px;
    background: linear-gradient(135deg, var(--moonlight-600), var(--rose));
    box-shadow: 0 18px 46px rgba(109, 85, 243, 0.48);
}

.detail-side-card {
    overflow: hidden;
}

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

.detail-side-card div {
    display: grid;
    gap: 8px;
    padding: 18px;
}

.detail-side-card span {
    color: var(--silver-500);
    font-size: 14px;
}

.detail-side-card strong {
    color: #ffffff;
}

.detail-side-card a {
    color: var(--moonlight-300);
}

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

.detail-main-text {
    padding: 30px;
}

.detail-main-text h1 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.12;
}

.lead-text {
    color: var(--silver-300);
    font-size: 18px;
}

.detail-main-text p {
    color: var(--silver-300);
}

.detail-main-text h2 {
    margin-top: 30px;
    font-size: 26px;
}

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

.recommend-box {
    padding: 28px;
}

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

.site-footer {
    border-top: 1px solid rgba(200, 208, 229, 0.08);
    background: rgba(5, 7, 19, 0.78);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
}

.footer-brand {
    color: #ffffff;
    font-size: 22px;
}

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

.footer-links {
    display: grid;
    gap: 8px;
    color: var(--silver-500);
}

.footer-bottom {
    width: min(var(--max-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    color: var(--silver-500);
    border-top: 1px solid rgba(200, 208, 229, 0.08);
}

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

    .menu-toggle {
        display: block;
    }

    .hero-slide {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

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

    .compact-rank,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .hero-carousel,
    .hero-track {
        min-height: 780px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 24px;
    }

    .hero-image {
        inset: 0;
        width: 100%;
        mask-image: none;
        opacity: 0.28;
    }

    .hero-card {
        display: none;
    }

    .hero-search {
        border-radius: 24px;
    }

    .hero-search,
    .hero-actions,
    .split-heading,
    .detail-layout {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-search {
        display: grid;
    }

    .hero-search button {
        width: 100%;
    }

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

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

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

    .rank-action {
        grid-column: 2 / -1;
        width: fit-content;
    }

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

    .detail-side-card {
        display: grid;
        grid-template-columns: 130px minmax(0, 1fr);
    }

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

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

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

    .hero-content h1,
    .hero-content h2,
    .page-hero h1 {
        font-size: 38px;
    }

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

    .section-block {
        padding: 54px 0;
    }

    .page-hero,
    .detail-main-text,
    .recommend-box {
        padding: 24px;
    }

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

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

    .rank-row {
        grid-template-columns: 42px 70px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-thumb img {
        width: 70px;
        height: 96px;
    }

    .detail-side-card {
        grid-template-columns: 100px minmax(0, 1fr);
    }
}
