:root {
    color-scheme: light;
    --orange: #f97316;
    --rose: #f43f5e;
    --amber: #f59e0b;
    --ink: #111827;
    --muted: #6b7280;
    --line: #f1f5f9;
    --soft: #fff7ed;
    --panel: #ffffff;
    --shadow: 0 20px 55px rgba(17, 24, 39, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 48%, #fffbeb 100%);
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(249, 115, 22, 0.16);
    box-shadow: 0 8px 26px rgba(249, 115, 22, 0.08);
    backdrop-filter: blur(18px);
}

.nav-shell {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    box-shadow: 0 12px 24px rgba(244, 63, 94, 0.26);
}

.brand-text {
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--orange), var(--rose), var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.mobile-link {
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #fff7ed;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: #374151;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(249, 115, 22, 0.14);
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 16px 16px;
}

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

.mobile-link {
    padding: 11px 14px;
    border-radius: 14px;
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--orange);
    background: #fff7ed;
}

.hero-carousel {
    position: relative;
    height: 640px;
    overflow: hidden;
    background: #111827;
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.9) 0%, rgba(17, 24, 39, 0.68) 45%, rgba(17, 24, 39, 0.24) 100%);
}

.hero-content {
    position: relative;
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: center;
    gap: 48px;
    color: #ffffff;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    font-weight: 800;
    letter-spacing: 0.03em;
}

.hero-copy h1,
.inner-hero h1,
.detail-intro h1 {
    margin: 18px 0 14px;
    font-size: clamp(2.25rem, 5vw, 4.8rem);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.hero-one-line,
.inner-hero p,
.detail-intro p {
    margin: 0;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.12rem;
}

.hero-tags,
.card-tags,
.tag-cloud,
.footer-tags,
.detail-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags {
    margin: 24px 0 30px;
}

.hero-tags span,
.tag-cloud span,
.footer-tags span {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.home-search button,
.category-block-head a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.home-search button,
.category-block-head a {
    color: #ffffff;
    border: 0;
    background: linear-gradient(90deg, var(--orange), var(--rose));
    box-shadow: 0 16px 34px rgba(244, 63, 94, 0.3);
}

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

.primary-btn:hover,
.ghost-btn:hover,
.home-search button:hover,
.category-block-head a:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(244, 63, 94, 0.34);
}

.hero-poster {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 3 / 4;
    isolation: isolate;
}

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

.hero-poster span,
.card-play,
.player-icon {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 68px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    box-shadow: 0 18px 34px rgba(244, 63, 94, 0.42);
}

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

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
}

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-prev,
.hero-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

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

.hero-dot.active {
    width: 32px;
    background: linear-gradient(90deg, var(--orange), var(--rose));
}

.search-band {
    margin-top: -44px;
    position: relative;
    z-index: 8;
}

.search-card {
    display: grid;
    grid-template-columns: 1fr minmax(360px, 520px);
    align-items: center;
    gap: 24px;
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-card strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 950;
}

.search-card span {
    color: var(--muted);
}

.home-search {
    display: flex;
    gap: 12px;
}

.home-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    background: #ffffff;
    padding: 13px 16px;
    color: var(--ink);
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.home-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.page-section {
    padding: 64px 0;
}

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

.section-head > div {
    display: grid;
    grid-template-columns: 8px 1fr;
    column-gap: 14px;
    align-items: start;
}

.section-line {
    width: 8px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--orange), var(--rose));
    grid-row: 1 / span 2;
}

.section-head h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    line-height: 1.1;
    font-weight: 950;
}

.section-head p {
    margin: 6px 0 0;
    color: var(--muted);
}

.section-more {
    color: var(--orange);
    font-weight: 900;
}

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

.category-tile {
    position: relative;
    min-height: 190px;
    border-radius: 24px;
    overflow: hidden;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
    background: #111827;
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.14);
}

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

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.86));
}

.category-tile span,
.category-tile em {
    position: relative;
    z-index: 1;
}

.category-tile span {
    font-size: 1.25rem;
    font-weight: 950;
}

.category-tile em {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.82);
    font-style: normal;
    font-size: 0.9rem;
}

.category-tile:hover img {
    transform: scale(1.08);
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(17, 24, 39, 0.09);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 48px rgba(249, 115, 22, 0.18);
}

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

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

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

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.76));
    transition: opacity 0.25s ease;
}

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

.card-play {
    z-index: 1;
    width: 48px;
    height: 48px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.movie-card:hover .card-play {
    opacity: 1;
}

.card-duration,
.card-badge {
    position: absolute;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    background: rgba(17, 24, 39, 0.74);
    backdrop-filter: blur(8px);
}

.card-duration {
    right: 10px;
    bottom: 10px;
}

.card-badge {
    top: 10px;
    right: 10px;
    background: rgba(249, 115, 22, 0.88);
}

.card-body {
    padding: 18px;
}

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

.card-title {
    display: -webkit-box;
    min-height: 2.9em;
    overflow: hidden;
    color: #111827;
    font-weight: 950;
    line-height: 1.42;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.card-title:hover {
    color: var(--orange);
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 700;
}

.card-meta span {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f8fafc;
}

.card-tags {
    margin-top: 12px;
}

.card-tags span {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 999px;
    color: #ea580c;
    background: #fff7ed;
    font-size: 0.78rem;
    font-weight: 800;
}

.highlight-strip {
    padding: 66px 0;
    background: rgba(255, 255, 255, 0.64);
    border-block: 1px solid rgba(249, 115, 22, 0.12);
}

.split-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 42px;
}

.ranking-list,
.side-list {
    display: grid;
    gap: 12px;
}

.rank-item {
    display: grid;
    grid-template-columns: auto 96px 1fr;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.side-list .rank-item {
    grid-template-columns: 92px 1fr;
}

.rank-item:hover {
    transform: translateX(4px);
    box-shadow: 0 16px 30px rgba(249, 115, 22, 0.14);
}

.rank-number {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    font-weight: 950;
}

.rank-item img {
    width: 96px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
}

.side-list .rank-item img {
    width: 92px;
}

.rank-info strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-info em {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-style: normal;
    font-size: 0.82rem;
}

.inner-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--rose), var(--amber));
}

