* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: #1f2937;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 48%, #fdf2f8 100%);
    -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;
}

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

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

.nav-shell {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
    background: linear-gradient(90deg, #0284c7, #db2777);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9, #ec4899);
    font-size: 13px;
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.22);
}

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

.desktop-nav a {
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease;
}

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

.top-search,
.mobile-nav form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input,
.mobile-nav input,
.search-tools input,
.search-tools select,
.filter-bar input,
.filter-bar select {
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 10px 14px;
    color: #111827;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.mobile-nav input:focus,
.search-tools input:focus,
.search-tools select:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(186, 230, 253, 0.65);
}

.top-search button,
.mobile-nav button,
.search-tools button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #ffffff;
    background: #0284c7;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    border-radius: 12px;
    padding: 8px 11px;
    background: #f3f4f6;
    color: #374151;
}

.mobile-nav {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.97);
}

.mobile-nav.is-open {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: 10px 2px;
    font-weight: 650;
    color: #374151;
}

.hero {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #38bdf8 0%, #f9a8d4 50%, #fde68a 100%);
}

.hero-inner {
    position: relative;
    min-height: 600px;
}

.hero-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(48px);
    opacity: 0.32;
    animation: pulse 3.5s ease-in-out infinite;
}

.glow-one {
    top: 50px;
    left: 8%;
    width: 170px;
    height: 170px;
    background: #ffffff;
}

.glow-two {
    right: 10%;
    top: 160px;
    width: 210px;
    height: 210px;
    background: #fbcfe8;
    animation-delay: 0.5s;
}

.glow-three {
    left: 34%;
    bottom: 72px;
    width: 230px;
    height: 230px;
    background: #bae6fd;
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.28;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.42;
    }
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: center;
    gap: 54px;
    padding: 54px 64px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.eyebrow,
.section-kicker,
.detail-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.9);
    color: #0284c7;
    font-size: 14px;
    font-weight: 800;
}

.hero h1 {
    margin: 18px 0 18px;
    max-width: 720px;
    color: #ffffff;
    font-size: clamp(38px, 6vw, 74px);
    line-height: 1.05;
    font-weight: 900;
    text-shadow: 0 10px 24px rgba(15, 23, 42, 0.24);
}

.hero p {
    max-width: 680px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 20px;
    line-height: 1.75;
    text-shadow: 0 6px 18px rgba(15, 23, 42, 0.2);
}

.hero-tags,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.tag-cloud a {
    display: inline-flex;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

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

.primary-btn,
.ghost-btn,
.text-link,
.category-panel-head a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
    padding: 14px 28px;
    color: #0284c7;
    background: #ffffff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.ghost-btn {
    padding: 13px 24px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
}

.primary-btn:hover,
.ghost-btn:hover,
.category-panel-head a:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-poster {
    display: block;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 30px 65px rgba(15, 23, 42, 0.32);
    transform: rotate(1deg);
}

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

.hero-control {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 999px;
    color: #1f2937;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.15);
    font-size: 34px;
    line-height: 1;
}

.hero-prev {
    left: 12px;
}

.hero-next {
    right: 12px;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: #ffffff;
}

.section {
    padding: 68px 0;
}

.white-section {
    background: #ffffff;
}

.soft-section {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 52%, #fdf2f8 100%);
}

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

.section-head h2,
.page-hero h1,
.detail-card h1 {
    margin: 8px 0 10px;
    color: #1f2937;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.14;
    font-weight: 900;
}

.section-head p,
.page-hero p {
    max-width: 730px;
    margin: 0;
    color: #6b7280;
    font-size: 17px;
    line-height: 1.75;
}

.section-kicker {
    background: #e0f2fe;
}

.text-link {
    color: #0284c7;
    background: #e0f2fe;
    padding: 10px 18px;
}

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

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

.movie-card {
    min-width: 0;
}

.poster-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.14);
}

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

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

.poster-link:hover img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.56));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.poster-link:hover .poster-shade {
    opacity: 1;
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    background: rgba(14, 165, 233, 0.92);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(6px);
}

.card-body {
    display: grid;
    gap: 9px;
    padding: 16px;
}

