:root {
    --color-cyan: #06b6d4;
    --color-cyan-dark: #0891b2;
    --color-teal: #0d9488;
    --color-blue: #2563eb;
    --color-ink: #111827;
    --color-muted: #4b5563;
    --color-soft: #f8fafc;
    --color-line: #e5e7eb;
    --shadow-card: 0 20px 45px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.08);
    --radius-lg: 28px;
    --radius-md: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--color-ink);
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Helvetica, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-teal));
    box-shadow: 0 12px 24px rgba(6, 182, 212, 0.28);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a {
    padding: 9px 14px;
    border-radius: 999px;
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--color-cyan-dark);
    background: #ecfeff;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 13px;
    color: #0f172a;
    background: #f1f5f9;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    border-radius: 999px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 78px;
    background: linear-gradient(135deg, #cffafe 0%, #eff6ff 50%, #ccfbf1 100%);
}

.hero::before,
.hero::after,
.hero-glow {
    position: absolute;
    content: "";
    width: 380px;
    height: 380px;
    border-radius: 999px;
    filter: blur(52px);
    opacity: 0.35;
    mix-blend-mode: multiply;
    animation: blob 7s infinite;
}

.hero::before {
    top: -150px;
    right: -80px;
    background: #67e8f9;
}

.hero::after {
    bottom: -180px;
    left: -90px;
    background: #5eead4;
    animation-delay: 2s;
}

.hero-glow {
    top: 38%;
    left: 48%;
    background: #93c5fd;
    animation-delay: 4s;
}

@keyframes blob {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -45px) scale(1.08);
    }
    66% {
        transform: translate(-22px, 22px) scale(0.92);
    }
    100% {
        transform: translate(0, 0) scale(1);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 20px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-title {
    max-width: 780px;
    margin: 0 0 18px;
    font-size: clamp(36px, 7vw, 68px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.gradient-text {
    color: transparent;
    background: linear-gradient(90deg, var(--color-cyan-dark), var(--color-teal));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-lead {
    max-width: 720px;
    margin: 0 0 26px;
    color: var(--color-muted);
    font-size: 18px;
}

.hero-actions,
.section-actions,
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-teal));
    box-shadow: 0 18px 34px rgba(6, 182, 212, 0.28);
}

.btn-primary:hover,
.btn-ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.16);
}

.btn-ghost {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.84);
    border-color: rgba(203, 213, 225, 0.8);
}

.hero-stage {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    align-items: center;
    gap: 36px;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: minmax(210px, 1fr) auto;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-poster {
    position: relative;
    overflow: hidden;
    min-height: 238px;
}

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

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

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

.hero-tag {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 2;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    padding: 7px 12px;
    color: #ffffff;
    font-weight: 750;
    font-size: 13px;
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.86);
    backdrop-filter: blur(6px);
}

.hero-info {
    padding: 24px;
}

.hero-info h2 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.2;
}

.hero-info p {
    min-height: 54px;
    margin: 0 0 18px;
    color: var(--color-muted);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    color: #0f766e;
    font-size: 13px;
    font-weight: 700;
    background: #ccfbf1;
}

.slider-dots {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    gap: 8px;
    z-index: 4;
}

.slider-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
    transition: width 0.2s ease, background 0.2s ease;
}

.slider-dot.active {
    width: 26px;
    background: var(--color-cyan-dark);
}

.section {
    padding: 70px 0;
}

.section-soft {
    background: linear-gradient(135deg, #ecfeff 0%, #eff6ff 100%);
}

.section-teal {
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%);
}

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

.section-head h2,
.page-title,
.content-block h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.42);
    box-shadow: var(--shadow-card);
}

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

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

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

