:root {
    --color-primary: #f97316;
    --color-primary-dark: #ea580c;
    --color-red: #ef4444;
    --color-text: #111827;
    --color-muted: #6b7280;
    --color-soft: #fff7ed;
    --color-line: #e5e7eb;
    --shadow-card: 0 16px 35px rgba(15, 23, 42, 0.10);
    --shadow-hover: 0 24px 60px rgba(15, 23, 42, 0.18);
}

* {
    box-sizing: border-box;
}

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

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

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

main {
    min-height: 70vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.site-header-inner {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    font-weight: 800;
    color: #111827;
}

.site-logo-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #fb923c, #ef4444);
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}

.site-logo-text {
    font-size: 20px;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

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

.nav-link {
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease;
}

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

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(310px, 28vw);
}

.header-search input,
.big-search input,
.filter-controls input,
.filter-controls select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    background: #ffffff;
    color: var(--color-text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    height: 40px;
    padding: 0 14px;
}

.header-search input:focus,
.big-search input:focus,
.filter-controls input:focus,
.filter-controls select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.header-search button,
.big-search button {
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
    height: 40px;
    padding: 0 16px;
}

.header-search button:hover,
.big-search button:hover,
.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.28);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #fff7ed;
    cursor: pointer;
}

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

.mobile-nav {
    display: none;
    padding: 8px 24px 18px;
    border-top: 1px solid #f3f4f6;
    background: #ffffff;
}

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

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    color: #374151;
    font-weight: 650;
}

.mobile-nav a:hover {
    color: var(--color-primary);
    background: #fff7ed;
}

.home-wrap,
.section-block,
.filter-panel,
.page-hero,
.detail-hero,
.player-section,
.detail-section,
.category-overview-grid {
    width: min(1280px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

.home-wrap {
    padding: 32px 0 72px;
}

.hero-slider {
    position: relative;
    height: min(72vh, 620px);
    min-height: 500px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
    background: #111827;
}

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(249, 115, 22, 0.35), transparent 34%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.45) 46%, rgba(0, 0, 0, 0.1) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 60%);
}

.hero-content {
    position: absolute;
    left: clamp(24px, 6vw, 72px);
    bottom: clamp(30px, 7vw, 82px);
    width: min(720px, calc(100% - 48px));
    color: #ffffff;
}

.hero-kicker,
.page-hero span,
.section-heading span {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-kicker {
    padding: 7px 14px;
    margin-bottom: 16px;
}

.hero-content h1,
.hero-content h2 {
    margin: 0 0 16px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.hero-content p {
    margin: 0 0 20px;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(16px, 2vw, 20px);
}

.hero-tags,
.detail-tags,
.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.detail-tags span {
    padding: 6px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.92);
    font-size: 13px;
    font-weight: 700;
}

.hero-meta {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
}

.hero-meta span {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.hero-actions {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 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, #f97316, #ef4444);
}

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

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

.hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.hero-prev {
    left: 20px;
}

.hero-next {
    right: 20px;
}

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

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

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

.hero-quick-panel,
.filter-panel {
    margin-top: 28px;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid #fed7aa;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-card);
}

.hero-quick-panel h2,
.filter-panel h2 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.03em;
}

.hero-quick-panel p,
.filter-panel p,
.page-hero p,
.category-overview-card p {
    margin: 0;
    color: var(--color-muted);
}

.big-search {
    margin-top: 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.big-search input {
    height: 52px;
    padding: 0 18px;
}

.big-search button {
    padding: 0 26px;
}

.quick-categories {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-categories a {
    padding: 9px 14px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 14px;
    font-weight: 750;
}

.quick-categories a:hover {
    color: #ffffff;
    background: var(--color-primary);
}

.section-block {
    margin-top: 58px;
}

.section-heading {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.section-heading span {
    padding: 7px 13px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-heading a {
    margin-left: auto;
    color: var(--color-primary);
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid #f3f4f6;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #7c2d12);
}

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

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

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

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

.movie-type,
.movie-tag,
.play-mark,
.rank-badge {
    position: absolute;
    z-index: 2;
}

.movie-type {
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.64);
    font-size: 12px;
    font-weight: 750;
    backdrop-filter: blur(10px);
}

.movie-tag {
    left: 10px;
    bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--color-primary);
    font-size: 12px;
    font-weight: 750;
}

.play-mark {
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    transform: translate(-50%, -50%) scale(0.85);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.94);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
    top: 10px;
    left: 10px;
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-weight: 900;
}

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

.movie-card-body h3 {
    min-height: 3em;
    margin: 0 0 8px;
    color: #111827;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 850;
}

.movie-card-body h3 a:hover {
    color: var(--color-primary);
}

.movie-card-body p {
    min-height: 3.1em;
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    border-radius: 22px;
    color: #ffffff;
    background: #111827;
    box-shadow: var(--shadow-card);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-card:hover img {
    opacity: 0.7;
    transform: scale(1.06);
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.12));
}

.category-card span,
.category-card p {
    position: absolute;
    z-index: 1;
    left: 18px;
    right: 18px;
}

.category-card span {
    bottom: 78px;
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    bottom: 18px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 48px 84px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid #f3f4f6;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
}

.rank-number {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-weight: 900;
}

.rank-row img {
    width: 84px;
    height: 54px;
    border-radius: 12px;
    object-fit: cover;
    background: #111827;
}

.rank-info {
    min-width: 0;
}

.rank-info strong,
.rank-info em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info strong {
    font-size: 16px;
}

.rank-info em {
    color: #6b7280;
    font-size: 13px;
    font-style: normal;
}

.rank-action {
    color: var(--color-primary);
    font-weight: 800;
}

.page-hero {
    margin-top: 34px;
    padding: clamp(32px, 6vw, 70px);
    border-radius: 28px;
    color: #ffffff;
    background:
        radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.22), transparent 28%),
        linear-gradient(135deg, #fb923c, #ef4444 58%, #7c2d12);
    box-shadow: 0 24px 60px rgba(249, 115, 22, 0.25);
}

