:root {
    --amber-50: #fff7ed;
    --amber-100: #ffedd5;
    --amber-200: #fed7aa;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --orange-900: #7c2d12;
    --text-main: #1f2937;
    --text-soft: #6b7280;
    --line: rgba(146, 64, 14, 0.12);
    --shadow: 0 18px 45px rgba(120, 53, 15, 0.14);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, var(--amber-50) 0%, #ffffff 42%, #fff7ed 100%);
    color: var(--text-main);
    min-height: 100vh;
}

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;
    background: linear-gradient(90deg, var(--amber-900), var(--orange-900), var(--amber-900));
    box-shadow: 0 10px 30px rgba(120, 53, 15, 0.28);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff7ed;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 247, 237, 0.16);
    color: #fed7aa;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

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

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

.brand-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: rgba(255, 237, 213, 0.78);
}

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

.nav-link,
.nav-button {
    border: 0;
    background: transparent;
    color: #ffedd5;
    padding: 10px 14px;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-button:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 190px;
    padding: 10px;
    border-radius: 16px;
    background: #ffffff;
    color: var(--text-main);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: #5f3714;
}

.dropdown-panel a:hover {
    background: var(--amber-50);
    color: var(--amber-800);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 99px;
    background: #ffedd5;
}

.mobile-panel {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 14px;
}

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

.mobile-link {
    padding: 12px;
    border-radius: 12px;
    color: #ffedd5;
    background: rgba(255, 255, 255, 0.08);
}

.mobile-link.is-active,
.mobile-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.hero-carousel {
    position: relative;
    height: 78vh;
    min-height: 560px;
    overflow: hidden;
    background: #0f0702;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.9s ease, transform 1.1s ease;
    pointer-events: none;
}

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

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.48) 46%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-content {
    position: absolute;
    left: max(32px, calc((100vw - 1200px) / 2));
    right: max(32px, calc((100vw - 1200px) / 2));
    bottom: 86px;
    max-width: 760px;
    color: #ffffff;
}

.hero-kicker,
.detail-kicker,
.page-hero span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.95);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.hero-content h1,
.hero-content h2 {
    margin: 18px 0 16px;
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.7;
}

.hero-meta,
.detail-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 24px;
}

.hero-meta span,
.detail-meta span,
.rank-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #7c2d12;
    background: #ffedd5;
    font-size: 13px;
    font-weight: 700;
}

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

.primary-button,
.ghost-button,
.outline-button,
.section-link,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
    min-height: 46px;
    padding: 0 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    box-shadow: 0 12px 26px rgba(217, 119, 6, 0.3);
}

.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(217, 119, 6, 0.36);
}

.ghost-button {
    min-height: 46px;
    padding: 0 22px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.22);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.72);
    transform: translateY(-50%) scale(1.05);
}

.hero-control.prev {
    left: 24px;
}

.hero-control.next {
    right: 24px;
}

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

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

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

.section-wrap,
.page-shell,
.detail-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

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

.quick-search {
    padding-top: 36px;
}

.search-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 26px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.96), rgba(255, 247, 237, 0.96));
    box-shadow: var(--shadow);
}

.search-banner h2,
.section-head h2,
.footer-column h2,
.detail-copy h2,
.category-overview-copy h2,
.rank-copy h2 {
    margin: 0;
    color: var(--text-main);
}

.search-banner p,
.section-head p,
.page-hero p,
.category-overview-copy p,
.rank-copy p,
.footer-about p,
.detail-copy p {
    color: var(--text-soft);
    line-height: 1.72;
}

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

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

.section-head p {
    margin: 8px 0 0;
}

.section-head.tight {
    margin-bottom: 18px;
}

.section-link,
.text-link {
    min-height: 40px;
    padding: 0 16px;
    color: var(--amber-800);
    background: var(--amber-100);
}

.section-link:hover,
.text-link:hover {
    color: #ffffff;
    background: var(--amber-700);
}

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

.featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

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

.movie-card {
    min-width: 0;
}

.movie-card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(120, 53, 15, 0.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(120, 53, 15, 0.18);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amber-200), var(--amber-700));
}

.is-compact .poster-wrap,
.catalog-grid .poster-wrap {
    aspect-ratio: 3 / 4;
}

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

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

.poster-gradient {
    position: absolute;
    inset: auto 0 0;
    height: 55%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent);
    opacity: 0.85;
}

.play-chip {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(217, 119, 6, 0.92);
    font-size: 12px;
    font-weight: 800;
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.6);
    font-weight: 900;
}

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

.movie-card-body h3 {
    margin: 10px 0 8px;
    min-height: 2.7em;
    display: -webkit-box;
    overflow: hidden;
    color: var(--text-main);
    font-size: 18px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-card-link:hover h3 {
    color: var(--amber-700);
}

.movie-card-body p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.2em;
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #8a6a45;
    font-size: 12px;
}

.type-badge {
    flex: 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--amber-900);
    background: var(--amber-100);
    font-weight: 800;
}

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-row span,
.detail-tags span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #8a4f12;
    background: #fff7ed;
    font-size: 12px;
    font-weight: 700;
}

.category-section {
    padding-top: 28px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 188px;
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    box-shadow: 0 12px 30px rgba(120, 53, 15, 0.1);
}

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

.category-glow {
    position: absolute;
    right: -36px;
    top: -36px;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.22);
}

.category-card strong {
    position: relative;
    display: block;
    margin-bottom: 10px;
    color: var(--amber-900);
    font-size: 22px;
}

.category-card p,
.category-card em {
    position: relative;
    display: block;
    color: #7c5a39;
    line-height: 1.65;
}

