* {
    box-sizing: border-box;
}

:root {
    --bg: #fffaf0;
    --panel: #ffffff;
    --panel-soft: #fff7ed;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --brand: #f97316;
    --brand-dark: #c2410c;
    --brand-soft: #ffedd5;
    --gold: #f59e0b;
    --shadow: 0 20px 50px rgba(194, 65, 12, 0.12);
    --radius: 24px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fffbeb 100%);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

img,
video {
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 247, 237, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(251, 146, 60, 0.22);
    box-shadow: 0 12px 30px rgba(251, 146, 60, 0.08);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #111827;
    white-space: nowrap;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--gold));
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.35);
}

.brand-text {
    font-size: 1.38rem;
    letter-spacing: 0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav-link {
    padding: 9px 15px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--brand-dark);
    background: rgba(255, 237, 213, 0.95);
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(251, 146, 60, 0.26);
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(251, 146, 60, 0.08);
}

.header-search input {
    width: 220px;
    border: 0;
    outline: none;
    padding: 8px 10px 8px 14px;
    background: transparent;
    color: var(--ink);
}

.header-search button,
.primary-button,
.secondary-button,
.watch-link,
.filter-panel button,
.player-overlay button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.primary-button,
.watch-link,
.filter-panel button,
.player-overlay button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--gold));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.24);
}

.header-search button {
    padding: 8px 16px;
}

.header-search button:hover,
.primary-button:hover,
.watch-link:hover,
.filter-panel button:hover,
.player-overlay button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(249, 115, 22, 0.32);
}

.secondary-button {
    color: var(--brand-dark);
    background: #ffffff;
    border: 1px solid rgba(251, 146, 60, 0.32);
    padding: 13px 24px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.15);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--brand-dark);
    border-radius: 99px;
}

main {
    min-height: 70vh;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    background: radial-gradient(circle at 14% 20%, rgba(251, 146, 60, 0.25), transparent 30%),
        radial-gradient(circle at 82% 18%, rgba(245, 158, 11, 0.28), transparent 32%),
        linear-gradient(135deg, #fff7ed 0%, #ffedd5 50%, #fef3c7 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    filter: blur(26px);
    opacity: 0.26;
    animation: pulseGlow 8s ease-in-out infinite;
}

.hero::before {
    left: 8%;
    top: 18%;
    background: #fb923c;
}

.hero::after {
    right: 10%;
    bottom: 8%;
    background: #f59e0b;
    animation-delay: 1.5s;
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: min(1240px, calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 56px;
    align-items: center;
    padding: 64px 0;
}

.hero-kicker,
.section-title span,
.detail-kicker,
.rank-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--brand-dark);
    background: rgba(255, 237, 213, 0.9);
    border: 1px solid rgba(251, 146, 60, 0.28);
    font-size: 0.9rem;
    font-weight: 800;
}

.hero h1 {
    margin: 24px 0 18px;
    font-size: clamp(2.4rem, 6vw, 5.2rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
    color: #111827;
}

.hero h1 strong {
    color: var(--brand);
}

.hero p {
    max-width: 760px;
    color: #4b5563;
    font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 34px 0;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
}

.hero-search {
    display: flex;
    max-width: 620px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(251, 146, 60, 0.24);
    border-radius: 999px;
    box-shadow: var(--shadow);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 13px 18px;
    color: var(--ink);
}

.hero-search button {
    padding: 13px 22px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--gold));
    font-weight: 800;
    cursor: pointer;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 30px;
    max-width: 680px;
}

.hero-stat {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(251, 146, 60, 0.16);
    box-shadow: 0 18px 36px rgba(251, 146, 60, 0.08);
}

.hero-stat strong {
    display: block;
    color: #111827;
    font-size: 1.6rem;
}

.hero-stat span {
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-showcase {
    position: relative;
}

.hero-card {
    position: relative;
    overflow: hidden;
    display: none;
    min-height: 510px;
    border-radius: 34px;
    background: #111827;
    color: #ffffff;
    box-shadow: 0 35px 90px rgba(194, 65, 12, 0.28);
}

.hero-card.is-active {
    display: block;
    animation: fadeIn 0.45s ease both;
}

.hero-card .poster {
    position: absolute;
    inset: 0;
    border-radius: 0;
}

.hero-card .poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.05) 0%, rgba(17, 24, 39, 0.82) 76%);
}

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

