:root {
    --primary: #0284c7;
    --primary-dark: #075985;
    --accent: #059669;
    --secondary: #b45309;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --soft: #f9fafb;
    --dark: #111827;
    --radius: 22px;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    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(--text);
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 460px, #f9fafb 100%);
}

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

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
}

.nav-shell {
    max-width: 1280px;
    height: 66px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--text);
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 10px 22px rgba(2, 132, 199, 0.24);
}

.brand-name {
    font-size: 21px;
    letter-spacing: 0.02em;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 15px;
    color: #374151;
}

.nav-link {
    position: relative;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary);
}

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

.nav-link:hover::after {
    width: 100%;
}

.site-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    color: #374151;
    background: #f3f4f6;
    font-size: 22px;
}

.mobile-menu {
    display: none;
    padding: 10px 22px 18px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

.mobile-menu.open {
    display: grid;
    gap: 10px;
}

.mobile-link {
    padding: 10px 2px;
    font-weight: 650;
    color: #374151;
}

main {
    padding-top: 66px;
}

.hero {
    position: relative;
    min-height: 76vh;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 1.2s ease;
    background-position: center;
    background-size: cover;
}

hero-slide:first-child {
    opacity: 1;
}

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

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 28%, rgba(14, 165, 233, 0.36), transparent 32%), linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.55) 48%, rgba(2, 6, 23, 0.18));
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1280px;
    min-height: 76vh;
    margin: 0 auto;
    padding: 80px 22px 70px;
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.65fr);
    gap: 46px;
    color: #ffffff;
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    backdrop-filter: blur(8px);
}

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

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

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 18px 34px rgba(2, 132, 199, 0.32);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
}

.btn-soft {
    color: var(--primary-dark);
    background: #e0f2fe;
}

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

.hero-panel {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 80px rgba(2, 6, 23, 0.38);
    backdrop-filter: blur(16px);
}

.hero-panel img {
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    object-fit: cover;
    background: #0f172a;
}

.hero-panel h2 {
    margin: 16px 0 6px;
    font-size: 24px;
}

.hero-panel .meta-line {
    color: rgba(255, 255, 255, 0.76);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
}

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

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

.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 58px 22px;
}

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

.section-eyebrow {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section h2,
.page-title h1 {
    margin: 6px 0 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.16;
    letter-spacing: -0.035em;
}

.section-desc,
.page-title p {
    max-width: 760px;
    color: var(--muted);
    line-height: 1.8;
}

.search-box {
    display: flex;
    max-width: 560px;
    margin: 0 0 28px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.search-box input {
    flex: 1;
    min-width: 0;
    height: 52px;
    padding: 0 18px;
    border: 0;
    outline: none;
    font-size: 16px;
}

.search-box span {
    display: inline-flex;
    align-items: center;
    padding: 0 18px;
    color: var(--muted);
    background: #f3f4f6;
}

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

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

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0f172a;
}

.poster-link img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-link::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.72));
    transition: opacity 0.2s ease;
}

.movie-card:hover .poster-link::after {
    opacity: 1;
}

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 132, 199, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.card-body {
    padding: 18px;
}

.card-meta,
.meta-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.card-meta span,
.meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f3f4f6;
}

.movie-card h3 {
    margin: 12px 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

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

.movie-card p {
    min-height: 66px;
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
}

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

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: #e0f2fe;
    font-size: 12px;
    font-weight: 700;
}

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

.category-card {
    min-height: 190px;
    padding: 26px;
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: var(--shadow);
    transition: transform 0.22s ease;
}

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

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

.category-card:hover {
    transform: translateY(-5px);
}

.category-card h2,
.category-card h3 {
    margin: 0 0 12px;
    font-size: 26px;
}

.category-card p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.rank-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 30px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 46px 58px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 10px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease;
}

.rank-item:hover {
    transform: translateX(4px);
}

.rank-no {
    font-size: 20px;
    font-weight: 900;
    color: var(--primary);
}

.rank-item img {
    width: 58px;
    height: 82px;
    border-radius: 12px;
    object-fit: cover;
    background: #0f172a;
}

.rank-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.rank-year {
    color: var(--muted);
    font-size: 14px;
}

.page-hero {
    padding-top: 66px;
    background: linear-gradient(135deg, #0f172a, #075985 55%, #059669);
    color: #ffffff;
}

.page-title {
    max-width: 1280px;
    margin: 0 auto;
    padding: 78px 22px 54px;
}

.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.74);
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
}

.player-stage {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 28px 70px rgba(2, 6, 23, 0.24);
}

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

.player-button {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.78));
    font-size: 17px;
    font-weight: 800;
}

.player-button span:first-child {
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(2, 132, 199, 0.94);
    box-shadow: 0 18px 36px rgba(2, 132, 199, 0.35);
    font-size: 30px;
}

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

.detail-card img {
    border-radius: 20px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #0f172a;
}

.detail-card h2 {
    margin: 18px 0 10px;
    font-size: 24px;
}

.content-block {
    margin-top: 28px;
    border-radius: 28px;
    padding: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.content-block h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.content-block p {
    margin: 0;
    color: #374151;
    line-height: 1.9;
    white-space: pre-line;
}

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

.sidebar-card {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.sidebar-card img {
    width: 76px;
    height: 108px;
    border-radius: 12px;
    object-fit: cover;
    background: #0f172a;
}

.sidebar-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
}

.sidebar-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.empty-note {
    display: none;
    padding: 24px;
    border-radius: 18px;
    color: var(--muted);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.site-footer {
    margin-top: 40px;
    color: #d1d5db;
    background: #111827;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 46px 22px 30px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 28px;
}

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

.footer-inner p {
    max-width: 620px;
    margin: 0;
    color: #9ca3af;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: start;
    justify-content: flex-end;
    gap: 14px 18px;
}

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

.copyright {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 22px 30px;
    color: #6b7280;
    border-top: 1px solid #1f2937;
    font-size: 14px;
}

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

    .site-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

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

    .hero-panel {
        display: none;
    }

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

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .nav-shell {
        padding: 0 16px;
    }

    .brand-name {
        font-size: 19px;
    }

    .hero,
    .hero-content {
        min-height: 680px;
    }

    .hero-content {
        padding: 74px 16px 86px;
    }

    .hero h1 {
        font-size: 40px;
    }

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

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

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

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

    .card-body {
        padding: 14px;
    }

    .movie-card p {
        min-height: 58px;
        font-size: 13px;
    }

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

    .rank-item {
        grid-template-columns: 38px 52px 1fr;
    }

    .rank-year {
        display: none;
    }

    .content-block,
    .detail-card {
        padding: 20px;
        border-radius: 22px;
    }
}

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