* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #111827;
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 38%, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.header-inner {
    max-width: 1180px;
    min-height: 68px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    box-shadow: 0 16px 30px rgba(2, 132, 199, 0.3);
}

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

.main-nav a {
    padding: 9px 14px;
    border-radius: 12px;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: #0369a1;
    background: #e0f2fe;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #0f172a;
    background: #f1f5f9;
    cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-open span {
    opacity: 0;
}

.menu-toggle.is-open::before {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open::after {
    transform: translateY(-7px) rotate(-45deg);
}

.page-shell {
    min-height: 100vh;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
    color: #ffffff;
    background: #0f172a;
}

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

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

.hero-media {
    position: absolute;
    inset: 0;
}

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

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.86) 0%, rgba(15, 23, 42, 0.58) 45%, rgba(15, 23, 42, 0.08) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 690px;
    padding-top: 34px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 8px 16px;
    border-radius: 999px;
    color: #ffffff;
    background: #0284c7;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 18px 36px rgba(2, 132, 199, 0.35);
}

.hero-title {
    margin: 0 0 18px;
    font-size: clamp(42px, 6vw, 66px);
    line-height: 1.04;
    letter-spacing: -0.06em;
    font-weight: 900;
}

.hero-text {
    max-width: 650px;
    margin: 0 0 22px;
    color: #e5e7eb;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 28px;
}

.hero-meta span {
    padding: 6px 12px;
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: #0284c7;
    box-shadow: 0 18px 36px rgba(2, 132, 199, 0.36);
}

.primary-button:hover {
    background: #0369a1;
    transform: translateY(-2px) scale(1.02);
}

.secondary-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hero-search {
    position: absolute;
    left: 50%;
    bottom: 38px;
    z-index: 4;
    width: min(760px, calc(100% - 40px));
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 10px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    transform: translateX(-50%);
    backdrop-filter: blur(16px);
}

.hero-search input {
    min-width: 0;
    border: 0;
    outline: 0;
    border-radius: 16px;
    padding: 0 18px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.95);
}

.hero-search button {
    border: 0;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(14px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.06);
}

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

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

.hero-dots {
    position: absolute;
    right: 38px;
    bottom: 48px;
    z-index: 6;
    display: flex;
    gap: 8px;
}

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

.hero-dot.is-active {
    width: 34px;
    background: #ffffff;
}

.section {
    padding: 74px 0;
}

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

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
}

.section-kicker {
    margin: 0 0 8px;
    color: #0284c7;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.section-title {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.section-desc {
    max-width: 680px;
    margin: 12px 0 0;
    color: #64748b;
}

.more-link {
    color: #0284c7;
    font-weight: 800;
    white-space: nowrap;
}

.more-link:hover {
    color: #0369a1;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 45px rgba(15, 23, 42, 0.16);
}

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

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

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 23, 42, 0.76) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.year-badge,
.category-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.year-badge {
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    color: #ffffff;
    background: #0284c7;
}

.category-badge {
    left: 12px;
    bottom: 12px;
    padding: 4px 10px;
    color: #e0f2fe;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
}

.rank-badge {
    top: 12px;
    left: 12px;
    padding: 5px 11px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0284c7;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.28);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
    padding: 18px;
}

.card-title {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 900;
}

.card-title a:hover {
    color: #0284c7;
}

