:root {
    --blue: #2563eb;
    --cyan: #06b6d4;
    --blue-deep: #1d4ed8;
    --text: #111827;
    --muted: #64748b;
    --line: #e2e8f0;
    --soft: #f8fafc;
    --white: #ffffff;
    --dark: #0f172a;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 34%, #ffffff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(18px);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    width: min(1240px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
}

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

.brand-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.26);
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(-3deg);
}

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

.brand-text strong {
    font-size: 20px;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text em {
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.nav-link,
.mobile-nav-link {
    color: #334155;
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
    color: var(--blue);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
}

.header-search input,
.mobile-search input,
.filter-search input,
.select-row select {
    border: 1px solid var(--line);
    outline: none;
    color: var(--text);
    background: #ffffff;
    border-radius: 999px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input {
    width: 220px;
    padding: 10px 15px;
}

.header-search button,
.mobile-search button {
    padding: 10px 16px;
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

input:focus,
select:focus {
    border-color: rgba(37, 99, 235, 0.6);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 0;
    border-radius: 14px;
    background: #eef6ff;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #1e293b;
    border-radius: 9px;
}

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 18px;
    border-top: 1px solid var(--line);
}

.mobile-nav.is-open {
    display: grid;
    gap: 14px;
}

.mobile-search {
    display: flex;
    gap: 8px;
}

.mobile-search input {
    flex: 1;
    padding: 12px 15px;
}

main {
    min-height: 70vh;
}

.hero {
    position: relative;
    width: min(1240px, calc(100% - 32px));
    margin: 28px auto 32px;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: var(--shadow);
    background: radial-gradient(circle at 12% 16%, rgba(6, 182, 212, 0.55), transparent 32%), linear-gradient(135deg, #0f172a, #1d4ed8 55%, #0891b2);
}

.hero-slider {
    position: relative;
    min-height: 620px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hero-slide.is-active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-backdrop::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.62) 42%, rgba(15, 23, 42, 0.16));
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.05);
    transform: scale(1.06);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 54px;
    align-items: center;
    padding: 82px 72px 74px;
}

.hero-copy {
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.86);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero-copy h1 {
    max-width: 800px;
    margin: 18px 0 18px;
    font-size: clamp(38px, 6vw, 74px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

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

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

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
}

.btn-soft {
    color: var(--blue-deep);
    background: rgba(255, 255, 255, 0.9);
}

.btn-ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
}

.full-button {
    width: 100%;
    margin-top: 18px;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 28px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4.15;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;
    display: block;
    padding: 12px 14px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.74);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    backdrop-filter: blur(14px);
}

.hero-dots {
    position: absolute;
    z-index: 4;
    right: 34px;
    bottom: 28px;
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    transition: width 0.25s ease, background 0.25s ease;
}

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

.category-strip,
.content-section,
.page-shell,
.detail-page {
    width: min(1240px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
}

.category-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
    margin-bottom: 42px;
}

.category-tile {
    position: relative;
    display: grid;
    min-height: 168px;
    overflow: hidden;
    padding: 18px;
    color: #ffffff;
    border-radius: 24px;
    isolation: isolate;
    box-shadow: var(--shadow);
}

.category-tile img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.category-tile::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.82));
}

.category-tile:hover img {
    transform: scale(1.08);
}

.category-tile span {
    align-self: end;
    font-size: 21px;
    font-weight: 900;
}

.category-tile em {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-style: normal;
}

.content-section {
    margin-top: 46px;
    margin-bottom: 56px;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
    align-items: start;
}

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

.section-heading h2,
.rank-title h2 {
    margin: 6px 0 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--muted);
}

.section-link {
    color: var(--blue);
    font-weight: 800;
    white-space: nowrap;
}

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

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

.movie-card {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: var(--radius);
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.14);
}

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

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

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

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.78);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

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

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

.movie-card .tag-row span,
.detail-tags span {
    color: var(--blue-deep);
    background: #eff6ff;
}

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

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

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

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.small-card .movie-card-body {
    padding: 14px;
}

.small-card h3 {
    font-size: 16px;
}

.rank-panel {
    position: sticky;
    top: 92px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 38px 56px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 9px;
    border-radius: 18px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
    background: #f1f5f9;
    transform: translateX(3px);
}

