html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(251, 113, 133, 0.18), transparent 32rem),
        radial-gradient(circle at top right, rgba(20, 184, 166, 0.18), transparent 30rem),
        linear-gradient(135deg, #fff1f2 0%, #f0fdfa 45%, #ffffff 100%);
    color: #1f2937;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

[hidden] {
    display: none !important;
}

.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.88);
    border-bottom: 1px solid rgba(251, 113, 133, 0.16);
    box-shadow: 0 18px 45px rgba(31, 41, 55, 0.08);
    backdrop-filter: blur(18px);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #111827;
    text-decoration: none;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #fb7185, #14b8a6);
    box-shadow: 0 14px 30px rgba(251, 113, 133, 0.28);
}

.brand-text {
    font-size: 1.35rem;
    background: linear-gradient(135deg, #fb7185, #14b8a6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link,
.mobile-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
    color: #e11d48;
    background: #fff1f2;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff1f2;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: #e11d48;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
}

.hero-carousel {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    min-height: 680px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.7s ease, transform 1.2s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.72), rgba(17, 24, 39, 0.3)),
        linear-gradient(180deg, rgba(251, 113, 133, 0.28), rgba(20, 184, 166, 0.14));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 680px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 380px);
    align-items: center;
    gap: 60px;
    padding: 80px 0;
}

.hero-copy {
    max-width: 760px;
}

.hero-kicker,
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #14b8a6;
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1 {
    margin: 0;
    font-size: clamp(2.8rem, 7vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: -0.07em;
}

.hero-copy p {
    margin: 24px 0 0;
    color: #f3f4f6;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.85;
}

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

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #be123c;
    background: #fff1f2;
    font-size: 0.78rem;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 850;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #fb7185, #14b8a6);
    box-shadow: 0 18px 38px rgba(251, 113, 133, 0.32);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.btn-link {
    color: #ccfbf1;
    padding-inline: 0;
}

.hero-poster {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 34px 70px rgba(0, 0, 0, 0.38);
    transform: rotate(3deg);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: inherit;
    z-index: 2;
}

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

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 32px;
    z-index: 4;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.hero-arrow,
.hero-dot {
    pointer-events: auto;
    cursor: pointer;
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    font-size: 2rem;
    line-height: 1;
    backdrop-filter: blur(10px);
}

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

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

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

.section {
    padding: 72px 0;
}

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

.section-heading h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.8rem, 4vw, 3.1rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.section-heading p {
    margin: 12px 0 0;
    max-width: 760px;
    color: #6b7280;
    line-height: 1.8;
}

.section-more,
.text-link {
    flex: none;
    color: #e11d48;
    font-weight: 850;
    text-decoration: none;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) repeat(4, minmax(132px, 180px));
    gap: 12px;
    margin-bottom: 28px;
    padding: 14px;
    border: 1px solid rgba(251, 113, 133, 0.16);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 18px 45px rgba(31, 41, 55, 0.08);
    backdrop-filter: blur(16px);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #ffe4e6;
    border-radius: 16px;
    padding: 0 14px;
    color: #374151;
    background: #ffffff;
    outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #fb7185;
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.14);
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(251, 113, 133, 0.15);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 38px rgba(31, 41, 55, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: #fda4af;
    box-shadow: 0 26px 60px rgba(31, 41, 55, 0.14);
}

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

.poster {
    width: 100%;
    aspect-ratio: 2 / 2.85;
    object-fit: cover;
    transition: transform 0.55s ease, opacity 0.25s ease;
}

.movie-card:hover .poster {
    transform: scale(1.06);
    opacity: 0.88;
}

.watch-pill {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #fb7185, #14b8a6);
    font-size: 0.8rem;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.card-body {
    padding: 18px;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 0.76rem;
    font-weight: 800;
}

.movie-card h3 {
    margin: 12px 0 8px;
    color: #111827;
    font-size: 1.15rem;
    line-height: 1.3;
}

.movie-card h3 a {
    color: inherit;
    text-decoration: none;
}

.movie-card p {
    min-height: 48px;
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 0.92rem;
    line-height: 1.65;
}

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

.movie-card.compact h3 {
    font-size: 1rem;
}

.movie-card.compact p {
    min-height: 42px;
    font-size: 0.86rem;
}

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

.category-tile {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    border-radius: 28px;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 18px 42px rgba(31, 41, 55, 0.16);
}

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.88));
}

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

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

.category-tile span,
.category-tile p {
    position: relative;
    z-index: 2;
}

.category-tile span {
    font-size: 1.25rem;
    font-weight: 900;
}

.category-tile p {
    margin: 8px 0 0;
    color: #f3f4f6;
    line-height: 1.65;
}

