:root {
    --amber: #d97706;
    --amber-strong: #f59e0b;
    --blue: #2563eb;
    --blue-soft: #dbeafe;
    --dark: #111827;
    --slate: #334155;
    --muted: #64748b;
    --soft: #f8fafc;
    --line: #e2e8f0;
    --card: #ffffff;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--dark);
    background: linear-gradient(180deg, #fffbeb 0%, #f8fafc 28%, #eef6ff 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(239, 246, 255, 0.94), rgba(255, 251, 235, 0.94));
    border-bottom: 1px solid rgba(251, 191, 36, 0.28);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: white;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--amber-strong), var(--blue));
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.24);
}

.brand-text strong {
    display: block;
    font-size: 22px;
    line-height: 1;
    background: linear-gradient(90deg, var(--amber), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links > a {
    color: #475569;
    font-weight: 650;
    transition: color 0.25s ease, transform 0.25s ease;
}

.nav-links > a:hover,
.nav-links > a.active {
    color: var(--amber);
    transform: translateY(-1px);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
}

.nav-search input,
.large-search input,
.quick-search-panel input,
.filter-panel input,
.filter-panel select {
    border: 0;
    outline: 0;
    background: white;
    color: var(--dark);
}

.nav-search input {
    width: 190px;
    padding: 9px 8px 9px 14px;
    border-radius: 999px;
}

.nav-search button,
.large-search button,
.quick-search-panel button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: white;
    background: linear-gradient(135deg, var(--amber-strong), #fb923c);
    cursor: pointer;
    font-weight: 700;
}

.nav-toggle {
    display: none;
    border: 0;
    background: rgba(245, 158, 11, 0.12);
    color: var(--dark);
    width: 42px;
    height: 42px;
    border-radius: 12px;
    cursor: pointer;
}

.hero-wrap {
    width: min(1200px, calc(100% - 32px));
    margin: 28px auto 0;
}

.hero-shell {
    position: relative;
    height: min(72vh, 620px);
    min-height: 480px;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: var(--shadow);
    isolation: isolate;
    background: var(--dark);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.9s ease;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 2;
}

.hero-image,
.hero-image img {
    width: 100%;
    height: 100%;
}

.hero-image img {
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.05) contrast(1.02);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(2, 6, 23, 0.54) 44%, rgba(2, 6, 23, 0.08) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.04) 52%);
}

.hero-content {
    position: absolute;
    z-index: 3;
    left: clamp(24px, 6vw, 72px);
    bottom: clamp(54px, 9vw, 92px);
    width: min(720px, calc(100% - 48px));
    color: white;
}

.eyebrow,
.section-kicker,
.sub-hero span,
.detail-side .eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--amber-strong), var(--blue));
    font-weight: 750;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.28);
}

.hero-content h1 {
    margin: 18px 0 14px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

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

.hero-tags,
.movie-badges,
.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.movie-badges span,
.detail-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #92400e;
    background: linear-gradient(90deg, #fef3c7, #dbeafe);
    font-size: 13px;
    font-weight: 700;
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--amber-strong), #fb923c);
    box-shadow: 0 18px 42px rgba(245, 158, 11, 0.32);
}

.btn-secondary {
    color: white;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 6;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    color: white;
    background: rgba(2, 6, 23, 0.56);
    cursor: pointer;
    font-size: 32px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.25s ease, background 0.25s ease;
}

