* {
 box-sizing: border-box;
}

html {
 scroll-behavior: smooth;
}

body {
 margin: 0;
 font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
 color: #ffffff;
 background: #0f172a;
 line-height: 1.6;
}

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

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

button,
input,
select {
 font: inherit;
}

.site-header {
 position: fixed;
 top: 0;
 right: 0;
 left: 0;
 z-index: 50;
 background: rgba(15, 23, 42, 0.95);
 border-bottom: 1px solid #1e293b;
 backdrop-filter: blur(8px);
}

.nav-shell {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 1rem;
 width: min(1280px, calc(100% - 2rem));
 height: 4rem;
 margin: 0 auto;
}

.site-logo {
 display: inline-flex;
 align-items: center;
 gap: 0.5rem;
 font-size: 1.25rem;
 font-weight: 800;
 color: #ffffff;
 white-space: nowrap;
}

.logo-mark {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 width: 2rem;
 height: 2rem;
 border-radius: 999px;
 color: #0f172a;
 background: #fbbf24;
 box-shadow: 0 0 28px rgba(251, 191, 36, 0.35);
}

.nav-links {
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 1.25rem;
 flex: 1 1 auto;
}

.nav-link {
 color: #cbd5e1;
 font-size: 0.95rem;
 transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
 color: #ffffff;
}

.nav-search {
 position: relative;
 display: flex;
 align-items: center;
 width: 18rem;
}

.nav-search input {
 width: 100%;
 padding: 0.6rem 3.6rem 0.6rem 0.9rem;
 color: #ffffff;
 background: #1e293b;
 border: 1px solid #334155;
 border-radius: 0.75rem;
 outline: none;
 transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input:focus {
 border-color: #fbbf24;
 box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.16);
}

.nav-search button {
 position: absolute;
 right: 0.35rem;
 padding: 0.38rem 0.7rem;
 color: #0f172a;
 background: #fbbf24;
 border: 0;
 border-radius: 0.55rem;
 cursor: pointer;
}

.menu-toggle {
 display: none;
 width: 2.5rem;
 height: 2.5rem;
 padding: 0.55rem;
 background: #1e293b;
 border: 1px solid #334155;
 border-radius: 0.75rem;
 cursor: pointer;
}

.menu-toggle span {
 display: block;
 height: 2px;
 margin: 0.25rem 0;
 background: #ffffff;
 border-radius: 999px;
}

.page-main {
 min-height: 70vh;
}

.hero-slider {
 position: relative;
 height: 500px;
 margin-top: 4rem;
 overflow: hidden;
 background: #020617;
}

.hero-slide {
 position: absolute;
 inset: 0;
 opacity: 0;
 transform: scale(1.02);
 transition: opacity 0.7s ease, transform 0.7s ease;
 pointer-events: none;
}

.hero-slide.is-active {
 opacity: 1;
 transform: scale(1);
 pointer-events: auto;
}

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

.hero-slider:hover .hero-slide.is-active img {
 transform: scale(1.05);
}