.rank-section {
    position: relative;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 52px 64px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-height: 88px;
    padding: 12px;
    border-radius: 22px;
    color: #111827;
    background: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(31, 41, 55, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 52px rgba(31, 41, 55, 0.14);
}

.rank-no {
    color: #fb7185;
    font-size: 1.5rem;
    font-weight: 950;
}

.rank-item img {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    object-fit: cover;
}

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

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

.rank-copy em {
    color: #6b7280;
    font-style: normal;
    font-size: 0.86rem;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0;
    background-size: cover;
    background-position: center;
}

.simple-hero {
    color: #111827;
    background:
        radial-gradient(circle at 20% 0, rgba(251, 113, 133, 0.24), transparent 28rem),
        radial-gradient(circle at 90% 20%, rgba(20, 184, 166, 0.24), transparent 28rem),
        #ffffff;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(2.6rem, 6vw, 5.4rem);
    line-height: 0.96;
    letter-spacing: -0.07em;
}

.page-hero p {
    max-width: 760px;
    margin: 20px 0 0;
    color: #6b7280;
    font-size: 1.1rem;
    line-height: 1.8;
}

.category-hero,
.detail-hero {
    color: #ffffff;
    background-color: #111827;
}

.page-hero-mask,
.detail-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.6));
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.category-hero p,
.detail-copy .lead {
    color: #f3f4f6;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.92rem;
    font-weight: 750;
}

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

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

.category-list {
    display: grid;
    gap: 22px;
}

.category-card-large {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    padding: 20px;
    border: 1px solid rgba(251, 113, 133, 0.14);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 45px rgba(31, 41, 55, 0.08);
}

.category-cover {
    overflow: hidden;
    border-radius: 24px;
}

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

.category-card-large h2 {
    margin: 0 0 10px;
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.category-card-large h2 a {
    color: #111827;
    text-decoration: none;
}

.category-card-large p {
    color: #6b7280;
    line-height: 1.8;
}

.mini-title-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.mini-title-list span {
    padding: 6px 10px;
    border-radius: 999px;
    color: #be123c;
    background: #fff1f2;
    font-size: 0.82rem;
    font-weight: 800;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 70px 0 54px;
}

.detail-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(16px) saturate(1.15);
    transform: scale(1.08);
    opacity: 0.72;
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
}

.detail-layout {
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-cover {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 34px 70px rgba(0, 0, 0, 0.38);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 2 / 2.85;
    object-fit: cover;
}

.detail-copy h1 {
    margin: 0;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.detail-copy .lead {
    max-width: 820px;
    margin: 22px 0;
    font-size: 1.15rem;
    line-height: 1.85;
}

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

.detail-meta div {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.detail-meta dt {
    color: #ccfbf1;
    font-weight: 900;
}

.detail-meta dd {
    margin: 6px 0 0;
    color: #ffffff;
}

.tag-row.large span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.player-section {
    padding-bottom: 36px;
}

.compact-heading {
    margin-bottom: 18px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 30px 72px rgba(17, 24, 39, 0.24);
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.54));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-shell.is-playing .player-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-circle {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #fb7185, #14b8a6);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
}

.play-circle::before {
    content: "";
    display: block;
    margin-left: 6px;
    border-top: 17px solid transparent;
    border-bottom: 17px solid transparent;
    border-left: 26px solid #ffffff;
}

.article-section {
    padding-top: 28px;
    padding-bottom: 28px;
}

.article-section h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 2rem;
    letter-spacing: -0.04em;
}

.article-section p {
    margin: 0;
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 2;
}

.empty-state {
    padding: 28px;
    border-radius: 22px;
    color: #9f1239;
    background: #fff1f2;
    text-align: center;
    font-weight: 850;
}

.site-footer {
    margin-top: 64px;
    color: #e5e7eb;
    background: #111827;
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 42px 0;
}

.footer-brand {
    color: #ffffff;
    font-size: 1.4rem;
}

.site-footer p {
    max-width: 520px;
    margin: 12px 0 0;
    color: #9ca3af;
    line-height: 1.75;
}

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

.footer-links a {
    color: #e5e7eb;
    text-decoration: none;
    font-weight: 800;
}

.footer-bottom {
    padding: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    text-align: center;
}

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

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

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

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

@media (max-width: 820px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-menu.is-open {
        display: grid;
        gap: 8px;
    }

    .hero-carousel,
    .hero-slide,
    .hero-content {
        min-height: 760px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 56px 0 96px;
    }

    .hero-poster {
        width: min(260px, 72vw);
        transform: rotate(0deg);
    }

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

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

    .detail-cover {
        width: min(280px, 78vw);
    }

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

@media (max-width: 620px) {
    .nav-inner {
        height: 64px;
    }

    .brand-text {
        font-size: 1.08rem;
    }

    .hero-carousel,
    .hero-slide,
    .hero-content {
        min-height: 700px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        letter-spacing: -0.045em;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .filter-bar,
    .movie-grid,
    .category-grid,
    .rank-grid,
    .rank-grid.wide,
    .detail-meta {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 48px 0;
    }

    .rank-item {
        grid-template-columns: 44px 58px minmax(0, 1fr);
    }
}
