:root {
 --slate-950: #020617;
 --slate-900: #0f172a;
 --slate-800: #1e293b;
 --slate-700: #334155;
 --slate-100: #f1f5f9;
 --slate-50: #f8fafc;
 --blue-900: #1e3a8a;
 --blue-700: #1d4ed8;
 --blue-600: #2563eb;
 --blue-500: #3b82f6;
 --blue-100: #dbeafe;
 --yellow-500: #eab308;
 --red-500: #ef4444;
 --white: #ffffff;
 --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.12);
 --shadow-strong: 0 25px 80px rgba(2, 6, 23, 0.35);
 font-family: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
 box-sizing: border-box;
}

html {
 scroll-behavior: smooth;
}

body {
 margin: 0;
 color: var(--slate-900);
 background: var(--slate-50);
}

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

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

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

.site-header {
 position: sticky;
 top: 0;
 z-index: 50;
 color: var(--white);
 background: linear-gradient(90deg, var(--slate-900), var(--blue-900), var(--slate-900));
 box-shadow: 0 10px 30px rgba(2, 6, 23, 0.28);
}

.header-inner {
 min-height: 68px;
 display: flex;
 align-items: center;
 gap: 24px;
}

.logo {
 display: inline-flex;
 align-items: center;
 gap: 10px;
 flex: 0 0 auto;
}

.logo-mark {
 width: 42px;
 height: 42px;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 border-radius: 14px;
 font-weight: 900;
 color: var(--white);
 background: linear-gradient(135deg, #60a5fa, var(--blue-600));
 box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45);
 transition: transform 0.25s ease;
}

.logo:hover .logo-mark {
 transform: scale(1.08) rotate(-3deg);
}

.logo-text {
 font-size: 21px;
 font-weight: 800;
 letter-spacing: 0.03em;
 white-space: nowrap;
}

.desktop-nav {
 display: flex;
 align-items: center;
 gap: 18px;
 flex: 1 1 auto;
}

.nav-link {
 font-size: 15px;
 color: rgba(255, 255, 255, 0.86);
 transition: color 0.2s ease, transform 0.2s ease;
}

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

.header-search,
.mobile-search {
 position: relative;
 display: flex;
 align-items: center;
 gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
 height: 40px;
 border: 1px solid rgba(255, 255, 255, 0.22);
 border-radius: 999px;
 outline: none;
 color: var(--white);
 background: rgba(255, 255, 255, 0.1);
 backdrop-filter: blur(12px);
 padding: 0 16px;
 transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
 color: rgba(255, 255, 255, 0.68);
}

.header-search input:focus,
.mobile-search input:focus {
 border-color: #60a5fa;
 background: rgba(255, 255, 255, 0.16);
 box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.16);
}

.search-button {
 border: none;
 border-radius: 999px;
 height: 40px;
 padding: 0 15px;
 color: var(--white);
 background: var(--blue-600);
 cursor: pointer;
 font-weight: 700;
 transition: transform 0.2s ease, background 0.2s ease;
}

.search-button:hover,
.primary-button:hover,
.ghost-button:hover {
 transform: translateY(-2px);
}

.search-button:hover {
 background: var(--blue-500);
}

.menu-button {
 display: none;
 width: 42px;
 height: 42px;
 border: none;
 border-radius: 12px;
 color: var(--white);
 background: rgba(255, 255, 255, 0.1);
 cursor: pointer;
 font-size: 23px;
}

.mobile-panel {
 display: none;
 border-top: 1px solid rgba(255, 255, 255, 0.12);
 padding: 14px 16px 18px;
}

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

.mobile-search {
 margin-bottom: 14px;
}

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

.mobile-nav {
 display: grid;
 grid-template-columns: repeat(2, minmax(0, 1fr));
 gap: 10px;
}

.mobile-nav-link {
 padding: 11px 12px;
 border-radius: 14px;
 background: rgba(255, 255, 255, 0.08);
 color: rgba(255, 255, 255, 0.9);
}

.hero {
 position: relative;
 min-height: 620px;
 overflow: hidden;
 color: var(--white);
 background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.32), transparent 30%), linear-gradient(135deg, var(--slate-950), var(--blue-900) 52%, var(--slate-900));
}

.hero-slider {
 position: relative;
 min-height: 560px;
}

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

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

.hero-backdrop {
 position: absolute;
 inset: 0;
 background-size: cover;
 background-position: center;
 opacity: 0.18;
 filter: blur(2px) saturate(1.2);
 transform: scale(1.04);
}

.hero-backdrop::after {
 content: "";
 position: absolute;
 inset: 0;
 background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.82), rgba(37, 99, 235, 0.35));
}