.hero-gradient {
 position: absolute;
 inset: 0;
 background: linear-gradient(to top, #0f172a 0%, rgba(15, 23, 42, 0.62) 48%, rgba(15, 23, 42, 0.08) 100%);
}

.hero-content {
 position: absolute;
 right: 0;
 bottom: 0;
 left: 0;
 width: min(1280px, calc(100% - 2rem));
 margin: 0 auto;
 padding: 0 0 3rem;
}

.hero-meta,
.card-meta,
.side-meta {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 0.5rem;
}

.hero-meta span,
.card-meta span,
.card-meta a,
.side-meta span {
 display: inline-flex;
 align-items: center;
 padding: 0.2rem 0.65rem;
 color: #fbbf24;
 background: rgba(251, 191, 36, 0.16);
 border: 1px solid rgba(251, 191, 36, 0.28);
 border-radius: 999px;
 font-size: 0.82rem;
 font-weight: 700;
}

.hero-content h1,
.hero-content h2 {
 max-width: 860px;
 margin: 1rem 0 0.85rem;
 font-size: clamp(2rem, 5vw, 4.6rem);
 line-height: 1.05;
 font-weight: 900;
 letter-spacing: -0.04em;
}

.hero-content p {
 max-width: 720px;
 margin: 0 0 1.5rem;
 color: #cbd5e1;
 font-size: 1.1rem;
}

.hero-actions {
 display: flex;
 flex-wrap: wrap;
 gap: 0.8rem;
}

.btn-primary,
.btn-secondary,
.section-link {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-height: 2.75rem;
 padding: 0.72rem 1.25rem;
 border-radius: 0.75rem;
 font-weight: 800;
 transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
 color: #0f172a;
 background: #fbbf24;
}

.btn-primary:hover,
.section-link:hover {
 transform: translateY(-1px) scale(1.02);
 background: #fcd34d;
}

.btn-secondary {
 color: #ffffff;
 background: rgba(15, 23, 42, 0.48);
 border: 1px solid rgba(203, 213, 225, 0.25);
}

.btn-secondary:hover {
 border-color: rgba(251, 191, 36, 0.45);
 color: #fbbf24;
}

.hero-dots {
 position: absolute;
 right: 2rem;
 bottom: 2rem;
 display: flex;
 gap: 0.55rem;
}

.hero-dot {
 width: 0.75rem;
 height: 0.75rem;
 padding: 0;
 background: rgba(255, 255, 255, 0.45);
 border: 0;
 border-radius: 999px;
 cursor: pointer;
}

.hero-dot.is-active {
 width: 2rem;
 background: #fbbf24;
}

.content-shell {
 width: min(1280px, calc(100% - 2rem));
 margin: 0 auto;
}

.top-space {
 padding-top: 6.5rem;
}

.content-section {
 margin: 3rem 0;
}

.section-heading {
 display: flex;
 align-items: end;
 justify-content: space-between;
 gap: 1rem;
 margin-bottom: 1.5rem;
}

.section-heading h2 {
 margin: 0;
 font-size: clamp(1.5rem, 3vw, 2rem);
 line-height: 1.2;
}

.section-heading p {
 margin: 0.35rem 0 0;
 color: #94a3b8;
}

.section-link {
 min-height: auto;
 color: #0f172a;
 background: #fbbf24;
 white-space: nowrap;
}

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

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

.movie-card {
 display: block;
 min-width: 0;
}

.poster-frame {
 position: relative;
 display: block;
 aspect-ratio: 3 / 4;
 overflow: hidden;
 background: #1e293b;
 border-radius: 0.8rem;
}

.poster-frame img,
.wide-poster img,
.rank-cover img,
.ranking-poster img,
.detail-side img,
.category-tile img {
 width: 100%;
 height: 100%;
 object-fit: cover;
 transition: transform 0.5s ease;
}

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

.poster-hover {
 position: absolute;
 inset: 0;
 display: flex;
 flex-direction: column;
 justify-content: end;
 gap: 0.65rem;
 padding: 0.85rem;
 color: #ffffff;
 background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.24), transparent);
 opacity: 0;
 transform: translateY(18%);
 transition: opacity 0.3s ease, transform 0.3s ease;
}

.movie-card:hover .poster-hover {
 opacity: 1;
 transform: translateY(0);
}

.play-dot {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 width: 2.4rem;
 height: 2.4rem;
 color: #0f172a;
 background: #fbbf24;
 border-radius: 999px;
}

.year-badge {
 position: absolute;
 top: 0.55rem;
 right: 0.55rem;
 padding: 0.18rem 0.55rem;
 color: #ffffff;
 background: rgba(0, 0, 0, 0.72);
 border-radius: 0.35rem;
 font-size: 0.72rem;
}

.movie-title {
 display: block;
 margin-top: 0.75rem;
 color: #ffffff;
 font-weight: 700;
 line-height: 1.35;
 transition: color 0.2s ease;
}

.movie-card:hover .movie-title,
.wide-card:hover strong,
.rank-card:hover strong,
.ranking-row a:hover h2 {
 color: #fbbf24;
}

.movie-category {
 display: block;
 margin-top: 0.15rem;
 color: #94a3b8;
 font-size: 0.88rem;
}

