:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #07111f;
    --panel: rgba(15, 23, 42, 0.86);
    --panel-solid: #0f172a;
    --line: rgba(148, 163, 184, 0.18);
    --text: #e5edf6;
    --muted: #94a3b8;
    --teal: #14b8a6;
    --teal-light: #2dd4bf;
    --yellow: #facc15;
    --orange: #fb923c;
    --radius: 22px;
    --shadow: 0 24px 80px rgba(2, 6, 23, 0.52);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(20, 184, 166, 0.16), transparent 32rem),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 28rem),
        linear-gradient(180deg, #020617 0%, #07111f 42%, #020617 100%);
}

body.menu-open {
    overflow: hidden;
}

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: 100;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--teal), #0f766e 58%, #0f172a);
    box-shadow: 0 12px 38px rgba(20, 184, 166, 0.32);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.08;
}

.brand-copy strong {
    font-size: 20px;
    letter-spacing: -0.04em;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-left: auto;
    color: #cbd5e1;
    font-size: 14px;
}

.desktop-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--teal-light);
    transform: translateY(-1px);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 260px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.76);
    overflow: hidden;
}

.header-search input {
    width: 100%;
    padding: 10px 74px 10px 18px;
    border: 0;
    outline: none;
    color: white;
    background: transparent;
}

.header-search input::placeholder {
    color: #64748b;
}

.header-search button {
    position: absolute;
    right: 4px;
    top: 4px;
    bottom: 4px;
    border: 0;
    border-radius: 999px;
    padding: 0 15px;
    color: white;
    background: var(--teal);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(15, 23, 42, 0.8);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    border-radius: 99px;
    background: white;
}

.mobile-panel {
    display: none;
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
}

.mobile-panel a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    color: #dbeafe;
}

.mobile-panel form {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.mobile-panel input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 11px 14px;
    color: white;
    background: rgba(2, 6, 23, 0.72);
}

.mobile-panel button {
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: white;
    background: var(--teal);
}

body.menu-open .mobile-panel {
    display: block;
}

.hero-carousel {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #020617;
}

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

.hero-slide {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.5fr);
    align-items: end;
    gap: 42px;
    padding: clamp(28px, 6vw, 80px) max(24px, calc((100vw - 1220px) / 2));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.85s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    filter: blur(6px) saturate(1.08);
    opacity: 0.42;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 45%, rgba(2, 6, 23, 0.38) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 44%, rgba(2, 6, 23, 0.26) 100%);
}

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

.hero-content {
    max-width: 760px;
    padding-bottom: 18px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--teal-light);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.95;
    letter-spacing: -0.08em;
}

.hero-content h2 {
    margin: 18px 0 0;
    color: #f8fafc;
    font-size: clamp(26px, 3.8vw, 48px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-content p:not(.eyebrow) {
    max-width: 690px;
    margin: 18px 0 0;
    color: #cbd5e1;
    font-size: clamp(16px, 1.8vw, 20px);
    line-height: 1.85;
}

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

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
    border: 1px solid rgba(45, 212, 191, 0.28);
    border-radius: 999px;
    padding: 7px 11px;
    color: #ccfbf1;
    background: rgba(20, 184, 166, 0.12);
    font-size: 12px;
}

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

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

.primary-button {
    color: white;
    background: linear-gradient(135deg, var(--teal), #0d9488);
    box-shadow: 0 18px 48px rgba(20, 184, 166, 0.28);
}

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

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

.hero-visual {
    align-self: center;
    justify-self: end;
    width: min(360px, 35vw);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.38);
    box-shadow: var(--shadow);
}

.hero-visual img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 21px;
}

.hero-nav {
    position: absolute;
    z-index: 5;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: white;
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(10px);
    font-size: 34px;
    line-height: 1;
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

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

.hero-dot {
    width: 24px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
}

.hero-dot.is-active {
    width: 44px;
    background: var(--teal-light);
}

.section-wrap {
    width: min(1220px, calc(100% - 32px));
    margin: 74px auto 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 22px;
}

.intro-card,
.quick-search-card,
.category-overview-block,
.detail-article,
.player-section,
.ranking-page {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 18px 62px rgba(2, 6, 23, 0.28);
}

.intro-card,
.quick-search-card {
    padding: clamp(24px, 4vw, 42px);
}

.glow-card {
    background:
        linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(15, 23, 42, 0.88)),
        var(--panel-solid);
}