.category-card em {
    margin-top: 12px;
    font-size: 13px;
    font-style: normal;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
}

.rank-panel {
    align-self: start;
    position: sticky;
    top: 92px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.mini-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: #fffaf4;
    transition: background 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
    background: var(--amber-100);
    transform: translateX(3px);
}

.mini-card img {
    width: 72px;
    height: 86px;
    object-fit: cover;
    border-radius: 10px;
}

.mini-info {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.mini-info strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--text-main);
}

.mini-info em {
    color: var(--text-soft);
    font-size: 13px;
    font-style: normal;
}

.mini-rank {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #ffffff;
    background: var(--amber-700);
    font-size: 13px;
    font-weight: 900;
}

.page-shell {
    padding: 40px 0 70px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    padding: 52px;
    border-radius: 30px;
    background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.34), transparent 36%), linear-gradient(135deg, var(--amber-900), var(--orange-900));
    color: #ffffff;
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 18px 0 14px;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.12;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
}

.filter-panel {
    margin: 0 0 30px;
}

.filter-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(120, 53, 15, 0.08);
}

.search-field {
    display: grid;
    gap: 8px;
    color: var(--amber-900);
    font-size: 13px;
    font-weight: 800;
}

.search-field input,
.select-group select {
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 13px;
    outline: none;
    background: #fffaf4;
    color: var(--text-main);
}

.search-field input {
    width: 100%;
    padding: 0 14px;
}

.search-field input:focus,
.select-group select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.select-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.select-group select {
    min-width: 128px;
    padding: 0 12px;
}

.empty-state {
    display: none;
    margin: 24px 0 0;
    padding: 22px;
    border-radius: 18px;
    color: #8a4f12;
    background: var(--amber-100);
    text-align: center;
    font-weight: 800;
}

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

.category-overview-grid {
    display: grid;
    gap: 22px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
}

.category-overview-copy h2 {
    font-size: 26px;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 56px 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(120, 53, 15, 0.08);
}

.rank-number {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-800));
    font-weight: 900;
}

.rank-cover img {
    width: 96px;
    height: 118px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-copy h2 {
    font-size: 21px;
}

.rank-copy p {
    margin: 8px 0 0;
}

.outline-button {
    min-height: 42px;
    padding: 0 18px;
    color: var(--amber-800);
    box-shadow: inset 0 0 0 1px var(--amber-500);
}

.outline-button:hover {
    color: #ffffff;
    background: var(--amber-700);
}

.detail-shell {
    padding: 28px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    color: #8a6a45;
    font-size: 14px;
}

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

.player-section {
    margin-bottom: 34px;
}

.video-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #050505;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

.video-box video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
    cursor: pointer;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-layer.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-circle {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-500), var(--amber-700));
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
    font-size: 34px;
    text-indent: 5px;
}

.play-layer strong {
    font-size: 20px;
}

.detail-main {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
    padding: 28px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(120, 53, 15, 0.08);
}

.detail-poster img {
    width: 100%;
    border-radius: 22px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.detail-copy h1 {
    margin: 18px 0 12px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.18;
}

.detail-copy h2 {
    margin: 26px 0 10px;
    font-size: 24px;
}

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

.detail-one-line {
    padding: 16px 18px;
    border-radius: 16px;
    background: var(--amber-50);
    color: #7c2d12 !important;
    font-weight: 700;
}

.related-wrap {
    width: 100%;
    padding-bottom: 0;
}

.site-footer {
    margin-top: 40px;
    color: #ffedd5;
    background: linear-gradient(90deg, var(--amber-900), var(--orange-900), var(--amber-900));
}

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

.footer-logo {
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 900;
}

.footer-about p {
    max-width: 520px;
    color: rgba(255, 237, 213, 0.82);
}

.footer-column h2 {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 18px;
}

.footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 9px;
}

.footer-column a {
    color: rgba(255, 237, 213, 0.82);
}

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

.footer-bottom {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(255, 237, 213, 0.18);
    color: rgba(255, 237, 213, 0.72);
    text-align: center;
}

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

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

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

    .split-layout,
    .detail-main,
    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }

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

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

    .menu-toggle {
        display: block;
    }

    .hero-carousel {
        height: 70vh;
        min-height: 520px;
    }

    .hero-content {
        left: 22px;
        right: 22px;
        bottom: 72px;
    }

    .hero-control {
        width: 42px;
        height: 42px;
        font-size: 32px;
    }

    .hero-control.prev {
        left: 12px;
    }

    .hero-control.next {
        right: 12px;
    }

    .search-banner,
    .section-head,
    .filter-row,
    .rank-row,
    .footer-inner {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .search-banner,
    .section-head {
        display: grid;
    }

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

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

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

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

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

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

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

    .rank-cover,
    .outline-button {
        display: none;
    }

    .detail-main {
        padding: 20px;
    }

    .video-box {
        border-radius: 18px;
    }
}

@media (max-width: 520px) {
    .brand-name {
        font-size: 17px;
    }

    .brand-subtitle {
        display: none;
    }

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

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

    .hero-meta span {
        font-size: 12px;
    }

    .select-group,
    .category-grid,
    .movie-grid,
    .featured-grid,
    .compact-grid,
    .catalog-grid,
    .category-sample-list {
        grid-template-columns: 1fr;
    }

    .poster-wrap,
    .is-compact .poster-wrap,
    .catalog-grid .poster-wrap {
        aspect-ratio: 16 / 10;
    }

    .mini-card {
        grid-template-columns: 64px minmax(0, 1fr);
    }

    .mini-card img {
        width: 64px;
        height: 76px;
    }

    .play-circle {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}
