:root {
    color-scheme: light;
    --sky-50: #f0f9ff;
    --sky-100: #e0f2fe;
    --sky-200: #bae6fd;
    --sky-400: #38bdf8;
    --sky-500: #0ea5e9;
    --blue-500: #3b82f6;
    --amber-400: #fbbf24;
    --ink: #172033;
    --muted: #607089;
    --line: #e7edf5;
    --panel: rgba(255, 255, 255, 0.92);
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 0%, rgba(14, 165, 233, 0.18), transparent 28rem),
        radial-gradient(circle at 88% 12%, rgba(59, 130, 246, 0.14), transparent 26rem),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 42%, #eef8ff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.82);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

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

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

.brand-mark {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky-400), var(--blue-500));
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.35);
}

.brand-mark::before {
    content: "▶";
    font-size: 17px;
    margin-left: 2px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(90deg, var(--sky-500), var(--blue-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-tagline {
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--muted);
}

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

.nav-link,
.mobile-link {
    padding: 10px 14px;
    color: #42526b;
    border-radius: 14px;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--sky-500);
    background: var(--sky-50);
}

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

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--ink);
    outline: none;
    transition: 0.2s ease;
}

.header-search input {
    width: 220px;
    padding: 11px 18px;
}

.header-search button,
.mobile-search button,
.hero-cta,
.section-action,
.player-button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky-500), var(--blue-500));
    box-shadow: 0 14px 28px rgba(14, 165, 233, 0.26);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
    padding: 11px 16px;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--sky-400);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
}

.header-search button:hover,
.mobile-search button:hover,
.hero-cta:hover,
.section-action:hover,
.player-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(14, 165, 233, 0.32);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: #42526b;
    background: var(--sky-50);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

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

.mobile-search {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.mobile-search input {
    width: 100%;
    padding: 12px 16px;
}

.mobile-search button {
    padding: 10px 16px;
}

.mobile-link {
    display: block;
}

.main-wrap {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
}

.hero {
    position: relative;
    min-height: 600px;
    margin: 32px auto 38px;
    overflow: hidden;
    border-radius: 36px;
    background: linear-gradient(135deg, #eff9ff, #ffffff 44%, #eaf7ff);
    box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    filter: blur(12px);
    opacity: 0.7;
}

.hero::before {
    left: -120px;
    top: -120px;
    background: rgba(56, 189, 248, 0.24);
}

.hero::after {
    right: -80px;
    bottom: -140px;
    background: rgba(59, 130, 246, 0.18);
}

.hero-track {
    position: relative;
    z-index: 1;
    min-height: 600px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.74fr);
    gap: 44px;
    align-items: center;
    padding: 58px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #075985;
    background: rgba(224, 242, 254, 0.9);
    font-size: 0.9rem;
    font-weight: 700;
}

.hero h1 {
    margin: 0;
    max-width: 780px;
    color: #0f172a;
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: -0.08em;
}

.hero p {
    max-width: 690px;
    margin: 22px 0 0;
    color: #475569;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    line-height: 1.9;
}

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

.hero-cta,
.section-action,
.player-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    font-weight: 800;
}

.hero-cta.secondary,
.section-action.secondary {
    color: var(--sky-500);
    background: #ffffff;
    border: 1px solid var(--sky-100);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.hero-poster {
    position: relative;
    align-self: stretch;
    min-height: 390px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 34px 72px rgba(15, 23, 42, 0.25);
    background: #dbeafe;
}

.hero-poster img {
    width: 100%;
    height: 100%;
    min-height: 390px;
    object-fit: cover;
    transform: scale(1.02);
}

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

.hero-card-caption {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 1;
    color: #ffffff;
}

.hero-card-caption strong {
    display: block;
    font-size: 1.15rem;
}

.hero-card-caption span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.92rem;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 58px;
    right: 58px;
    bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 50%;
    background: #bae6fd;
    cursor: pointer;
}

.hero-dot.active {
    width: 32px;
    border-radius: 999px;
    background: var(--sky-500);
}

.hero-arrows {
    display: flex;
    gap: 10px;
    pointer-events: auto;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border: 1px solid var(--sky-100);
    border-radius: 50%;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.88);
    cursor: pointer;
}

.section {
    margin: 48px 0;
}

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

.section-head h1,
.section-head h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.section-head p,
.page-hero p,
.detail-title p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.78);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: var(--sky-200);
    box-shadow: 0 28px 70px rgba(14, 165, 233, 0.18);
}

.movie-card.is-hidden {
    display: none;
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #dbeafe;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.58));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.play-chip {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(14, 165, 233, 0.92);
    transform: translate(-50%, -50%) scale(0.78);
    opacity: 0;
    transition: 0.28s ease;
}

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

.rank-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    min-width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber-400), #f97316);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.28);
}

.card-body {
    padding: 18px;
}

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

.card-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f8fafc;
}

.card-body h2 {
    margin: 12px 0 8px;
    font-size: 1.1rem;
    line-height: 1.35;
}