.card-desc {
    min-height: 46px;
    margin: 0 0 14px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

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

.category-tile {
    position: relative;
    min-height: 190px;
    padding: 24px;
    overflow: hidden;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7, #0f172a);
    box-shadow: 0 20px 36px rgba(2, 132, 199, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -30px;
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 45px rgba(2, 132, 199, 0.28);
}

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

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

.category-tile span {
    position: relative;
    z-index: 1;
    font-weight: 900;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 160px 160px;
    gap: 14px;
    margin: 28px 0 30px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.filter-panel input,
.filter-panel select {
    min-height: 46px;
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    outline: 0;
    padding: 0 14px;
    color: #0f172a;
    background: #ffffff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.14);
}

.empty-state {
    margin: 34px 0 0;
    padding: 32px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    color: #64748b;
    text-align: center;
    background: #ffffff;
}

.empty-state.is-hidden {
    display: none;
}

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

.rank-item {
    counter-increment: rank;
    display: grid;
    grid-template-columns: 74px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.14);
}

.rank-number {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    font-size: 18px;
    font-weight: 900;
}

.rank-text h3 {
    margin: 0 0 6px;
    font-size: 18px;
    line-height: 1.35;
}

.rank-text p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.rank-action {
    color: #0284c7;
    font-weight: 900;
}

.page-hero {
    padding: 78px 0 48px;
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.42), transparent 30%), linear-gradient(135deg, #0f172a, #075985 68%, #0284c7);
}

.page-hero h1 {
    max-width: 840px;
    margin: 0;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 780px;
    margin: 16px 0 0;
    color: #dbeafe;
    font-size: 18px;
}

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

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

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

.player-card,
.detail-card,
.sidebar-card {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
    overflow: hidden;
}

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

.player-box video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
    cursor: pointer;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(2, 6, 23, 0.24);
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.1), rgba(2, 6, 23, 0.72));
}

.big-play {
    position: relative;
    z-index: 2;
    width: 92px;
    height: 92px;
    border: 0;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0284c7;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 50px rgba(2, 6, 23, 0.38);
    cursor: pointer;
    transition: transform 0.22s ease;
}

.player-cover:hover .big-play {
    transform: scale(1.08);
}

.player-info {
    padding: 24px;
}

.player-info h2,
.detail-card h2,
.sidebar-card h2 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.player-info p,
.detail-card p {
    margin: 0;
    color: #475569;
}

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

.detail-card p + p {
    margin-top: 16px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 18px 0 0;
}

.tag-cloud span,
.tag-cloud a {
    padding: 6px 11px;
    border-radius: 999px;
    color: #0369a1;
    background: #e0f2fe;
    font-size: 13px;
    font-weight: 800;
}

.sidebar-card {
    padding: 22px;
}

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

.side-link {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 12px;
    align-items: center;
}

.side-link img {
    width: 96px;
    height: 62px;
    object-fit: cover;
    border-radius: 14px;
}

.side-link strong {
    display: block;
    margin-bottom: 4px;
    color: #0f172a;
    line-height: 1.35;
}

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

.site-footer {
    margin-top: 72px;
    color: #cbd5e1;
    background: #111827;
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 20px 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 26px;
    margin-bottom: 34px;
}

.footer-title {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

.footer-text {
    max-width: 360px;
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
}

.footer-links {
    display: grid;
    gap: 8px;
    color: #94a3b8;
    font-size: 14px;
}

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

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #64748b;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .movie-grid,
    .movie-grid.large,
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

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

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

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid #e2e8f0;
        border-radius: 18px;
        background: #ffffff;
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
    }

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

    .hero-slider {
        height: 680px;
    }

    .hero-content {
        align-items: flex-start;
        padding-top: 88px;
    }

    .hero-copy {
        padding-top: 0;
    }

    .hero-search {
        grid-template-columns: 1fr;
        bottom: 28px;
    }

    .hero-search input,
    .hero-search button {
        min-height: 46px;
    }

    .hero-control {
        display: none;
    }

    .hero-dots {
        right: 20px;
        bottom: 116px;
    }

    .section {
        padding: 52px 0;
    }

    .section-header {
        display: block;
    }

    .more-link {
        display: inline-flex;
        margin-top: 14px;
    }

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

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

    .rank-item {
        grid-template-columns: 52px 1fr;
    }

    .rank-action {
        grid-column: 2;
    }

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

    .brand {
        font-size: 20px;
    }
}
