:root {
    --bg: #f8fafc;
    --paper: #ffffff;
    --paper-soft: #f1f5f9;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --dark: #020617;
    --dark-soft: #0f172a;
    --accent: #f59e0b;
    --accent-dark: #d97706;
    --blue: #2563eb;
    --rose: #e11d48;
    --green: #059669;
    --shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 12px 26px rgba(15, 23, 42, 0.08);
    --radius: 22px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

img {
    display: block;
    width: 100%;
    height: auto;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

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

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

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    font-size: 16px;
    background: linear-gradient(135deg, #334155, #020617 58%, #111827);
    box-shadow: 0 12px 26px rgba(2, 6, 23, 0.18);
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 21px;
    letter-spacing: -0.04em;
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
    display: none;
}

.nav-link {
    position: relative;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -23px;
    height: 3px;
    border-radius: 999px;
    background: transparent;
    transition: background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--ink);
}

.nav-link.is-active::after {
    background: var(--ink);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    border-radius: 14px;
    background: #f1f5f9;
}

.mobile-menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    border-radius: 4px;
    background: var(--ink);
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

.mobile-nav-link {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    background: #f1f5f9;
    color: var(--ink);
}

main {
    min-height: 65vh;
}

.hero-carousel {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: var(--dark);
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 74% 22%, rgba(245, 158, 11, 0.26), transparent 34%),
        linear-gradient(90deg, rgba(2, 6, 23, 0.88) 0%, rgba(2, 6, 23, 0.55) 46%, rgba(2, 6, 23, 0.2) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.08) 54%);
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 58px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    color: #ffffff;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.hero-content h1 {
    max-width: 820px;
    margin: 18px 0 16px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 2.3vw, 23px);
    line-height: 1.75;
}

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

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #334155);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.24);
}

.secondary-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.2);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    font-size: 32px;
    line-height: 1;
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.26);
    transform: translateY(-50%) scale(1.06);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: #ffffff;
}

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

.search-panel {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 440px);
    align-items: center;
    gap: 20px;
    padding: 22px;
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.search-panel h2 {
    margin: 0 0 5px;
    font-size: 22px;
    letter-spacing: -0.04em;
}

.search-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #f8fafc;
}

.search-box span {
    color: #94a3b8;
    font-size: 20px;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
}

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

.page-main .section-block:first-child {
    padding-top: 44px;
}

.soft-section {
    width: 100%;
    margin-top: 72px;
    padding: 72px max(16px, calc((100% - 1180px) / 2)) 72px;
    background: #ffffff;
}

.split-section {
    padding-top: 72px;
}

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

.eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-title-row h2,
.page-hero h1,
.detail-title-row h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.section-more,
.inline-link {
    display: inline-flex;
    align-items: center;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.section-more::after,
.inline-link::after {
    content: "›";
    margin-left: 6px;
    font-size: 18px;
}

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

.category-card,
.category-overview-card,
.movie-card,
.detail-card,
.side-card,
.player-panel,
.movie-list-item {
    border: 1px solid rgba(226, 232, 240, 0.92);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
}

.category-card,
.category-overview-card {
    min-height: 210px;
    border-radius: var(--radius);
    overflow: hidden;
}

.category-card > a,
.category-overview-main {
    display: block;
    padding: 22px;
}

.category-mark,
.category-overview-main span {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #334155, #020617);
}

.category-card h3,
.category-overview-main h2 {
    margin: 0 0 10px;
    font-size: 22px;
    letter-spacing: -0.04em;
}

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

.category-mini-links,
.category-overview-links {
    display: grid;
    gap: 8px;
    padding: 0 22px 22px;
}

.category-mini-links a,
.category-overview-links a {
    color: #475569;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-mini-links a:hover,
.category-overview-links a:hover {
    color: var(--ink);
}

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

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

.movie-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #cbd5e1, #64748b);
}

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

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

.poster-year,
.rank-badge {
    position: absolute;
    top: 12px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(8px);
}

.poster-year {
    right: 12px;
}

.rank-badge {
    left: 12px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

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

.movie-meta-line,
.list-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 10px 0 8px;
    font-size: 21px;
    line-height: 1.24;
    letter-spacing: -0.04em;
}

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

.tag-row span,
.detail-tags span {
    min-height: 26px;
    padding: 5px 10px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
}

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

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

.list-stack {
    display: grid;
    gap: 16px;
}

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

.movie-list-item {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 18px;
    padding: 14px;
    border-radius: 20px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-list-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.list-cover {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 15px;
    background: linear-gradient(135deg, #cbd5e1, #64748b);
}

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

.list-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.list-content h3 {
    margin: 8px 0 8px;
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: -0.04em;
}

.list-content p {
    display: -webkit-box;
    margin: 0 0 12px;
    overflow: hidden;
    color: #475569;
    font-size: 14px;
    line-height: 1.65;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.list-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
}

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

.page-hero {
    position: relative;
    margin-top: 34px;
    padding: clamp(34px, 6vw, 72px);
    border-radius: 30px;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 22%, rgba(245, 158, 11, 0.25), transparent 36%),
        linear-gradient(135deg, #f8fafc, #e2e8f0);
    box-shadow: var(--shadow-soft);
}

.page-hero p {
    max-width: 700px;
    margin: 18px 0 0;
    color: #475569;
    font-size: 18px;
    line-height: 1.8;
}

.channel-hero,
.ranking-hero {
    display: grid;
    grid-template-columns: 1fr 260px;
    align-items: center;
    gap: 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at 76% 16%, rgba(245, 158, 11, 0.32), transparent 35%),
        linear-gradient(135deg, #111827, #020617 58%, #1e293b);
}

.channel-hero h1,
.ranking-hero h1,
.channel-hero p,
.ranking-hero p {
    color: #ffffff;
}

.compact-actions {
    margin-top: 24px;
}

.ranking-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 22px 44px rgba(2, 6, 23, 0.34);
}

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

.ranking-poster span {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(8px);
}

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

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

.category-overview-links {
    align-content: center;
    padding: 22px;
    background: #f8fafc;
}

.category-overview-main em {
    display: inline-flex;
    margin-top: 18px;
    color: var(--ink);
    font-style: normal;
    font-weight: 900;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 28px 0 18px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
    align-items: start;
}

.detail-main {
    display: grid;
    gap: 22px;
}

.player-panel,
.detail-card,
.side-card {
    border-radius: var(--radius);
    overflow: hidden;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at center, rgba(15, 23, 42, 0.22), rgba(2, 6, 23, 0.72)),
        linear-gradient(135deg, rgba(15, 23, 42, 0.48), rgba(2, 6, 23, 0.86));
    text-align: center;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-circle {
    display: inline-grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.92);
    font-size: 30px;
    box-shadow: 0 18px 42px rgba(2, 6, 23, 0.36);
}

.player-overlay strong {
    max-width: min(80%, 620px);
    font-size: clamp(24px, 4vw, 42px);
    letter-spacing: -0.05em;
}

.player-overlay em {
    font-style: normal;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.82);
}

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

.detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.dark-button {
    color: #ffffff;
    background: #0f172a;
    border-color: #0f172a;
}

.detail-tags {
    margin-bottom: 24px;
}

.text-section {
    padding: 24px 0;
    border-top: 1px solid var(--line);
}

.text-section h2,
.side-card h2,
.footer-grid h2 {
    margin: 0 0 12px;
    font-size: 20px;
    letter-spacing: -0.03em;
}

.text-section p {
    margin: 0;
    color: #334155;
    font-size: 16px;
    line-height: 1.9;
    text-align: justify;
}

.detail-side {
    position: sticky;
    top: 94px;
    display: grid;
    gap: 18px;
}

.side-card {
    padding: 18px;
}

.poster-card img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 18px;
    background: linear-gradient(135deg, #cbd5e1, #64748b);
}

.poster-card h2 {
    margin-top: 16px;
}

.poster-card p {
    margin: 0;
    color: #475569;
    line-height: 1.75;
}

.meta-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.meta-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.meta-list span {
    color: #64748b;
    font-size: 14px;
}

.meta-list strong {
    color: var(--ink);
    font-size: 14px;
    text-align: right;
}

.related-block {
    padding-bottom: 72px;
}

.empty-state {
    display: none;
    margin: 26px 0 0;
    padding: 22px;
    border-radius: 18px;
    color: #64748b;
    background: #ffffff;
    text-align: center;
}

.empty-state.is-visible {
    display: block;
}

.site-footer {
    margin-top: 76px;
    background: #0f172a;
    color: #cbd5e1;
}

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

.footer-brand {
    margin-bottom: 16px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
}

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

.footer-grid h2 {
    color: #ffffff;
    font-size: 18px;
}

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

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

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #94a3b8;
    font-size: 13px;
}

@media (max-width: 1080px) {
    .desktop-nav {
        gap: 15px;
    }

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

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

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

    .detail-side {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

    .mobile-menu-button {
        display: block;
    }

    .hero-carousel {
        height: 78vh;
        min-height: 560px;
    }

    .hero-content {
        bottom: 64px;
    }

    .hero-arrow {
        display: none;
    }

    .search-panel,
    .channel-hero,
    .ranking-hero,
    .category-overview-card,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .ranking-poster {
        max-width: 220px;
    }

    .detail-title-row {
        display: grid;
    }

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

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

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

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

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

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

    .home-search-wrap {
        margin-top: -18px;
    }

    .section-block,
    .soft-section {
        padding-top: 46px;
    }

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

    .category-grid,
    .category-overview-grid,
    .movie-grid,
    .wide-grid,
    .two-column {
        grid-template-columns: 1fr;
    }

    .movie-list-item {
        grid-template-columns: 92px 1fr;
        gap: 13px;
    }

    .list-content h3 {
        font-size: 18px;
    }

    .list-content p {
        -webkit-line-clamp: 2;
    }

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

    .page-hero {
        border-radius: 22px;
    }

    .player-overlay strong {
        font-size: 24px;
    }

    .play-circle {
        width: 62px;
        height: 62px;
        font-size: 24px;
    }
}
