html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #111827;
    background: linear-gradient(180deg, #fff7f8 0%, #ffffff 38%, #fff1f2 100%);
    min-height: 100vh;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(251, 113, 133, 0.18);
    box-shadow: 0 10px 35px rgba(244, 63, 94, 0.08);
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.03em;
    white-space: nowrap;
    color: #111827;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    box-shadow: 0 12px 24px rgba(244, 63, 94, 0.28);
}

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

.nav-link {
    font-size: 15px;
    color: #4b5563;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #f43f5e;
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #fecdd3;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(244, 63, 94, 0.08);
}

.header-search input,
.mobile-search input {
    border: 0;
    outline: 0;
    width: 190px;
    padding: 10px 14px;
    font-size: 14px;
    background: transparent;
}

.header-search button,
.mobile-search button {
    border: 0;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    color: #fff;
    font-weight: 700;
    padding: 10px 16px;
    cursor: pointer;
}

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

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

.mobile-panel {
    display: none;
    padding: 0 22px 18px;
    max-width: 1240px;
    margin: 0 auto;
}

.mobile-panel.open {
    display: grid;
    gap: 10px;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 14px;
    color: #4b5563;
    background: #fff;
}

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

main {
    overflow: hidden;
}

.hero-section {
    position: relative;
    max-width: 1240px;
    margin: 28px auto 0;
    padding: 0 22px 70px;
}

.hero-carousel {
    position: relative;
    min-height: 660px;
    border-radius: 34px;
    overflow: hidden;
    background: #111827;
    box-shadow: 0 28px 80px rgba(136, 19, 55, 0.22);
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    filter: saturate(1.04) contrast(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 16%, rgba(244, 63, 94, 0.55), transparent 32%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.68) 42%, rgba(17, 24, 39, 0.15) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.8), transparent 44%);
}

.hero-copy {
    position: absolute;
    left: clamp(24px, 6vw, 74px);
    bottom: clamp(52px, 10vw, 110px);
    max-width: 700px;
    color: #fff;
}

.hero-eyebrow,
.section-heading span,
.rank-copy span,
.page-hero span,
.detail-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fb7185;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 16px 0 18px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy p {
    margin: 0;
    max-width: 640px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.8;
}

.hero-movie-title {
    font-weight: 800;
    color: #ffffff !important;
}

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

.hero-tags {
    margin: 22px 0 26px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

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

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    box-shadow: 0 18px 38px rgba(244, 63, 94, 0.32);
}

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

.primary-button.small {
    min-height: 42px;
    padding: 0 18px;
}