.scroll-row {
 display: grid;
 grid-auto-flow: column;
 grid-auto-columns: 18rem;
 gap: 1rem;
 padding-bottom: 1rem;
 overflow-x: auto;
 scrollbar-width: none;
}

.scroll-row::-webkit-scrollbar {
 display: none;
}

.wide-grid {
 display: grid;
 grid-template-columns: repeat(2, minmax(0, 1fr));
 gap: 1.25rem;
}

.wide-card {
 display: flex;
 overflow: hidden;
 min-height: 12rem;
 background: rgba(30, 41, 59, 0.55);
 border: 1px solid rgba(51, 65, 85, 0.8);
 border-radius: 1rem;
 transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.wide-card:hover {
 background: rgba(30, 41, 59, 0.92);
 border-color: rgba(251, 191, 36, 0.28);
 transform: translateY(-2px);
}

.wide-poster {
 position: relative;
 flex: 0 0 11rem;
 overflow: hidden;
 background: #0f172a;
}

.poster-shade {
 position: absolute;
 inset: 0;
 background: rgba(0, 0, 0, 0.18);
}

.wide-body {
 display: flex;
 flex-direction: column;
 flex: 1 1 auto;
 gap: 0.7rem;
 min-width: 0;
 padding: 1.15rem;
}

.wide-body strong,
.rank-info strong {
 color: #ffffff;
 font-size: 1.1rem;
 line-height: 1.35;
 transition: color 0.2s ease;
}

.wide-desc {
 display: -webkit-box;
 overflow: hidden;
 color: #94a3b8;
 font-size: 0.92rem;
 -webkit-box-orient: vertical;
 -webkit-line-clamp: 3;
}

.tag-row {
 display: flex;
 flex-wrap: wrap;
 gap: 0.45rem;
}

.tag {
 display: inline-flex;
 align-items: center;
 padding: 0.18rem 0.52rem;
 color: #94a3b8;
 background: rgba(15, 23, 42, 0.66);
 border: 1px solid rgba(51, 65, 85, 0.9);
 border-radius: 999px;
 font-size: 0.78rem;
}

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

.rank-preview-item {
 display: flex;
 align-items: center;
 gap: 0.75rem;
 padding: 0.85rem;
 background: rgba(30, 41, 59, 0.55);
 border: 1px solid rgba(51, 65, 85, 0.8);
 border-radius: 0.9rem;
}

.rank-preview-item > span {
 flex: 0 0 2.2rem;
 color: #fbbf24;
 font-weight: 900;
 font-size: 1.25rem;
}

.rank-card {
 display: flex;
 align-items: center;
 gap: 0.75rem;
 min-width: 0;
}

.rank-cover {
 flex: 0 0 4.2rem;
 height: 4.2rem;
 overflow: hidden;
 background: #1e293b;
 border-radius: 0.55rem;
}

.rank-info {
 display: flex;
 flex-direction: column;
 gap: 0.25rem;
 min-width: 0;
}

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

.rank-info span {
 color: #94a3b8;
 font-size: 0.82rem;
}

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

.category-tile {
 position: relative;
 display: block;
 min-height: 13rem;
 overflow: hidden;
 background: #1e293b;
 border-radius: 1rem;
}

.category-tile.large {
 min-height: 18rem;
}

.tile-layer {
 position: absolute;
 inset: 0;
 background: linear-gradient(to top, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.28), transparent);
}

.tile-text {
 position: absolute;
 right: 1rem;
 bottom: 1rem;
 left: 1rem;
 display: flex;
 flex-direction: column;
 gap: 0.35rem;
}

.tile-text strong {
 font-size: 1.25rem;
 line-height: 1.25;
}

.tile-text span {
 display: -webkit-box;
 overflow: hidden;
 color: #cbd5e1;
 font-size: 0.9rem;
 -webkit-box-orient: vertical;
 -webkit-line-clamp: 2;
}

.page-hero {
 position: relative;
 overflow: hidden;
 padding: 3rem;
 background: radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.2), transparent 32%), linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.88));
 border: 1px solid rgba(51, 65, 85, 0.9);
 border-radius: 1.4rem;
}