.intro-card h2,
.quick-search-card h2,
.section-head h2,
.page-hero h1,
.detail-copy h1,
.detail-article h2 {
    margin: 0;
    color: white;
    letter-spacing: -0.05em;
}

.intro-card h2 {
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.08;
}

.intro-card p,
.quick-search-card p,
.page-hero p,
.category-overview-head p,
.detail-article p {
    color: var(--muted);
    line-height: 1.9;
}

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

.large-search input,
.filter-bar input,
.filter-bar select {
    border: 1px solid var(--line);
    outline: none;
    border-radius: 999px;
    color: white;
    background: rgba(2, 6, 23, 0.54);
}

.large-search input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
}

.large-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 24px;
    color: white;
    font-weight: 800;
    background: var(--teal);
}

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

.section-head h2 {
    font-size: clamp(26px, 3vw, 38px);
}

.section-head a {
    color: var(--teal-light);
    font-weight: 800;
}

.compact-head {
    margin-bottom: 16px;
}

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

.category-tile,
.category-index-grid a {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #0f172a;
    box-shadow: 0 16px 42px rgba(2, 6, 23, 0.28);
}

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

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.18));
}

.category-tile span,
.category-tile small {
    position: relative;
    z-index: 2;
    display: block;
    padding-inline: 20px;
}

.category-tile span {
    margin-top: 104px;
    color: white;
    font-size: 22px;
    font-weight: 900;
}

.category-tile small {
    margin-top: 8px;
    color: #cbd5e1;
    line-height: 1.55;
}

.category-tile:hover img {
    transform: scale(1.08);
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.74);
    box-shadow: 0 18px 48px rgba(2, 6, 23, 0.3);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(45, 212, 191, 0.42);
    box-shadow: 0 24px 72px rgba(20, 184, 166, 0.14);
}

.movie-cover {
    position: relative;
    margin: 0;
    background:
        linear-gradient(135deg, rgba(20, 184, 166, 0.16), rgba(15, 23, 42, 0.92)),
        #0f172a;
}

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

.movie-cover figcaption,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 900;
}

.movie-cover figcaption {
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
    background: rgba(2, 6, 23, 0.76);
    backdrop-filter: blur(8px);
}

.rank-badge {
    right: 12px;
    top: 12px;
    min-width: 36px;
    padding: 7px 10px;
    text-align: center;
    background: linear-gradient(135deg, var(--orange), #ef4444);
}

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

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #94a3b8;
    font-size: 12px;
}

.movie-card h3 {
    margin: 10px 0 8px;
    color: white;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    overflow: hidden;
    color: #a7b3c6;
    font-size: 14px;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row span {
    padding: 5px 9px;
    font-size: 11px;
}

.card-foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    color: #94a3b8;
    font-size: 13px;
}

.rating {
    color: var(--yellow);
    font-weight: 900;
}

.movie-card-compact .movie-card-body {
    padding: 13px;
}

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

.movie-card-compact p {
    font-size: 13px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.65fr);
    gap: 24px;
}

.mini-ranking,
.side-card-list,
.ranking-list {
    display: grid;
    gap: 12px;
}

.side-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ranking-row {
    display: grid;
    grid-template-columns: 58px 82px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.78);
}

.ranking-number {
    color: var(--teal-light);
    font-size: 24px;
    font-weight: 950;
    text-align: center;
}

.ranking-thumb img {
    width: 82px;
    height: 108px;
    object-fit: cover;
    border-radius: 12px;
    background: #0f172a;
}

.ranking-main h3 {
    margin: 0 0 8px;
    color: white;
    font-size: 17px;
}

.ranking-main p {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: #a7b3c6;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-score {
    display: grid;
    justify-items: end;
    gap: 4px;
    min-width: 66px;
    color: var(--muted);
}

.ranking-score strong {
    color: var(--yellow);
    font-size: 24px;
}

.page-hero {
    width: min(1220px, calc(100% - 32px));
    margin: 38px auto 0;
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: clamp(34px, 6vw, 70px);
    background:
        radial-gradient(circle at 85% 15%, rgba(20, 184, 166, 0.22), transparent 28rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.88));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    font-size: clamp(36px, 6vw, 70px);
    line-height: 1;
}

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