.ghost-button {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.line-button {
    color: #e11d48;
    background: #fff;
    border: 1px solid #fecdd3;
    box-shadow: 0 14px 30px rgba(244, 63, 94, 0.1);
}

.hero-dots {
    position: absolute;
    left: clamp(24px, 6vw, 74px);
    bottom: 36px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.hero-dot.active {
    width: 38px;
    border-radius: 999px;
    background: #fff;
}

.hero-search-panel {
    position: relative;
    z-index: 5;
    margin: -38px auto 0;
    max-width: 980px;
    padding: 18px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(254, 205, 211, 0.8);
    box-shadow: 0 22px 60px rgba(136, 19, 55, 0.16);
}

.hero-search-panel form {
    display: flex;
    gap: 12px;
}

.hero-search-panel input {
    flex: 1;
    border: 1px solid #fecdd3;
    border-radius: 18px;
    padding: 16px 18px;
    font-size: 16px;
    outline: 0;
}

.hero-search-panel button {
    border: 0;
    border-radius: 18px;
    padding: 0 26px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    cursor: pointer;
}

.hero-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.hero-quick-links a {
    padding: 8px 13px;
    border-radius: 999px;
    color: #9f1239;
    background: #fff1f2;
    font-weight: 700;
    font-size: 14px;
}

.section-block,
.page-main,
.detail-main {
    max-width: 1240px;
    margin: 0 auto;
    padding: 70px 22px;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 30px;
    text-align: center;
}

.section-heading.left-heading {
    margin-left: 0;
    text-align: left;
}

.section-heading h2,
.rank-copy h2,
.page-hero h1,
.story-card h2 {
    margin: 10px 0 12px;
    color: #111827;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.section-heading p,
.rank-copy p,
.page-hero p {
    margin: 0;
    color: #6b7280;
    line-height: 1.85;
    font-size: 16px;
}

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

.full-grid {
    align-items: stretch;
}

.movie-card {
    overflow: hidden;
    border-radius: 26px;
    background: #fff;
    border: 1px solid rgba(254, 205, 211, 0.72);
    box-shadow: 0 14px 38px rgba(136, 19, 55, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 54px rgba(136, 19, 55, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #111827;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.68), transparent 46%);
}

.score-pill,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.score-pill {
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
}

.rank-badge {
    left: 12px;
    top: 12px;
    padding: 7px 10px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(12px);
}

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #e11d48;
    font-size: 12px;
    font-weight: 800;
}

.movie-card h2 {
    margin: 10px 0 8px;
    font-size: 19px;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.movie-card h2 a:hover {
    color: #e11d48;
}

.movie-card p {
    margin: 0 0 12px;
    color: #6b7280;
    line-height: 1.72;
    font-size: 14px;
}

.tag-row span {
    color: #9f1239;
    background: #fff1f2;
}

.soft-block {
    max-width: none;
    background: linear-gradient(180deg, rgba(255, 241, 242, 0.65), rgba(255, 255, 255, 0.82));
}

.soft-block .section-heading,
.soft-block .category-grid {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
}

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

.category-tile,
.category-overview-card {
    position: relative;
    overflow: hidden;
    min-height: 250px;
    border-radius: 28px;
    background: #111827;
    box-shadow: 0 18px 40px rgba(136, 19, 55, 0.13);
}

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

.category-tile:hover img,
.category-overview-card:hover img {
    transform: scale(1.07);
}

.category-tile-shade,
.category-overview-card:before {
    position: absolute;
    content: "";
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.12));
}

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

.category-tile strong,
.category-overview-card span {
    display: block;
    margin: 144px 20px 8px;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.category-tile em,
.category-overview-card p {
    display: block;
    margin: 0 20px 22px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.65;
    font-style: normal;
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.82fr) 1.18fr;
    gap: 36px;
    align-items: start;
}

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

.compact-card {
    position: relative;
    display: grid;
    grid-template-columns: 72px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid #fecdd3;
    box-shadow: 0 12px 26px rgba(136, 19, 55, 0.07);
}

.compact-card img {
    width: 72px;
    height: 96px;
    border-radius: 16px;
    object-fit: cover;
}

.compact-info strong,
.compact-info em {
    display: block;
}

.compact-info strong {
    font-size: 17px;
    margin-bottom: 8px;
}

.compact-info em {
    color: #6b7280;
    font-style: normal;
    font-size: 13px;
}

.compact-rank {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
}

.page-main {
    padding-top: 44px;
}

.page-hero {
    margin-bottom: 30px;
    padding: 46px;
    border-radius: 32px;
    background:
        radial-gradient(circle at 90% 20%, rgba(236, 72, 153, 0.22), transparent 30%),
        linear-gradient(135deg, #fff 0%, #fff1f2 100%);
    border: 1px solid rgba(254, 205, 211, 0.85);
    box-shadow: 0 20px 50px rgba(136, 19, 55, 0.08);
}

.slim-hero {
    text-align: center;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 220px 220px;
    gap: 16px;
    margin: 0 0 28px;
    padding: 18px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(254, 205, 211, 0.82);
    box-shadow: 0 14px 34px rgba(136, 19, 55, 0.07);
}

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

.filter-input,
.filter-select {
    display: grid;
    gap: 8px;
}

.filter-input label,
.filter-select label {
    color: #9f1239;
    font-weight: 800;
    font-size: 13px;
}

.filter-input input,
.filter-select select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #fecdd3;
    border-radius: 16px;
    padding: 13px 14px;
    outline: 0;
    background: #fff;
    color: #111827;
    font-size: 15px;
}

.empty-state {
    display: none;
    margin-top: 18px;
    padding: 22px;
    border-radius: 20px;
    text-align: center;
    color: #9f1239;
    background: #fff1f2;
    font-weight: 800;
}

.empty-state.show {
    display: block;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin: 0 0 20px;
    color: #6b7280;
    font-size: 14px;
}

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

.detail-main {
    padding-top: 36px;
}

.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
    gap: 28px;
    align-items: stretch;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    min-height: 460px;
    background: #050505;
    box-shadow: 0 26px 70px rgba(17, 24, 39, 0.28);
}

.movie-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    z-index: 1;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 0;
    cursor: pointer;
    color: #fff;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    background-size: cover;
    background-position: center;
}

.player-cover:before {
    position: absolute;
    content: "";
    inset: 0;
    background:
        radial-gradient(circle at center, rgba(244, 63, 94, 0.32), transparent 28%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.35));
}

