:root {
    --bg: #0f172a;
    --surface: rgba(30, 41, 59, 0.68);
    --surface-strong: rgba(15, 23, 42, 0.92);
    --surface-soft: rgba(51, 65, 85, 0.42);
    --border: rgba(148, 163, 184, 0.16);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --subtle: #94a3b8;
    --sky: #0ea5e9;
    --sky-dark: #0284c7;
    --amber: #f59e0b;
    --orange: #f97316;
    --radius: 22px;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 15% 8%, rgba(14, 165, 233, 0.16), transparent 32rem),
        radial-gradient(circle at 85% 0%, rgba(245, 158, 11, 0.12), transparent 34rem),
        var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(16px);
}

.main-nav {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.28);
    font-size: 15px;
}

.brand-icon.small {
    width: 28px;
    height: 28px;
    border-radius: 10px;
    font-size: 12px;
}

.brand-text {
    font-size: 21px;
    background: linear-gradient(90deg, #fbbf24, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--muted);
    font-size: 15px;
    white-space: nowrap;
}

.nav-links a {
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(30, 41, 59, 0.85);
    color: #ffffff;
    cursor: pointer;
}

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

.mobile-panel {
    display: none;
    padding: 8px 20px 20px;
    border-top: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.98);
}

.mobile-panel a {
    display: block;
    padding: 12px 0;
    color: var(--muted);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.mobile-panel.is-open {
    display: block;
}

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

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

.hero-slide {
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1.2s ease;
    pointer-events: none;
}

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

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

.hero-shade {
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.74) 38%, rgba(15, 23, 42, 0.2) 100%),
        linear-gradient(0deg, var(--bg) 0%, rgba(15, 23, 42, 0.14) 44%, rgba(15, 23, 42, 0.32) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0 0 74px;
    max-width: 1180px;
}

.hero-content h1,
.hero-content h2 {
    max-width: 760px;
    margin: 0 0 14px;
    letter-spacing: -0.04em;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.42);
}

.hero-content h1 {
    font-size: clamp(38px, 6vw, 74px);
    line-height: 0.98;
}

.hero-content h2 {
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.04;
}

.hero-content p {
    max-width: 690px;
    margin: 0 0 30px;
    color: #e2e8f0;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.7;
}

.hero-actions,
.badge-row,
.meta-row,
.toolbar,
.section-heading,
.section-title {
    display: flex;
    align-items: center;
}

.hero-actions {
    gap: 14px;
    flex-wrap: wrap;
}

.small-actions {
    margin-top: 26px;
}

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

.primary-button {
    background: var(--sky);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(14, 165, 233, 0.28);
}

.primary-button:hover,
.section-more:hover {
    background: var(--sky-dark);
    transform: translateY(-1px);
}

.ghost-button {
    border: 1px solid rgba(226, 232, 240, 0.24);
    background: rgba(15, 23, 42, 0.44);
    color: #ffffff;
}

.ghost-button:hover {
    border-color: rgba(226, 232, 240, 0.46);
    background: rgba(30, 41, 59, 0.72);
}

.hero-dots {
    position: absolute;
    z-index: 3;
    right: max(20px, calc((100% - 1180px) / 2));
    bottom: 52px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.54);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.badge-row {
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.pill-sky {
    background: rgba(14, 165, 233, 0.94);
    color: #ffffff;
}

.pill-amber {
    background: rgba(245, 158, 11, 0.94);
    color: #ffffff;
}

.pill-slate {
    background: rgba(30, 41, 59, 0.86);
    color: #e2e8f0;
}

.search-band {
    width: min(1180px, calc(100% - 32px));
    margin: -34px auto 0;
    position: relative;
    z-index: 5;
}

.search-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.84);
    box-shadow: var(--shadow);
    padding: 18px 22px;
    backdrop-filter: blur(16px);
}

.search-inner label,
.toolbar h2 {
    color: #ffffff;
    font-weight: 800;
}

.search-inner input,
.toolbar input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.16);
    outline: 0;
    border-radius: 16px;
    background: rgba(30, 41, 59, 0.78);
    color: #ffffff;
    padding: 13px 16px;
}

.search-inner input::placeholder,
.toolbar input::placeholder {
    color: #94a3b8;
}

.content-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0;
}

.page-main {
    min-height: 62vh;
}

.section-heading {
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-title {
    gap: 12px;
}

.section-title h2,
.toolbar h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
}