.rank-number {
    color: var(--blue);
    font-size: 18px;
    font-weight: 950;
}

.rank-item img {
    width: 56px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-copy {
    display: grid;
    min-width: 0;
}

.rank-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-copy em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

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

.page-shell,
.detail-page {
    padding-top: 28px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 58px;
    color: #ffffff;
    background: radial-gradient(circle at 20% 18%, rgba(6, 182, 212, 0.42), transparent 30%), linear-gradient(135deg, #0f172a, #1d4ed8 60%, #06b6d4);
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.page-hero .eyebrow {
    color: #bae6fd;
}

.page-hero h1 {
    max-width: 820px;
    margin: 10px 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
}

.slim-hero {
    min-height: 270px;
}

.category-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 36px 0 60px;
}

.category-card-large {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.category-card-cover {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    overflow: hidden;
    border-radius: 20px;
}

.category-card-cover img {
    width: 100%;
    height: 126px;
    object-fit: cover;
}

.category-card-copy {
    align-self: center;
}

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

.category-card-copy p {
    color: var(--muted);
}

.filter-panel {
    display: grid;
    gap: 16px;
    margin: 28px 0 26px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.filter-search input,
.wide-search input {
    width: 100%;
    padding: 14px 18px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-row button {
    padding: 9px 14px;
    color: #334155;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 999px;
}

.filter-row button:hover,
.filter-row button.is-active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
}

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

.select-row select {
    width: 100%;
    padding: 13px 16px;
}

.listing-grid {
    margin-bottom: 64px;
}

.ranking-feature {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 30px;
    align-items: center;
}

.ranking-feature img {
    width: 260px;
    height: 350px;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 26px 62px rgba(0, 0, 0, 0.25);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 12px 0 22px;
    color: var(--muted);
    font-size: 14px;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 34px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 34px;
    box-shadow: var(--shadow);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 26px;
}

.detail-copy h1 {
    margin: 10px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-one-line {
    color: #334155;
    font-size: 18px;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.detail-meta-grid div {
    padding: 14px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.detail-meta-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.detail-meta-grid strong {
    display: block;
    margin-top: 4px;
}

.player-section {
    margin-top: 34px;
}

.video-box {
    position: relative;
    overflow: hidden;
    background: #020617;
    border-radius: 30px;
    box-shadow: var(--shadow);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.58));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer span {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    padding-left: 5px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    border-radius: 999px;
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.35);
    font-size: 34px;
}

.video-box.is-playing .play-layer {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-text {
    padding: 28px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06);
}

.detail-text h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.detail-text h2 + p {
    margin: 0 0 24px;
    color: #334155;
    font-size: 17px;
}

.site-footer {
    margin-top: 72px;
    color: #cbd5e1;
    background: #0f172a;
}

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

.footer-logo .brand-text strong {
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: #ffffff;
}

.footer-brand p {
    max-width: 560px;
    margin: 18px 0 0;
    color: #94a3b8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-self: center;
}

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

.is-hidden {
    display: none !important;
}

@media (max-width: 1100px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .hero-content,
    .two-column-section,
    .detail-hero,
    .ranking-feature {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        max-width: 320px;
        transform: none;
    }

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

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

    .rank-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .site-nav {
        min-height: 64px;
    }

    .brand-text strong {
        font-size: 17px;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
    }

    .hero {
        border-radius: 24px;
    }

    .hero-slider {
        min-height: 660px;
    }

    .hero-content {
        gap: 30px;
        padding: 42px 24px 64px;
    }

    .hero-copy h1 {
        font-size: 38px;
    }

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

    .hero-dots {
        right: 24px;
        bottom: 22px;
    }

    .category-strip,
    .movie-grid,
    .compact-grid,
    .wide-rank-list,
    .select-row,
    .detail-meta-grid {
        grid-template-columns: 1fr;
    }

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

    .category-card-cover img {
        height: 150px;
    }

    .page-hero,
    .detail-hero,
    .detail-text {
        padding: 26px;
        border-radius: 24px;
    }

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

    .detail-cover {
        max-width: 260px;
    }

    .play-layer span {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }

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