.player-cover strong,
.play-icon {
    position: relative;
    z-index: 2;
}

.play-icon {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    box-shadow: 0 22px 44px rgba(244, 63, 94, 0.35);
    font-size: 30px;
    padding-left: 5px;
}

.player-cover strong {
    font-size: 20px;
    letter-spacing: 0.08em;
}

.player-cover.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.watch-info {
    padding: 32px;
    border-radius: 32px;
    background: #fff;
    border: 1px solid rgba(254, 205, 211, 0.85);
    box-shadow: 0 20px 52px rgba(136, 19, 55, 0.09);
}

.watch-info h1 {
    margin: 12px 0 14px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-one-line {
    color: #4b5563;
    line-height: 1.82;
    font-size: 17px;
}

.detail-meta {
    margin: 18px 0;
}

.detail-meta span {
    color: #be123c;
    background: #ffe4e6;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 28px;
}

.story-card {
    padding: 30px;
    border-radius: 30px;
    background: #fff;
    border: 1px solid rgba(254, 205, 211, 0.82);
    box-shadow: 0 18px 44px rgba(136, 19, 55, 0.08);
}

.story-card h2 {
    font-size: 30px;
}

.story-card p {
    margin: 0;
    color: #4b5563;
    line-height: 2;
    font-size: 16px;
}

.related-section {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
}

.site-footer {
    margin-top: 40px;
    background: #fff;
    border-top: 1px solid #fecdd3;
}

.footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 38px 22px;
    display: flex;
    justify-content: space-between;
    gap: 32px;
}

.footer-brand p {
    max-width: 520px;
    color: #6b7280;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-content: start;
    justify-content: flex-end;
}

.footer-links a {
    padding: 9px 12px;
    border-radius: 999px;
    color: #9f1239;
    background: #fff1f2;
    font-weight: 700;
}

.footer-bottom {
    text-align: center;
    padding: 18px;
    color: #6b7280;
    border-top: 1px solid #fff1f2;
}

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

    .menu-button {
        display: block;
        margin-left: auto;
    }

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

    .watch-layout,
    .rank-layout,
    .detail-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .header-inner {
        padding: 12px 16px;
    }

    .site-logo {
        font-size: 19px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .hero-section,
    .section-block,
    .page-main,
    .detail-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .hero-carousel {
        min-height: 610px;
        border-radius: 24px;
    }

    .hero-copy {
        left: 22px;
        right: 22px;
        bottom: 86px;
    }

    .hero-copy p {
        font-size: 15px;
    }

    .hero-actions {
        gap: 10px;
    }

    .primary-button,
    .ghost-button,
    .line-button {
        min-height: 42px;
        padding: 0 16px;
        font-size: 14px;
    }

    .hero-search-panel {
        margin-top: -28px;
        border-radius: 22px;
    }

    .hero-search-panel form {
        display: grid;
    }

    .hero-search-panel button {
        min-height: 48px;
    }

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

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

    .page-hero {
        padding: 28px;
        border-radius: 24px;
    }

    .player-shell {
        min-height: 300px;
        border-radius: 24px;
    }

    .watch-info,
    .story-card {
        border-radius: 24px;
        padding: 24px;
    }

    .footer-inner {
        display: grid;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .movie-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

    .poster-link {
        aspect-ratio: 16 / 11;
    }

    .featured-grid .poster-link,
    .related-grid .poster-link {
        aspect-ratio: 3 / 4;
    }

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

    .compact-card {
        grid-template-columns: 58px 1fr auto;
    }

    .compact-card img {
        width: 58px;
        height: 78px;
    }
}
