:root {
    --blue-900: #163172;
    --blue-700: #2563eb;
    --cyan-500: #06b6d4;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #f9fafb;
    --white: #ffffff;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue-700), var(--cyan-500));
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.28);
}

.header-inner {
    max-width: 1180px;
    height: 64px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

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

.nav-link {
    font-weight: 700;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    color: #ffffff;
    font-size: 24px;
    background: rgba(255, 255, 255, 0.16);
    border: 0;
    border-radius: 10px;
    padding: 6px 10px;
}

.mobile-nav {
    padding: 10px 20px 16px;
    background: rgba(29, 78, 216, 0.96);
}

.mobile-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.14);
}

.hero {
    position: relative;
    min-height: 620px;
    color: #ffffff;
    overflow: hidden;
    background: linear-gradient(135deg, #172554 0%, #1d4ed8 55%, #06b6d4 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto auto;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
    filter: blur(4px);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    min-height: 620px;
    margin: 0 auto;
    padding: 72px 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
    gap: 48px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 14px;
    color: #bfdbfe;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow.dark {
    color: var(--blue-700);
}

.hero-copy h1 {
    margin: 0;
    max-width: 720px;
    font-size: clamp(42px, 6vw, 70px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-desc {
    max-width: 720px;
    margin: 24px 0 0;
    color: #dbeafe;
    font-size: clamp(18px, 2vw, 23px);
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: var(--blue-700);
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

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

.ghost-btn {
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.88);
}

.ghost-btn:hover {
    color: var(--blue-700);
    background: #ffffff;
}

.quick-feature-list {
    max-width: 700px;
    margin-top: 34px;
    display: grid;
    gap: 10px;
}

.quick-feature-list a {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(14px);
}

.quick-feature-list span {
    font-weight: 800;
}

.quick-feature-list em {
    color: #dbeafe;
    font-style: normal;
    white-space: nowrap;
}

.hero-visual {
    position: relative;
    min-height: 460px;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.12);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

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

.hero-slide-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.08));
}

.hero-slide-text {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 28px;
}

.hero-slide-text span {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.84);
    font-size: 12px;
    font-weight: 800;
}

.hero-slide-text h2 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.2;
}

.hero-slide-text p {
    display: -webkit-box;
    margin: 0 0 16px;
    color: #e5e7eb;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hero-slide-text a {
    display: inline-flex;
    padding: 9px 16px;
    border-radius: 999px;
    color: var(--blue-700);
    background: #ffffff;
    font-weight: 800;
}

.hero-dots {
    position: absolute;
    left: 26px;
    top: 24px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

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

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

.section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 72px 20px;
}

.white-section {
    background: #ffffff;
}

.soft-section {
    max-width: none;
    background: linear-gradient(135deg, #ecfdf5, #eff6ff);
}

.soft-section > * {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.gray-section {
    max-width: none;
    background: #f3f4f6;
}

.gray-section > * {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-head > a {
    color: var(--blue-700);
    font-weight: 800;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

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

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

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

.year-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.9);
    font-size: 12px;
    font-weight: 800;
}

.hover-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.42);
    font-size: 38px;
    opacity: 0;
    transition: opacity 0.22s ease;
}

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

.card-body {
    padding: 14px;
}

.card-body h3 {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 8px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-body h3 a:hover,
.wide-title:hover,
.rank-title:hover {
    color: var(--blue-700);
}

.card-body p,
.wide-content p,
.rank-main p {
    display: -webkit-box;
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--muted);
    font-size: 12px;
}

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

.tag-row span {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--blue-700);
    background: #dbeafe;
    font-size: 12px;
    font-weight: 700;
}

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

.wide-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 18px;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.wide-cover {
    position: relative;
    min-height: 210px;
    overflow: hidden;
}

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

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.86);
    transform: translate(-50%, -50%);
}

.wide-content {
    padding: 18px 18px 18px 0;
}

.wide-title {
    display: block;
    margin-bottom: 8px;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.3;
}

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

