:root {
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --teal: #14b8a6;
    --red: #ef4444;
    --orange: #f97316;
    --yellow: #fde047;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --soft: #f8fafc;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 18px;
}

* {
    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(--ink);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(16px);
}

.nav-shell {
    max-width: 1240px;
    height: 64px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.brand:hover {
    color: var(--blue);
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--teal));
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.22);
    font-size: 14px;
}

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

.nav-links a {
    padding: 9px 12px;
    border-radius: 10px;
    color: #334155;
    font-size: 14px;
    font-weight: 650;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--blue);
    background: #eff6ff;
}

.nav-search,
.mobile-search,
.big-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-search input,
.mobile-search input,
.big-search input {
    width: 220px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    color: var(--ink);
    outline: none;
    transition: all 0.2s ease;
}

.nav-search input:focus,
.mobile-search input:focus,
.big-search input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.nav-search button,
.mobile-search button,
.big-search button {
    border: 0;
    border-radius: 12px;
    padding: 10px 15px;
    color: #fff;
    background: var(--blue);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s ease;
}

.nav-search button:hover,
.mobile-search button:hover,
.big-search button:hover {
    background: var(--blue-dark);
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f1f5f9;
    color: #334155;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 14px 24px 24px;
    border-top: 1px solid var(--line);
    background: #fff;
}

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

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

.mobile-panel a:hover {
    color: var(--blue);
    background: #eff6ff;
}

.mobile-search input {
    width: 100%;
}

main {
    min-height: 60vh;
}

.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(100deg, #2563eb, #3b82f6 45%, #14b8a6);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    transition: opacity 0.75s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(37, 99, 235, 0.88), rgba(59, 130, 246, 0.78) 42%, rgba(20, 184, 166, 0.7));
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 40%, rgba(255, 255, 255, 0.18), transparent 32%), rgba(0, 0, 0, 0.18);
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) 420px;
    align-items: center;
    gap: 58px;
}

.hero-copy {
    max-width: 680px;
    color: #fff;
}

.hero-kicker,
.detail-meta,
.movie-meta,
.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hero-kicker span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    color: #fff9c5;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    font-weight: 800;
}

.hero-copy h1 {
    margin: 20px 0 20px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p {
    margin: 0 0 26px;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.91);
    font-size: 20px;
}

.hero-tags span,
.detail-tags span {
    padding: 6px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 13px;
    font-weight: 650;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: all 0.2s ease;
}

.primary-button {
    color: var(--blue);
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.primary-button:hover {
    transform: translateY(-2px) scale(1.02);
    background: #eff6ff;
}

.primary-button.light {
    color: var(--blue);
    background: #fff;
}

.ghost-button {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

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

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
    transform: rotate(2deg);
}

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

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(12px);
    font-size: 28px;
}

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

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

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

.section-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 64px 24px;
}

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

.section-head span,
.eyebrow,
.movie-kicker {
    display: inline-block;
    color: var(--blue);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.section-head h2 {
    margin: 6px 0 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.2;
}

.section-head p {
    margin: 8px 0 0;
    max-width: 680px;
    color: var(--muted);
}

.section-head a,
.text-link {
    color: var(--blue);
    font-weight: 800;
}

.section-head a:hover,
.text-link:hover {
    color: var(--blue-dark);
}

.quick-search-panel {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    gap: 28px;
    align-items: center;
    margin-top: -40px;
    position: relative;
    z-index: 8;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.quick-search-panel h2 {
    margin: 8px 0;
    font-size: 28px;
}

.quick-search-panel p {
    margin: 0;
    color: var(--muted);
}

.big-search input {
    flex: 1;
    width: 100%;
    min-height: 52px;
}

.big-search button {
    min-height: 52px;
    padding: 0 22px;
}

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

.category-tile {
    position: relative;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    overflow: hidden;
    padding: 20px;
    border-radius: 22px;
    color: #fff;
    background-size: cover;
    background-position: center;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    isolation: isolate;
}

.category-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.78));
    transition: background 0.2s ease;
}

.category-tile:hover::before {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.2), rgba(15, 23, 42, 0.86));
}

.category-tile span {
    font-size: 22px;
    font-weight: 850;
}

.category-tile p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

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

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

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

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.08);
    transition: all 0.25s ease;
}

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

.movie-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e2e8f0;
}

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

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

.movie-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.74));
}

