* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
    color: #1f2937;
    background: #f6fbff;
    line-height: 1.6;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(14, 165, 233, 0.14);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 74px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 12px 28px rgba(8, 145, 178, 0.34);
}

.brand-text {
    font-size: 22px;
    letter-spacing: 0.02em;
}

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

.main-nav > a,
.nav-more > button {
    border: 0;
    background: transparent;
    padding: 10px 14px;
    border-radius: 12px;
    color: #334155;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.main-nav > a:hover,
.nav-more:hover > button {
    color: #0891b2;
    background: #ecfeff;
}

.nav-more {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: 44px;
    left: 0;
    min-width: 150px;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.16);
    border: 1px solid #e0f2fe;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.nav-more:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown a {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    color: #475569;
}

.nav-dropdown a:hover {
    color: #0891b2;
    background: #f0fdfa;
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #bae6fd;
    border-radius: 999px;
    padding: 3px;
    box-shadow: 0 8px 24px rgba(14, 165, 233, 0.08);
}

.header-search input {
    width: 210px;
    border: 0;
    outline: 0;
    padding: 8px 12px 8px 16px;
    background: transparent;
    color: #0f172a;
}

.header-search button {
    border: 0;
    padding: 8px 16px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    cursor: pointer;
    font-weight: 700;
}

.mobile-toggle {
    display: none;
    border: 0;
    background: #ecfeff;
    color: #0e7490;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    font-size: 24px;
}

.mobile-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 24px 22px;
    border-top: 1px solid #e0f2fe;
}

.mobile-panel a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: #334155;
    font-weight: 700;
}

.mobile-panel a:hover {
    background: #ecfeff;
    color: #0891b2;
}

.hero {
    position: relative;
    min-height: 600px;
    color: #ffffff;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #0e7490 45%, #2563eb 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(4px);
    opacity: 0.65;
    pointer-events: none;
}

.hero::before {
    width: 420px;
    height: 420px;
    right: -120px;
    top: -110px;
    background: rgba(34, 211, 238, 0.3);
}

.hero::after {
    width: 520px;
    height: 520px;
    left: -180px;
    bottom: -180px;
    background: rgba(59, 130, 246, 0.36);
}

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

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.64) 48%, rgba(8, 145, 178, 0.38) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 600px;
    padding: 76px 24px 92px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) 420px;
    align-items: center;
    gap: 48px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(14px);
    color: #cffafe;
    font-weight: 700;
}

.hero h1 {
    margin: 24px 0 18px;
    font-size: clamp(38px, 5vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0;
    max-width: 760px;
    color: #dffbff;
    font-size: 18px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 34px;
}

.hero-meta span,
.movie-tags span,
.detail-tags span,
.filter-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-meta span {
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.btn-primary,
.btn-secondary,
.play-link,
.section-link,
.filter-form button,
.player-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-primary,
.play-link,
.filter-form button {
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.24);
}

.btn-primary {
    min-height: 52px;
    padding: 0 28px;
}

.btn-secondary {
    min-height: 52px;
    padding: 0 24px;
    color: #e0f2fe;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.btn-primary:hover,
.btn-secondary:hover,
.play-link:hover,
.section-link:hover,
.filter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.28);
}

.hero-poster {
    position: relative;
    padding: 16px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(18px);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.26);
}

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

.hero-poster-card {
    position: absolute;
    left: -28px;
    bottom: 28px;
    width: 220px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    color: #0f172a;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.26);
}

.hero-poster-card strong {
    display: block;
    color: #0891b2;
    font-size: 24px;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(14px);
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.hero-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    opacity: 0.7;
    transition: width 0.25s ease, opacity 0.25s ease;
}

.hero-dot.is-active {
    width: 28px;
    opacity: 1;
    background: #22d3ee;
}

main,
.page-main {
    width: 100%;
}

.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 24px;
}

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

.section-heading h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.section-heading h2 {
    font-size: clamp(28px, 3vw, 42px);
}

.section-heading p,
.page-title p {
    margin: 8px 0 0;
    color: #64748b;
}

.section-link {
    padding: 10px 18px;
    color: #0891b2;
    background: #ecfeff;
}

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

