* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #111827;
    background: #f9fafb;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

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

.brand,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-name {
    font-size: 24px;
    background: linear-gradient(90deg, #0284c7, #16a34a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7, #16a34a);
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.25);
    font-size: 14px;
}

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

.desktop-nav a,
.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: #0284c7;
    background: #f0f9ff;
}

.nav-toggle {
    display: none;
    border: 0;
    background: #f0f9ff;
    color: #0284c7;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 22px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px 24px 16px;
    border-top: 1px solid #e5e7eb;
}

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

.hero-section {
    position: relative;
    min-height: 500px;
    height: 70vh;
    background: #111827;
    overflow: hidden;
}

.hero-card {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.25), transparent 35%), linear-gradient(135deg, #0f172a, #111827 52%, #052e16);
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
    transform: scale(1.01);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.hero-card:hover img {
    transform: scale(1.06);
    opacity: 0.9;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.38) 48%, rgba(0, 0, 0, 0.08)), linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent 42%);
}

.hero-content {
    position: absolute;
    left: 6vw;
    right: 6vw;
    bottom: 8vh;
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(4px);
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 16px;
}

.hero-content h1 {
    margin: 0 0 12px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content p {
    margin: 0 0 22px;
    color: #e5e7eb;
    font-size: clamp(16px, 2vw, 20px);
}

.hero-actions,
.section-title,
.category-head,
.detail-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7, #16a34a);
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.32);
}

.secondary-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
}

.page-section,
.content-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
}

.section-title {
    margin-bottom: 24px;
}

.section-title h2,
.category-head h1,
.detail-copy h1,
.simple-hero h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-title p,
.category-head p,
.simple-hero p {
    margin: 8px 0 0;
    color: #4b5563;
    max-width: 760px;
}

.link-more {
    color: #0284c7;
    font-weight: 700;
}

.horizontal-scroll {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 2px 18px;
    scroll-snap-type: x proximity;
}

.horizontal-scroll .movie-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
}

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

.movie-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.poster-shell {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: radial-gradient(circle at 30% 18%, rgba(56, 189, 248, 0.34), transparent 28%), linear-gradient(135deg, #0f172a, #064e3b);
}

.poster-shell img,
.compact-cover img,
.related-cover img,
.category-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.movie-card:hover .poster-shell img,
.compact-card:hover .compact-cover img,
.related-card:hover .related-cover img {
    transform: scale(1.08);
}

.poster-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent 58%);
}

.poster-meta {
    position: absolute;
    left: 12px;
    bottom: 12px;
    right: 12px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.card-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
}

.card-copy strong {
    font-size: 18px;
    line-height: 1.3;
}

.card-copy > span:not(.tag-row) {
    color: #6b7280;
    font-size: 14px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-row span,
.meta-pill,
.detail-tag {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f0f9ff;
    color: #0369a1;
    font-size: 12px;
    font-weight: 700;
}

.alt-band {
    background: #ffffff;
}

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

.category-card {
    position: relative;
    min-height: 260px;
    padding: 24px;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff, #f0f9ff);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-card h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

.category-card p {
    margin: 0;
    color: #4b5563;
}

.category-card span {
    margin-top: 24px;
    color: #0284c7;
    font-weight: 800;
}

.search-panel {
    margin: 28px 0;
    padding: 20px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.search-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 800;
    color: #111827;
}

.search-line {
    display: flex;
    gap: 10px;
}

.movie-search {
    width: 100%;
    height: 48px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 0 16px;
    font-size: 16px;
    outline: none;
}

.movie-search:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.16);
}

.search-clear {
    border: 0;
    border-radius: 16px;
    padding: 0 18px;
    background: #111827;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
}

.simple-hero {
    background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.22), transparent 28%), linear-gradient(135deg, #0f172a, #064e3b);
    color: #ffffff;
    padding: 72px 24px;
}

.simple-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
}

.simple-hero p {
    color: rgba(255, 255, 255, 0.82);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 72px 110px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.rank-number {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0284c7;
    background: #f0f9ff;
    font-weight: 900;
    font-size: 20px;
}

.rank-cover {
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #064e3b);
}

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

.rank-copy strong {
    display: block;
    font-size: 18px;
}

.rank-copy p {
    margin: 4px 0 0;
    color: #6b7280;
}

.player-hero {
    background: #000000;
    padding: 28px 24px;
}

.player-shell {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 28px;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.18), transparent 32%), #050505;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18));
    color: #ffffff;
    cursor: pointer;
}

.play-big {
    width: 88px;
    height: 88px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 6px;
    background: linear-gradient(135deg, #0284c7, #16a34a);
    box-shadow: 0 16px 40px rgba(2, 132, 199, 0.42);
    font-size: 36px;
}

.player-started .player-cover {
    display: none;
}

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

.detail-copy,
.related-panel {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 28px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 18px;
}

.breadcrumbs a {
    color: #0284c7;
    font-weight: 700;
}

.detail-intro {
    color: #4b5563;
    font-size: 18px;
    margin: 14px 0 18px;
}

.meta-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.detail-copy h2,
.related-panel h2 {
    margin: 28px 0 12px;
    font-size: 24px;
}

.detail-copy p {
    color: #374151;
    margin: 0 0 14px;
}

.related-panel {
    position: sticky;
    top: 92px;
}

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

.related-card,
.compact-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.related-cover,
.compact-cover {
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #064e3b);
}

.related-card strong,
.compact-card strong {
    display: block;
    line-height: 1.35;
}

.related-card small,
.compact-card small {
    color: #6b7280;
}

.no-results {
    display: none;
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    color: #6b7280;
    text-align: center;
}

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

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 24px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 32px;
}

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

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

.footer-links div {
    display: grid;
    gap: 8px;
}

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

.copyright {
    margin: 0;
    padding: 18px 24px 24px;
    text-align: center;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

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

    .related-panel {
        position: static;
    }
}

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

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

    .hero-section {
        min-height: 560px;
        height: 78vh;
    }

    .hero-content {
        left: 20px;
        right: 20px;
        bottom: 42px;
    }

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

    .horizontal-scroll .movie-card {
        flex-basis: 220px;
    }

    .page-section,
    .content-shell {
        padding: 34px 16px;
    }

    .rank-item {
        grid-template-columns: 52px 82px minmax(0, 1fr);
    }

    .rank-item .primary-button {
        grid-column: 2 / -1;
        justify-self: start;
    }

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

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

    .search-line {
        flex-direction: column;
    }

    .related-card,
    .compact-card {
        grid-template-columns: 92px minmax(0, 1fr);
    }
}