.card-badge,
.play-dot,
.rank-number {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 850;
    background: rgba(8, 145, 178, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.card-badge {
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.play-dot {
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    box-shadow: 0 12px 22px rgba(8, 145, 178, 0.32);
}

.card-body {
    padding: 17px;
}

.card-meta,
.meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 650;
}

.movie-card h3 {
    margin: 9px 0 8px;
    font-size: 18px;
    line-height: 1.28;
}

.movie-card h3 a:hover {
    color: var(--color-cyan-dark);
}

.movie-card p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--color-muted);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tag-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-line span {
    padding: 4px 8px;
    color: #0e7490;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    background: #ecfeff;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    padding: 24px;
    color: #ffffff;
    border-radius: 22px;
    background: linear-gradient(135deg, #06b6d4, #0d9488);
    box-shadow: var(--shadow-soft);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-tile::after {
    position: absolute;
    right: -24px;
    bottom: -30px;
    width: 104px;
    height: 104px;
    content: "";
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    transition: transform 0.4s ease;
}

.category-tile:hover::after {
    transform: scale(1.45);
}

.category-tile h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    font-size: 22px;
}

.category-tile p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #ecfeff;
    font-size: 14px;
}

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

.preview-panel {
    padding: 24px;
    border: 1px solid var(--color-line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.preview-panel h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

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

.preview-links {
    display: grid;
    gap: 10px;
}

.preview-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafc;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.preview-links a:hover {
    color: var(--color-cyan-dark);
    background: #ecfeff;
    transform: translateX(4px);
}

.page-hero {
    padding: 62px 0;
    background: linear-gradient(135deg, #cffafe, #eff6ff 58%, #ccfbf1);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #64748b;
    font-size: 14px;
}

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

.filter-card {
    padding: 18px;
    margin: 28px 0 0;
    border: 1px solid rgba(203, 213, 225, 0.8);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.filter-bar input,
.filter-bar select {
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    color: #0f172a;
    background: #ffffff;
    outline: none;
}

.filter-bar input {
    flex: 1 1 300px;
}

.filter-bar select {
    flex: 0 1 160px;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--color-cyan);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.14);
}

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

.rank-card {
    position: relative;
    display: grid;
    grid-template-columns: 76px 170px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--color-line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.rank-card:hover {
    transform: translateY(-3px);
    border-color: rgba(6, 182, 212, 0.42);
    box-shadow: var(--shadow-card);
}

.rank-index {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-teal));
}

.rank-cover {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    background: #e2e8f0;
}

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

.rank-card h3 {
    margin: 0 0 6px;
    font-size: 21px;
}

.rank-card h3 a:hover {
    color: var(--color-cyan-dark);
}

.rank-card p {
    margin: 0;
    color: var(--color-muted);
}

.heat {
    min-width: 88px;
    text-align: center;
    color: #0f766e;
    font-weight: 900;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    gap: 28px;
    align-items: start;
}

.player-card,
.side-card,
.content-block {
    overflow: hidden;
    border: 1px solid var(--color-line);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

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

.player-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-shade {
    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.76));
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.player-shade.hide {
    opacity: 0;
    pointer-events: none;
}

.player-launch {
    width: 78px;
    height: 78px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-teal));
    box-shadow: 0 18px 42px rgba(6, 182, 212, 0.36);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.player-launch:hover {
    transform: scale(1.06);
    box-shadow: 0 20px 48px rgba(6, 182, 212, 0.45);
}

.player-launch svg {
    width: 30px;
    height: 30px;
    margin-left: 4px;
}

.player-info {
    padding: 26px;
}

.player-info h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.player-info p {
    margin: 0 0 18px;
    color: var(--color-muted);
    font-size: 17px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    background: #e2e8f0;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.side-card {
    padding: 22px;
}

.side-card h2 {
    margin: 0 0 14px;
    font-size: 22px;
}

.side-list {
    display: grid;
    gap: 12px;
}

.side-list a {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: #f8fafc;
    transition: background 0.2s ease, transform 0.2s ease;
}

.side-list a:hover {
    background: #ecfeff;
    transform: translateX(4px);
}

.side-list img {
    width: 74px;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 12px;
}

.side-list strong {
    display: block;
    line-height: 1.25;
}

.side-list span {
    color: #64748b;
    font-size: 13px;
}

.content-block {
    padding: 28px;
    margin-top: 26px;
}

.content-block p {
    margin: 14px 0 0;
    color: #374151;
    font-size: 17px;
}

.detail-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.site-footer {
    padding: 42px 0;
    color: #64748b;
    background: #0f172a;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-inner strong {
    color: #ffffff;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

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

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

video::-webkit-media-controls-panel {
    background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.60));
}

video::-webkit-media-controls-play-button {
    background-color: rgba(6, 182, 212, 0.90);
    border-radius: 50%;
}

video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display {
    color: #ffffff;
}

@media (max-width: 1060px) {
    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .hero-slider {
        min-height: 470px;
    }
}

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

    .nav-toggle {
        display: inline-block;
    }

    .site-nav {
        position: absolute;
        top: 64px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--color-line);
        border-radius: 18px;
        background: #ffffff;
        box-shadow: var(--shadow-card);
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        border-radius: 14px;
    }

    .hero {
        padding: 48px 0 58px;
    }

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

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

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

    .rank-card {
        grid-template-columns: 54px 110px minmax(0, 1fr);
    }

    .rank-card .heat {
        grid-column: 2 / 4;
        text-align: left;
    }
}

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

    .hero-info {
        padding: 18px;
    }

    .hero-info h2 {
        font-size: 24px;
    }

    .movie-grid {
        gap: 16px;
    }

    .rank-card {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .rank-cover {
        display: none;
    }

    .rank-card .heat {
        grid-column: 2 / 3;
    }
}