.movie-grid.compact-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.movie-card {
    background: #ffffff;
    border: 1px solid rgba(186, 230, 253, 0.86);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: #67e8f9;
    box-shadow: 0 24px 60px rgba(8, 145, 178, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    background: linear-gradient(135deg, #dffbff, #dbeafe);
}

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

.poster-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(8, 145, 178, 0.86);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.movie-card-body {
    padding: 18px;
}

.movie-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.movie-tags span,
.detail-tags span,
.filter-chip {
    color: #0e7490;
    background: #ecfeff;
}

.movie-card h3 {
    margin: 12px 0 8px;
    font-size: 20px;
    line-height: 1.25;
    color: #0f172a;
}

.movie-card h3 a:hover {
    color: #0891b2;
}

.movie-meta {
    margin: 0 0 10px;
    color: #64748b;
    font-size: 14px;
}

.movie-desc {
    min-height: 66px;
    margin: 0 0 16px;
    color: #475569;
    font-size: 15px;
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.play-link {
    min-height: 38px;
    padding: 0 16px;
    font-size: 14px;
}

.text-link {
    color: #0891b2;
    font-weight: 800;
    font-size: 14px;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    padding: 24px;
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    overflow: hidden;
    box-shadow: 0 24px 58px rgba(37, 99, 235, 0.2);
}

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

.category-card h3 {
    position: relative;
    margin: 0 0 12px;
    font-size: 24px;
}

.category-card p {
    position: relative;
    margin: 0 0 24px;
    color: #e0f2fe;
}

.category-card span {
    position: relative;
    display: inline-flex;
    padding: 9px 14px;
    border-radius: 999px;
    color: #0e7490;
    background: #ffffff;
    font-weight: 800;
}

.cta-band {
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    color: #ffffff;
    text-align: center;
}

.cta-band .section {
    padding-top: 56px;
    padding-bottom: 56px;
}

.cta-band h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 46px);
}

.cta-band p {
    max-width: 760px;
    margin: 0 auto 26px;
    color: #e0f2fe;
}

.page-hero {
    background: radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.24), transparent 34%), linear-gradient(135deg, #0f172a, #0e7490 55%, #2563eb);
    color: #ffffff;
}

.page-title {
    max-width: 1280px;
    margin: 0 auto;
    padding: 68px 24px;
}

.page-title h1 {
    color: #ffffff;
    font-size: clamp(34px, 5vw, 58px);
}

.page-title p {
    max-width: 780px;
    color: #dffbff;
    font-size: 18px;
}

.filter-panel {
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid #bae6fd;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.07);
}

.filter-form {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.filter-form input,
.filter-form select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #bae6fd;
    border-radius: 14px;
    padding: 0 12px;
    color: #0f172a;
    background: #f8fdff;
    outline: 0;
}

.filter-form input:focus,
.filter-form select:focus {
    border-color: #22d3ee;
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14);
}

.filter-form button {
    min-height: 44px;
    padding: 0 18px;
}

.search-status {
    display: none;
    margin-top: 12px;
    color: #0891b2;
    font-weight: 700;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid #bae6fd;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}

.rank-num {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4, #2563eb);
    font-size: 22px;
    font-weight: 900;
}

.rank-item h3 {
    margin: 0 0 6px;
    font-size: 19px;
}

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

.rank-item .play-link {
    white-space: nowrap;
}

.breadcrumb {
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px 24px 0;
    color: #64748b;
    font-size: 14px;
}

.breadcrumb a {
    color: #0891b2;
    font-weight: 700;
}

.detail-layout {
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 24px 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
}

.player-card,
.detail-info-card,
.side-panel {
    background: #ffffff;
    border: 1px solid #bae6fd;
    border-radius: 28px;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

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

.player-wrap video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
    object-fit: contain;
}

.player-start {
    position: absolute;
    inset: 0;
    flex-direction: column;
    gap: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.66), rgba(8, 145, 178, 0.42));
    border-radius: 0;
}

.player-start span {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    font-size: 30px;
    padding-left: 5px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.2);
}

.player-start strong {
    font-size: 18px;
    letter-spacing: 0.08em;
}

.detail-info-card {
    padding: 28px;
    margin-top: 22px;
}

.detail-title h1 {
    font-size: clamp(30px, 4vw, 50px);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 18px;
    color: #475569;
    font-weight: 700;
}

.detail-copy h2 {
    margin: 28px 0 10px;
    color: #0f172a;
    font-size: 24px;
}

.detail-copy p {
    margin: 0;
    color: #334155;
}

.side-panel {
    padding: 22px;
    align-self: start;
    position: sticky;
    top: 96px;
}

.side-poster {
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 18px;
}

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

.side-panel h2 {
    margin: 0 0 12px;
    color: #0f172a;
}

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

.side-link-list a {
    padding: 12px;
    border-radius: 14px;
    background: #f0fdfa;
    color: #0e7490;
    font-weight: 800;
}

.side-link-list a:hover {
    background: #cffafe;
}

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

.site-footer {
    margin-top: 30px;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    color: #ffffff;
    margin-bottom: 14px;
}

.site-footer p {
    max-width: 520px;
    margin: 0;
    color: #cbd5e1;
}

.site-footer h3 {
    margin: 0 0 16px;
    color: #22d3ee;
}

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

.footer-links a {
    color: #cbd5e1;
}

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

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    padding: 18px 24px;
    text-align: center;
    color: #94a3b8;
}

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

@media (max-width: 1100px) {
    .header-search {
        display: none;
    }

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

    .hero-poster {
        max-width: 360px;
    }

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

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

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

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

    .side-panel {
        position: static;
    }
}

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

    .mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

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

    .header-inner {
        min-height: 66px;
        padding: 0 18px;
    }

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

    .hero,
    .hero-content {
        min-height: 720px;
    }

    .hero-content {
        padding-top: 52px;
        gap: 28px;
    }

    .hero-poster-card {
        left: 14px;
        bottom: 14px;
    }

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

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

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

    .rank-item .play-link {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero-actions,
    .card-actions,
    .filter-form {
        flex-direction: column;
        display: flex;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary,
    .filter-form button {
        width: 100%;
    }

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

    .hero-poster {
        width: 100%;
    }

    .detail-info-card,
    .side-panel {
        padding: 20px;
    }
}
