:root {
    --blue: #2563eb;
    --blue-dark: #1e3a8a;
    --orange: #f97316;
    --orange-dark: #ea580c;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #f3f4f6;
    --line: #e5e7eb;
    --shadow: 0 20px 60px rgba(17, 24, 39, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background: #ffffff;
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.nav-bar {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--orange));
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
    font-size: 14px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    position: relative;
    font-size: 17px;
    font-weight: 700;
    color: #374151;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--blue);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #374151;
    font-size: 30px;
    line-height: 1;
}

.hero-section {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 48%, #111827 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(249, 115, 22, 0.55), transparent 28%),
        radial-gradient(circle at 80% 12%, rgba(96, 165, 250, 0.38), transparent 34%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.5));
}

.hero-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 110px;
    background: linear-gradient(175deg, transparent 0 52%, #ffffff 53% 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 46px;
    align-items: center;
    min-height: 680px;
    padding: 88px 0 130px;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #dbeafe;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.section-kicker {
    color: var(--blue);
    background: #dbeafe;
    border-color: transparent;
}

.hero-title-block h1 {
    margin: 18px 0 18px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.06;
    letter-spacing: -0.06em;
}

.hero-title-block p {
    max-width: 660px;
    margin: 0 0 28px;
    color: #dbeafe;
    font-size: 20px;
}

.hero-search {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    max-width: 620px;
    padding: 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.2);
}

.hero-search input,
.search-field input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px 16px;
    color: var(--ink);
    background: #ffffff;
    outline: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search input:focus,
.search-field input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.hero-search button,
.btn.primary {
    border: 0;
    border-radius: 14px;
    padding: 14px 24px;
    color: #ffffff;
    background: var(--orange);
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.34);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-search button:hover,
.btn.primary:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
}

.hero-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.hero-quick-links a,
.btn.secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 12px 18px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-weight: 800;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-quick-links a:hover,
.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.hero-slider {
    position: relative;
    min-height: 500px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 26px;
    align-items: center;
    padding: 28px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-copy h2 {
    margin: 18px 0 12px;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.hero-copy p {
    margin: 0 0 18px;
    color: #dbeafe;
    font-size: 18px;
}

.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 18px 0;
}

.hero-tags span,
.detail-tags a {
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 26px 50px rgba(0, 0, 0, 0.32);
    aspect-ratio: 3 / 4.25;
    background: rgba(255, 255, 255, 0.12);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-dots {
    position: absolute;
    left: 30px;
    bottom: 28px;
    display: flex;
    gap: 10px;
}

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

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

.feature-strip {
    position: relative;
    z-index: 2;
    margin-top: -58px;
}

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

.feature-item {
    min-height: 126px;
    border-radius: 22px;
    padding: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.feature-item strong {
    display: block;
    color: var(--blue);
    font-size: 24px;
    margin-bottom: 8px;
}

.feature-item span {
    color: var(--muted);
}

.section-block {
    padding: 76px 0;
}

.section-block.muted {
    background: #f8fafc;
}

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

.section-head.compact {
    margin-bottom: 20px;
}

.section-head h2,
.page-hero h1 {
    margin: 12px 0 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.more-link {
    color: var(--blue);
    font-weight: 800;
}

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

.category-tile,
.category-overview-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    border-radius: 28px;
    background: #111827;
    box-shadow: var(--shadow);
    isolation: isolate;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-overview-card:hover,
.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.18);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.56;
    transition: transform 0.3s ease;
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.72));
}

.category-tile span {
    position: absolute;
    z-index: 1;
    left: 20px;
    right: 20px;
    bottom: 20px;
    color: #ffffff;
}

