html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: #fff7f8;
    color: #111827;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
    background: linear-gradient(135deg, #fee2e2, #ffe4e6 45%, #fecdd3);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #dc2626, #e11d48, #be185d);
    box-shadow: 0 16px 40px rgba(190, 24, 93, 0.28);
}

.nav-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-weight: 900;
    letter-spacing: -0.05em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 21px;
    font-weight: 800;
}

.brand-copy small {
    margin-top: 4px;
    color: #ffe4e6;
    font-size: 12px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    white-space: nowrap;
}

.nav-link,
.mobile-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 650;
    opacity: 0.92;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.is-active,
.mobile-link.is-active {
    color: #ffe4e6;
    opacity: 1;
}

.nav-link:hover {
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 24px 18px;
    background: #b91c1c;
}

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

.mobile-link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.hero {
    background: #3b0710;
    overflow: hidden;
}

.hero-stage {
    position: relative;
    min-height: 680px;
    max-height: 820px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

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

.hero-image,
.detail-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-gradient,
.detail-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 32%, rgba(244, 63, 94, 0.28), transparent 28%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(88, 28, 47, 0.72) 45%, rgba(17, 24, 39, 0.32)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.85), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 680px;
    padding: 90px 24px 120px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    color: #ffffff;
}

.hero-kicker,
.section-kicker {
    margin: 0 0 12px;
    color: #fb7185;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 800;
    font-size: 13px;
}

.hero-content h1,
.hero-content h2 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(38px, 6vw, 78px);
    line-height: 1.02;
    font-weight: 900;
    letter-spacing: -0.055em;
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.hero-content h2 {
    margin-top: 16px;
    font-size: clamp(34px, 5vw, 64px);
}

.hero-content p {
    max-width: 680px;
    margin: 24px 0 0;
    color: #ffe4e6;
    font-size: 18px;
    line-height: 1.85;
}

.hero-meta,
.detail-meta,
.card-meta,
.hero-actions,
.footer-links,
.detail-tags,
.card-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

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

.hero-meta span,
.detail-meta span,
.detail-tags span,
.card-tags span {
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffe4e6;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(14px);
}

.hero-actions {
    margin-top: 30px;
}

.primary-button,
.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    border: 0;
    background: linear-gradient(90deg, #e11d48, #fb7185);
    color: #ffffff;
    box-shadow: 0 18px 36px rgba(225, 29, 72, 0.34);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
    transform: translateY(-2px);
}

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

.hero-dots button {
    width: 38px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    text-indent: -999px;
    background: rgba(255, 255, 255, 0.36);
}

.hero-dots button[aria-current="true"] {
    background: #ffffff;
}

.section-wrap,
.search-panel {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px;
}

.home-search {
    margin-top: -44px;
    position: relative;
    z-index: 5;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 16px;
    align-items: end;
    padding: 20px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 60px rgba(190, 24, 93, 0.16);
    backdrop-filter: blur(16px);
}

.filter-bar label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: #9f1239;
    font-weight: 800;
    font-size: 13px;
}

.filter-bar input,
.filter-bar select {
    min-height: 48px;
    border: 1px solid #fecdd3;
    border-radius: 16px;
    background: #ffffff;
    color: #111827;
    padding: 0 16px;
    outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #f43f5e;
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.16);
}

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

.section-head h2,
.page-hero h1,
.prose-section h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-link {
    min-height: 42px;
    color: #be123c;
    background: #ffe4e6;
}

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

.category-card,
.category-overview-card a {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
    border-radius: 26px;
    background: #ffffff;
    color: #111827;
    text-decoration: none;
    box-shadow: 0 20px 50px rgba(190, 24, 93, 0.12);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover,
.category-overview-card a:hover,
.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 70px rgba(190, 24, 93, 0.18);
}

.category-name,
.overview-title {
    color: #9f1239;
    font-size: 22px;
    font-weight: 900;
}

.category-desc,
.overview-text {
    color: #6b7280;
    line-height: 1.7;
}

.category-thumbs,
.overview-thumbs {
    display: flex;
    margin-left: -8px;
}

.category-thumbs img,
.overview-thumbs img {
    width: 58px;
    height: 78px;
    object-fit: cover;
    border-radius: 14px;
    border: 3px solid #ffffff;
    margin-left: -8px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
}

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