.section-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(14, 165, 233, 0.16);
    color: #38bdf8;
    font-weight: 800;
}

.section-more {
    min-height: 38px;
    background: rgba(14, 165, 233, 0.12);
    color: #7dd3fc;
    padding: 0 16px;
}

.featured-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 24px;
}

.featured-side {
    display: grid;
    gap: 16px;
}

.movie-card a {
    display: block;
}

.poster-card,
.large-card-link,
.horizontal-link,
.category-overview-card,
.category-tile,
.detail-article,
.player-frame,
.page-hero,
.detail-hero {
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 18px 50px rgba(2, 6, 23, 0.22);
}

.poster-card,
.large-card-link,
.category-overview-card,
.category-tile,
.detail-article,
.player-frame,
.page-hero,
.detail-hero {
    border-radius: var(--radius);
    overflow: hidden;
}

.poster-cover,
.large-card-link,
.horizontal-cover,
.detail-poster,
.player-frame {
    position: relative;
    background: #020617;
}

.poster-cover {
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.poster-cover img,
.large-card-link img,
.horizontal-cover img,
.detail-poster img,
.player-cover-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.poster-card:hover img,
.large-card-link:hover img,
.horizontal-link:hover img {
    transform: scale(1.05);
}

.quality-badge,
.category-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.quality-badge {
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    background: rgba(0, 0, 0, 0.68);
    color: #ffffff;
}

.category-badge {
    left: 12px;
    bottom: 12px;
    padding: 5px 10px;
    background: rgba(245, 158, 11, 0.92);
    color: #ffffff;
}

.poster-body {
    padding: 16px;
}

.poster-body h3,
.horizontal-body h3,
.large-card-overlay h3 {
    margin: 0;
    color: #ffffff;
    transition: color 0.2s ease;
}

.poster-body h3 {
    font-size: 17px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.poster-card:hover h3,
.horizontal-link:hover h3,
.large-card-link:hover h3 {
    color: #fbbf24;
}

.poster-body p,
.horizontal-body p,
.large-card-overlay p,
.category-tile p,
.category-overview-card p {
    color: var(--subtle);
    line-height: 1.65;
}

.poster-body p {
    min-height: 48px;
    margin: 8px 0 12px;
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.meta-row {
    justify-content: space-between;
    gap: 10px;
    color: #94a3b8;
    font-size: 13px;
}

.meta-row.compact {
    justify-content: flex-start;
}

.meta-row.compact span {
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.76);
    color: #fbbf24;
}

.tag-line {
    margin-top: 10px;
    color: #64748b;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-hover {
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

.movie-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 240px;
    gap: 18px;
    overflow-x: auto;
    padding: 2px 0 18px;
}

.rail-item {
    min-width: 0;
}

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

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

.large-card-link {
    position: relative;
    aspect-ratio: 16 / 9;
}

.large-card-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 30px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.38), transparent);
}

.large-card-overlay h3 {
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
}

.large-card-overlay p {
    max-width: 680px;
    margin: 10px 0 0;
}

.horizontal-link {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    transition: background 0.2s ease, transform 0.2s ease;
}

.horizontal-link:hover {
    background: rgba(30, 41, 59, 0.9);
    transform: translateY(-2px);
}

.horizontal-cover {
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    overflow: hidden;
}

.horizontal-body {
    min-width: 0;
}

.horizontal-body h3 {
    font-size: 16px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.horizontal-body p {
    margin: 6px 0 10px;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.rank-row {
    position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
}

.rank-num {
    position: relative;
    z-index: 2;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(245, 158, 11, 0.28);
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    gap: 30px;
    align-items: start;
}

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

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

.category-tile {
    padding: 20px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-4px);
    background: rgba(30, 41, 59, 0.86);
}

.category-tile span,
.category-overview-main h2 {
    display: block;
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 19px;
    font-weight: 800;
}

.category-tile p {
    margin: 0;
    font-size: 13px;
}

.tinted-section {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    background: rgba(30, 41, 59, 0.24);
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 38px auto 0;
    padding: clamp(34px, 7vw, 72px);
    background:
        radial-gradient(circle at 90% 0%, rgba(14, 165, 233, 0.25), transparent 28rem),
        radial-gradient(circle at 10% 100%, rgba(245, 158, 11, 0.18), transparent 24rem),
        rgba(30, 41, 59, 0.66);
}

.page-hero h1 {
    max-width: 850px;
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
    font-size: 17px;
}

.eyebrow {
    margin: 0 0 12px !important;
    color: #7dd3fc !important;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.toolbar {
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.toolbar input {
    max-width: 360px;
}

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

.category-overview-card {
    padding: 24px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.category-overview-main h2 {
    font-size: 24px;
}

.category-overview-main p {
    margin: 0 0 18px;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-samples a {
    display: inline-flex;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.6);
    color: #cbd5e1;
    font-size: 13px;
}

.category-samples a:hover {
    color: #ffffff;
    background: rgba(14, 165, 233, 0.24);
}

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

.rank-page-row {
    min-width: 0;
}

.breadcrumb {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: #94a3b8;
    font-size: 14px;
}

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

.detail-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 30px;
    display: grid;
    grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
    gap: clamp(22px, 4vw, 44px);
    padding: clamp(20px, 4vw, 38px);
    background:
        linear-gradient(135deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.88)),
        radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.18), transparent 22rem);
}

