* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #e5edf8;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.28), transparent 32rem),
        radial-gradient(circle at top right, rgba(8, 145, 178, 0.22), transparent 28rem),
        linear-gradient(135deg, #020617 0%, #0f172a 42%, #082f49 100%);
}

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

img {
    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;
    border-bottom: 1px solid rgba(30, 64, 175, 0.42);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.94), rgba(15, 23, 42, 0.96));
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.38);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

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

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    color: #020617;
    font-weight: 900;
    background: linear-gradient(135deg, #60a5fa, #22d3ee);
    box-shadow: 0 12px 35px rgba(34, 211, 238, 0.28);
}

.brand strong {
    display: block;
    font-size: 22px;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #dbeafe, #a5f3fc, #bfdbfe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand small {
    display: block;
    margin-top: 1px;
    color: rgba(147, 197, 253, 0.76);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.main-nav a,
.mobile-nav a {
    padding: 10px 15px;
    border-radius: 12px;
    color: #dbeafe;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

.main-nav a:hover,
.main-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.28);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.18);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 99px;
    background: #dbeafe;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid rgba(30, 64, 175, 0.35);
    background: rgba(15, 23, 42, 0.98);
}

.mobile-nav a {
    display: block;
    margin-top: 6px;
}

.section {
    padding: 72px 0;
}

.section.alt {
    background: rgba(15, 23, 42, 0.34);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.section-title h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(26px, 4vw, 36px);
}

.section-title span {
    flex: 1;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, transparent);
}

.section-lead {
    margin: -18px 0 30px;
    color: #94a3b8;
    line-height: 1.8;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    padding: 70px 0 80px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image: radial-gradient(circle, rgba(96, 165, 250, 0.26) 1px, transparent 1px);
    background-size: 30px 30px;
}

.hero-shell {
    position: relative;
    min-height: 520px;
    border: 1px solid rgba(59, 130, 246, 0.28);
    border-radius: 34px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.56);
    box-shadow: 0 35px 90px rgba(2, 6, 23, 0.45);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.72fr);
    gap: 34px;
    align-items: center;
    padding: clamp(26px, 5vw, 64px);
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) brightness(0.72);
    transform: scale(1.04);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.72) 44%, rgba(2, 6, 23, 0.36)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.94), transparent 54%, rgba(2, 6, 23, 0.48));
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(59, 130, 246, 0.36);
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.18);
    font-size: 13px;
    font-weight: 800;
}

.hero h1,
.hero h2 {
    margin: 20px 0 16px;
    max-width: 780px;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.05em;
    color: #ffffff;
}

.gradient-text {
    background: linear-gradient(90deg, #dbeafe, #a5f3fc, #bfdbfe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    max-width: 720px;
    margin: 0 0 22px;
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.82;
}

.hero-meta,
.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.hero-meta span,
.meta-line span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 9px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.62);
    font-size: 12px;
}

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

.primary-btn,
.secondary-btn,
.ghost-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.primary-btn {
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, #2563eb, #0891b2);
    box-shadow: 0 14px 35px rgba(37, 99, 235, 0.35);
}

.secondary-btn {
    min-height: 46px;
    padding: 0 20px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(15, 23, 42, 0.58);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-link:hover {
    transform: translateY(-2px);
}

.hero-poster {
    justify-self: end;
    width: min(100%, 360px);
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 28px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 22px 70px rgba(2, 6, 23, 0.55);
}

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

.hero-poster strong {
    display: block;
    padding: 16px 18px;
    color: #ffffff;
    font-size: 18px;
}

.hero-control {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.58);
    transform: translateY(-50%);
    cursor: pointer;
}

.hero-control.prev {
    left: 18px;
}

.hero-control.next {
    right: 18px;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(203, 213, 225, 0.44);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 30px;
    background: #38bdf8;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.58), rgba(15, 23, 42, 0.78));
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.22);
    transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(59, 130, 246, 0.72);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.88));
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: #020617;
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.movie-card-large .movie-poster img {
    aspect-ratio: 16 / 9;
}

.movie-card:hover .movie-poster img,
.mini-card:hover img,
.rank-row:hover img {
    transform: scale(1.08);
}

.movie-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 55%);
}

.movie-score {
    position: absolute;
    z-index: 2;
    top: 14px;
    right: 14px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.92);
    font-size: 12px;
    font-weight: 900;
}

.movie-play {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.76);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.movie-info {
    padding: 20px;
}

.movie-info h3,
.rank-content h3 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 20px;
    line-height: 1.35;
}

.movie-info h3 a:hover,
.rank-content h3 a:hover {
    color: #93c5fd;
}

.movie-info p,
.rank-content p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 48px;
    margin: 0 0 14px;
    color: #94a3b8;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.tag-row span {
    padding: 5px 8px;
    border-radius: 8px;
    color: #93c5fd;
    background: rgba(37, 99, 235, 0.18);
    font-size: 12px;
}

