:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --pink-500: #ec4899;
    --white: #ffffff;
    --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.16);
    --shadow-card: 0 18px 42px rgba(15, 23, 42, 0.12);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--slate-900);
    background: linear-gradient(180deg, var(--slate-50) 0%, #eef5ff 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.96);
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 34px rgba(2, 6, 23, 0.25);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: var(--white);
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
    box-shadow: 0 0 26px rgba(34, 211, 238, 0.36);
}

.brand-text,
.footer-brand span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong,
.footer-brand strong {
    color: var(--white);
    font-size: 22px;
    letter-spacing: -0.03em;
}

.brand-text small,
.footer-brand small {
    color: var(--cyan-400);
    font-size: 12px;
}

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

.nav-link {
    color: var(--slate-300);
    font-weight: 700;
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-link:hover {
    transform: translateY(-1px);
}

.header-search,
.mobile-search,
.home-search-form,
.search-page-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-search input,
.mobile-search input {
    width: 230px;
    color: var(--white);
    background: rgba(30, 41, 59, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    outline: none;
    padding: 11px 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.home-search-form input:focus,
.search-page-form input:focus,
.filter-search input:focus {
    border-color: var(--cyan-400);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.15);
}

.header-search button,
.mobile-search button,
.home-search-form button,
.search-page-form button {
    border: 0;
    color: var(--white);
    border-radius: 14px;
    padding: 11px 18px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.96);
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--white);
}

.mobile-panel {
    display: none;
    padding: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background: var(--slate-800);
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel nav {
    display: grid;
    gap: 8px;
    margin-top: 14px;
}

.mobile-panel a {
    color: var(--slate-200);
    padding: 10px 12px;
    border-radius: 12px;
}

.mobile-panel a:hover {
    color: var(--cyan-400);
    background: rgba(15, 23, 42, 0.72);
}

.hero {
    position: relative;
    overflow: hidden;
    background: var(--slate-950);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(34, 211, 238, 0.28), transparent 32%),
        radial-gradient(circle at 82% 30%, rgba(37, 99, 235, 0.32), transparent 30%),
        linear-gradient(135deg, var(--slate-950), var(--slate-900) 48%, #111827);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 42px 42px;
    opacity: 0.34;
}

.hero-inner {
    position: relative;
    width: min(1240px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    padding: 78px 0 80px;
}

.hero-slide {
    display: none;
    align-items: center;
    grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.7fr);
    gap: 64px;
    min-height: 500px;
}

.hero-slide.is-active {
    display: grid;
    animation: fadeIn 0.48s ease both;
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--cyan-400);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    margin: 14px 0 18px;
    color: var(--white);
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero-copy p {
    max-width: 700px;
    margin: 0;
    color: var(--slate-300);
    font-size: 19px;
}

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

.hero-tags span,
.detail-tags span,
.movie-info .movie-meta,
.category-chips span {
    color: var(--cyan-400);
    background: rgba(8, 145, 178, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 800;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 16px;
    padding: 0 22px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.28);
}

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

.primary-button:hover,
.ghost-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 48px rgba(37, 99, 235, 0.32);
}

.hero-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    min-height: 440px;
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(34, 211, 238, 0.18), rgba(15, 23, 42, 0.86));
    box-shadow: 0 34px 90px rgba(2, 6, 23, 0.55);
    transform: perspective(900px) rotateY(-6deg) rotateX(3deg);
}

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

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(2, 6, 23, 0.7));
}

.hero-poster-glow {
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 26px;
    z-index: 1;
}

.hero-controls {
    position: absolute;
    left: 0;
    bottom: 38px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 44px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.25);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 74px;
    background: linear-gradient(90deg, var(--cyan-400), var(--blue-500));
}

.home-search-band {
    position: relative;
    margin-top: -56px;
    z-index: 3;
    padding: 0 16px 38px;
}

.home-search-card {
    width: min(1120px, 100%);
    margin: 0 auto;
    border-radius: var(--radius-xl);
    padding: 28px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(34, 211, 238, 0.18);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(20px);
}

.home-search-card h2 {
    margin: 0 0 6px;
    font-size: clamp(24px, 3vw, 34px);
}

.home-search-card p {
    margin: 0 0 20px;
    color: var(--slate-300);
}

.home-search-form input,
.search-page-form input {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    padding: 14px 16px;
    outline: none;
}

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