.hero-content {
 position: relative;
 z-index: 2;
 min-height: 560px;
 display: grid;
 grid-template-columns: minmax(0, 1fr) 360px;
 align-items: center;
 gap: 56px;
 padding: 60px 0 80px;
}

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

.hero-eyebrow,
.section-kicker,
.detail-kicker {
 display: inline-flex;
 align-items: center;
 gap: 8px;
 margin-bottom: 16px;
 color: #bfdbfe;
 font-size: 14px;
 font-weight: 800;
 letter-spacing: 0.12em;
 text-transform: uppercase;
}

.hero h1 {
 margin: 0 0 20px;
 font-size: clamp(40px, 7vw, 72px);
 line-height: 1.05;
 letter-spacing: -0.05em;
}

.hero-summary {
 margin: 0 0 24px;
 max-width: 680px;
 color: rgba(219, 234, 254, 0.94);
 font-size: clamp(18px, 2.4vw, 24px);
 line-height: 1.8;
}

.hero-tags,
.tag-row {
 display: flex;
 flex-wrap: wrap;
 gap: 8px;
}

.hero-tags span,
.tag-row span,
.meta-pill {
 display: inline-flex;
 align-items: center;
 min-height: 28px;
 padding: 4px 11px;
 border-radius: 999px;
 font-size: 13px;
 font-weight: 700;
 color: #dbeafe;
 background: rgba(255, 255, 255, 0.1);
 border: 1px solid rgba(255, 255, 255, 0.14);
}

.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: 46px;
 padding: 0 24px;
 border-radius: 999px;
 font-weight: 800;
 transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-button {
 color: var(--white);
 background: var(--blue-600);
 box-shadow: 0 16px 38px rgba(37, 99, 235, 0.36);
}

.primary-button:hover {
 background: var(--blue-500);
}

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

.ghost-button:hover {
 background: rgba(255, 255, 255, 0.16);
 border-color: rgba(255, 255, 255, 0.48);
}

.hero-poster {
 position: relative;
 border-radius: 30px;
 overflow: hidden;
 box-shadow: var(--shadow-strong);
 transform: rotate(2deg);
 transition: transform 0.35s ease;
}

.hero-poster:hover {
 transform: rotate(0deg) translateY(-8px);
}

.hero-poster img {
 height: 470px;
 object-fit: cover;
}

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

.hero-dot {
 width: 10px;
 height: 10px;
 border: none;
 border-radius: 999px;
 background: rgba(255, 255, 255, 0.38);
 cursor: pointer;
 transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
 width: 32px;
 background: var(--white);
}

.hero-metrics {
 position: relative;
 z-index: 4;
 display: grid;
 grid-template-columns: repeat(3, minmax(0, 1fr));
 gap: 18px;
 margin-top: -44px;
 padding-bottom: 34px;
}

.hero-metrics a {
 padding: 24px;
 border-radius: 24px;
 background: rgba(255, 255, 255, 0.1);
 border: 1px solid rgba(255, 255, 255, 0.14);
 backdrop-filter: blur(16px);
 box-shadow: var(--shadow-strong);
 transition: transform 0.25s ease, background 0.25s ease;
}

.hero-metrics a:hover {
 transform: translateY(-5px);
 background: rgba(255, 255, 255, 0.16);
}

.hero-metrics strong {
 display: block;
 font-size: 28px;
 color: #93c5fd;
}

.hero-metrics span {
 display: block;
 margin-top: 6px;
 color: #dbeafe;
}

.page-hero,
.detail-hero {
 color: var(--white);
 background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.38), transparent 28%), linear-gradient(135deg, var(--slate-950), var(--blue-900));
 padding: 62px 0;
}

.page-hero h1,
.detail-copy h1 {
 margin: 0 0 14px;
 font-size: clamp(34px, 5vw, 58px);
 line-height: 1.12;
}

.page-hero p,
.detail-copy p {
 max-width: 830px;
 margin: 0;
 color: #dbeafe;
 font-size: 18px;
 line-height: 1.8;
}

.section {
 padding: 56px 0;
}

.section.alt {
 background: var(--white);
}

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

.section-heading h2 {
 margin: 0;
 color: var(--slate-900);
 font-size: clamp(28px, 4vw, 40px);
}

.section-heading p {
 margin: 10px 0 0;
 max-width: 640px;
 color: #64748b;
 line-height: 1.8;
}

.section-more {
 flex: 0 0 auto;
 color: var(--blue-600);
 font-weight: 800;
}

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

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