.scroller {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 2px 0 18px;
    scroll-snap-type: x mandatory;
}

.scroller .movie-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
}

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

.category-tile {
    display: block;
    min-height: 170px;
    padding: 24px;
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.20), transparent 42%),
        linear-gradient(135deg, rgba(30, 41, 59, 0.58), rgba(15, 23, 42, 0.82));
    transition: transform 0.28s ease, border-color 0.28s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(96, 165, 250, 0.72);
}

.category-tile strong {
    display: block;
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 22px;
}

.category-tile p {
    margin: 0;
    color: #94a3b8;
    line-height: 1.7;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.55);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(51, 65, 85, 0.92);
    border-radius: 14px;
    outline: 0;
    color: #dbeafe;
    background: rgba(2, 6, 23, 0.52);
    padding: 0 14px;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 68px 150px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #0891b2);
    font-size: 20px;
    font-weight: 900;
}

.rank-cover {
    overflow: hidden;
    border-radius: 14px;
}

.rank-cover img {
    width: 150px;
    height: 92px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.ghost-link {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.20);
}

.page-hero {
    padding: 64px 0 34px;
}

.page-hero-card {
    position: relative;
    overflow: hidden;
    padding: clamp(28px, 5vw, 52px);
    border: 1px solid rgba(59, 130, 246, 0.28);
    border-radius: 30px;
    background:
        radial-gradient(circle at 16% 0%, rgba(37, 99, 235, 0.28), transparent 34%),
        linear-gradient(135deg, rgba(30, 41, 59, 0.74), rgba(15, 23, 42, 0.90));
    box-shadow: 0 24px 70px rgba(2, 6, 23, 0.30);
}

.page-hero-card h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 6vw, 56px);
    color: #ffffff;
}

.page-hero-card p {
    max-width: 800px;
    margin: 0;
    color: #cbd5e1;
    line-height: 1.85;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    color: #93c5fd;
    font-size: 14px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
    padding: 36px 0 72px;
}

.player-card,
.detail-card,
.side-card {
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.58), rgba(15, 23, 42, 0.78));
    box-shadow: 0 22px 60px rgba(2, 6, 23, 0.25);
}

.player-card {
    overflow: hidden;
    margin-bottom: 24px;
}

.video-wrap {
    position: relative;
    overflow: hidden;
    background: #000000;
}

.video-wrap video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.24));
    cursor: pointer;
}

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

.player-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.86);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.40);
    cursor: pointer;
    font-size: 34px;
}

.player-title {
    padding: 18px 22px 20px;
}

.player-title h1 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: clamp(26px, 4vw, 38px);
}

.player-title p {
    margin: 0;
    color: #94a3b8;
    line-height: 1.75;
}

.detail-card {
    padding: 24px;
    margin-bottom: 24px;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 24px;
}

.detail-card p {
    color: #cbd5e1;
    line-height: 1.92;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 12px;
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.18);
}

.side-card {
    position: sticky;
    top: 92px;
    padding: 20px;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 12px;
    align-items: center;
}

.mini-thumb {
    overflow: hidden;
    border-radius: 12px;
    background: #020617;
}

.mini-thumb img {
    width: 112px;
    height: 72px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.mini-body strong {
    display: -webkit-box;
    overflow: hidden;
    color: #ffffff;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mini-body em {
    display: block;
    margin-top: 6px;
    color: #94a3b8;
    font-size: 12px;
    font-style: normal;
}

.empty-state {
    display: none;
    padding: 30px;
    text-align: center;
    color: #94a3b8;
    border: 1px solid rgba(51, 65, 85, 0.72);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.52);
}

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

.movie-card,
.category-tile,
.rank-row {
    animation: fadeIn 0.42s ease both;
}

@media (max-width: 1020px) {
    .main-nav {
        display: none;
    }

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

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

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

    .hero-poster {
        display: none;
    }

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

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

    .side-card {
        position: static;
    }
}

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

    .header-inner {
        height: 62px;
    }

    .brand small {
        display: none;
    }

    .hero {
        min-height: 560px;
        padding: 38px 0 48px;
    }

    .hero-shell {
        min-height: 530px;
        border-radius: 24px;
    }

    .hero-slide {
        padding: 28px 24px 70px;
    }

    .hero-control {
        display: none;
    }

    .card-grid,
    .card-grid.dense,
    .category-grid,
    .filter-panel {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 50px 0;
    }

    .rank-row {
        grid-template-columns: 48px 92px 1fr;
        gap: 12px;
    }

    .rank-number {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 16px;
    }

    .rank-cover img {
        width: 92px;
        height: 68px;
    }

    .rank-row .ghost-link {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .movie-info h3,
    .rank-content h3 {
        font-size: 18px;
    }

    .scroller .movie-card {
        flex-basis: 270px;
    }
}