.card-body h2 a:hover {
    color: var(--sky-500);
}

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

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag-row span,
.detail-tags span {
    padding: 6px 10px;
    border-radius: 999px;
    color: #0369a1;
    background: var(--sky-50);
    font-size: 0.82rem;
    font-weight: 700;
}

.score-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: #64748b;
    font-size: 0.9rem;
}

.score-row span {
    color: #f59e0b;
    font-weight: 900;
}

.score-row a {
    color: var(--sky-500);
    font-weight: 800;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(186, 230, 253, 0.9);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 255, 0.92));
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -60px;
    bottom: -70px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.18);
}

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

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.7;
}

.category-card span {
    position: relative;
    z-index: 1;
    color: var(--sky-500);
    font-weight: 900;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 50px 118px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.rank-number {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--sky-500), var(--blue-500));
    font-weight: 900;
}

.rank-item img {
    width: 118px;
    height: 70px;
    object-fit: cover;
    border-radius: 18px;
    background: #dbeafe;
}

.rank-item h2 {
    margin: 0 0 6px;
    font-size: 1.04rem;
}

.rank-item p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.page-hero {
    margin: 34px 0 28px;
    padding: 42px;
    border: 1px solid rgba(186, 230, 253, 0.78);
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 249, 255, 0.92)),
        radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.22), transparent 26rem);
    box-shadow: var(--shadow);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(150px, 0.7fr));
    gap: 14px;
    margin: 28px 0 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.filter-panel label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    padding: 12px 14px;
}

.empty-state {
    display: none;
    padding: 30px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--sky-200);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
}

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

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0;
    color: #64748b;
    font-size: 0.92rem;
}

.breadcrumbs a {
    color: var(--sky-500);
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.2fr);
    gap: 34px;
    align-items: stretch;
    margin-bottom: 34px;
}

.detail-cover {
    overflow: hidden;
    border-radius: 32px;
    background: #dbeafe;
    box-shadow: var(--shadow);
}

.detail-cover img {
    width: 100%;
    height: 100%;
    min-height: 390px;
    object-fit: cover;
}

.detail-title {
    padding: 38px;
    border: 1px solid rgba(186, 230, 253, 0.72);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #475569;
    background: #f8fafc;
    font-weight: 800;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    margin: 34px 0;
    border-radius: 34px;
    background: #020617;
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.28);
}

.player-shell video {
    width: 100%;
    min-height: 360px;
    max-height: 72vh;
    background: #020617;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.74));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-layer.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.player-button {
    min-width: 132px;
    min-height: 52px;
    font-size: 1rem;
}

.content-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
    align-items: start;
}

.article-box,
.side-box {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
}

.article-box {
    padding: 30px;
}

.article-box h2,
.side-box h2 {
    margin: 0 0 16px;
    font-size: 1.45rem;
}

.article-box p {
    margin: 0 0 18px;
    color: #42526b;
    font-size: 1.02rem;
    line-height: 2;
}

.side-box {
    padding: 20px;
}

.mini-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    transition: 0.2s ease;
}

.mini-card:hover {
    background: var(--sky-50);
}

.mini-card img {
    width: 92px;
    height: 56px;
    object-fit: cover;
    border-radius: 14px;
    background: #dbeafe;
}

.mini-card strong,
.mini-card em {
    display: block;
}

.mini-card strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.95rem;
}

.mini-card em {
    margin-top: 4px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.8rem;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-footer {
    margin-top: 70px;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(240, 249, 255, 0.92));
}

.footer-inner {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    padding: 44px 0 28px;
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: 900;
}

.footer-brand .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 14px;
}

.footer-inner p {
    max-width: 430px;
    color: var(--muted);
    line-height: 1.8;
}

.footer-inner h2 {
    margin: 0 0 14px;
    font-size: 1rem;
}

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

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

.footer-links a:hover {
    color: var(--sky-500);
}

.footer-bottom {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: #64748b;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    font-size: 0.92rem;
}

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

    .menu-toggle {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
    }

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

    .hero-slide {
        padding: 42px;
    }

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

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

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

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

@media (max-width: 760px) {
    .header-inner {
        height: 68px;
    }

    .brand-tagline {
        display: none;
    }

    .main-wrap {
        width: min(100% - 24px, 1220px);
    }

    .hero {
        min-height: 740px;
        border-radius: 28px;
    }

    .hero-track {
        min-height: 740px;
    }

    .hero-slide {
        gap: 26px;
        padding: 28px;
    }

    .hero h1 {
        font-size: clamp(2.25rem, 14vw, 4rem);
    }

    .hero-controls {
        left: 28px;
        right: 28px;
    }

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

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

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

    .rank-item {
        grid-template-columns: 42px 96px minmax(0, 1fr);
    }

    .rank-item img {
        width: 96px;
        height: 60px;
    }

    .page-hero,
    .detail-title,
    .article-box {
        padding: 24px;
        border-radius: 24px;
    }

    .player-shell video {
        min-height: 220px;
    }

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