:root {
    --bg: #f7fafc;
    --surface: #ffffff;
    --surface-soft: #f0f9ff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --sky: #0ea5e9;
    --sky-strong: #0284c7;
    --emerald: #10b981;
    --amber: #f59e0b;
    --rose: #f43f5e;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.16), transparent 34rem),
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.14), transparent 30rem),
        var(--bg);
}

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

img {
    display: block;
    width: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.22), rgba(16, 185, 129, 0.18));
}

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.92);
    border-bottom: 1px solid rgba(226, 232, 240, 0.86);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.brand span:last-child,
.footer-brand span:last-child {
    background: linear-gradient(90deg, var(--sky-strong), var(--emerald));
    -webkit-background-clip: text;
    color: transparent;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #ffffff !important;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--sky), var(--emerald));
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.28);
}

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

.desktop-nav a {
    padding: 10px 12px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--sky-strong);
    background: #e0f2fe;
    transform: translateY(-1px);
}

.search-form,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
}

.search-form input,
.mobile-search input,
.page-filter input {
    width: 210px;
    padding: 11px 12px;
    color: #0f172a;
    background: transparent;
    border: 0;
    outline: none;
}

.search-form button,
.mobile-search button,
.primary-button,
.secondary-button,
.player-start,
.page-filter button {
    cursor: pointer;
    border: 0;
    border-radius: 13px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-form button,
.mobile-search button,
.primary-button,
.page-filter button {
    padding: 11px 16px;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--sky), var(--emerald));
    box-shadow: 0 12px 26px rgba(14, 165, 233, 0.22);
}

.secondary-button {
    padding: 11px 16px;
    color: #0369a1;
    font-weight: 800;
    background: #e0f2fe;
}

.search-form button:hover,
.mobile-search button:hover,
.primary-button:hover,
.secondary-button:hover,
.player-start:hover,
.page-filter button:hover {
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    background: #f1f5f9;
    border: 0;
    border-radius: 14px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #0f172a;
    border-radius: 99px;
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
    border-top: 1px solid #e2e8f0;
}

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

.mobile-panel nav {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.mobile-panel nav a {
    padding: 11px 12px;
    font-weight: 700;
    background: #f8fafc;
    border-radius: 12px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    padding: 58px 0 36px;
    background:
        linear-gradient(135deg, rgba(2, 132, 199, 0.94), rgba(5, 150, 105, 0.84)),
        linear-gradient(45deg, #0f172a, #164e63);
    color: #ffffff;
}

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

.hero::before {
    width: 430px;
    height: 430px;
    left: -110px;
    top: -120px;
    background: rgba(255, 255, 255, 0.16);
}

.hero::after {
    width: 520px;
    height: 520px;
    right: -160px;
    bottom: -160px;
    background: rgba(16, 185, 129, 0.28);
}

.hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 44px;
    align-items: center;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 16px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
}

.eyebrow {
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.16);
}

.section-eyebrow {
    color: #047857;
    background: #d1fae5;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

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

.hero p {
    max-width: 680px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

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

.hero-actions .primary-button {
    background: #ffffff;
    color: #0369a1;
}

.hero-actions .secondary-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 690px;
    margin-top: 34px;
}

.hero-metrics div {
    padding: 18px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.hero-metrics strong {
    display: block;
    font-size: 24px;
}

.hero-metrics span {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 530px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.32);
    backdrop-filter: blur(18px);
}

.hero-slide {
    position: absolute;
    inset: 14px;
    display: grid;
    align-content: end;
    min-height: 500px;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.985);
    border-radius: 26px;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
    height: 100%;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 28%, rgba(15, 23, 42, 0.92)),
        linear-gradient(90deg, rgba(15, 23, 42, 0.42), transparent);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    padding: 28px;
}

.hero-slide-content strong {
    display: block;
    margin-bottom: 8px;
    font-size: 28px;
    line-height: 1.2;
}

.hero-slide-content p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    line-height: 1.7;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.hero-slide-content a {
    display: inline-flex;
    margin-top: 14px;
    padding: 10px 14px;
    color: #075985;
    font-weight: 800;
    background: #ffffff;
    border-radius: 13px;
}

.slider-dots {
    position: absolute;
    z-index: 3;
    right: 28px;
    bottom: 26px;
    display: flex;
    gap: 7px;
}

.slider-dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.42);
}

.slider-dots button.is-active {
    width: 24px;
    background: #ffffff;
}

.section {
    padding: 68px 0;
}

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

.section-head h2,
.page-title h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.section-head p,
.page-title p {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

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

.movie-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(14, 165, 233, 0.36);
    box-shadow: var(--shadow);
}

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

.poster-frame img {
    height: 100%;
    transition: transform 0.35s ease;
}

.movie-card:hover .poster-frame img {
    transform: scale(1.05);
}

.year-badge,
.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 6px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sky), var(--emerald));
    box-shadow: 0 8px 22px rgba(14, 165, 233, 0.26);
}

.rank-badge {
    background: linear-gradient(135deg, var(--rose), var(--amber));
}

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

