:root {
    --blue: #0096dc;
    --blue-dark: #0077b6;
    --blue-light: #4db8e8;
    --yellow: #ffd700;
    --yellow-dark: #ffc700;
    --red: #e63946;
    --cream: #fff8e1;
    --ink: #112033;
    --muted: #65758b;
    --line: rgba(17, 32, 51, 0.1);
    --surface: rgba(255, 255, 255, 0.92);
    --shadow: 0 24px 70px rgba(0, 119, 182, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(77, 184, 232, 0.28), transparent 34rem),
        radial-gradient(circle at top right, rgba(255, 215, 0, 0.22), transparent 28rem),
        linear-gradient(180deg, #eef9ff 0%, #fffdf4 42%, #ffffff 100%);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.container-wide {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.container-narrow {
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.65);
    box-shadow: 0 12px 36px rgba(0, 119, 182, 0.09);
}

.header-inner {
    width: min(1240px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    white-space: nowrap;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--blue-light));
    border: 3px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 12px 24px rgba(0, 150, 220, 0.28);
}

.brand-text {
    font-size: 20px;
    letter-spacing: 0.03em;
}

.site-nav {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
    display: none;
}

.site-nav a {
    padding: 9px 12px;
    color: #274761;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    transition: 0.2s ease;
}

.site-nav a:hover {
    color: #ffffff;
    background: var(--blue);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(0, 119, 182, 0.08);
}

.header-search input {
    width: 210px;
    border: 0;
    outline: 0;
    padding: 8px 4px 8px 12px;
    background: transparent;
}

.header-search button,
.btn,
.search-line button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    border-radius: 999px;
    padding: 10px 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(0, 119, 182, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.btn:hover,
.search-line button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(0, 119, 182, 0.28);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 119, 182, 0.12);
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    margin: 5px auto;
    background: var(--blue-dark);
    border-radius: 999px;
}

.hero {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(135deg, #eaf8ff 0%, #ffffff 48%, #fff8d6 100%);
}

.hero-bg-one,
.hero-bg-two {
    position: absolute;
    z-index: -1;
    width: 380px;
    height: 380px;
    border-radius: 999px;
    opacity: 0.62;
    filter: blur(4px);
}

.hero-bg-one {
    left: -120px;
    top: 80px;
    background: var(--blue-light);
}

.hero-bg-two {
    right: -110px;
    bottom: 40px;
    background: var(--yellow);
}

.hero-track {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    position: relative;
    min-height: 650px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    align-items: center;
    gap: 54px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) scale(0.98);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blue-dark);
    background: rgba(0, 150, 220, 0.12);
    border: 1px solid rgba(0, 150, 220, 0.18);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
    margin: 18px 0 10px;
    font-size: clamp(34px, 5vw, 66px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero h2 {
    margin: 0 0 14px;
    color: var(--blue-dark);
    font-size: clamp(25px, 3vw, 42px);
    line-height: 1.15;
}

.hero p,
.page-hero p,
.lead-text {
    color: #40576f;
    font-size: 17px;
    max-width: 720px;
}

.hero-actions,
.detail-info .btn {
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.btn-soft {
    color: var(--blue-dark);
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(0, 119, 182, 0.12);
}

.hero-poster {
    position: relative;
    display: block;
    padding: 18px;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 36px;
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--blue-light), var(--yellow));
}

.hero-score {
    position: absolute;
    right: 4px;
    top: 28px;
    min-width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    color: #553c00;
    background: var(--yellow);
    border: 5px solid #ffffff;
    border-radius: 999px;
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 16px 28px rgba(255, 199, 0, 0.25);
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 13px;
    height: 13px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 119, 182, 0.22);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 36px;
    background: var(--blue);
}

.search-panel {
    position: relative;
    z-index: 5;
    margin-top: -42px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-panel h2 {
    margin: 0 0 16px;
    font-size: 22px;
}

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

.search-line input {
    min-width: 0;
    flex: 1;
    border: 1px solid var(--line);
    outline: 0;
    padding: 14px 18px;
    background: #ffffff;
    border-radius: 999px;
}

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

.filter-btn,
.tag-row span,
.category-pill {
    border: 1px solid rgba(0, 150, 220, 0.16);
    color: var(--blue-dark);
    background: rgba(0, 150, 220, 0.08);
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 13px;
    font-weight: 800;
}

.filter-btn {
    cursor: pointer;
}

.filter-btn.is-active,
.filter-btn:hover {
    color: #ffffff;
    background: var(--blue);
}

.section {
    padding: 72px 0 0;
}

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

.section-heading.compact {
    align-items: center;
}

.section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.08;
}

.section-heading a {
    color: var(--blue-dark);
    font-weight: 900;
}

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

.category-card,
.category-overview-card a {
    display: block;
    min-height: 170px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid rgba(0, 150, 220, 0.12);
    border-radius: 28px;
    box-shadow: 0 18px 46px rgba(0, 119, 182, 0.08);
    transition: 0.24s ease;
}

.category-card:hover,
.category-overview-card a:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 119, 182, 0.16);
}

.category-card span,
.category-overview-card h2 {
    color: var(--blue-dark);
    font-size: 20px;
    font-weight: 900;
}

.category-card p,
.category-overview-card p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.category-count {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--red);
    font-weight: 900;
}

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

.movie-card {
    background: #ffffff;
    border: 1px solid rgba(0, 150, 220, 0.1);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 16px 42px rgba(0, 119, 182, 0.1);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 64px rgba(0, 119, 182, 0.18);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(77, 184, 232, 0.5), rgba(255, 215, 0, 0.5));
}

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

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

