:root {
    --bg: #fff7f7;
    --surface: #ffffff;
    --surface-soft: #fff1f2;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(248, 113, 113, 0.18);
    --brand: #dc2626;
    --brand-2: #ec4899;
    --brand-3: #f97316;
    --shadow: 0 22px 60px rgba(127, 29, 29, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 8%, rgba(236, 72, 153, 0.12), transparent 32%),
        radial-gradient(circle at 88% 0%, rgba(249, 115, 22, 0.10), transparent 34%),
        linear-gradient(180deg, #fffafa 0%, #fff7f7 45%, #ffffff 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(248, 113, 113, 0.16);
    box-shadow: 0 12px 32px rgba(127, 29, 29, 0.06);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

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

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

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

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0.02em;
}

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

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-nav a {
    color: #4b5563;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--brand);
    background: rgba(220, 38, 38, 0.08);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--surface-soft);
    color: var(--brand);
    font-size: 22px;
}

main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px;
}

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    border-radius: 34px;
    background: #111827;
    box-shadow: var(--shadow);
}

.hero-stage,
.hero-slide {
    position: absolute;
    inset: 0;
}

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.94) 0%, rgba(127, 29, 29, 0.75) 44%, rgba(17, 24, 39, 0.15) 100%),
        radial-gradient(circle at 16% 20%, rgba(236, 72, 153, 0.42), transparent 36%);
}

.hero-content {
    position: absolute;
    left: clamp(28px, 6vw, 86px);
    top: 50%;
    transform: translateY(-50%);
    width: min(680px, calc(100% - 56px));
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    padding: 7px 12px;
    border-radius: 999px;
    color: var(--brand);
    background: rgba(220, 38, 38, 0.10);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.detail-hero .eyebrow {
    color: #fecdd3;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
}

.hero h1 {
    margin: 22px 0 18px;
    font-size: clamp(38px, 7vw, 78px);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-line {
    margin: 0;
    max-width: 660px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(17px, 2.2vw, 24px);
    line-height: 1.7;
}

.hero-meta {
    color: rgba(255, 255, 255, 0.72);
    margin: 18px 0 0;
}

.hero-actions,
.detail-info .btn {
    margin-top: 28px;
}

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

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

.btn.primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 18px 36px rgba(220, 38, 38, 0.32);
}

.btn.ghost {
    color: #ffffff;
    margin-left: 10px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
}

.hero-panel {
    position: absolute;
    left: clamp(22px, 6vw, 86px);
    right: clamp(22px, 6vw, 86px);
    bottom: 28px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
}

.hero-search {
    width: min(430px, 100%);
    padding: 16px;
    border-radius: 22px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.20);
}

.hero-search label {
    display: block;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 800;
}

input,
select {
    width: 100%;
    min-height: 46px;
    border: 1px solid rgba(248, 113, 113, 0.22);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--text);
    background: #ffffff;
    outline: none;
}