.hero-card-content {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 34px;
}

.hero-card-content h2 {
    margin: 12px 0 10px;
    font-size: 2rem;
    line-height: 1.18;
}

.hero-card-content p {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
}

.hero-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-chip-row span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 237, 213, 0.95);
    color: var(--brand-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

.hero-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(194, 65, 12, 0.24);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 28px;
    background: var(--brand);
}

.page-hero {
    padding: 76px 0 48px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 58%, #fef3c7 100%);
    border-bottom: 1px solid rgba(251, 146, 60, 0.18);
}

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

.page-hero h1 {
    margin: 12px 0 12px;
    color: #111827;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: #4b5563;
    font-size: 1.12rem;
}

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

.section-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 34px;
}

.section-title h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.15;
}

.section-title p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
}

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

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

.movie-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: var(--radius);
    background: #ffffff;
    border: 1px solid rgba(251, 146, 60, 0.15);
    box-shadow: 0 18px 45px rgba(194, 65, 12, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 60px rgba(194, 65, 12, 0.16);
}

.poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #fb923c, #f59e0b);
}

.poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
}

.poster-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    text-align: center;
    padding: 20px;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
        linear-gradient(135deg, #f97316, #f59e0b);
}

.poster-fallback strong {
    font-size: 2rem;
    letter-spacing: 0.06em;
}

.poster-fallback em {
    font-style: normal;
    opacity: 0.82;
}

.poster.has-image .poster-fallback {
    display: none;
}

.play-badge {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 4;
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.76);
    backdrop-filter: blur(8px);
    font-size: 0.82rem;
    font-weight: 800;
}

.movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px;
}

.movie-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 0.86rem;
}

.movie-card h3 {
    margin: 10px 0 8px;
    color: #111827;
    font-size: 1.08rem;
    line-height: 1.3;
}

.movie-card h3 a:hover {
    color: var(--brand-dark);
}

.movie-card p {
    display: -webkit-box;
    min-height: 50px;
    margin: 0 0 14px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    color: var(--muted);
    font-size: 0.94rem;
}

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

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
}

.card-category {
    color: var(--brand-dark);
    font-weight: 800;
    font-size: 0.9rem;
}

.watch-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    font-size: 0.9rem;
}

.feature-strip {
    background: #ffffff;
    border-bottom: 1px solid rgba(251, 146, 60, 0.16);
}

.feature-grid {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    padding: 34px 0;
}

.feature-card,
.category-card,
.rank-item,
.info-panel,
.text-panel,
.filter-panel,
.recommend-panel {
    border-radius: var(--radius);
    background: #ffffff;
    border: 1px solid rgba(251, 146, 60, 0.15);
    box-shadow: 0 18px 45px rgba(194, 65, 12, 0.08);
}

.feature-card {
    padding: 28px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
}

.feature-card strong {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--gold));
    margin-bottom: 16px;
}

.feature-card h3,
.category-card h3,
.info-panel h3,
.text-panel h2,
.recommend-panel h2 {
    margin: 0 0 10px;
    color: #111827;
}

.feature-card p,
.category-card p {
    margin: 0;
    color: var(--muted);
}

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

.category-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 270px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 60px rgba(194, 65, 12, 0.16);
}

.category-visual {
    min-height: 110px;
    background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.3), transparent 24%),
        linear-gradient(135deg, #fb923c, #f59e0b);
}

.category-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.category-card-body a {
    margin-top: auto;
    color: var(--brand-dark);
    font-weight: 900;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, 0.35fr));
    gap: 12px;
    padding: 18px;
    margin-bottom: 28px;
    background: rgba(255, 255, 255, 0.86);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(251, 146, 60, 0.24);
    border-radius: 16px;
    outline: 0;
    padding: 12px 14px;
    color: var(--ink);
    background: #ffffff;
}

.filter-panel button {
    padding: 12px 18px;
}

.result-note {
    margin: -10px 0 22px;
    color: var(--muted);
    font-weight: 700;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 72px 100px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    padding: 14px;
}

.rank-number {
    display: inline-flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--gold));
    font-weight: 900;
    font-size: 1.2rem;
}

.rank-item .poster {
    border-radius: 18px;
}

.rank-info h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 1.05rem;
}

