:root {
    --blue: #2563eb;
    --blue-dark: #1e3a8a;
    --cyan: #06b6d4;
    --ink: #0f172a;
    --muted: #64748b;
    --soft: #f8fafc;
    --line: #e2e8f0;
    --card: #ffffff;
    --shadow: 0 22px 70px rgba(15, 23, 42, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 42%, #f8fafc 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

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: linear-gradient(90deg, rgba(30, 58, 138, 0.96), rgba(37, 99, 235, 0.94), rgba(8, 145, 178, 0.94));
    color: #ffffff;
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.20);
}

.nav-shell {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: var(--blue-dark);
    background: linear-gradient(135deg, #ffffff, #bae6fd);
    box-shadow: inset 0 -6px 12px rgba(14, 165, 233, 0.22);
}

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

.main-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.23);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.nav-search input {
    width: 210px;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
    padding: 8px 10px;
}

.nav-search input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.nav-search button,
.primary-btn,
.secondary-btn,
.ghost-btn,
.filter-btn {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button {
    color: var(--blue-dark);
    background: #ffffff;
    padding: 8px 14px;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 8px 11px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    color: #ffffff;
    background: radial-gradient(circle at 22% 15%, rgba(34, 211, 238, 0.36), transparent 28%), linear-gradient(135deg, #111827 0%, #1e3a8a 42%, #0369a1 100%);
}

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

.hero::before {
    width: 420px;
    height: 420px;
    top: -140px;
    right: 10%;
    background: rgba(14, 165, 233, 0.26);
}

.hero::after {
    width: 260px;
    height: 260px;
    left: 8%;
    bottom: 40px;
    background: rgba(59, 130, 246, 0.34);
}

.hero-slider {
    position: relative;
    z-index: 1;
}

.hero-slide {
    display: none;
    min-height: 650px;
    align-items: center;
    gap: 56px;
    padding: 72px 0 84px;
}

.hero-slide.active {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.75fr);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #cffafe;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0 0 22px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero h1 span {
    display: block;
    color: #67e8f9;
}

.hero p {
    margin: 0;
    max-width: 710px;
    color: #dbeafe;
    font-size: clamp(17px, 2.4vw, 22px);
}

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

.primary-btn,
.secondary-btn,
.ghost-btn,
.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
}

.primary-btn {
    color: #172554;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(255, 255, 255, 0.18);
}

.secondary-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.ghost-btn {
    color: var(--blue);
    background: #eff6ff;
}

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

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.hero-tags a,
.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 700;
}

.hero-tags a {
    padding: 8px 13px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.13);
}

.hero-card {
    position: relative;
    min-height: 520px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.36);
    transform: rotate(1.2deg);
}

.hero-card img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 26%, rgba(2, 6, 23, 0.88) 100%);
}

.hero-card-info {
    position: absolute;
    z-index: 2;
    left: 28px;
    right: 28px;
    bottom: 28px;
}

.hero-card-info strong {
    display: block;
    font-size: 26px;
    line-height: 1.15;
}

.hero-card-info span {
    display: block;
    margin-top: 8px;
    color: #cbd5e1;
}

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

.hero-dot {
    width: 34px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.hero-dot.active {
    background: #ffffff;
}

main,
.section {
    padding: 64px 0;
}

.section.alt {
    background: rgba(255, 255, 255, 0.58);
}

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

.section-head h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.section-head p,
.page-title p,
.detail-title p {
    margin: 10px 0 0;
    color: var(--muted);
    max-width: 760px;
}

.section-link {
    color: var(--blue);
    font-weight: 900;
}

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

.movie-card {
    overflow: hidden;
    background: var(--card);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    box-shadow: 0 16px 46px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.32);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0f172a;
}

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

.movie-card:hover img {
    transform: scale(1.06);
    filter: saturate(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(2, 6, 23, 0.72));
}

.play-mini {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.86);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.32);
}

.rank-badge {
    position: absolute;
    z-index: 2;
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    color: #172554;
    font-weight: 950;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffffff, #bfdbfe);
}

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

.movie-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 900;
}

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