.category-tile strong,
.category-overview-card strong {
    display: block;
    font-size: 23px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.category-tile em,
.category-overview-card em {
    display: block;
    font-style: normal;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

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

.small-grid {
    grid-template-columns: repeat(6, 1fr);
}

.movie-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(229, 231, 235, 0.7);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4.1;
    overflow: hidden;
    background: #e5e7eb;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.0);
    transition: background 0.25s ease;
}

.movie-card:hover .poster-shade {
    background: rgba(0, 0, 0, 0.28);
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.9);
    transform: translate(-50%, -50%) scale(0.72);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

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

.year-badge,
.card-rank {
    position: absolute;
    z-index: 1;
    right: 10px;
    top: 10px;
    border-radius: 999px;
    padding: 5px 9px;
    color: #ffffff;
    background: var(--orange);
    font-size: 12px;
    font-weight: 800;
}

.card-rank {
    left: 10px;
    right: auto;
    background: var(--blue);
}

.card-body {
    display: grid;
    gap: 6px;
    padding: 14px;
}

.card-body strong {
    min-height: 2.8em;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.4;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-body span,
.card-body em {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.card-body em {
    color: var(--blue);
    font-weight: 800;
}

.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 34px;
    align-items: start;
}

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

.movie-card-compact {
    display: grid;
    grid-template-columns: 104px 1fr;
    min-height: 142px;
}

.movie-card-compact .poster-wrap {
    aspect-ratio: auto;
    height: 100%;
}

.movie-card-compact .card-body {
    align-content: center;
}

.rank-panel {
    position: sticky;
    top: 98px;
    padding: 22px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.page-hero {
    color: #ffffff;
    padding: 86px 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(249, 115, 22, 0.5), transparent 28%),
        linear-gradient(135deg, #2563eb, #1e40af 52%, #111827);
}

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

.chip-row,
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 999px;
    padding: 10px 16px;
    color: #1f2937;
    background: #ffffff;
    font-weight: 800;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.page-hero .chip {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.chip:hover,
.chip.active {
    color: #ffffff;
    background: var(--blue);
    border-color: var(--blue);
}

.category-overview-card {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    color: var(--ink);
}

.overview-posters {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 10px;
    background: #eff6ff;
}

.overview-posters img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
}

.overview-copy {
    padding: 22px;
}

.category-overview-card em {
    color: var(--muted);
}

.toolbar,
.search-panel {
    margin-bottom: 26px;
    padding: 18px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.86);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.search-field {
    display: grid;
    gap: 8px;
    color: #374151;
    font-weight: 800;
}

.search-field.large input {
    padding: 16px 18px;
    font-size: 18px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--detail-poster);
    background-size: cover;
    background-position: center;
    filter: blur(22px);
    transform: scale(1.1);
    opacity: 0.32;
}

.detail-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(30, 58, 138, 0.82));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    padding: 50px 0 64px;
}

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

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

.detail-intro {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 34px;
    align-items: end;
}

.detail-intro img {
    width: 250px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

.detail-intro h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-intro p {
    max-width: 820px;
    color: #dbeafe;
    font-size: 19px;
}

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

.detail-main,
.detail-aside {
    display: grid;
    gap: 22px;
}

.detail-aside {
    position: sticky;
    top: 98px;
}

.player-card,
.content-card {
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(229, 231, 235, 0.85);
    padding: 24px;
}

.player-card h2,
.content-card h2 {
    margin: 0 0 18px;
    font-size: 24px;
    line-height: 1.25;
}

.content-card p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.35));
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.player-start span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.95);
    box-shadow: 0 16px 38px rgba(249, 115, 22, 0.34);
    font-size: 32px;
    padding-left: 5px;
}

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

.info-card dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.info-card div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
}

.info-card div:last-child {
    border-bottom: 0;
}

.info-card dt {
    color: var(--muted);
}

.info-card dd {
    margin: 0;
    text-align: right;
    font-weight: 800;
    color: var(--ink);
}

.info-card a {
    color: var(--blue);
}

.site-footer {
    color: #d1d5db;
    background: #111827;
    padding: 54px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 42px;
}

.footer-grid p {
    max-width: 520px;
    color: #9ca3af;
}

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

.footer-grid ul {
    display: grid;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-grid a:hover {
    color: #fb923c;
}

.footer-bottom {
    margin-top: 38px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 0;
    text-align: center;
    color: #9ca3af;
}

[data-card][hidden] {
    display: none !important;
}

@media (max-width: 1100px) {
    .hero-inner,
    .two-column,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-slider,
    .rank-panel,
    .detail-aside {
        position: relative;
        top: auto;
    }

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

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

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

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        left: 12px;
        right: 12px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 14px;
        border-radius: 20px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        padding: 12px 10px;
    }

    .hero-inner {
        min-height: auto;
        padding: 64px 0 120px;
    }

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

    .hero-slider {
        min-height: 640px;
    }

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

    .hero-poster {
        max-width: 220px;
        margin: 0 auto;
    }

    .hero-dots {
        left: 24px;
    }

    .feature-grid,
    .category-grid,
    .category-overview-grid,
    .movie-grid,
    .small-grid,
    .rank-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .movie-card-compact {
        grid-template-columns: 92px 1fr;
    }

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

    .detail-intro img {
        width: min(240px, 80vw);
    }
}

@media (max-width: 520px) {
    .site-logo {
        font-size: 20px;
    }

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

    .hero-title-block h1 {
        font-size: 36px;
    }

    .movie-grid,
    .small-grid,
    .rank-grid,
    .feature-grid,
    .category-grid,
    .category-overview-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-card {
        border-radius: 18px;
    }

    .movie-card-compact {
        grid-template-columns: 100px 1fr;
    }

    .player-card,
    .content-card {
        padding: 18px;
        border-radius: 22px;
    }

    .player-start span {
        width: 70px;
        height: 70px;
        font-size: 26px;
    }
}