.inner-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.22), transparent 32%), rgba(17, 24, 39, 0.15);
}

.inner-hero .container {
    position: relative;
}

.inner-hero h1 {
    max-width: 900px;
}

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

.category-block {
    padding: 26px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.08);
}

.category-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.category-block h2 {
    margin: 0 0 8px;
    font-size: 1.6rem;
    font-weight: 950;
}

.category-block p {
    margin: 0;
    color: var(--muted);
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 220px 220px;
    gap: 14px;
    padding: 18px;
    margin-bottom: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: #475569;
    font-weight: 800;
}

.empty-state {
    display: none;
    padding: 48px;
    margin-top: 20px;
    text-align: center;
    border-radius: 24px;
    color: var(--muted);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

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

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

.rank-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
    padding: 16px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.09);
}

.rank-card-cover {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #111827;
}

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

.rank-card-cover span {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    font-weight: 950;
}

.rank-card-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 1.05rem;
    font-weight: 950;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-card-body p {
    display: -webkit-box;
    overflow: hidden;
    margin: 10px 0 12px;
    color: var(--muted);
    font-size: 0.92rem;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.detail-hero {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px) saturate(1.15);
    transform: scale(1.04);
    opacity: 0.7;
}

.detail-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.6), rgba(17, 24, 39, 0.26));
}

.detail-hero-content {
    position: relative;
    padding: 42px 0 58px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 34px;
}

.breadcrumb a:hover {
    color: #fed7aa;
}

.detail-intro {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: center;
}

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

.detail-meta-row {
    margin: 24px 0 28px;
}

.detail-meta-row span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    font-weight: 800;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    padding-top: 48px;
}

.detail-main,
.detail-aside {
    min-width: 0;
}

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

.movie-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    overflow: hidden;
    color: #ffffff;
    border: 0;
    background: #111827;
}

.player-cover-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    filter: blur(3px) saturate(1.1);
    transform: scale(1.03);
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.55);
}

.player-cover strong,
.player-icon {
    position: relative;
    z-index: 1;
}

.player-cover strong {
    max-width: min(520px, 88%);
    text-align: center;
    font-size: clamp(1.35rem, 3vw, 2rem);
}

.player-icon {
    inset: auto;
    transform: none;
    width: 82px;
    height: 82px;
    font-size: 1.6rem;
}

.start-player {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 3;
    transform: translateX(-50%);
    border: 0;
    padding: 13px 24px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--rose));
    box-shadow: 0 16px 34px rgba(244, 63, 94, 0.42);
    font-weight: 950;
}

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

.detail-card,
.side-card {
    margin-top: 24px;
    padding: 26px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.08);
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 1.35rem;
    font-weight: 950;
}

.detail-card p {
    margin: 0;
    color: #374151;
    font-size: 1.03rem;
}

.soft-card {
    background: linear-gradient(135deg, #eff6ff, #faf5ff);
}

.tag-cloud {
    margin-top: 18px;
}

.tag-cloud span {
    color: #ea580c;
    background: #fff7ed;
}

.detail-aside {
    position: relative;
}

.side-card {
    position: sticky;
    top: 92px;
}

.related-section {
    padding-top: 34px;
}

.site-footer {
    margin-top: 48px;
    color: #e5e7eb;
    background: linear-gradient(135deg, #111827, #7c2d12 55%, #881337);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 1fr;
    gap: 42px;
    padding: 54px 0 38px;
}

.footer-brand {
    margin-bottom: 14px;
    font-size: 1.1rem;
}

.site-footer p {
    margin: 0;
    color: #d1d5db;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 1.05rem;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #d1d5db;
}

.site-footer a:hover {
    color: #fed7aa;
}

.footer-tags span {
    color: #fed7aa;
    background: rgba(255, 255, 255, 0.12);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #d1d5db;
    font-size: 0.92rem;
}

@media (max-width: 1120px) {
    .dense-grid,
    .category-movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .side-card {
        position: static;
    }
}

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

    .menu-toggle {
        display: inline-flex;
    }

    .hero-carousel {
        height: auto;
        min-height: 720px;
    }

    .hero-slide {
        min-height: 720px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        padding: 54px 0 90px;
    }

    .hero-poster {
        width: min(260px, 70vw);
    }

    .search-card,
    .filter-panel,
    .detail-intro,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .home-search,
    .category-block-head,
    .section-head,
    .footer-bottom {
        flex-direction: column;
        align-items: stretch;
    }

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

    .rank-card {
        grid-template-columns: 120px 1fr;
    }

    .detail-poster {
        width: min(260px, 70vw);
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .brand-text {
        font-size: 1.05rem;
    }

    .hero-copy h1,
    .inner-hero h1,
    .detail-intro h1 {
        font-size: 2.15rem;
    }

    .hero-actions {
        display: grid;
    }

    .category-grid,
    .movie-grid,
    .dense-grid,
    .category-movie-grid,
    .rank-grid {
        grid-template-columns: 1fr;
    }

    .rank-card {
        grid-template-columns: 110px 1fr;
    }

    .rank-item,
    .side-list .rank-item {
        grid-template-columns: 82px 1fr;
    }

    .rank-number {
        display: none;
    }

    .rank-item img,
    .side-list .rank-item img {
        width: 82px;
    }

    .player-icon {
        width: 64px;
        height: 64px;
    }
}
