:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-accent: #06b6d4;
    --color-ink: #111827;
    --color-muted: #6b7280;
    --color-soft: #f3f7ff;
    --color-line: #e5e7eb;
    --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 30px rgba(37, 99, 235, 0.15);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 32%, #f7fbff 100%);
    color: var(--color-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

body.menu-open {
    overflow: hidden;
}

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

img {
    background: linear-gradient(135deg, #e0f2fe, #eff6ff 48%, #dbeafe);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(226, 232, 240, 0.76);
    backdrop-filter: blur(18px);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
}

.nav-wrap {
    width: min(1240px, calc(100% - 32px));
    height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 23px;
    letter-spacing: -0.03em;
}

.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.22);
}

.logo-text {
    background: linear-gradient(90deg, #1d4ed8, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--color-primary);
    background: #eff6ff;
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    color: #1f2937;
    background: #f3f4f6;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 999px;
    background: currentColor;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 640px;
    background: radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.22), transparent 28%),
                radial-gradient(circle at 85% 15%, rgba(6, 182, 212, 0.16), transparent 26%),
                linear-gradient(135deg, #eff6ff 0%, #ffffff 54%, #ecfeff 100%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -12% -34% -12%;
    height: 360px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15), transparent 64%);
    pointer-events: none;
}

.hero-stage {
    position: relative;
    width: min(1240px, calc(100% - 32px));
    min-height: 640px;
    margin: 0 auto;
    display: grid;
    align-items: center;
    padding: 76px 0 48px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.72fr);
    gap: 52px;
    align-items: center;
}

.hero-slide.is-active {
    display: grid;
    animation: heroFade 0.65s ease both;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    color: #1d4ed8;
    background: rgba(219, 234, 254, 0.9);
    font-weight: 800;
}

.hero-title {
    max-width: 780px;
    margin: 0 0 18px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-title span {
    display: block;
    background: linear-gradient(90deg, #1e3a8a, #2563eb, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    max-width: 700px;
    margin: 0 0 28px;
    color: #475569;
    font-size: 18px;
    line-height: 1.9;
}

.hero-meta,
.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.pill,
.tag,
.meta-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
}

.pill {
    padding: 8px 12px;
    color: #075985;
    background: rgba(224, 242, 254, 0.95);
}

.tag {
    padding: 7px 11px;
    color: #374151;
    background: #f3f4f6;
}

.meta-badge {
    padding: 7px 10px;
    color: #1d4ed8;
    background: #eff6ff;
}

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

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    box-shadow: var(--shadow-soft);
}

.btn-ghost {
    color: #1d4ed8;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.hero-search {
    position: relative;
    max-width: 620px;
    margin-top: 26px;
}

.hero-search input,
.filter-input,
.filter-select {
    width: 100%;
    min-height: 52px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    outline: none;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.08);
}

.hero-search input {
    padding: 0 150px 0 22px;
    font-size: 16px;
}

.hero-search button {
    position: absolute;
    top: 6px;
    right: 6px;
    height: 40px;
    padding: 0 20px;
}

.hero-visual {
    position: relative;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4.15;
    border-radius: 32px;
    background: #dbeafe;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.28);
}

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

.hero-slide.is-active .hero-poster img {
    transform: scale(1.035);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.78));
}

.hero-card-info {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 2;
    color: #ffffff;
}

.hero-card-info strong {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
}

.hero-card-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.65;
}

.hero-float {
    position: absolute;
    right: -18px;
    bottom: 44px;
    z-index: 4;
    width: 180px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.15);
    backdrop-filter: blur(16px);
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 30px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: #bfdbfe;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.hero-arrows {
    position: absolute;
    right: 0;
    bottom: 20px;
    display: flex;
    gap: 10px;
}