.detail-poster {
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
}

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.detail-one-line {
    margin: 0 0 24px;
    color: #e2e8f0;
    line-height: 1.8;
    font-size: 18px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

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

.detail-meta-grid strong,
.detail-meta-grid span {
    display: block;
}

.detail-meta-grid strong {
    margin-bottom: 4px;
    color: #94a3b8;
    font-size: 13px;
}

.detail-meta-grid span {
    color: #ffffff;
    font-weight: 700;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.tag-cloud span {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    color: #7dd3fc;
    font-size: 13px;
}

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

.player-frame {
    aspect-ratio: 16 / 9;
    background: #000000;
}

.movie-video,
.player-cover-button {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.movie-video {
    background: #000000;
    z-index: 1;
}

.player-cover-button {
    z-index: 2;
    border: 0;
    padding: 0;
    background: #000000;
    cursor: pointer;
    color: #ffffff;
}

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

.player-cover-button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.play-circle,
.play-text {
    position: absolute;
    z-index: 3;
    left: 50%;
    transform: translateX(-50%);
}

.play-circle {
    top: calc(50% - 44px);
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sky), var(--amber));
    box-shadow: 0 18px 45px rgba(14, 165, 233, 0.36);
    font-size: 30px;
}

.play-text {
    top: calc(50% + 56px);
    font-size: 18px;
    font-weight: 800;
}

.detail-content-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

.detail-article h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.detail-article p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.95;
}

.related-section {
    padding-top: 48px;
}

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

.movie-card.is-hidden {
    display: none;
}

.site-footer {
    margin-top: 40px;
    border-top: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.78);
}

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

.footer-brand p {
    max-width: 420px;
    margin: 16px 0 0;
    color: #94a3b8;
    line-height: 1.8;
}

.footer-column h2 {
    margin: 0 0 16px;
    font-size: 17px;
}

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

.footer-links a {
    color: #94a3b8;
    font-size: 14px;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    padding: 20px 16px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

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

    .menu-button {
        display: block;
    }

    .featured-layout,
    .two-column-section,
    .detail-content-grid,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 820px) {
    .hero {
        min-height: 620px;
        height: 78vh;
    }

    .hero-shade {
        background: linear-gradient(0deg, var(--bg) 0%, rgba(15, 23, 42, 0.76) 50%, rgba(15, 23, 42, 0.42) 100%);
    }

    .hero-content {
        padding-bottom: 98px;
    }

    .hero-dots {
        left: 16px;
        right: auto;
        bottom: 42px;
    }

    .search-inner,
    .toolbar,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .search-inner {
        gap: 10px;
    }

    .toolbar {
        display: grid;
    }

    .toolbar input {
        max-width: none;
    }

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

    .detail-hero {
        display: grid;
    }

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

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

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

@media (max-width: 560px) {
    .main-nav,
    .content-section,
    .search-band,
    .page-hero,
    .detail-hero,
    .player-section,
    .detail-content-grid,
    .breadcrumb,
    .footer-inner {
        width: min(100% - 24px, 1180px);
    }

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

    .hero-content {
        width: min(100% - 24px, 1180px);
    }

    .poster-grid,
    .category-poster-grid,
    .related-grid {
        gap: 14px;
    }

    .poster-body {
        padding: 12px;
    }

    .horizontal-link {
        grid-template-columns: 112px minmax(0, 1fr);
    }

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

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

    .rank-num {
        width: 36px;
        height: 36px;
        border-radius: 11px;
        font-size: 16px;
    }
}