input:focus,
select:focus {
    border-color: rgba(220, 38, 38, 0.55);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

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

.hero-dots button {
    width: 38px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
}

.hero-dots button.active {
    background: #ffffff;
}

.section {
    margin-top: 42px;
}

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

.section-title h2 {
    margin: 8px 0 0;
    font-size: clamp(25px, 3vw, 38px);
    letter-spacing: -0.03em;
}

.section-title a {
    color: var(--brand);
    font-weight: 900;
}

.filter-inline,
.toolbar {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-inline select {
    min-width: 135px;
}

.ranking-strip {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ranking-strip a {
    min-height: 92px;
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid var(--line);
    box-shadow: 0 16px 34px rgba(127, 29, 29, 0.06);
}

.rank-no {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.ranking-strip strong,
.ranking-strip em {
    display: block;
}

.ranking-strip em {
    margin-top: 5px;
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

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

.category-tile {
    display: grid;
    gap: 12px;
    min-height: 150px;
    padding: 22px;
    border-radius: 24px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(220, 38, 38, 0.92), rgba(236, 72, 153, 0.86)),
        radial-gradient(circle at 80% 15%, rgba(255, 255, 255, 0.32), transparent 28%);
    box-shadow: 0 20px 46px rgba(220, 38, 38, 0.18);
}

.category-tile span {
    font-size: 24px;
    font-weight: 950;
}

.category-tile small {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.90);
    border: 1px solid var(--line);
    box-shadow: 0 18px 38px rgba(127, 29, 29, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 58px rgba(127, 29, 29, 0.14);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #7f1d1d, #f43f5e);
}

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

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

.movie-year {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 900;
}

.movie-info {
    padding: 15px;
}

.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.movie-info h3 {
    margin: 10px 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.movie-info h3 a:hover,
.rank-info h2 a:hover,
.category-card-large h2 a:hover {
    color: var(--brand);
}

.movie-info p {
    margin: 0;
    min-height: 64px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.65;
}

.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.movie-tags span {
    padding: 5px 8px;
    border-radius: 999px;
    color: var(--brand);
    background: rgba(220, 38, 38, 0.08);
    font-size: 12px;
    font-weight: 800;
}

.page-hero,
.detail-hero {
    overflow: hidden;
    padding: clamp(30px, 6vw, 72px);
    border-radius: 34px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(127, 29, 29, 0.96), rgba(219, 39, 119, 0.86)),
        radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.28), transparent 34%);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 16px 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 860px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.toolbar {
    max-width: 780px;
    margin-top: 24px;
}

.toolbar input {
    flex: 1.2;
}

.toolbar select {
    flex: 0.8;
}

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

.category-card-large {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 22px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 18px 40px rgba(127, 29, 29, 0.08);
}

.category-cover-wall {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 230px;
    overflow: hidden;
    border-radius: 22px;
    background: linear-gradient(135deg, #7f1d1d, #f43f5e);
}

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

.category-card-large h2 {
    margin: 12px 0 10px;
    font-size: 28px;
}

.category-card-large p {
    color: #4b5563;
    line-height: 1.75;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.category-samples a {
    color: var(--brand);
    background: rgba(220, 38, 38, 0.08);
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 13px;
    font-weight: 800;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 18px;
    padding: 16px;
    border-radius: 26px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 18px 38px rgba(127, 29, 29, 0.08);
}

.rank-cover {
    position: relative;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 20px;
    background: linear-gradient(135deg, #7f1d1d, #f43f5e);
}

.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-cover span {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 950;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.rank-info h2 {
    margin: 6px 0 10px;
    font-size: 24px;
}

.rank-info p {
    color: #4b5563;
    line-height: 1.75;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin: 4px 0 18px;
    color: var(--muted);
    font-weight: 800;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: minmax(230px, 340px) 1fr;
    gap: clamp(24px, 5vw, 56px);
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 24px 58px rgba(17, 24, 39, 0.32);
    background: linear-gradient(135deg, #7f1d1d, #f43f5e);
}

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

.detail-info h1 {
    margin: 18px 0 16px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.06;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.90);
    font-size: 20px;
    line-height: 1.75;
}

.detail-meta span {
    color: rgba(255, 255, 255, 0.86);
    background: rgba(255, 255, 255, 0.12);
    padding: 7px 10px;
    border-radius: 999px;
}

.detail-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.player-section {
    scroll-margin-top: 90px;
}

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

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

.video-start {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.46));
    cursor: pointer;
}

.video-start span {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 22px 46px rgba(220, 38, 38, 0.42);
    font-size: 34px;
    padding-left: 5px;
}

.video-shell.playing .video-start {
    display: none;
}

.detail-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.detail-copy article {
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    box-shadow: 0 18px 38px rgba(127, 29, 29, 0.07);
}

.detail-copy h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.detail-copy p {
    margin: 0;
    color: #374151;
    font-size: 16px;
    line-height: 1.9;
}

.site-footer {
    margin-top: 58px;
    padding: 36px 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #7f1d1d, #be123c 58%, #db2777);
}

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

.footer-inner strong {
    font-size: 24px;
}

.footer-inner p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.74);
}

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

.footer-links a {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

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

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

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

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

@media (max-width: 860px) {
    .header-inner {
        min-height: 66px;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        position: absolute;
        left: 12px;
        right: 12px;
        top: 74px;
        display: none;
        padding: 12px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: var(--shadow);
    }

    .site-nav.open {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    main {
        padding: 14px;
    }

    .hero {
        min-height: 680px;
        border-radius: 26px;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(17, 24, 39, 0.70) 0%, rgba(127, 29, 29, 0.92) 72%, rgba(17, 24, 39, 0.96) 100%);
    }

    .hero-content {
        left: 22px;
        top: 42%;
        width: calc(100% - 44px);
    }

    .hero-panel {
        left: 18px;
        right: 18px;
        bottom: 18px;
        display: grid;
    }

    .section-title,
    .filter-inline,
    .toolbar,
    .footer-inner {
        display: grid;
        align-items: stretch;
    }

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

    .category-grid,
    .ranking-strip {
        grid-template-columns: 1fr;
    }

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

    .category-cover-wall {
        min-height: 180px;
    }

    .detail-poster {
        max-width: 280px;
    }

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

@media (max-width: 520px) {
    .brand-text small {
        display: none;
    }

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

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

    .btn.ghost {
        margin-left: 0;
        margin-top: 10px;
    }

    .hero-actions {
        display: grid;
        width: max-content;
    }

    .movie-info h3 {
        font-size: 15px;
    }

    .movie-info p {
        min-height: auto;
    }

    .rank-card {
        grid-template-columns: 112px 1fr;
        padding: 12px;
    }

    .rank-info h2 {
        font-size: 18px;
    }
}