.movie-card {
    border-radius: 24px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(190, 24, 93, 0.11);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #fecdd3;
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.movie-card:hover .card-cover img {
    transform: scale(1.08);
}

.card-year {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e11d48;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.card-body {
    padding: 18px;
}

.card-meta {
    color: #9f1239;
    font-size: 12px;
    font-weight: 800;
}

.card-body h3 {
    margin: 10px 0 8px;
    min-height: 52px;
    color: #111827;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 850;
}

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

.card-body h3 a:hover {
    color: #e11d48;
}

.card-body p {
    min-height: 48px;
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.7;
}

.card-tags span {
    padding: 5px 9px;
    background: #ffe4e6;
    color: #be123c;
    font-size: 12px;
}

.rank-section {
    padding-top: 34px;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 44px 64px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 88px;
    padding: 12px;
    border-radius: 20px;
    background: #ffffff;
    color: #111827;
    text-decoration: none;
    box-shadow: 0 14px 38px rgba(190, 24, 93, 0.1);
}

.rank-number {
    color: #e11d48;
    font-size: 22px;
    font-weight: 900;
}

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

.rank-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

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

.rank-copy em {
    color: #6b7280;
    font-size: 13px;
    font-style: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fff1f2, #ffffff 55%, #ffe4e6);
}

.compact-hero {
    padding: 74px 24px;
}

.compact-hero > div {
    max-width: 1280px;
    margin: 0 auto;
}

.compact-hero p {
    max-width: 760px;
    color: #6b7280;
    font-size: 18px;
    line-height: 1.8;
}

.category-overview-card {
    list-style: none;
}

.detail-hero {
    min-height: 600px;
    background: #111827;
}

.detail-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 24px 74px;
    color: #ffffff;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 36px;
    color: #ffe4e6;
    font-weight: 700;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 44px;
    align-items: end;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.detail-copy h1 {
    margin: 0;
    max-width: 860px;
    font-size: clamp(38px, 6vw, 70px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.055em;
}

.detail-line {
    max-width: 760px;
    margin: 20px 0 0;
    color: #ffe4e6;
    font-size: 19px;
    line-height: 1.8;
}

.detail-meta,
.detail-tags {
    margin-top: 22px;
}

.detail-section {
    padding-top: 52px;
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.55), rgba(17, 24, 39, 0.16));
}

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

.play-icon {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(225, 29, 72, 0.92);
    box-shadow: 0 20px 45px rgba(225, 29, 72, 0.36);
}

.play-icon::before {
    content: "";
    display: block;
    margin-left: 7px;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 24px solid #ffffff;
}

.player-overlay strong {
    font-size: 18px;
    letter-spacing: 0.1em;
}

.prose-section {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px 38px;
    align-items: start;
}

.prose-section h2 {
    font-size: 26px;
}

.prose-section p {
    margin: 0;
    color: #374151;
    font-size: 17px;
    line-height: 2;
}

.wide-card .card-cover {
    aspect-ratio: 16 / 10;
}

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

.empty-state {
    margin: 30px 0 0;
    padding: 28px;
    border-radius: 20px;
    background: #ffffff;
    color: #be123c;
    text-align: center;
    font-weight: 800;
}

.site-footer {
    margin-top: 40px;
    background: #111827;
    color: #d1d5db;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.footer-inner p {
    margin: 0;
}

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

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

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

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

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

@media (max-width: 820px) {
    .hero-stage,
    .hero-content {
        min-height: 620px;
    }

    .hero-content {
        padding-top: 70px;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .movie-grid,
    .category-grid,
    .category-overview-grid,
    .rank-list,
    .tall-rank-list,
    .featured-rank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-layout {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 24px;
    }

    .prose-section {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    .nav-wrap,
    .section-wrap,
    .search-panel,
    .detail-inner,
    .compact-hero {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand-copy small {
        display: none;
    }

    .mobile-nav {
        grid-template-columns: 1fr;
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-stage,
    .hero-content {
        min-height: 560px;
    }

    .hero-content p,
    .compact-hero p,
    .detail-line {
        font-size: 16px;
    }

    .hero-actions {
        align-items: stretch;
        width: 100%;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
    }

    .movie-grid,
    .category-grid,
    .category-overview-grid,
    .rank-list,
    .tall-rank-list,
    .featured-rank-grid {
        grid-template-columns: 1fr;
    }

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

    .detail-poster img {
        max-width: 220px;
    }

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