:root {
    color-scheme: light;
    --teal: #14b8a6;
    --cyan: #0891b2;
    --deep: #0f172a;
    --slate: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --soft: #f8fafc;
    --panel: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--deep);
    background: linear-gradient(180deg, #f8fafc 0%, #eef7f7 48%, #ffffff 100%);
    line-height: 1.65;
}

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: 80;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo {
    font-size: 23px;
    white-space: nowrap;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 14px 28px rgba(20, 184, 166, 0.28);
    font-size: 14px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #475569;
    font-weight: 650;
    margin-left: auto;
}

.desktop-nav a,
.mobile-panel a,
.footer-links a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover,
.footer-links a:hover {
    color: var(--teal);
}

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

.header-search input,
.mobile-panel input,
.filter-bar input,
.filter-bar select {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 10px 15px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 210px;
}

.header-search input:focus,
.mobile-panel input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.16);
}

.header-search button,
.mobile-panel button,
.primary-btn,
.secondary-btn,
.filter-clear,
.player-button,
.slide-link {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 750;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.header-search button,
.primary-btn,
.slide-link {
    color: #fff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 14px 30px rgba(20, 184, 166, 0.26);
}

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

.header-search button:hover,
.primary-btn:hover,
.slide-link:hover,
.player-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 38px rgba(20, 184, 166, 0.32);
}

.menu-toggle {
    display: none;
    border: 0;
    border-radius: 12px;
    padding: 9px 12px;
    background: #f1f5f9;
    color: var(--deep);
}

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

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

.mobile-panel nav {
    display: grid;
    gap: 12px;
    padding: 14px 0;
    color: #475569;
    font-weight: 700;
}

.mobile-panel form {
    display: flex;
    gap: 8px;
}

.mobile-panel input {
    width: 100%;
}

.mobile-panel button {
    padding: 10px 16px;
    color: #fff;
    background: var(--teal);
}

.hero {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    background: #020617;
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 5s ease;
}

.hero-slide.is-active img {
    transform: scale(1.0);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.65) 44%, rgba(2, 6, 23, 0.18) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 72vh;
    margin: 0 auto;
    padding: 92px 24px 74px;
    display: flex;
    align-items: flex-end;
}

.hero-copy {
    max-width: 720px;
    color: #fff;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(20, 184, 166, 0.92);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.hero h1 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.hero p {
    margin: 0 0 22px;
    max-width: 680px;
    color: #e2e8f0;
    font-size: clamp(17px, 2vw, 21px);
}

.hero-meta,
.detail-meta,
.card-meta,
.page-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    color: #cbd5e1;
    font-weight: 650;
}

.hero-meta {
    margin-bottom: 28px;
}

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

.slide-link,
.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 22px;
}

.secondary-btn {
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(226, 232, 240, 0.22);
}

.secondary-btn:hover {
    transform: translateY(-2px);
    background: rgba(15, 23, 42, 0.76);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(2, 6, 23, 0.45);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(2, 6, 23, 0.72);
    transform: translateY(-50%) scale(1.06);
}

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

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

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

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.52);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: #fff;
}

.main-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 58px 24px 82px;
}

.section-block {
    margin-bottom: 72px;
}

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

.section-title,
.page-title {
    display: flex;
    align-items: center;
    gap: 13px;
}

.section-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 14px 32px rgba(20, 184, 166, 0.24);
}

.section-head h2,
.page-head h1,
.content-panel h2,
.detail-copy h2 {
    margin: 0;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.section-head h2 {
    font-size: clamp(26px, 4vw, 36px);
}

.section-more {
    color: var(--teal);
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #164e63);
}

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

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.52), rgba(2, 6, 23, 0.02) 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(20, 184, 166, 0.94);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    min-height: 25px;
    margin-bottom: 9px;
}

.card-tags span,
.detail-tags span,
.filter-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #ccfbf1;
    color: #0f766e;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 9px;
}

.movie-card h3 {
    min-height: 48px;
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.45;
}

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

.movie-card p {
    min-height: 50px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
}

.card-meta {
    gap: 8px;
    color: #94a3b8;
    font-size: 13px;
}

.feature-panel,
.content-panel {
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 118, 110, 0.9));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.feature-panel {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 26px;
    padding: 36px;
    color: #fff;
}

.feature-panel h2,
.feature-panel h3 {
    margin: 0 0 12px;
}

.feature-panel p {
    color: #dbeafe;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 42px 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(4px);
}

.rank-row img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    background: #0f172a;
}

.rank-num {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    font-weight: 900;
}