.score-badge,
.play-chip {
    position: absolute;
    top: 10px;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 900;
}

.score-badge {
    left: 10px;
    color: #4b3600;
    background: var(--yellow);
}

.play-chip {
    right: 10px;
    color: #ffffff;
    background: rgba(230, 57, 70, 0.92);
}

.movie-card-content {
    padding: 15px;
}

.movie-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.movie-card h3 {
    margin: 10px 0 8px;
    font-size: 17px;
    line-height: 1.3;
}

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

.movie-card p {
    min-height: 44px;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.movie-card-compact p {
    display: none;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
    gap: 24px;
    padding-bottom: 80px;
}

.ranking-card,
.banner-card,
.story-card {
    background: #ffffff;
    border: 1px solid rgba(0, 150, 220, 0.12);
    border-radius: 30px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.banner-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0, 150, 220, 0.95), rgba(77, 184, 232, 0.85)), var(--blue);
    color: #ffffff;
}

.banner-card .eyebrow {
    color: #5b4300;
    background: var(--yellow);
}

.banner-card h2 {
    margin: 16px 0 10px;
    font-size: 34px;
    line-height: 1.15;
}

.banner-card p {
    color: rgba(255, 255, 255, 0.88);
}

.rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.rank-list a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 54px;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(0, 150, 220, 0.04);
}

.rank-no {
    color: var(--red);
    font-weight: 900;
}

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

.rank-score {
    color: #553c00;
    background: var(--yellow);
    border-radius: 999px;
    padding: 4px 8px;
    text-align: center;
    font-weight: 900;
}

.page-hero {
    padding: 82px 0 20px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    margin-bottom: 18px;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--blue-dark);
}

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

.rank-card-link {
    display: grid;
    grid-template-columns: 64px 76px minmax(0, 1fr) 70px;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid rgba(0, 150, 220, 0.1);
    border-radius: 24px;
    box-shadow: 0 12px 34px rgba(0, 119, 182, 0.08);
}

.rank-card-no {
    color: var(--red);
    font-size: 21px;
    font-weight: 900;
    text-align: center;
}

.rank-card img {
    width: 76px;
    height: 104px;
    object-fit: cover;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--blue-light), var(--yellow));
}

.rank-card-main {
    min-width: 0;
}

.rank-card-main strong,
.rank-card-main em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-card-main strong {
    font-size: 18px;
}

.rank-card-main em {
    color: var(--muted);
    font-style: normal;
}

.rank-card-score {
    color: #553c00;
    background: var(--yellow);
    border-radius: 999px;
    padding: 7px 10px;
    text-align: center;
    font-weight: 900;
}

.detail-hero {
    padding: 46px 0 30px;
    background:
        radial-gradient(circle at 20% 0%, rgba(77, 184, 232, 0.28), transparent 32rem),
        linear-gradient(180deg, #eef9ff 0%, rgba(255, 255, 255, 0) 100%);
}

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

.video-frame {
    position: relative;
    overflow: hidden;
    background: #06111d;
    border: 8px solid #ffffff;
    border-radius: 34px;
    box-shadow: var(--shadow);
}

.video-frame video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #06111d;
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(6, 17, 29, 0.18), rgba(6, 17, 29, 0.68));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-circle {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    color: var(--blue-dark);
    background: var(--yellow);
    border: 6px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
    font-size: 28px;
    line-height: 1;
}

.detail-info {
    padding: 24px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    box-shadow: 0 18px 50px rgba(0, 119, 182, 0.1);
}

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

.detail-meta span {
    color: #274761;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 800;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.story-card h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.story-card p {
    margin: 0;
    color: #40576f;
}

.related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-bottom: 80px;
}

.site-footer {
    margin-top: 80px;
    padding: 36px 0;
    background: #071828;
    color: #e8f6ff;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner p {
    margin: 6px 0 0;
    color: rgba(232, 246, 255, 0.72);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a:hover {
    color: var(--yellow);
}

.no-results {
    grid-column: 1 / -1;
    padding: 28px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
    border-radius: 22px;
}

@media (max-width: 1120px) {
    .header-search {
        display: none;
    }

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

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

@media (max-width: 860px) {
    .header-inner {
        flex-wrap: wrap;
        min-height: 68px;
        padding: 10px 0;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .site-nav {
        order: 3;
        flex-basis: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 10px 0;
    }

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

    .site-nav a {
        background: rgba(0, 150, 220, 0.06);
    }

    .hero,
    .hero-track {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 34px 0 86px;
    }

    .hero-poster {
        max-width: 330px;
        margin: 0 auto;
    }

    .search-panel {
        margin-top: -24px;
        padding: 20px;
    }

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

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

    .category-grid,
    .category-overview-grid,
    .split-section,
    .detail-layout,
    .detail-content {
        grid-template-columns: 1fr;
    }

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

    .rank-card-score {
        grid-column: 3;
        width: fit-content;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .container-wide,
    .container-narrow,
    .header-inner,
    .hero-track,
    .footer-inner {
        width: min(100% - 22px, 1180px);
    }

    .brand-text {
        font-size: 18px;
    }

    .hero h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 32px;
    }

    .movie-grid,
    .related-grid {
        gap: 12px;
    }

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

    .movie-card h3 {
        font-size: 15px;
    }

    .movie-card p,
    .tag-row {
        display: none;
    }

    .rank-card-link {
        grid-template-columns: 42px 56px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-card img {
        width: 56px;
        height: 78px;
    }
}
