:root {
    --bg: #f8fafc;
    --text: #0f172a;
    --muted: #64748b;
    --blue: #2563eb;
    --blue-dark: #1e3a8a;
    --cyan: #22d3ee;
    --red: #dc2626;
    --yellow: #d97706;
    --card: #ffffff;
    --line: #e2e8f0;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #0f172a 0%, #1e3a8a 50%, #0f172a 100%);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.25);
}

.header-inner,
.section-wrap,
.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%);
    box-shadow: 0 10px 24px rgba(34, 211, 238, 0.28);
}

.brand-copy strong {
    display: block;
    font-size: 21px;
    line-height: 1.1;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #bfdbfe 0%, #67e8f9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy em {
    display: block;
    color: #bfdbfe;
    font-size: 12px;
    font-style: normal;
    margin-top: 3px;
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 11px;
    color: #dbeafe;
    font-size: 14px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background: rgba(37, 99, 235, 0.72);
    transform: translateY(-1px);
}

.top-search,
.mobile-search,
.large-search,
.inline-filter {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input,
.mobile-search input,
.large-search input,
.inline-filter input,
.inline-filter select {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 12px;
    outline: none;
    color: var(--text);
    background: rgba(255, 255, 255, 0.95);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
    width: 165px;
    padding: 9px 12px;
}

.top-search button,
.mobile-search button,
.large-search button {
    border: 0;
    border-radius: 12px;
    padding: 9px 14px;
    color: #ffffff;
    background: var(--blue);
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: #ffffff;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(120deg, #1e3a8a 0%, #0f172a 58%, #020617 100%);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    border-radius: 0;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.23;
    transform: scale(1.05);
}

.hero-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 30%, rgba(34, 211, 238, 0.22), transparent 30%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.96) 0%, rgba(30, 58, 138, 0.84) 48%, rgba(15, 23, 42, 0.2) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 54px;
}

.hero-copy h1 {
    margin: 16px 0 18px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 24px;
    color: #dbeafe;
    font-size: 20px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 13px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--red);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.eyebrow.dark {
    color: var(--blue-dark);
    background: #dbeafe;
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #dbeafe;
    margin: 0 0 20px;
}

.hero-meta span,
.detail-meta span,
.detail-meta strong {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-tags,
.detail-tags,
.tag-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.detail-tags a,
.tag-line span {
    padding: 4px 9px;
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.18);
    font-size: 12px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 13px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    color: #ffffff;
    background: var(--blue);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.34);
}

.btn.ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn.ghost.dark {
    color: var(--blue-dark);
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.btn.text {
    color: #bfdbfe;
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
}

.hero-poster img,
.category-tile img,
.movie-card img,
.mini-card img,
.detail-poster img,
.ranking-cover img,
.category-cover img,
.player-shell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    left: 22px;
    bottom: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.9);
    font-weight: 800;
}

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

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

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

.section-wrap {
    padding: 58px 0;
}

.quick-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
    align-items: center;
    gap: 32px;
}

.quick-copy h2,
.section-heading h2,
.feature-layout h2,
.content-block h2,
.category-card h2,
.ranking-info h2 {
    margin: 10px 0 12px;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.16;
}

.quick-copy p,
.feature-layout p,
.page-hero p,
.category-card p,
.ranking-info p,
.content-block p,
.detail-summary p {
    color: var(--muted);
}

.large-search {
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.large-search input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 14px 16px;
}

.large-search button {
    padding: 14px 22px;
}

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

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

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

.category-tile {
    position: relative;
    min-height: 220px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #0f172a;
    box-shadow: var(--shadow);
}

.category-tile img {
    opacity: 0.72;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

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

.category-tile span {
    position: absolute;
    inset: auto 18px 18px 18px;
    color: #ffffff;
}

.category-tile strong {
    display: block;
    font-size: 24px;
}

.category-tile em {
    display: block;
    color: #dbeafe;
    font-style: normal;
    font-size: 13px;
}

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

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

.movie-card,
.mini-card,
.ranking-card,
.category-card {
    background: var(--card);
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.movie-card:hover,
.mini-card:hover,
.ranking-card:hover,
.category-card:hover {
    transform: translateY(-7px);
    border-color: #bfdbfe;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.14);
}

.card-link {
    display: block;
    height: 100%;
}

.cover-frame {
    position: relative;
    display: block;
    overflow: hidden;
    background:
        radial-gradient(circle at 25% 20%, rgba(96, 165, 250, 0.35), transparent 32%),
        linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.movie-card .cover-frame {
    aspect-ratio: 16 / 10;
}

.poster-frame {
    aspect-ratio: 3 / 4;
    border-radius: 14px;
}

.movie-card img,
.mini-card img {
    transition: transform 0.36s ease, opacity 0.25s ease;
}

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

.card-badge,
.score-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: var(--red);
    font-size: 12px;
    font-weight: 800;
}

.score-pill {
    background: rgba(217, 119, 6, 0.92);
}

.card-hover {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 34px 14px 13px;
    color: #ffffff;
    font-size: 12px;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.78) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .card-hover {
    opacity: 1;
}

.card-body {
    display: block;
    padding: 16px;
}

.card-body strong,
.mini-card strong {
    display: block;
    font-size: 17px;
    line-height: 1.3;
    margin-bottom: 7px;
}

.card-desc {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    margin: 14px 0 12px;
    font-size: 13px;
}

.rating,
.rank-score,
.detail-meta strong {
    color: var(--yellow);
    font-weight: 900;
}

.tag-line span {
    color: var(--blue-dark);
    background: #eff6ff;
}

.feature-band {
    color: #ffffff;
    background: linear-gradient(120deg, #0f172a 0%, #1e3a8a 58%, #0f172a 100%);
}

.feature-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
    gap: 34px;
}

.feature-layout p {
    color: #bfdbfe;
    margin-bottom: 24px;
}

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

.mini-card {
    padding: 10px;
    background: rgba(255, 255, 255, 0.98);
}

.mini-card strong {
    color: var(--text);
    margin-top: 9px;
    font-size: 14px;
}

.mini-card span:not(.cover-frame):not(.score-pill) {
    display: block;
    color: var(--muted);
    font-size: 12px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) minmax(120px, 280px) 80px;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.rank-no {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), #f97316);
    font-weight: 900;
}

.rank-title {
    font-weight: 900;
}

.rank-type {
    color: var(--muted);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(120deg, #0f172a, #1e3a8a 60%, #0f172a);
}

.simple-hero .section-wrap,
.category-hero .section-wrap {
    position: relative;
    z-index: 2;
    padding-top: 84px;
    padding-bottom: 84px;
}

.page-hero h1 {
    margin: 14px 0 12px;
    font-size: clamp(38px, 7vw, 64px);
    line-height: 1.05;
}

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

.page-bg {
    position: absolute;
    inset: 0;
    opacity: 0.22;
}

.page-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(30, 58, 138, 0.82));
}