.hero-shell:hover .hero-arrow {
    opacity: 1;
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

.hero-dots {
    position: absolute;
    z-index: 7;
    bottom: 20px;
    left: 50%;
    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.52);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

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

.quick-search-panel,
.page-section,
.sub-hero,
.detail-inner,
.detail-content {
    width: min(1200px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.quick-search-panel {
    margin-top: 24px;
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.quick-search-panel form,
.large-search {
    display: flex;
    gap: 10px;
}

.quick-search-panel input,
.large-search input {
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid rgba(245, 158, 11, 0.26);
    border-radius: 999px;
}

.quick-links,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.quick-links a,
.footer-links a,
.text-link {
    color: var(--amber);
    font-weight: 750;
}

.page-section {
    margin-top: 54px;
}

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

.section-head h2 {
    margin: 12px 0 8px;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.section-head p,
.sub-hero p,
.category-overview-card p,
.detail-side p,
.story-card p {
    color: var(--muted);
    line-height: 1.8;
}

.section-head > a {
    color: var(--amber);
    font-weight: 800;
    white-space: nowrap;
}

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

.category-card {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    border-radius: 22px;
    background: var(--dark);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.category-card img {
    width: 100%;
    height: 100%;
    min-height: 170px;
    object-fit: cover;
    opacity: 0.7;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.category-card:hover img {
    opacity: 0.92;
    transform: scale(1.08);
}

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

.category-card span {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
    bottom: 16px;
    color: white;
}

.category-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 20px;
}

.category-card em,
.movie-info em,
.rank-row em {
    display: -webkit-box;
    overflow: hidden;
    font-style: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.category-card em {
    color: rgba(255, 255, 255, 0.74);
    font-size: 13px;
    line-height: 1.55;
}

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

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

.movie-card {
    border-radius: 20px;
    background: var(--card);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.09);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.movie-link {
    display: block;
    height: 100%;
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #111827;
}

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

.movie-card:hover .movie-cover img {
    transform: scale(1.08);
}

.movie-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), transparent 62%);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.movie-card:hover .movie-cover::after {
    opacity: 1;
}

.movie-duration {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    padding: 4px 8px;
    color: white;
    border-radius: 9px;
    background: rgba(2, 6, 23, 0.74);
    font-size: 12px;
    font-weight: 700;
}

.movie-play {
    position: absolute;
    z-index: 4;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    color: var(--amber);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.movie-card:hover .movie-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-info {
    display: block;
    padding: 16px;
}

.movie-info strong {
    display: -webkit-box;
    min-height: 52px;
    overflow: hidden;
    margin: 12px 0 8px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.25s ease;
}

.movie-card:hover .movie-info strong {
    color: var(--amber);
}

.movie-info em {
    min-height: 44px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.58;
}

.movie-info small {
    display: block;
    margin-top: 12px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.45;
}

.movie-card-horizontal .movie-link {
    display: grid;
    grid-template-columns: 170px 1fr;
}

.movie-card-horizontal .movie-cover {
    aspect-ratio: auto;
    height: 100%;
    min-height: 132px;
}

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

.ranking-card,
.ranking-list-wide,
.detail-rank-box,
.story-card,
.category-overview-card,
.player-card,
.detail-side {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.ranking-card {
    position: sticky;
    top: 92px;
    padding: 22px;
}

.ranking-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.ranking-title span {
    color: white;
    background: linear-gradient(135deg, var(--amber-strong), #ef4444);
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.ranking-title h2 {
    margin: 0 auto 0 0;
}

.ranking-title a {
    color: var(--amber);
    font-weight: 800;
}

.rank-row {
    list-style: none;
    border-bottom: 1px solid var(--line);
}

.rank-row:last-child {
    border-bottom: 0;
}

.rank-row a {
    display: grid;
    grid-template-columns: auto 68px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
}

.rank-number {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: white;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--amber-strong), var(--blue));
    font-weight: 900;
}

.rank-row img {
    width: 68px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
}

.rank-row strong {
    display: block;
    color: var(--dark);
}

.rank-row em,
.rank-row small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.rank-row b {
    color: var(--amber);
    font-size: 13px;
}

.sub-hero {
    margin-top: 28px;
    padding: clamp(40px, 7vw, 74px);
    border-radius: 30px;
    color: var(--dark);
    background: radial-gradient(circle at 20% 15%, rgba(245, 158, 11, 0.24), transparent 30%),
        radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.2), transparent 30%),
        rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

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

.sub-hero p {
    max-width: 820px;
    margin: 0;
    font-size: 18px;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
    color: #64748b;
    font-size: 14px;
}

.crumbs a {
    color: var(--amber);
    font-weight: 800;
}

.crumbs.light {
    color: rgba(255, 255, 255, 0.76);
}

.crumbs.light a {
    color: white;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 22px;
    padding: 18px;
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    overflow: hidden;
    border-radius: 18px;
}

.category-covers img {
    width: 100%;
    height: 92px;
    object-fit: cover;
}

.category-overview-card h2 {
    margin: 8px 0;
    font-size: 26px;
}

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.filter-panel input,
.filter-panel select {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.filter-panel input {
    flex: 1 1 260px;
}

.filter-panel select {
    min-width: 150px;
}

.large-search {
    margin-top: 26px;
    max-width: 720px;
}

.ranking-list-section {
    margin-bottom: 60px;
}

.ranking-list-wide {
    padding: 12px 26px;
}

.ranking-list-wide .rank-row a {
    grid-template-columns: auto 96px 1fr auto;
}

.ranking-list-wide .rank-row img {
    width: 96px;
    height: 62px;
}

.detail-hero {
    position: relative;
    min-height: 720px;
    margin-top: -1px;
    overflow: hidden;
    background: #020617;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px) saturate(1.1);
    transform: scale(1.08);
    opacity: 0.45;
}

.detail-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.42), rgba(2, 6, 23, 0.92));
}

.detail-inner {
    position: relative;
    z-index: 2;
    padding: 36px 0 56px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: stretch;
    margin-top: 28px;
}

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

.video-shell {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 520px;
    background: black;
}

.movie-player {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 520px;
    background: black;
}

.player-start {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
    min-width: 138px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--amber-strong), #fb923c);
    box-shadow: 0 18px 52px rgba(245, 158, 11, 0.36);
    cursor: pointer;
    font-weight: 900;
}

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

.detail-side {
    padding: 20px;
    color: white;
    background: rgba(15, 23, 42, 0.62);
    border-color: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
}

.detail-side img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 18px;
}

.detail-side h1 {
    margin: 16px 0 12px;
    font-size: 34px;
    line-height: 1.18;
}

.detail-side p {
    color: rgba(255, 255, 255, 0.76);
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    margin-top: 38px;
    margin-bottom: 60px;
}

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

.story-card h2 {
    margin: 28px 0 12px;
    font-size: 26px;
}

.story-card h2:first-of-type {
    margin-top: 20px;
}

.meta-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 30px 0 0;
}

.meta-list div {
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
}

.meta-list dt {
    color: #94a3b8;
    font-size: 12px;
}

.meta-list dd {
    margin: 4px 0 0;
    color: #0f172a;
    font-weight: 800;
}

.detail-rank-box {
    position: sticky;
    top: 92px;
    align-self: start;
    padding: 20px;
}

.detail-rank-box h2 {
    margin: 0 0 12px;
}

.related-section {
    margin-top: 38px;
}

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

.site-footer {
    margin-top: 72px;
    color: #cbd5e1;
    background: linear-gradient(135deg, #0f172a, #1e293b 56%, #020617);
}

.footer-inner {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 44px 0;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.footer-brand {
    color: white;
    font-size: 24px;
}

.site-footer p {
    max-width: 540px;
    color: #94a3b8;
    line-height: 1.7;
}

.footer-links a {
    color: #fbbf24;
}

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

@media (max-width: 1050px) {
    .layout-two,
    .detail-grid,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .ranking-card,
    .detail-rank-box {
        position: static;
    }

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

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

@media (max-width: 860px) {
    .nav-toggle {
        display: grid;
        place-items: center;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 74px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 18px;
        border: 1px solid rgba(251, 191, 36, 0.28);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-search {
        width: 100%;
    }

    .nav-search input {
        flex: 1;
        width: auto;
    }

    .hero-shell {
        min-height: 560px;
    }

    .hero-slide::after {
        background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.24));
    }

    .quick-search-panel,
    .section-head,
    .footer-inner {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .quick-search-panel {
        display: block;
    }

    .quick-search-panel form {
        margin-bottom: 14px;
    }

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

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

    .video-shell,
    .movie-player {
        min-height: 360px;
    }

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

@media (max-width: 560px) {
    .hero-wrap,
    .quick-search-panel,
    .page-section,
    .sub-hero,
    .detail-inner,
    .detail-content,
    .footer-inner,
    .nav-inner {
        width: min(100% - 22px, 1200px);
    }

    .hero-shell {
        min-height: 520px;
        border-radius: 22px;
    }

    .hero-content {
        left: 18px;
        right: 18px;
        bottom: 58px;
        width: auto;
    }

    .hero-tags span:nth-child(n+4) {
        display: none;
    }

    .hero-arrow {
        display: none;
    }

    .quick-search-panel form,
    .large-search {
        flex-direction: column;
    }

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

    .movie-card-horizontal .movie-link {
        grid-template-columns: 1fr;
    }

    .category-card,
    .category-card img {
        min-height: 210px;
    }

    .sub-hero {
        padding: 30px 20px;
        border-radius: 22px;
    }

    .rank-row a,
    .ranking-list-wide .rank-row a {
        grid-template-columns: auto 72px 1fr;
    }

    .rank-row b {
        display: none;
    }

    .ranking-list-wide .rank-row img {
        width: 72px;
        height: 50px;
    }

    .detail-hero {
        min-height: auto;
    }

    .detail-grid {
        gap: 18px;
    }

    .video-shell,
    .movie-player {
        min-height: 260px;
    }

    .detail-side h1 {
        font-size: 28px;
    }

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