.page-hero-copy {
 max-width: 820px;
}

.eyebrow {
 display: inline-flex;
 margin-bottom: 0.8rem;
 padding: 0.22rem 0.7rem;
 color: #fbbf24;
 background: rgba(251, 191, 36, 0.16);
 border: 1px solid rgba(251, 191, 36, 0.28);
 border-radius: 999px;
 font-size: 0.8rem;
 font-weight: 800;
}

.page-hero h1,
.player-title h1 {
 margin: 0;
 font-size: clamp(2rem, 4vw, 3.4rem);
 line-height: 1.12;
}

.page-hero p,
.player-title p {
 max-width: 760px;
 margin: 1rem 0 0;
 color: #cbd5e1;
 font-size: 1.05rem;
}

.filter-panel {
 display: grid;
 grid-template-columns: minmax(0, 1fr) 14rem;
 gap: 1rem;
 margin: 1.5rem 0 2rem;
 padding: 1rem;
 background: rgba(30, 41, 59, 0.58);
 border: 1px solid rgba(51, 65, 85, 0.9);
 border-radius: 1rem;
}

.filter-panel label {
 display: flex;
 flex-direction: column;
 gap: 0.35rem;
 color: #cbd5e1;
 font-size: 0.88rem;
 font-weight: 700;
}

.filter-panel input,
.filter-panel select {
 width: 100%;
 min-height: 2.7rem;
 padding: 0.6rem 0.85rem;
 color: #ffffff;
 background: #0f172a;
 border: 1px solid #334155;
 border-radius: 0.75rem;
 outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
 border-color: #fbbf24;
}

.breadcrumb {
 display: flex;
 flex-wrap: wrap;
 gap: 0.5rem;
 margin: 0 0 1.25rem;
 color: #94a3b8;
 font-size: 0.9rem;
}

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

.watch-layout {
 display: grid;
 grid-template-columns: minmax(0, 1fr) 18rem;
 gap: 1.5rem;
 align-items: start;
}

.player-card {
 overflow: hidden;
 background: rgba(30, 41, 59, 0.58);
 border: 1px solid rgba(51, 65, 85, 0.9);
 border-radius: 1.2rem;
}

.video-box {
 position: relative;
 aspect-ratio: 16 / 9;
 background: #000000;
}

.video-box video {
 width: 100%;
 height: 100%;
 background: #000000;
}

.play-cover {
 position: absolute;
 inset: 0;
 display: flex;
 align-items: center;
 justify-content: center;
 padding: 0;
 overflow: hidden;
 background: #000000;
 border: 0;
 cursor: pointer;
}

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

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

.play-cover-layer {
 position: absolute;
 inset: 0;
 background: rgba(0, 0, 0, 0.45);
}

.big-play {
 position: absolute;
 display: inline-flex;
 align-items: center;
 justify-content: center;
 width: 5rem;
 height: 5rem;
 padding-left: 0.2rem;
 color: #0f172a;
 background: #fbbf24;
 border-radius: 999px;
 font-size: 2rem;
 box-shadow: 0 20px 55px rgba(0, 0, 0, 0.4);
}

.player-title {
 padding: 1.3rem;
}

.detail-side {
 overflow: hidden;
 background: rgba(30, 41, 59, 0.58);
 border: 1px solid rgba(51, 65, 85, 0.9);
 border-radius: 1.2rem;
}

.detail-side img {
 aspect-ratio: 3 / 4;
 background: #1e293b;
}

.side-meta {
 padding: 1rem;
}

.detail-content {
 margin: 2rem 0 0;
}

.detail-main {
 padding: 1.6rem;
 background: rgba(30, 41, 59, 0.58);
 border: 1px solid rgba(51, 65, 85, 0.9);
 border-radius: 1.2rem;
}

.detail-main h2 {
 margin: 1.45rem 0 0.65rem;
 font-size: 1.45rem;
}

.detail-main p {
 margin: 0;
 color: #cbd5e1;
 white-space: pre-line;
}

.detail-tags {
 margin-top: 1.25rem;
}