.movie-card {
 overflow: hidden;
 border-radius: 24px;
 background: var(--white);
 box-shadow: 0 12px 36px rgba(15, 23, 42, 0.09);
 transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.movie-cover {
 position: relative;
 display: block;
 aspect-ratio: 16 / 10;
 overflow: hidden;
 background: var(--slate-800);
}

.compact-card .movie-cover {
 aspect-ratio: 16 / 9;
}

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

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

.cover-glow {
 position: absolute;
 inset: 0;
 opacity: 0;
 background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 58%);
 transition: opacity 0.3s ease;
}

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

.play-chip {
 position: absolute;
 left: 16px;
 bottom: 16px;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 width: 54px;
 height: 54px;
 border-radius: 999px;
 color: var(--white);
 background: var(--blue-600);
 font-size: 13px;
 font-weight: 900;
 opacity: 0;
 transform: scale(0.75);
 transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-chip {
 opacity: 1;
 transform: scale(1);
}

.rank-badge {
 position: absolute;
 top: 14px;
 left: 14px;
 padding: 6px 10px;
 border-radius: 999px;
 color: var(--white);
 background: linear-gradient(135deg, var(--red-500), #f97316);
 font-size: 12px;
 letter-spacing: 0.04em;
 box-shadow: 0 10px 20px rgba(239, 68, 68, 0.28);
}

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

.movie-card h2 {
 margin: 0 0 10px;
 color: var(--slate-900);
 font-size: 19px;
 line-height: 1.35;
}

.movie-card h2 a {
 transition: color 0.2s ease;
}

.movie-card:hover h2 a {
 color: var(--blue-600);
}

.movie-line {
 min-height: 48px;
 margin: 0 0 14px;
 color: #64748b;
 line-height: 1.6;
 display: -webkit-box;
 -webkit-line-clamp: 2;
 -webkit-box-orient: vertical;
 overflow: hidden;
}

.movie-meta {
 display: flex;
 flex-wrap: wrap;
 gap: 8px 12px;
 margin-bottom: 12px;
 color: #64748b;
 font-size: 13px;
 font-weight: 700;
}

.tag-row span {
 min-height: 24px;
 color: var(--blue-700);
 border-color: #bfdbfe;
 background: #eff6ff;
 font-size: 12px;
}

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

.category-card {
 min-height: 190px;
 display: flex;
 flex-direction: column;
 justify-content: space-between;
 padding: 24px;
 border-radius: 26px;
 color: var(--white);
 background: linear-gradient(135deg, var(--slate-900), var(--blue-700));
 box-shadow: var(--shadow-soft);
 transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
 transform: translateY(-6px);
 box-shadow: var(--shadow-strong);
}

.category-card h2 {
 margin: 0 0 10px;
 font-size: 23px;
}

.category-card p {
 margin: 0;
 color: #dbeafe;
 line-height: 1.7;
}

.category-card span {
 margin-top: 18px;
 color: #bfdbfe;
 font-weight: 800;
}

.filter-panel {
 display: grid;
 grid-template-columns: 1fr 180px 180px;
 gap: 14px;
 margin: 0 0 28px;
 padding: 18px;
 border-radius: 24px;
 background: linear-gradient(135deg, var(--slate-900), var(--blue-900));
 box-shadow: var(--shadow-soft);
}

.filter-panel input,
.filter-panel select {
 width: 100%;
 color: var(--white);
}

.filter-panel select option {
 color: var(--slate-900);
}

.no-results {
 display: none;
 margin: 26px 0 0;
 padding: 24px;
 border-radius: 20px;
 color: #64748b;
 text-align: center;
 background: var(--white);
}

.no-results.is-visible {
 display: block;
}

.ranking-list {
 display: grid;
 gap: 16px;
}

.ranking-item {
 display: grid;
 grid-template-columns: 88px 160px minmax(0, 1fr) auto;
 align-items: center;
 gap: 18px;
 padding: 14px;
 border-radius: 24px;
 background: var(--white);
 box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
 transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-item:hover {
 transform: translateY(-3px);
 box-shadow: var(--shadow-soft);
}

.ranking-number {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 width: 62px;
 height: 62px;
 border-radius: 20px;
 color: var(--white);
 background: linear-gradient(135deg, var(--red-500), #f97316);
 font-size: 20px;
 font-weight: 900;
}

.ranking-thumb {
 display: block;
 aspect-ratio: 16 / 10;
 overflow: hidden;
 border-radius: 18px;
 background: var(--slate-800);
}

.ranking-thumb img {
 height: 100%;
 object-fit: cover;
}

.ranking-info h2 {
 margin: 0 0 8px;
 font-size: 21px;
}

.ranking-info p {
 margin: 0;
 color: #64748b;
 line-height: 1.7;
}

.ranking-action {
 padding: 10px 17px;
 border-radius: 999px;
 color: var(--white);
 background: var(--blue-600);
 font-weight: 800;
}

.breadcrumb {
 display: flex;
 flex-wrap: wrap;
 gap: 9px;
 margin-bottom: 20px;
 color: #bfdbfe;
 font-size: 14px;
}

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

.detail-hero-inner {
 display: grid;
 grid-template-columns: 360px minmax(0, 1fr);
 gap: 46px;
 align-items: center;
}

.detail-poster {
 overflow: hidden;
 border-radius: 28px;
 box-shadow: var(--shadow-strong);
 background: var(--slate-800);
}

.detail-poster img {
 height: 500px;
 object-fit: cover;
}

.detail-meta {
 display: flex;
 flex-wrap: wrap;
 gap: 9px;
 margin: 20px 0;
}

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

.content-card,
.side-card {
 border-radius: 28px;
 background: var(--white);
 box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.content-card {
 padding: 28px;
}

.content-card h2,
.side-card h2 {
 margin: 0 0 16px;
 font-size: 26px;
}

.content-card p {
 color: #475569;
 line-height: 1.9;
 font-size: 16px;
}

.player-shell {
 position: relative;
 overflow: hidden;
 margin-bottom: 28px;
 border-radius: 28px;
 background: #000;
 box-shadow: var(--shadow-strong);
}

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

.player-overlay {
 position: absolute;
 inset: 0;
 display: flex;
 align-items: center;
 justify-content: center;
 background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
 cursor: pointer;
 transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-button {
 width: 92px;
 height: 92px;
 border: none;
 border-radius: 999px;
 color: var(--white);
 background: var(--blue-600);
 font-weight: 900;
 cursor: pointer;
 box-shadow: 0 18px 50px rgba(37, 99, 235, 0.45);
 transition: transform 0.2s ease, background 0.2s ease;
}

.player-button:hover {
 transform: scale(1.08);
 background: var(--blue-500);
}

.side-card {
 padding: 20px;
}

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

.related-item {
 display: grid;
 grid-template-columns: 98px minmax(0, 1fr);
 gap: 14px;
 align-items: center;
}

.related-item img {
 height: 64px;
 object-fit: cover;
 border-radius: 14px;
 background: var(--slate-800);
}

.related-item h3 {
 margin: 0 0 5px;
 font-size: 15px;
 line-height: 1.35;
}

.related-item span {
 color: #64748b;
 font-size: 13px;
}

.site-footer {
 color: #cbd5e1;
 background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
 padding: 54px 0 24px;
}

.footer-grid {
 display: grid;
 grid-template-columns: 1.4fr 1fr 1fr 1fr;
 gap: 32px;
}

.site-footer h2 {
 margin: 0 0 16px;
 color: var(--white);
 font-size: 20px;
}

.site-footer p {
 margin: 0;
 line-height: 1.8;
}

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

.site-footer li + li {
 margin-top: 10px;
}

.site-footer a {
 color: #cbd5e1;
 transition: color 0.2s ease;
}

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

.footer-bottom {
 width: min(1180px, calc(100% - 32px));
 margin: 34px auto 0;
 padding-top: 22px;
 border-top: 1px solid rgba(148, 163, 184, 0.18);
 color: #94a3b8;
 text-align: center;
 font-size: 14px;
}

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

 .header-inner {
 justify-content: space-between;
 }

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

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

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

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

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

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

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

 .hero {
 min-height: auto;
 }

 .hero-slider,
 .hero-content {
 min-height: 620px;
 }

 .hero-content {
 padding: 42px 0 120px;
 }

 .hero-poster {
 display: none;
 }

 .hero-actions {
 gap: 10px;
 }

 .primary-button,
 .ghost-button {
 width: 100%;
 }

 .hero-dots {
 bottom: 126px;
 }

 .hero-metrics {
 grid-template-columns: 1fr;
 margin-top: -95px;
 }

 .section {
 padding: 42px 0;
 }

 .section-heading {
 display: block;
 }

 .section-more {
 display: inline-flex;
 margin-top: 16px;
 }

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

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

 .ranking-item {
 grid-template-columns: 58px 92px minmax(0, 1fr);
 }

 .ranking-number {
 width: 48px;
 height: 48px;
 border-radius: 16px;
 font-size: 16px;
 }

 .ranking-action {
 grid-column: 1 / -1;
 text-align: center;
 }

 .detail-poster img {
 height: auto;
 }

 .content-card {
 padding: 20px;
 }

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