.movie-card-body strong {
    display: block;
    overflow: hidden;
    min-height: 44px;
    font-size: 17px;
    line-height: 1.32;
}

.meta-line,
.one-line {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.meta-line {
    margin-top: 8px;
}

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

.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span,
.detail-tags span {
    padding: 5px 8px;
    color: #0369a1;
    font-size: 12px;
    font-weight: 700;
    background: #e0f2fe;
    border-radius: 999px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    padding: 24px;
    color: #ffffff;
    border-radius: 26px;
    background: linear-gradient(135deg, #0284c7, #10b981);
    box-shadow: 0 18px 48px rgba(2, 132, 199, 0.22);
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #7c3aed, #0ea5e9);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #f97316, #ef4444);
}

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

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

.category-card p {
    position: relative;
    z-index: 2;
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
}

.hot-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 24px;
}

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

.hot-row {
    display: grid;
    grid-template-columns: auto 72px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: var(--surface);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hot-row:hover {
    transform: translateX(4px);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.hot-row img {
    width: 72px;
    height: 96px;
    border-radius: 13px;
}

.hot-row strong {
    display: block;
    font-size: 16px;
}

.hot-row em {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
    line-height: 1.5;
}

.hot-index {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #ffffff;
    font-weight: 900;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--rose), var(--amber));
}

.page-hero {
    padding: 62px 0 34px;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.18), transparent 24rem),
        linear-gradient(135deg, #075985, #059669);
}

.page-title {
    max-width: 860px;
}

.page-title p {
    color: rgba(255, 255, 255, 0.84);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.breadcrumb a {
    color: #ffffff;
    font-weight: 800;
}

.page-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 0;
}

.page-filter input {
    width: min(440px, 100%);
    background: #ffffff;
    border-radius: 14px;
}

.empty-state {
    display: none;
    padding: 28px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 22px;
}

.empty-state.is-visible {
    display: block;
}

.detail-hero {
    padding: 44px 0;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(3, 105, 161, 0.86)),
        linear-gradient(45deg, #0f172a, #134e4a);
}

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

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.detail-poster img {
    aspect-ratio: 2 / 3;
}

.detail-info h1 {
    margin: 0;
    font-size: clamp(36px, 6vw, 66px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.detail-info .summary-lead {
    max-width: 840px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

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

.detail-meta span {
    padding: 8px 11px;
    color: #e0f2fe;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.player-section {
    padding: 46px 0 24px;
    background: #0f172a;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #020617;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

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

.player-start {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 22px;
    color: #075985;
    font-weight: 900;
    background: #ffffff;
    box-shadow: 0 20px 48px rgba(2, 6, 23, 0.36);
    transform: translate(-50%, -50%);
}

.player-start::before {
    content: "▶";
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sky), var(--emerald));
}

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

.player-message {
    position: absolute;
    left: 18px;
    bottom: 16px;
    z-index: 2;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px;
    padding: 46px 0 68px;
}

.article-card,
.side-card {
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 26px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
}

.article-card + .article-card {
    margin-top: 20px;
}

.article-card h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.article-card p {
    margin: 0;
    color: #334155;
    font-size: 16px;
    line-height: 1.9;
}

.side-card {
    position: sticky;
    top: 96px;
}

.side-card .hot-row {
    grid-template-columns: 58px minmax(0, 1fr);
}

.side-card .hot-row img {
    width: 58px;
    height: 78px;
}

.side-card .hot-row .hot-index {
    display: none;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 1fr;
    gap: 34px;
}

.site-footer p {
    max-width: 520px;
    color: #94a3b8;
    line-height: 1.7;
}

.site-footer h3 {
    margin: 0 0 12px;
    color: #ffffff;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #cbd5e1;
}

.footer-links {
    columns: 2;
}

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

    .search-form {
        margin-left: auto;
    }

    .menu-toggle {
        display: block;
    }

    .hero-layout,
    .hot-layout,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .side-card {
        position: static;
    }
}

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

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

    .brand,
    .footer-brand {
        font-size: 18px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .search-form {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 38px 0 28px;
    }

    .hero-layout,
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .hero-slider {
        min-height: 430px;
        border-radius: 24px;
    }

    .hero-slide {
        min-height: 400px;
        border-radius: 19px;
    }

    .section {
        padding: 44px 0;
    }

    .section-head {
        display: block;
    }

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

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

    .movie-card-body strong {
        min-height: 40px;
        font-size: 15px;
    }

    .one-line {
        display: none;
    }

    .tag-row span:nth-child(n+3) {
        display: none;
    }

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

    .hot-row {
        grid-template-columns: auto 60px minmax(0, 1fr);
    }

    .hot-row img {
        width: 60px;
        height: 82px;
    }

    .detail-poster {
        max-width: 240px;
    }

    .detail-info h1 {
        font-size: 38px;
    }

    .article-card,
    .side-card {
        padding: 22px;
    }
}

@media (max-width: 420px) {
    .movie-grid {
        grid-template-columns: 1fr;
    }
}