.ranking-list {
 display: flex;
 flex-direction: column;
 gap: 1rem;
}

.ranking-row {
 display: grid;
 grid-template-columns: 4.5rem 7rem minmax(0, 1fr);
 gap: 1rem;
 align-items: center;
 padding: 1rem;
 background: rgba(30, 41, 59, 0.58);
 border: 1px solid rgba(51, 65, 85, 0.9);
 border-radius: 1rem;
}

.ranking-number {
 color: #fbbf24;
 font-size: 2rem;
 font-weight: 900;
 text-align: center;
}

.ranking-poster {
 display: block;
 aspect-ratio: 3 / 4;
 overflow: hidden;
 background: #1e293b;
 border-radius: 0.7rem;
}

.ranking-body h2 {
 margin: 0 0 0.45rem;
 font-size: 1.2rem;
 line-height: 1.3;
 transition: color 0.2s ease;
}

.ranking-body p {
 display: -webkit-box;
 overflow: hidden;
 margin: 0.75rem 0;
 color: #94a3b8;
 -webkit-box-orient: vertical;
 -webkit-line-clamp: 2;
}

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

.site-footer {
 margin-top: 5rem;
 background: #0f172a;
 border-top: 1px solid #1e293b;
}

.footer-shell {
 display: grid;
 grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
 gap: 2rem;
 width: min(1280px, calc(100% - 2rem));
 margin: 0 auto;
 padding: 3rem 0;
}

.footer-brand p {
 max-width: 28rem;
 margin: 1rem 0 0;
 color: #94a3b8;
}

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

.footer-grid h2 {
 margin: 0 0 0.8rem;
 font-size: 1rem;
}

.footer-links {
 display: flex;
 flex-direction: column;
 gap: 0.45rem;
}

.footer-links a {
 color: #94a3b8;
 font-size: 0.92rem;
}

.footer-links a:hover {
 color: #ffffff;
}

.footer-bottom {
 padding: 1rem;
 color: #94a3b8;
 border-top: 1px solid #1e293b;
 text-align: center;
}

@media (max-width: 1060px) {
 .nav-search {
 width: 14rem;
 }

 .nav-links {
 gap: 0.8rem;
 }

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

@media (max-width: 820px) {
 .nav-shell {
 flex-wrap: wrap;
 height: auto;
 min-height: 4rem;
 padding: 0.7rem 0;
 }

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

 .nav-links {
 display: none;
 order: 3;
 flex-basis: 100%;
 flex-direction: column;
 align-items: stretch;
 padding: 0.6rem 0;
 }

 .nav-links.is-open {
 display: flex;
 }

 .nav-link {
 padding: 0.6rem 0;
 }

 .nav-search {
 order: 4;
 width: 100%;
 }

 .hero-slider {
 height: 540px;
 }

 .hero-content {
 padding-bottom: 4rem;
 }

 .hero-dots {
 right: 1rem;
 bottom: 1rem;
 }

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

 .wide-card {
 flex-direction: column;
 }

 .wide-poster {
 flex-basis: auto;
 aspect-ratio: 16 / 9;
 }

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

 .watch-layout {
 grid-template-columns: 1fr;
 }

 .detail-side {
 display: grid;
 grid-template-columns: 9rem minmax(0, 1fr);
 }

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

@media (max-width: 560px) {
 .content-shell,
 .hero-content,
 .nav-shell,
 .footer-shell {
 width: min(100% - 1rem, 1280px);
 }

 .hero-slider {
 height: 560px;
 }

 .hero-actions {
 flex-direction: column;
 align-items: stretch;
 }

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

 .movie-grid,
 .compact-grid,
 .category-grid,
 .wide-grid,
 .rank-preview-list {
 grid-template-columns: 1fr;
 }

 .scroll-row {
 grid-auto-columns: 14rem;
 }

 .page-hero {
 padding: 1.5rem;
 }

 .ranking-row {
 grid-template-columns: 3.5rem 5.5rem minmax(0, 1fr);
 gap: 0.75rem;
 padding: 0.75rem;
 }

 .ranking-number {
 font-size: 1.4rem;
 }
}