:root {
    --blue: #0096dc;
    --blue-dark: #006da8;
    --blue-soft: #e5f6ff;
    --yellow: #ffd700;
    --yellow-dark: #e1b800;
    --cream: #fff9e6;
    --red: #e63946;
    --ink: #172033;
    --muted: #667085;
    --line: #e7edf5;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(0, 95, 150, 0.13);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(0, 150, 220, 0.14), transparent 34rem),
        linear-gradient(180deg, #fffdf5 0%, #f6fbff 48%, #ffffff 100%);
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: rgba(0, 150, 220, 0.94);
    box-shadow: 0 12px 30px rgba(0, 94, 140, 0.22);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--blue);
    background: var(--yellow);
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.brand-text {
    display: grid;
    gap: 1px;
}

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

.brand-text small {
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
}

.site-nav {
    display: flex;
    justify-content: center;
    gap: 26px;
    font-weight: 700;
}

.site-nav a {
    position: relative;
    padding: 24px 0;
}

.site-nav a::after {
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    height: 3px;
    background: var(--yellow);
    border-radius: 999px;
    content: "";
    opacity: 0;
    transform: scaleX(0.35);
    transition: 0.25s ease;
}

.site-nav a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
}

.header-search input {
    width: 190px;
    color: #ffffff;
    background: transparent;
    border: 0;
    outline: 0;
    padding: 6px 4px 6px 12px;
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.header-search button,
.page-search button {
    border: 0;
    color: var(--blue-dark);
    background: var(--yellow);
    padding: 7px 14px;
    border-radius: 999px;
    font-weight: 800;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    border-radius: 12px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: #ffffff;
    border-radius: 999px;
}

.hero-carousel {
    position: relative;
    overflow: hidden;
    padding: 64px 0 56px;
    color: #ffffff;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 215, 0, 0.36), transparent 24rem),
        radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.18), transparent 26rem),
        linear-gradient(135deg, #007bc0 0%, #0096dc 45%, #23b7ff 100%);
}

.hero-carousel::before,
.hero-carousel::after {
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    content: "";
    filter: blur(3px);
    opacity: 0.25;
}

.hero-carousel::before {
    top: -120px;
    right: -70px;
    background: var(--yellow);
}

.hero-carousel::after {
    bottom: -160px;
    left: -120px;
    background: #ffffff;
}

.hero-shell,
.hero-track,
.hero-controls {
    position: relative;
    z-index: 2;
}

.hero-title-block {
    max-width: 760px;
    margin-bottom: 32px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 12px;
    color: var(--blue-dark);
    background: var(--yellow);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.05em;
}

.hero-title-block h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-title-block p {
    max-width: 680px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.hero-track {
    min-height: 430px;
}

.hero-slide {
    display: none;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
    align-items: center;
    gap: 42px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-xl);
    box-shadow: 0 28px 80px rgba(0, 51, 96, 0.28);
    backdrop-filter: blur(18px);
}

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

.hero-copy h2 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 62px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 650px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags a,
.tag-row span {
    color: var(--blue-dark);
    background: rgba(255, 215, 0, 0.92);
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 13px;
    font-weight: 800;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.22s ease;
}

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

.button-primary {
    color: var(--blue-dark);
    background: var(--yellow);
    box-shadow: 0 12px 24px rgba(255, 215, 0, 0.28);
}

.button-secondary {
    color: #ffffff;
    background: var(--blue);
}

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

.hero-poster {
    position: relative;
    overflow: hidden;
    display: block;
    aspect-ratio: 3 / 4;
    border: 8px solid rgba(255, 255, 255, 0.22);
    border-radius: 26px;
    box-shadow: 0 24px 50px rgba(0, 35, 77, 0.3);
}

.hero-poster img,
.movie-cover img,
.detail-poster img,
.rank-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--blue-soft), var(--cream));
}

.hero-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 38px;
    height: 8px;
    padding: 0;
    background: rgba(255, 255, 255, 0.45);
    border: 0;
    border-radius: 999px;
}

.hero-dot.is-active {
    background: var(--yellow);
}

.hero-rank-entry,
.section-link {
    color: var(--blue-dark);
    background: var(--yellow);
    border-radius: 999px;
    padding: 9px 15px;
    font-weight: 900;
}

.section-block {
    padding: 58px 0;
}

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

.section-head h2,
.story-block h2,
.category-overview-head h2,
.footer-grid h2 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-head p,
.category-overview-head p,
.page-hero p,
.footer-grid p {
    margin: 8px 0 0;
    color: var(--muted);
}

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

.category-card,
.category-overview-card,
.movie-card,
.rank-item,
.story-block article {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.category-card {
    overflow: hidden;
    padding: 16px;
}

.category-card-main {
    display: grid;
    gap: 8px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    border-radius: 18px;
    padding: 18px;
}

.category-card-main span {
    font-size: 20px;
    font-weight: 900;
}

.category-card-main strong {
    color: var(--yellow);
    font-size: 13px;
}

.category-card p {
    min-height: 72px;
    margin: 14px 0;
    color: var(--muted);
    font-size: 14px;
}

.category-samples {
    display: grid;
    gap: 7px;
}

.category-samples a {
    overflow: hidden;
    color: var(--blue-dark);
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

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

.movie-card {
    overflow: hidden;
    transition: 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(0, 95, 150, 0.2);
}

.movie-cover {
    position: relative;
    overflow: hidden;
    display: block;
    aspect-ratio: 3 / 4;
    background: var(--blue-soft);
}

.movie-badge,
.movie-year {
    position: absolute;
    z-index: 2;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.58);
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
}

.movie-badge {
    top: 12px;
    left: 12px;
}

.movie-year {
    right: 12px;
    bottom: 12px;
}

.movie-card-body {
    padding: 16px;
}

.movie-card-body h3,
.rank-info h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.28;
}