.arrow-btn {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #1d4ed8;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

main {
    position: relative;
}

.section {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.section.compact {
    padding: 48px 0;
}

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

.section-kicker {
    margin-bottom: 8px;
    color: var(--color-primary);
    font-weight: 850;
    letter-spacing: 0.08em;
}

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-desc {
    max-width: 720px;
    margin: 10px 0 0;
    color: var(--color-muted);
    line-height: 1.85;
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card,
.category-card,
.rank-card,
.info-panel,
.detail-card {
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
}

.movie-card {
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4.05;
}

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

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

.card-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 3;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(37, 99, 235, 0.92);
    font-size: 12px;
    font-weight: 850;
}

.rating-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    padding: 6px 10px;
    border-radius: 999px;
    color: #92400e;
    background: rgba(254, 243, 199, 0.96);
    font-size: 12px;
    font-weight: 850;
}

.movie-body {
    padding: 16px;
}

.movie-title {
    margin: 0 0 10px;
    font-size: 17px;
    line-height: 1.35;
}

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

.movie-line {
    min-height: 48px;
    margin: 12px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-card {
    display: flex;
    min-height: 190px;
    padding: 22px;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #ffffff, #eff6ff);
    box-shadow: var(--shadow-card);
}

.category-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
}

.category-card p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.category-card .mini-list {
    display: flex;
    gap: 6px;
    margin-top: 18px;
}

.category-card .mini-list span {
    width: 34px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.filter-panel {
    display: grid;
    grid-template-columns: 2fr repeat(3, minmax(150px, 1fr));
    gap: 14px;
    padding: 16px;
    margin-bottom: 28px;
    border: 1px solid rgba(219, 234, 254, 0.95);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 38px rgba(37, 99, 235, 0.08);
}

.filter-input,
.filter-select {
    padding: 0 18px;
    box-shadow: none;
}

.no-results {
    display: none;
    padding: 28px;
    border-radius: var(--radius-md);
    color: #475569;
    background: #f8fafc;
    text-align: center;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 66px 92px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-num {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    font-size: 22px;
    font-weight: 900;
}

.rank-thumb {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
}

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

.rank-title {
    margin: 0 0 8px;
    font-size: 19px;
}

.rank-title a:hover {
    color: var(--color-primary);
}

.rank-summary {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.page-hero {
    background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.14), transparent 34%), linear-gradient(135deg, #eff6ff, #ffffff 62%, #ecfeff);
}

.page-hero-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 78px 0 56px;
}

.page-hero h1 {
    max-width: 920px;
    margin: 0;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.page-hero p {
    max-width: 760px;
    margin: 18px 0 0;
    color: #475569;
    font-size: 18px;
    line-height: 1.85;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: #64748b;
    font-size: 14px;
}

.breadcrumb a {
    color: #2563eb;
    font-weight: 700;
}

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

.player-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: #020617;
    box-shadow: 0 25px 65px rgba(15, 23, 42, 0.28);
}

.video-player {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
    z-index: 1;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.22), rgba(2, 6, 23, 0.34));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    padding-left: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.35);
    font-size: 36px;
}

.player-start.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-card {
    padding: 24px;
}

.detail-cover {
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 3 / 4.05;
    margin-bottom: 18px;
}

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

.detail-title {
    margin: 20px 0 12px;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.detail-one-line {
    margin: 0 0 20px;
    color: #475569;
    font-size: 18px;
    line-height: 1.8;
}

.article-content {
    display: grid;
    gap: 22px;
    margin-top: 28px;
}

.article-block {
    padding: 26px;
    border-radius: var(--radius-md);
    background: #ffffff;
    border: 1px solid var(--color-line);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.article-block h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.article-block p {
    margin: 0;
    color: #374151;
    font-size: 16px;
    line-height: 1.95;
    white-space: pre-line;
}

.site-footer {
    margin-top: 48px;
    border-top: 1px solid var(--color-line);
    background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 36px;
}

.footer-inner h3,
.footer-inner h4 {
    margin: 0 0 14px;
}

.footer-inner p,
.footer-inner li {
    color: #64748b;
    line-height: 1.8;
}

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

.footer-inner a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 32px;
    color: #64748b;
    border-top: 1px solid var(--color-line);
    font-size: 14px;
}

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 45;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.back-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

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

    .hero-visual {
        max-width: 430px;
    }

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

@media (max-width: 820px) {
    .nav-wrap {
        height: 68px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 78px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border: 1px solid var(--color-line);
        border-radius: 20px;
        background: #ffffff;
        box-shadow: var(--shadow-card);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        border-radius: 14px;
    }

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

    .hero-stage {
        padding: 50px 0 72px;
    }

    .hero-slide.is-active {
        gap: 30px;
    }

    .hero-dots,
    .hero-arrows {
        bottom: 18px;
    }

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

    .section-header {
        display: block;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .rank-card {
        grid-template-columns: 48px 76px minmax(0, 1fr);
    }

    .rank-card .btn {
        grid-column: 2 / -1;
        width: max-content;
    }
}

@media (max-width: 560px) {
    .logo {
        font-size: 19px;
    }

    .logo-mark {
        width: 38px;
        height: 38px;
    }

    .hero-search input {
        padding-right: 20px;
    }

    .hero-search button {
        position: static;
        width: 100%;
        margin-top: 10px;
    }

    .movie-grid,
    .category-grid {
        gap: 14px;
    }

    .movie-body {
        padding: 13px;
    }

    .movie-title {
        font-size: 15px;
    }

    .movie-line {
        min-height: auto;
        font-size: 13px;
    }

    .rank-card {
        grid-template-columns: 42px 1fr;
    }

    .rank-thumb {
        display: none;
    }

    .rank-card .btn {
        grid-column: 1 / -1;
    }

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

    .player-start span {
        width: 70px;
        height: 70px;
        font-size: 30px;
    }
}