.inline-filter {
    width: min(720px, 100%);
    margin-top: 28px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.inline-filter input,
.inline-filter select {
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 14px;
}

.filter-note {
    min-height: 26px;
    color: var(--muted);
    margin: -8px 0 18px;
}

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

.category-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    align-items: center;
}

.category-cover {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    height: 180px;
    border-radius: 18px;
}

.category-cover img {
    height: 100%;
    object-fit: cover;
}

.ranking-page {
    display: grid;
    gap: 16px;
}

.ranking-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 22px;
    padding: 16px;
}

.ranking-cover {
    aspect-ratio: 3 / 4;
    border-radius: 16px;
}

.ranking-cover span {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: var(--red);
    font-weight: 900;
}

.ranking-info h2 {
    font-size: 26px;
}

.detail-main {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 46%, #eef6ff 100%);
}

.breadcrumb {
    padding-top: 28px;
    padding-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--blue-dark);
    font-weight: 700;
}

.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.7fr);
    gap: 28px;
    padding-top: 20px;
}

.player-shell {
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: #020617;
    box-shadow: var(--shadow);
}

.player-shell video {
    border-radius: 24px;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at center, rgba(37, 99, 235, 0.32), transparent 32%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.1) 0%, rgba(2, 6, 23, 0.62) 100%);
    cursor: pointer;
}

.player-cover.is-hidden {
    display: none;
}

.play-circle {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.92);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.42);
    font-size: 30px;
    padding-left: 4px;
}

.detail-aside {
    display: grid;
    grid-template-columns: 155px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.detail-poster {
    aspect-ratio: 3 / 4;
    border-radius: 18px;
}

.detail-summary h1 {
    margin: 12px 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
}

.detail-summary .detail-meta {
    color: var(--muted);
    margin: 18px 0;
}

.detail-summary .detail-meta span,
.detail-summary .detail-meta strong {
    background: #f1f5f9;
}

.content-block {
    padding-top: 20px;
}

.content-block h2 {
    font-size: 28px;
}

.content-block p {
    max-width: 920px;
    font-size: 17px;
}

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

.site-footer {
    color: #dbeafe;
    background: #0f172a;
}

.footer-inner {
    padding: 42px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.85fr);
    gap: 30px;
}

.footer-inner strong {
    color: #ffffff;
    font-size: 24px;
}

.footer-inner p {
    max-width: 620px;
    color: #bfdbfe;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-content: start;
}

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

.cover-frame.cover-empty::after {
    content: "欧美影视";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.is-hidden-card {
    display: none !important;
}

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

    .mobile-toggle {
        display: block;
        margin-left: auto;
    }

    .mobile-panel.open {
        display: grid;
        gap: 8px;
    }

    .mobile-search {
        margin-top: 8px;
    }

    .mobile-search input {
        flex: 1;
        padding: 11px 12px;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr) 290px;
    }

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

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

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

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

@media (max-width: 760px) {
    .header-inner,
    .section-wrap,
    .footer-inner,
    .mobile-panel {
        width: min(100% - 22px, 1180px);
    }

    .brand-copy em {
        display: none;
    }

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

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 20px;
        align-content: center;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-poster {
        width: 190px;
        justify-self: start;
        transform: none;
    }

    .quick-panel,
    .feature-layout,
    .footer-inner,
    .category-list,
    .category-card,
    .ranking-card,
    .detail-aside {
        grid-template-columns: 1fr;
    }

    .large-search,
    .inline-filter {
        flex-direction: column;
        align-items: stretch;
    }

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

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

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

    .rank-type {
        display: none;
    }

    .category-cover {
        height: 220px;
    }

    .section-wrap {
        padding: 40px 0;
    }
}