.movie-card-body h3 a:hover,
.rank-info h3 a:hover,
.category-samples a:hover {
    color: var(--blue);
}

.movie-card-body p,
.rank-info p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #5d6b7f;
    font-size: 13px;
    font-weight: 700;
}

.movie-meta span,
.detail-meta span {
    background: var(--blue-soft);
    border-radius: 999px;
    padding: 4px 9px;
}

.movie-card .tag-row {
    margin-top: 12px;
}

.movie-card .tag-row span,
.detail-tags span {
    color: var(--blue-dark);
    background: var(--cream);
    border: 1px solid rgba(255, 215, 0, 0.7);
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 56px 92px 1fr;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    padding: 12px;
}

.rank-number {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--blue-dark);
    background: var(--yellow);
    border-radius: 16px;
    font-size: 18px;
    font-weight: 900;
}

.rank-thumb {
    overflow: hidden;
    width: 92px;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    background: var(--blue-soft);
}

.rank-info h3 {
    font-size: 17px;
}

.page-main,
.detail-main {
    min-height: 70vh;
}

.page-hero {
    padding: 54px 0 22px;
}

.page-hero h1 {
    color: var(--ink);
}

.page-hero p {
    max-width: 760px;
    font-size: 17px;
}

.page-search,
.filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.page-search input,
.filter-panel input,
.filter-panel select {
    min-height: 48px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: 0;
    padding: 0 18px;
    box-shadow: 0 8px 24px rgba(0, 95, 150, 0.08);
}

.page-search input,
.filter-panel input {
    min-width: min(520px, 100%);
}

.category-overview-list {
    display: grid;
    gap: 22px;
    padding: 28px 0 64px;
}

.category-overview-card {
    padding: 24px;
}

.category-overview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

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

.detail-hero {
    padding: 44px 0 24px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    align-items: center;
    gap: 38px;
    color: #ffffff;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.34), transparent 22rem),
        linear-gradient(135deg, var(--blue-dark), var(--blue));
    border-radius: var(--radius-xl);
    padding: 28px;
    box-shadow: 0 30px 80px rgba(0, 95, 150, 0.24);
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 8px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    background: var(--blue-soft);
}

.detail-info h1 {
    color: #ffffff;
}

.detail-one-line {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.detail-meta span {
    color: var(--blue-dark);
    background: rgba(255, 255, 255, 0.92);
}

.player-card {
    position: relative;
    overflow: hidden;
    background: #000000;
    border-radius: var(--radius-xl);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
    aspect-ratio: 16 / 9;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.72));
    border: 0;
    text-align: center;
    font-size: 18px;
    font-weight: 900;
}

.play-overlay.is-hidden {
    display: none;
}

.play-icon {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    color: var(--blue-dark);
    background: var(--yellow);
    border-radius: 999px;
    box-shadow: 0 16px 40px rgba(255, 215, 0, 0.34);
}

.story-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.story-block article {
    padding: 24px;
}

.story-block p {
    margin: 14px 0 0;
    color: #475467;
}

.site-footer {
    color: #d8e0ea;
    background: #101828;
    margin-top: 36px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 28px;
    padding: 44px 0;
}

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

.footer-grid h2 {
    color: var(--yellow);
    font-size: 18px;
}

.footer-grid a {
    display: block;
    margin-top: 10px;
    color: #d8e0ea;
}

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

.footer-bottom {
    padding: 18px;
    color: #98a2b3;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 14px;
}

[data-movie-card].is-hidden {
    display: none;
}

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

@media (max-width: 1040px) {
    .header-inner {
        grid-template-columns: auto auto;
    }

    .site-nav,
    .header-search {
        display: none;
    }

    .nav-toggle {
        display: block;
        justify-self: end;
    }

    .site-nav.is-open {
        display: grid;
        grid-column: 1 / -1;
        justify-content: stretch;
        gap: 0;
        padding: 0 0 16px;
    }

    .site-nav.is-open a {
        padding: 12px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.14);
    }

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

    .hero-poster,
    .detail-poster {
        max-width: 360px;
    }

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

@media (max-width: 760px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .hero-carousel {
        padding: 42px 0 36px;
    }

    .hero-slide {
        padding: 18px;
    }

    .hero-controls,
    .section-head,
    .category-overview-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-grid,
    .movie-grid,
    .compact-grid,
    .rank-grid,
    .story-block,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 42px 76px 1fr;
        gap: 10px;
    }

    .rank-number {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 15px;
    }

    .rank-thumb {
        width: 76px;
    }

    .detail-layout {
        padding: 18px;
    }

    .player-card {
        border-radius: 18px;
    }

    .play-icon {
        width: 62px;
        height: 62px;
    }
}