.category-index-grid a {
    display: flex;
    min-height: 160px;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.16), transparent 14rem),
        rgba(15, 23, 42, 0.78);
}

.category-index-grid strong {
    color: white;
    font-size: 22px;
}

.category-index-grid span {
    color: var(--muted);
    line-height: 1.7;
}

.category-blocks {
    display: grid;
    gap: 26px;
}

.category-overview-block {
    padding: 22px;
}

.category-overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.category-overview-head h2 {
    margin: 0;
    color: white;
    font-size: 30px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 160px 160px 180px;
    gap: 12px;
    margin-bottom: 22px;
}

.filter-bar input,
.filter-bar select {
    min-width: 0;
    padding: 13px 16px;
}

.filter-bar select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%), linear-gradient(135deg, #94a3b8 50%, transparent 50%);
    background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.detail-main {
    padding-bottom: 10px;
}

.detail-hero {
    width: min(1220px, calc(100% - 32px));
    margin: 34px auto 0;
}

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

.breadcrumb a {
    color: var(--teal-light);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 54px);
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: clamp(20px, 4vw, 40px);
    background:
        radial-gradient(circle at 85% 12%, rgba(20, 184, 166, 0.18), transparent 28rem),
        rgba(15, 23, 42, 0.86);
    box-shadow: var(--shadow);
}

.detail-poster {
    margin: 0;
    border-radius: 24px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: 0 20px 70px rgba(2, 6, 23, 0.46);
}

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

.detail-copy h1 {
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.07;
}

.detail-one-line {
    max-width: 780px;
    margin: 20px 0 0;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.85;
}

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

.large-tags {
    margin-bottom: 26px;
}

.player-section {
    padding: clamp(18px, 3vw, 28px);
}

.player-box {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    background: #000;
    box-shadow: 0 24px 86px rgba(2, 6, 23, 0.52);
}

.movie-video,
.player-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.movie-video {
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: white;
    overflow: hidden;
    cursor: pointer;
    background: #020617;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    filter: saturate(1.1);
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.18), rgba(2, 6, 23, 0.72));
}

.play-ring,
.player-cover strong {
    position: relative;
    z-index: 2;
}

.play-ring {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.84);
    box-shadow: 0 20px 60px rgba(20, 184, 166, 0.34);
}

.play-ring span {
    margin-left: 6px;
    font-size: 34px;
}

.player-cover strong {
    margin-top: 128px;
    font-size: 20px;
}

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

.detail-article {
    padding: clamp(22px, 4vw, 36px);
}

.detail-article h2 {
    margin-top: 0;
    font-size: 28px;
}

.detail-article h2 + p {
    margin-top: 14px;
}

.detail-article p + h2 {
    margin-top: 28px;
}

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

.footer-inner {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(180px, 0.7fr) minmax(180px, 0.7fr);
    gap: 32px;
}

.footer-about p {
    max-width: 520px;
    color: var(--muted);
    line-height: 1.9;
}

.footer-inner h3 {
    margin: 0 0 14px;
    color: white;
}

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

.footer-inner li + li {
    margin-top: 9px;
}

.footer-inner a {
    color: #cbd5e1;
}

.footer-inner a:hover {
    color: var(--teal-light);
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    padding: 18px 16px 28px;
    color: #64748b;
    text-align: center;
}

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

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

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

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

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

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

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

    .header-search {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-carousel {
        min-height: 82vh;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-items: end;
        padding: 58px 22px 78px;
    }

    .hero-visual {
        display: none;
    }

    .hero-nav {
        display: none;
    }

    .section-wrap {
        margin-top: 48px;
    }

    .movie-grid,
    .slim-grid,
    .overview-grid,
    .side-card-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

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

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

    .ranking-score {
        grid-column: 2 / 4;
        grid-row: 2;
        justify-items: start;
        display: flex;
        align-items: center;
        gap: 12px;
    }
}

@media (max-width: 540px) {
    .brand-copy strong {
        font-size: 17px;
    }

    .brand-copy small {
        display: none;
    }

    .hero-content h1 {
        font-size: 42px;
    }

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

    .section-head,
    .category-overview-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .large-search button {
        min-height: 46px;
    }

    .ranking-row {
        grid-template-columns: 40px 66px minmax(0, 1fr);
        gap: 10px;
    }

    .ranking-thumb img {
        width: 66px;
        height: 88px;
    }
}