.card-body strong {
    min-height: 48px;
    color: #1f2937;
    font-size: 17px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.poster-link:hover strong {
    color: #0284c7;
}

.card-desc {
    min-height: 44px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.55;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.card-meta span {
    border-radius: 999px;
    padding: 4px 8px;
    background: #f3f4f6;
}

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

.category-tile,
.category-panel,
.detail-card,
.side-card,
.search-panel {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.category-tile {
    padding: 24px;
    min-height: 160px;
    border: 1px solid #f1f5f9;
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.category-tile:hover {
    transform: translateY(-6px);
    border-color: #f9a8d4;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.12);
}

.category-tile span {
    display: block;
    margin-bottom: 12px;
    color: #1f2937;
    font-size: 22px;
    font-weight: 900;
}

.category-tile em,
.rank-copy em,
.rank-card-body em,
.mini-movie em {
    display: block;
    color: #6b7280;
    font-style: normal;
    line-height: 1.6;
}

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

.rank-row,
.rank-card {
    display: grid;
    align-items: center;
    gap: 16px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row {
    grid-template-columns: 52px 78px minmax(0, 1fr) auto;
    padding: 12px 18px;
}

.rank-row:hover,
.rank-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.rank-number,
.rank-medal {
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9, #ec4899);
    font-weight: 900;
}

.rank-number {
    width: 38px;
    height: 38px;
    border-radius: 999px;
}

.rank-row img {
    width: 78px;
    height: 58px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-copy strong {
    display: block;
    color: #1f2937;
    font-size: 17px;
}

.rank-views {
    color: #0284c7;
    font-weight: 800;
}

.page-hero {
    padding: 58px 0;
    color: #ffffff;
    background: linear-gradient(90deg, #0ea5e9 0%, #ec4899 100%);
}

.page-hero h1,
.page-hero p {
    color: #ffffff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

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

.category-panel {
    padding: 24px;
}

.category-panel h2 {
    margin: 0 0 10px;
    font-size: 28px;
    color: #1f2937;
}

.category-panel p {
    margin: 0 0 18px;
    color: #6b7280;
    line-height: 1.7;
}

.category-panel-head a {
    padding: 10px 16px;
    color: #ffffff;
    background: linear-gradient(90deg, #0ea5e9, #ec4899);
}

.mini-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.mini-movie {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border-radius: 14px;
    padding: 8px;
    background: #f8fafc;
}

.mini-movie img {
    width: 74px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
}

.mini-movie strong {
    display: block;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-bar,
.search-tools {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.filter-bar input,
.search-tools input {
    flex: 1;
    min-width: 0;
}

.search-panel {
    padding: 22px;
    margin-bottom: 30px;
}

.search-tools select,
.filter-bar select {
    border-radius: 16px;
}

.search-summary {
    color: #6b7280;
    font-weight: 650;
}

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

.rank-card {
    grid-template-columns: 58px 116px minmax(0, 1fr);
    padding: 14px;
}

.rank-medal {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

.rank-card img {
    width: 116px;
    height: 86px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-card-body strong {
    display: block;
    margin-bottom: 4px;
    color: #1f2937;
    font-size: 18px;
}

.rank-card-body span {
    display: block;
    margin-top: 7px;
    color: #0284c7;
    font-size: 13px;
    font-weight: 800;
}

.detail-hero {
    padding: 34px 0 0;
}

.detail-hero .breadcrumb {
    color: #6b7280;
}

.detail-hero .breadcrumb a:hover {
    color: #0284c7;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: #020617;
    box-shadow: 0 25px 55px rgba(15, 23, 42, 0.24);
}

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

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.28), rgba(2, 6, 23, 0.46));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-cover span {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0ea5e9, #ec4899);
    box-shadow: 0 18px 40px rgba(14, 165, 233, 0.3);
    font-size: 30px;
    padding-left: 5px;
}

.play-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-card {
    margin-top: 24px;
    padding: 28px;
}

.detail-category {
    margin-bottom: 14px;
    background: #e0f2fe;
}

.detail-card h1 {
    margin-top: 0;
}

.lead {
    margin: 0 0 20px;
    color: #374151;
    font-size: 18px;
    line-height: 1.8;
}

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

.detail-meta span {
    border-radius: 999px;
    padding: 7px 12px;
    color: #4b5563;
    background: #f3f4f6;
    font-size: 14px;
    font-weight: 700;
}

.detail-card .tag-cloud a {
    color: #0284c7;
    background: #e0f2fe;
}

.detail-card section {
    border-top: 1px solid #e5e7eb;
    margin-top: 24px;
    padding-top: 24px;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 12px;
    color: #1f2937;
    font-size: 24px;
    font-weight: 900;
}

.detail-card p {
    color: #374151;
    line-height: 1.88;
}

.review-text {
    border-radius: 16px;
    padding: 18px;
    background: linear-gradient(135deg, #f0f9ff, #fdf2f8);
}

.detail-side {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
}

.detail-poster {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.side-card {
    padding: 22px;
}

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

.related-links a {
    display: block;
    border-radius: 12px;
    padding: 10px 12px;
    color: #374151;
    background: #f8fafc;
    transition: color 0.2s ease, background 0.2s ease;
}

.related-links a:hover {
    color: #0284c7;
    background: #e0f2fe;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937 54%, #111827);
}

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

.site-footer p {
    max-width: 440px;
    color: #9ca3af;
    line-height: 1.8;
}

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

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 16px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

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

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

    .hero-slide {
        grid-template-columns: minmax(0, 1fr) 310px;
        padding-inline: 56px;
    }

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

    .detail-side {
        position: static;
        grid-template-columns: 260px minmax(0, 1fr);
    }
}

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

    .menu-toggle {
        display: inline-flex;
    }

    .nav-shell {
        min-height: 64px;
    }

    .hero,
    .hero-inner {
        min-height: 720px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 24px;
        padding: 52px 30px 78px;
        text-align: center;
    }

    .hero-copy,
    .hero p {
        margin-inline: auto;
    }

    .hero-tags,
    .hero-actions {
        justify-content: center;
    }

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

    .hero-control {
        top: auto;
        bottom: 26px;
        transform: none;
    }

    .hero-prev {
        left: 24px;
    }

    .hero-next {
        right: 24px;
    }

    .section-head,
    .filter-bar,
    .search-tools {
        flex-direction: column;
        align-items: stretch;
    }

    .card-grid,
    .wide-grid,
    .category-grid,
    .category-panels,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rank-row {
        grid-template-columns: 42px 68px minmax(0, 1fr);
    }

    .rank-views {
        display: none;
    }

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

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

    .logo {
        font-size: 19px;
    }

    .hero,
    .hero-inner {
        min-height: 700px;
    }

    .hero h1 {
        font-size: 36px;
    }

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

    .card-grid,
    .wide-grid,
    .category-grid,
    .category-panels,
    .mini-list,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-card img {
        width: 86px;
        height: 66px;
    }

    .detail-card,
    .category-panel,
    .search-panel {
        padding: 18px;
    }

    .play-cover span {
        width: 68px;
        height: 68px;
        font-size: 24px;
    }
}