.page-hero span {
    padding: 7px 13px;
    background: rgba(255, 255, 255, 0.2);
}

.page-hero h1 {
    margin: 14px 0 12px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.compact-actions .ghost-button {
    color: #fff7ed;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    align-items: end;
}

.filter-controls {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 12px;
}

.filter-controls input,
.filter-controls select {
    height: 46px;
    padding: 0 13px;
}

.filter-empty {
    grid-column: 1 / -1;
    padding: 16px;
    border-radius: 14px;
    background: #fff7ed;
    color: #9a3412;
    font-weight: 750;
}

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

.category-overview-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    border: 1px solid #f3f4f6;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.category-cover {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 18px;
    background: #111827;
}

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

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

.category-overview-card h2 a:hover {
    color: var(--color-primary);
}

.category-samples {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-samples a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 13px;
    font-weight: 700;
}

.detail-hero {
    margin-top: 34px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb a {
    color: #ea580c;
    font-weight: 750;
}

.detail-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 34px;
    padding: clamp(24px, 4vw, 42px);
    border-radius: 28px;
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 20%, rgba(249, 115, 22, 0.45), transparent 28%),
        linear-gradient(135deg, #111827, #7c2d12 82%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.detail-poster {
    overflow: hidden;
    border-radius: 22px;
    background: #111827;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.28);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

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

.detail-one-line {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 19px;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 750;
}

.detail-tags {
    margin-top: 18px;
}

.player-section,
.detail-section {
    margin-top: 44px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.18), rgba(0, 0, 0, 0.72));
    cursor: pointer;
    display: grid;
    place-items: center;
    gap: 12px;
    align-content: center;
}

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

.player-overlay span {
    width: 84px;
    height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 22px 48px rgba(249, 115, 22, 0.35);
    font-size: 32px;
    text-indent: 4px;
}

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

.player-message {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    transform: translate(-50%, -50%);
    padding: 14px 18px;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(220, 38, 38, 0.86);
    font-weight: 750;
}

.detail-section {
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid #f3f4f6;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.detail-section h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.detail-section p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

.site-footer {
    margin-top: 72px;
    padding: 36px 0;
    color: #6b7280;
    background: #111827;
}

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

.site-footer strong {
    color: #ffffff;
    font-size: 20px;
}

.site-footer p {
    max-width: 720px;
    margin: 8px 0 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-content: start;
}

.footer-links a {
    color: #fed7aa;
    font-weight: 750;
}

[hidden] {
    display: none !important;
}

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

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

    .filter-panel,
    .filter-controls {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

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

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

    .hero-control {
        display: none;
    }

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

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

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

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

@media (max-width: 640px) {
    .site-header-inner {
        height: 62px;
        padding: 0 16px;
    }

    .site-logo-text {
        font-size: 18px;
    }

    .home-wrap,
    .section-block,
    .filter-panel,
    .page-hero,
    .detail-hero,
    .player-section,
    .detail-section,
    .category-overview-grid {
        width: min(100% - 24px, 1280px);
    }

    .hero-slider {
        min-height: 560px;
        height: 72vh;
        border-radius: 20px;
    }

    .hero-content {
        left: 20px;
        right: 20px;
        bottom: 52px;
        width: auto;
    }

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

    .hero-actions,
    .big-search {
        grid-template-columns: 1fr;
    }

    .big-search {
        display: grid;
    }

    .movie-grid,
    .movie-grid-large,
    .category-grid,
    .category-overview-grid,
    .rank-list {
        grid-template-columns: 1fr;
    }

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

    .rank-action {
        display: none;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .section-heading a {
        margin-left: 0;
    }

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