.movie-badge,
.movie-type,
.rank-number {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.movie-badge {
    left: 12px;
    top: 12px;
    background: var(--blue);
}

.movie-type {
    right: 12px;
    top: 12px;
    background: rgba(0, 0, 0, 0.62);
}

.rank-number {
    left: 12px;
    bottom: 12px;
    min-width: 34px;
    justify-content: center;
    background: linear-gradient(135deg, var(--red), var(--orange));
}

.play-mark {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%) scale(0.86);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    opacity: 0;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

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

.movie-info {
    padding: 16px;
}

.movie-info h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
    min-height: 46px;
    transition: color 0.2s ease;
}

.movie-card:hover .movie-info h3 {
    color: var(--blue);
}

.movie-info p {
    margin: 0 0 12px;
    min-height: 46px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.movie-meta span,
.detail-meta span {
    color: #64748b;
    background: #f1f5f9;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
}

.latest-band {
    background: linear-gradient(90deg, #fff7ed, #fef2f2);
}

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

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    align-items: stretch;
}

.horizontal-thumb {
    aspect-ratio: 16 / 9;
    height: 100%;
}

.horizontal-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.horizontal-info h3 {
    min-height: 0;
}

.horizontal-info p {
    min-height: 0;
}

.soft-section {
    background: linear-gradient(90deg, #eff6ff, #ecfeff);
}

.soft-domestic-drama,
.soft-family-urban {
    background: linear-gradient(90deg, #f0fdf4, #ecfdf5);
}

.soft-western-drama,
.soft-sci-fi-fantasy {
    background: linear-gradient(90deg, #faf5ff, #eef2ff);
}

.soft-suspense-crime,
.soft-horror-thriller {
    background: linear-gradient(90deg, #fff1f2, #fef2f2);
}

.soft-action-adventure,
.soft-romance-comedy {
    background: linear-gradient(90deg, #fff7ed, #fffbeb);
}

.cta-band {
    padding: 76px 24px;
    color: #fff;
    background: linear-gradient(100deg, #2563eb, #14b8a6);
}

.cta-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.cta-inner h2 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 46px);
}

.cta-inner p {
    margin: 0 auto 26px;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(100deg, #2563eb, #14b8a6);
}

.page-hero {
    min-height: 330px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.page-hero > div:last-child,
.page-hero > div:first-child {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 78px 24px;
}

.small-hero {
    background: linear-gradient(100deg, #2563eb, #3b82f6 48%, #14b8a6);
}

.category-hero::before,
.ranking-hero::before,
.search-hero::before,
.small-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 82% 26%, rgba(255, 255, 255, 0.2), transparent 35%), rgba(0, 0, 0, 0.18);
}

.page-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(37, 99, 235, 0.88), rgba(20, 184, 166, 0.78)), rgba(0, 0, 0, 0.2);
}

.page-hero h1 {
    margin: 8px 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.1;
}

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

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.filter-button {
    border: 0;
    border-radius: 999px;
    padding: 9px 16px;
    color: #334155;
    background: #f1f5f9;
    cursor: pointer;
    font-weight: 800;
    transition: all 0.2s ease;
}

.filter-button:hover,
.filter-button.active {
    color: #fff;
    background: var(--blue);
}

.empty-state {
    display: none;
    padding: 38px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
    background: #fff;
}

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

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

.category-overview-card {
    overflow: hidden;
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.category-cover {
    min-height: 245px;
    display: flex;
    align-items: end;
    padding: 18px;
    color: #fff;
    background-size: cover;
    background-position: center;
    position: relative;
    isolation: isolate;
}

.category-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.78));
}

.category-cover span {
    font-size: 22px;
    font-weight: 850;
}

.category-overview-content {
    padding: 22px;
}

.category-overview-content h2 {
    margin: 0 0 8px;
}

.category-overview-content p {
    margin: 0 0 14px;
    color: var(--muted);
}

.category-overview-content ul {
    margin: 0 0 16px;
    padding-left: 18px;
    color: #334155;
}

.category-overview-content li {
    margin: 5px 0;
}

.detail-hero {
    min-height: 500px;
}

.detail-bg,
.detail-shade {
    position: absolute;
    inset: 0;
}

.detail-bg {
    background-size: cover;
    background-position: center;
    filter: blur(8px) saturate(1.05);
    transform: scale(1.04);
    opacity: 0.48;
}

.detail-shade {
    background: linear-gradient(100deg, rgba(15, 23, 42, 0.92), rgba(37, 99, 235, 0.76) 48%, rgba(20, 184, 166, 0.66));
}

.detail-shell {
    position: relative;
    z-index: 2;
    max-width: 1240px;
    min-height: 500px;
    margin: 0 auto;
    padding: 64px 24px;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

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

.detail-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.05;
}

.detail-one-line {
    max-width: 780px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
}

.detail-meta span {
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
    gap: 28px;
    align-items: start;
}

.player-panel,
.detail-article {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.player-panel {
    padding: 22px;
}

.player-panel h2,
.detail-article h2 {
    margin: 0 0 10px;
}

.player-panel p {
    margin: 0 0 18px;
    color: var(--muted);
}

.player-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    background: #020617;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 0;
    padding: 0;
    color: #fff;
    background: #020617;
    cursor: pointer;
}

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

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.player-cover-shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.18), rgba(2, 6, 23, 0.68));
}