.category-tile,
.category-summary-card a {
    display: block;
    min-height: 160px;
    padding: 22px;
    border-radius: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue-700), var(--cyan-500));
    box-shadow: var(--soft-shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.category-summary-card a:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.category-tile span,
.category-summary-card span {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 900;
}

.category-tile p,
.category-summary-card strong {
    display: block;
    color: #e0f2fe;
    font-size: 14px;
    font-weight: 500;
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(90deg, var(--blue-700), var(--cyan-500));
}

.page-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 20px;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.15;
}

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

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

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

.search-panel {
    margin-bottom: 28px;
}

.site-search {
    width: min(100%, 560px);
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
    font-size: 15px;
}

.site-search:focus {
    border-color: var(--blue-700);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 52px 82px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.rank-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue-700), var(--cyan-500));
    font-weight: 900;
}

.rank-cover {
    display: block;
    width: 82px;
    height: 110px;
    overflow: hidden;
    border-radius: 12px;
    background: #dbeafe;
}

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

.rank-title {
    display: block;
    margin-bottom: 6px;
    font-size: 20px;
    font-weight: 900;
}

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

.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(18px) scale(1.08);
    opacity: 0.5;
}

.detail-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.52));
}

.detail-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    padding: 72px 20px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
}

.detail-one-line {
    max-width: 820px;
    margin: 0 0 20px;
    color: #e5e7eb;
    font-size: 20px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.detail-meta span {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.12);
}

.detail-tags {
    margin-bottom: 26px;
}

.player-card {
    overflow: hidden;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.video-shell {
    position: relative;
    background: #000000;
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 82px;
    height: 82px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.88);
    font-size: 34px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.video-play:hover {
    transform: translate(-50%, -50%) scale(1.08);
    background: rgba(6, 182, 212, 0.92);
}

.video-shell.is-playing .video-play {
    pointer-events: none;
    opacity: 0;
}

.player-info {
    padding: 22px 26px;
}

.player-info h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

.player-info p {
    margin: 0;
    color: var(--muted);
}

.article-section {
    padding-top: 64px;
    padding-bottom: 64px;
}

.story-card {
    padding: 34px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.story-card h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.story-card h2:not(:first-child) {
    margin-top: 30px;
}

.story-card p {
    margin: 0;
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
}

.detail-nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.detail-nav-links a {
    padding: 16px 18px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    font-weight: 800;
}

.detail-nav-links a:hover {
    color: var(--blue-700);
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer-brand {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: 24px;
    font-weight: 900;
}

.site-footer p {
    margin: 0;
    color: #9ca3af;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 17px;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 8px;
}

.site-footer a:hover {
    color: #60a5fa;
}

.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 20px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    font-size: 14px;
}

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

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

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

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

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

    .hero-visual {
        min-height: 420px;
    }

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

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

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

@media (max-width: 640px) {
    .header-inner {
        padding: 0 14px;
    }

    .brand {
        font-size: 19px;
    }

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

    .hero-inner {
        padding: 48px 16px;
    }

    .hero-actions {
        display: grid;
    }

    .quick-feature-list a {
        display: block;
    }

    .quick-feature-list em {
        display: block;
        margin-top: 4px;
    }

    .hero-visual {
        min-height: 380px;
        border-radius: 20px;
    }

    .section,
    .page-hero-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-head {
        display: block;
    }

    .section-head > a {
        display: inline-block;
        margin-top: 12px;
    }

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

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

    .wide-card {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .wide-cover {
        min-height: 190px;
    }

    .wide-content {
        padding: 14px 14px 14px 0;
    }

    .wide-title {
        font-size: 18px;
    }

    .rank-row {
        grid-template-columns: 42px 66px minmax(0, 1fr);
        gap: 10px;
        padding: 10px;
    }

    .rank-cover {
        width: 66px;
        height: 92px;
    }

    .rank-title {
        font-size: 16px;
    }

    .detail-inner {
        grid-template-columns: 1fr;
        padding: 42px 16px;
    }

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

    .detail-nav-links,
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