.movie-meta,
.movie-one-line {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.movie-one-line {
    display: -webkit-box;
    min-height: 42px;
    margin-top: 8px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.tag {
    padding: 4px 9px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: 12px;
}

.tag:hover {
    color: #ffffff;
    background: var(--blue);
}

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

.category-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    color: #ffffff;
    border-radius: 26px;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.category-card::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -50px;
    top: -50px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.category-card strong {
    position: relative;
    z-index: 1;
    font-size: 24px;
}

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

.feature-strip {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 26px;
}

.feature-panel,
.ranking-panel,
.detail-panel,
.filter-panel,
.content-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.feature-panel {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    overflow: hidden;
}

.feature-panel img {
    width: 100%;
    height: 100%;
    min-height: 390px;
    object-fit: cover;
}

.feature-copy {
    padding: 32px;
}

.feature-copy h2 {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.15;
}

.feature-copy p {
    color: var(--muted);
}

.ranking-panel {
    padding: 20px;
}

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

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

.ranking-row:hover {
    background: #eff6ff;
    transform: translateX(4px);
}

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

.ranking-number {
    color: var(--blue);
    font-size: 22px;
    font-weight: 950;
    text-align: center;
}

.ranking-title {
    font-weight: 900;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-meta {
    color: var(--muted);
    font-size: 13px;
}

.ranking-score {
    color: #0f766e;
    font-weight: 950;
}

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at 70% 10%, rgba(103, 232, 249, 0.36), transparent 26%), linear-gradient(135deg, #1e3a8a, #0f172a 72%);
    padding: 80px 0;
}

.page-title h1,
.page-title p {
    color: #ffffff;
}

.page-title p {
    color: #dbeafe;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 180px 180px;
    gap: 14px;
    padding: 18px;
    margin-bottom: 28px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    padding: 0 14px;
    background: #ffffff;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.no-results {
    display: none;
    padding: 36px;
    margin-top: 20px;
    color: var(--muted);
    text-align: center;
    border-radius: 20px;
    background: #ffffff;
}

.no-results.show {
    display: block;
}

.detail-hero {
    padding: 48px 0;
    color: #ffffff;
    background: radial-gradient(circle at 14% 0%, rgba(34, 211, 238, 0.26), transparent 34%), linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #075985 100%);
}

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

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

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

.detail-title h1 {
    color: #ffffff;
}

.detail-title p {
    color: #dbeafe;
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.14);
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #0f172a;
}

.player-section {
    padding: 38px 0 64px;
}

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

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

.play-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 12px;
    color: #ffffff;
    border: 0;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.74));
}

.play-cover.hidden {
    display: none;
}

.play-cover span {
    display: block;
    font-weight: 900;
}

.play-cover .play-icon {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    font-size: 34px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 18px 60px rgba(37, 99, 235, 0.38);
}

.detail-panel {
    padding: 30px;
    margin-top: 26px;
}

.detail-panel h2,
.content-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 950;
}

.detail-panel p {
    color: #334155;
}

.detail-side {
    display: grid;
    gap: 18px;
}

.side-card {
    padding: 20px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 42px rgba(15, 23, 42, 0.08);
}

.side-card h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

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

.side-list a {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.side-list img {
    width: 64px;
    height: 86px;
    border-radius: 14px;
    object-fit: cover;
    background: #0f172a;
}

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

.side-list span {
    color: var(--muted);
    font-size: 13px;
}

.content-card {
    padding: 30px;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.site-footer {
    color: #cbd5e1;
    background: #0f172a;
    padding: 52px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 36px;
}

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

.site-footer h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 18px;
}

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

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

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

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

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

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

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

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

@media (max-width: 860px) {
    .nav-shell {
        flex-wrap: wrap;
        padding: 14px 0;
    }

    .brand {
        font-size: 18px;
    }

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

    .main-nav {
        order: 4;
        width: 100%;
        display: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 0;
    }

    .main-nav.open {
        display: grid;
    }

    .main-nav a {
        text-align: center;
        background: rgba(255, 255, 255, 0.10);
    }

    .nav-search {
        order: 3;
        width: 100%;
    }

    .nav-search input {
        width: 100%;
    }

    .hero,
    .hero-slide {
        min-height: auto;
    }

    .hero-slide.active {
        grid-template-columns: 1fr;
        padding: 46px 0 82px;
    }

    .hero-card {
        min-height: 430px;
        transform: none;
    }

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

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

    .feature-panel img {
        min-height: 320px;
    }

    .ranking-row {
        grid-template-columns: 38px 50px minmax(0, 1fr) 48px;
    }

    .ranking-meta {
        display: none;
    }

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

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

    main,
    .section {
        padding: 42px 0;
    }

    .section-head {
        display: block;
    }

    .section-link {
        display: inline-flex;
        margin-top: 12px;
    }

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

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

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

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

    .movie-one-line,
    .tag-row {
        display: none;
    }

    .hero-card {
        min-height: 350px;
    }

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

    .detail-panel,
    .content-card {
        padding: 22px;
    }
}