.rank-info p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.92rem;
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--brand-dark);
    font-size: 0.86rem;
    font-weight: 800;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 26px 0;
    color: var(--muted);
    font-size: 0.94rem;
}

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

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 34px;
    border-radius: 34px;
    background: linear-gradient(135deg, #fff7ed, #ffedd5 60%, #fef3c7);
    box-shadow: var(--shadow);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 34px;
    align-items: start;
}

.player-box {
    overflow: hidden;
    border-radius: 28px;
    background: #111827;
    box-shadow: 0 24px 60px rgba(17, 24, 39, 0.22);
}

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

.video-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.18), rgba(2, 6, 23, 0.55));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-shell.is-playing .player-overlay {
    opacity: 0;
    visibility: hidden;
}

.player-overlay button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    font-size: 1rem;
}

.player-status {
    padding: 14px 18px;
    color: rgba(255, 255, 255, 0.76);
    background: #111827;
    font-size: 0.92rem;
}

.detail-info h1 {
    margin: 18px 0 14px;
    color: #111827;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.08;
}

.detail-info .one-line {
    margin: 0 0 22px;
    color: #4b5563;
    font-size: 1.16rem;
}

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

.meta-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(251, 146, 60, 0.16);
}

.meta-card span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

.meta-card strong {
    color: #111827;
}

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

.text-panel,
.info-panel,
.recommend-panel {
    padding: 28px;
}

.text-panel + .text-panel {
    margin-top: 22px;
}

.text-panel p,
.info-panel p {
    margin: 0;
    color: #4b5563;
    line-height: 1.9;
}

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

.related-item {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    transition: background 0.2s ease;
}

.related-item:hover {
    background: var(--brand-soft);
}

.related-item .poster {
    border-radius: 14px;
}

.related-item h3 {
    margin: 0 0 5px;
    color: #111827;
    font-size: 0.98rem;
}

.related-item span {
    color: var(--muted);
    font-size: 0.86rem;
}

.pagination-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.pagination-links a {
    padding: 10px 15px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(251, 146, 60, 0.22);
    color: var(--brand-dark);
    font-weight: 800;
}

.empty-state {
    display: none;
    padding: 34px;
    text-align: center;
    color: var(--muted);
    border-radius: var(--radius);
    background: #ffffff;
    border: 1px dashed rgba(251, 146, 60, 0.4);
}

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

.site-footer {
    margin-top: 72px;
    background: linear-gradient(180deg, #111827, #0f172a);
    color: #d1d5db;
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(180px, 0.55fr));
    gap: 38px;
    padding: 48px 0;
}

.brand-footer {
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-brand p {
    max-width: 520px;
    margin: 0;
    color: #9ca3af;
}

.footer-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-group h3 {
    margin: 0 0 8px;
    color: #ffffff;
}

.footer-group a {
    color: #d1d5db;
}

.footer-group a:hover {
    color: #fdba74;
}

@keyframes pulseGlow {
    0%,
    100% {
        transform: scale(0.94);
    }
    50% {
        transform: scale(1.08);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@media (max-width: 980px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .main-nav {
        display: none;
        order: 3;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

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

    .nav-link {
        background: #ffffff;
    }

    .header-search {
        order: 4;
        width: 100%;
    }

    .header-search input {
        width: 100%;
        flex: 1;
    }

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

    .hero-inner {
        min-height: auto;
        gap: 30px;
    }

    .hero-card {
        min-height: 460px;
    }

    .feature-grid,
    .rank-list,
    .footer-inner,
    .filter-panel {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .hero,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner,
    .section-wrap,
    .detail-wrap,
    .page-hero-inner,
    .feature-grid,
    .footer-inner {
        width: min(100% - 24px, 1240px);
    }

    .hero-search {
        border-radius: 24px;
        flex-direction: column;
    }

    .hero-search button {
        width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

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

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

    .rank-item {
        grid-template-columns: 54px 84px minmax(0, 1fr);
        gap: 12px;
    }

    .rank-number {
        width: 46px;
        height: 46px;
    }

    .detail-hero {
        padding: 18px;
        border-radius: 24px;
    }

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

    .text-panel,
    .info-panel,
    .recommend-panel {
        padding: 20px;
    }
}

@media (max-width: 460px) {
    .movie-grid,
    .movie-grid.compact-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero-card-content {
        padding: 22px;
    }
}