.content-section {
    padding: 74px 0;
}

.content-section.no-top {
    padding-top: 34px;
}

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

.section-head.single-line {
    align-items: center;
}

.section-head h2 {
    margin: 6px 0 6px;
    color: var(--slate-900);
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.section-head p {
    max-width: 740px;
    margin: 0;
    color: var(--slate-600);
}

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

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

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

.category-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 280px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: var(--shadow-card);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 56px rgba(15, 23, 42, 0.18);
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 142px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(37, 99, 235, 0.12));
}

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

.category-content {
    display: grid;
    gap: 10px;
    padding: 18px;
}

.category-content strong {
    color: var(--slate-900);
    font-size: 22px;
}

.category-content em {
    color: var(--slate-600);
    font-style: normal;
    font-size: 14px;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-chips span {
    color: var(--slate-700);
    background: var(--slate-100);
    border-color: transparent;
}

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.filter-search {
    flex: 1;
    min-width: 260px;
}

.filter-search input {
    width: 100%;
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    padding: 13px 15px;
    outline: none;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-buttons button {
    border: 0;
    border-radius: 999px;
    padding: 10px 15px;
    color: var(--slate-700);
    background: var(--slate-100);
    font-weight: 800;
}

.filter-buttons button.is-active,
.filter-buttons button:hover {
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
}

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

.movie-card {
    display: grid;
    gap: 12px;
    min-width: 0;
    border-radius: var(--radius-lg);
    padding: 10px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.09);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.46);
    box-shadow: 0 30px 58px rgba(15, 23, 42, 0.16);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(34, 211, 238, 0.18), rgba(37, 99, 235, 0.18), rgba(15, 23, 42, 0.86));
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.06), rgba(2, 6, 23, 0.75));
    opacity: 0;
    transition: opacity 0.22s ease;
}

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

.region-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 900;
}

.hover-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: var(--white);
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.movie-info {
    display: grid;
    gap: 7px;
    padding: 0 2px 4px;
}