.rank-title {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 800;
}

.rank-meta {
    color: #cbd5e1;
    font-size: 13px;
}

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

.category-card {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: 26px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #0f766e);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.14);
}

.category-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -56px;
    top: -48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.category-card h2,
.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: 25px;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #dbeafe;
}

.category-card span {
    position: relative;
    z-index: 1;
    font-weight: 850;
}

.page-hero {
    background: radial-gradient(circle at 18% 0%, rgba(20, 184, 166, 0.32), transparent 34%), linear-gradient(135deg, #0f172a, #134e4a);
    color: #fff;
    padding: 82px 24px 72px;
}

.page-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.page-hero h1 {
    margin: 12px 0 14px;
    font-size: clamp(34px, 6vw, 60px);
    line-height: 1;
    letter-spacing: -0.05em;
}

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

.filter-bar {
    margin: 0 0 26px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

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

.filter-clear {
    padding: 10px 16px;
    color: #0f766e;
    background: #ccfbf1;
}

.no-results {
    display: none;
    padding: 32px;
    border-radius: 22px;
    background: #fff;
    color: #64748b;
    text-align: center;
}

.no-results.is-visible {
    display: block;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    background: #020617;
    color: #fff;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px);
    opacity: 0.34;
    transform: scale(1.1);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.68));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 64px 24px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 38px;
    align-items: end;
}

.detail-poster img {
    width: 300px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.46);
    background: linear-gradient(135deg, #0f172a, #164e63);
}

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

.breadcrumb a:hover {
    color: #5eead4;
}

.detail-copy h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.detail-meta {
    color: #dbeafe;
    margin-bottom: 18px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
}

.detail-tags span {
    background: rgba(20, 184, 166, 0.18);
    color: #99f6e4;
    border: 1px solid rgba(153, 246, 228, 0.28);
}

.detail-intro {
    max-width: 830px;
    color: #e2e8f0;
    font-size: 18px;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 50%, rgba(20, 184, 166, 0.2), rgba(2, 6, 23, 0.82));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-shell.is-playing .player-cover {
    opacity: 0;
    visibility: hidden;
}

.player-button {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    font-size: 32px;
}

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

.content-panel {
    padding: 30px;
    color: #e2e8f0;
}

.content-panel.light {
    color: var(--deep);
    background: rgba(255, 255, 255, 0.92);
}

.content-panel h2 {
    color: inherit;
    margin-bottom: 14px;
}

.content-panel p {
    margin: 0 0 22px;
}

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

.side-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.05);
    transition: background 0.2s ease, transform 0.2s ease;
}

.side-item:hover {
    background: rgba(20, 184, 166, 0.12);
    transform: translateX(4px);
}

.side-item img {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f172a, #164e63);
}

.side-item strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

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

.search-results-title {
    margin: 0 0 18px;
    color: #334155;
}

.site-footer {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #cbd5e1;
}

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

.footer-logo {
    font-size: 24px;
}

.footer-inner p {
    max-width: 560px;
    margin: 16px 0 0;
}

.footer-links {
    display: flex;
    gap: 14px 22px;
    flex-wrap: wrap;
    justify-content: flex-end;
    font-weight: 700;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 24px;
    text-align: center;
    color: #94a3b8;
}

@media (max-width: 1180px) {
    .desktop-nav {
        gap: 14px;
        font-size: 14px;
    }

    .header-search input {
        width: 170px;
    }

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

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

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

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .feature-panel,
    .detail-main,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .detail-hero-inner {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .detail-poster img {
        width: 210px;
    }

    .hero-control {
        display: none;
    }
}

@media (max-width: 680px) {
    .header-inner {
        height: 66px;
        padding: 0 16px;
    }

    .logo {
        font-size: 19px;
    }

    .logo-mark {
        width: 32px;
        height: 32px;
    }

    .hero,
    .hero-content {
        min-height: 76vh;
    }

    .hero-content {
        padding: 72px 18px 76px;
    }

    .main-wrap,
    .player-section,
    .detail-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-head,
    .page-head {
        display: block;
    }

    .section-more {
        display: inline-flex;
        margin-top: 10px;
    }

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

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

    .movie-card h3 {
        font-size: 15px;
    }

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

    .rank-row {
        grid-template-columns: 36px 48px minmax(0, 1fr);
    }

    .rank-meta {
        display: none;
    }

    .player-button {
        width: 72px;
        height: 72px;
        font-size: 26px;
    }

    .footer-links {
        justify-content: flex-start;
    }
}