.player-play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    color: #fff;
    background: rgba(37, 99, 235, 0.9);
    box-shadow: 0 22px 55px rgba(37, 99, 235, 0.36);
    font-size: 32px;
    transition: all 0.2s ease;
}

.player-cover:hover .player-play-button {
    transform: translate(-50%, -50%) scale(1.06);
    background: var(--blue-dark);
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 4;
    display: none;
    padding: 10px 14px;
    border-radius: 12px;
    color: #fff;
    background: rgba(15, 23, 42, 0.78);
    text-align: center;
}

.player-message.visible {
    display: block;
}

.detail-article {
    padding: 28px;
}

.detail-article p {
    margin: 0 0 22px;
    color: #334155;
    font-size: 16px;
}

.detail-article p:last-child {
    margin-bottom: 0;
}

.search-page-form {
    max-width: 620px;
    margin-top: 24px;
}

.site-footer {
    color: #cbd5e1;
    background: #0f172a;
}

.footer-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 52px 24px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
}

.footer-logo {
    color: #fff;
    margin-bottom: 14px;
}

.footer-brand p,
.site-footer p {
    margin: 0;
    color: #94a3b8;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #fff;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer li {
    margin: 8px 0;
}

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

.footer-bottom {
    padding: 18px 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    color: #94a3b8;
    text-align: center;
}

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 45;
    width: 46px;
    height: 46px;
    display: none;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--blue);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
    cursor: pointer;
}

.back-top.visible {
    display: block;
}

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

    .nav-search {
        margin-left: auto;
    }

    .hero-inner {
        grid-template-columns: 1fr 310px;
        gap: 32px;
    }

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

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

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

@media (max-width: 820px) {
    .nav-shell {
        padding: 0 16px;
    }

    .nav-search {
        display: none;
    }

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-section {
        height: auto;
        min-height: 650px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        padding-top: 60px;
        padding-bottom: 76px;
    }

    .hero-poster {
        max-width: 260px;
        transform: rotate(0);
    }

    .quick-search-panel {
        grid-template-columns: 1fr;
        margin-top: -24px;
        border-radius: 20px;
    }

    .big-search {
        align-items: stretch;
        flex-direction: column;
    }

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

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

    .detail-shell {
        grid-template-columns: 1fr;
        min-height: 0;
        padding-top: 44px;
    }

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

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

    .category-cover {
        min-height: 180px;
    }
}

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

    .brand-mark {
        width: 30px;
        height: 30px;
    }

    .hero-copy h1 {
        font-size: 36px;
    }

    .hero-copy p,
    .detail-one-line {
        font-size: 17px;
    }

    .section-shell {
        padding: 44px 16px;
    }

    .section-head {
        align-items: start;
        flex-direction: column;
    }

    .category-grid,
    .movie-grid,
    .featured-grid,
    .compact-grid,
    .category-movie-grid,
    .ranking-grid {
        grid-template-columns: 1fr;
    }

    .movie-thumb {
        aspect-ratio: 16 / 9;
    }

    .footer-shell {
        grid-template-columns: 1fr;
    }

    .page-hero > div:last-child,
    .page-hero > div:first-child {
        padding: 56px 16px;
    }

    .detail-shell {
        padding: 42px 16px;
    }

    .player-panel,
    .detail-article {
        padding: 18px;
        border-radius: 18px;
    }
}