.movie-info strong {
    overflow: hidden;
    color: var(--slate-900);
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-info .movie-meta {
    width: fit-content;
    color: var(--slate-600);
    background: var(--slate-100);
    border-color: transparent;
    font-size: 12px;
}

.movie-line {
    display: -webkit-box;
    overflow: hidden;
    min-height: 42px;
    color: var(--slate-600);
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-band {
    padding: 76px 16px;
    background:
        radial-gradient(circle at 0% 0%, rgba(34, 211, 238, 0.18), transparent 34%),
        linear-gradient(135deg, var(--slate-950), var(--slate-900));
}

.ranking-panel {
    width: min(1240px, 100%);
    margin: 0 auto;
    color: var(--white);
}

.ranking-panel .section-head h2,
.ranking-panel .section-head p {
    color: var(--white);
}

.ranking-panel .section-head p {
    color: var(--slate-300);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 44px 56px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: rgba(34, 211, 238, 0.14);
    transform: translateX(4px);
}

.rank-index,
.rank-large {
    color: var(--cyan-400);
    font-size: 22px;
    font-weight: 900;
}

.rank-cover {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

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

.rank-main {
    display: grid;
    min-width: 0;
}

.rank-main strong {
    overflow: hidden;
    color: var(--white);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-main em,
.rank-info em {
    overflow: hidden;
    color: var(--slate-300);
    font-size: 13px;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-meta {
    color: var(--slate-300);
    font-weight: 800;
}

.page-main {
    padding-bottom: 72px;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    margin-top: 32px;
    border-radius: 34px;
    color: var(--white);
    background:
        radial-gradient(circle at 12% 18%, rgba(34, 211, 238, 0.3), transparent 32%),
        radial-gradient(circle at 85% 8%, rgba(236, 72, 153, 0.2), transparent 32%),
        linear-gradient(135deg, var(--slate-950), var(--slate-800));
    box-shadow: var(--shadow-soft);
}

.page-hero.compact-hero {
    padding: 54px;
}

.page-hero h1 {
    max-width: 860px;
    margin-bottom: 14px;
    font-size: clamp(34px, 6vw, 62px);
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: var(--slate-300);
    font-size: 18px;
}

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

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

.rank-card {
    display: grid;
    grid-template-columns: 52px 96px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 52px rgba(15, 23, 42, 0.16);
}

.rank-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    background: var(--slate-100);
}

.rank-info {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.rank-info strong {
    overflow: hidden;
    color: var(--slate-900);
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info em {
    color: var(--slate-500);
}

.rank-info span {
    display: -webkit-box;
    overflow: hidden;
    color: var(--slate-600);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.detail-main {
    padding-bottom: 84px;
}

.detail-hero {
    padding: 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 28px;
    color: var(--slate-300);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--cyan-400);
}

.breadcrumb strong {
    color: var(--white);
}

.detail-grid {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(34, 211, 238, 0.2), rgba(15, 23, 42, 0.8));
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.45);
}

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

.detail-copy h1 {
    font-size: clamp(34px, 6vw, 66px);
}

.detail-lead {
    max-width: 780px;
    margin: 0;
    color: var(--slate-200);
    font-size: 19px;
}

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

.detail-meta span {
    border-radius: 16px;
    padding: 12px 14px;
    color: var(--slate-200);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.player-section,
.detail-section {
    margin-top: 34px;
    border-radius: 30px;
    background: var(--white);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: var(--shadow-card);
}

.player-section {
    padding: 28px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: var(--slate-950);
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: var(--slate-950);
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 0;
    color: var(--white);
    background: var(--slate-950);
    z-index: 3;
}

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

.player-cover-bg {
    position: absolute;
    inset: 0;
    opacity: 0.48;
    filter: blur(2px) saturate(1.1);
}

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

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(34, 211, 238, 0.22), transparent 36%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.34), rgba(2, 6, 23, 0.88));
}

.player-play {
    position: relative;
    z-index: 2;
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    font-size: 34px;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
    box-shadow: 0 24px 58px rgba(37, 99, 235, 0.42);
}

.player-cover strong {
    position: relative;
    z-index: 2;
    margin-top: 116px;
    font-size: clamp(22px, 4vw, 42px);
    letter-spacing: -0.04em;
}

.detail-section {
    padding: 34px;
}

.detail-section h2 {
    margin: 0 0 14px;
    color: var(--slate-900);
    font-size: 28px;
}

.detail-section p {
    margin: 0;
    color: var(--slate-700);
    font-size: 17px;
}

.related-section {
    width: 100%;
    padding-bottom: 0;
}

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

.site-footer {
    margin-top: 60px;
    padding: 48px 16px 22px;
    color: var(--slate-300);
    background: var(--slate-950);
}

.footer-grid {
    width: min(1240px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 36px;
}

.footer-grid p {
    max-width: 520px;
    color: var(--slate-400);
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 18px;
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a {
    color: var(--slate-400);
}

.footer-links a:hover {
    color: var(--cyan-400);
}

.footer-bottom {
    width: min(1240px, 100%);
    margin: 36px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    color: var(--slate-500);
    font-size: 14px;
}

.is-hidden-card {
    display: none !important;
}

.empty-result {
    grid-column: 1 / -1;
    padding: 42px;
    text-align: center;
    color: var(--slate-600);
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

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

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

    .hero-slide,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        min-height: 360px;
        max-width: 430px;
    }

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

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

@media (max-width: 820px) {
    .hero-inner {
        min-height: auto;
        padding: 56px 0 70px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 42px;
    }

    .hero-slide {
        gap: 32px;
    }

    .hero-controls {
        bottom: 24px;
    }

    .home-search-form,
    .search-page-form,
    .mobile-search {
        align-items: stretch;
        flex-direction: column;
    }

    .home-search-form input,
    .search-page-form input,
    .mobile-search input {
        width: 100%;
    }

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

    .movie-grid,
    .related-grid,
    .rank-list,
    .rank-page-list,
    .footer-grid,
    .category-grid.wide {
        grid-template-columns: 1fr;
    }

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

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

    .page-hero.compact-hero,
    .detail-hero,
    .player-section,
    .detail-section {
        padding: 22px;
        border-radius: 24px;
    }

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

    .rank-meta {
        display: none;
    }
}

@media (max-width: 520px) {
    .header-inner,
    .content-section,
    .page-main,
    .detail-main {
        width: min(100% - 22px, 1240px);
    }

    .brand-text strong {
        font-size: 18px;
    }

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

    .hero-poster {
        min-height: 300px;
    }

    .player-play {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}
