:root {
    --red: #ef4444;
    --orange: #f97316;
    --pink: #ec4899;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: rgba(239, 68, 68, 0.14);
    --shadow: 0 20px 45px rgba(127, 29, 29, 0.13);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
    background: linear-gradient(135deg, #fff7ed 0%, #fdf2f8 48%, #fff1f2 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 28px rgba(127, 29, 29, 0.08);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--red), var(--orange), var(--pink));
    -webkit-background-clip: text;
    color: transparent;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.28);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 700;
}

.desktop-nav a,
.mobile-nav a {
    color: #374151;
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--red);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: #fff1f2;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background: var(--red);
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 14px;
    gap: 8px;
    flex-direction: column;
}

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

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 247, 237, 0.72);
    font-weight: 700;
}

.hero {
    position: relative;
    height: 640px;
    overflow: hidden;
    background: #111827;
}

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

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

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 25%, rgba(249, 115, 22, 0.42), transparent 35%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.46), rgba(17, 24, 39, 0.14)),
        linear-gradient(0deg, rgba(127, 29, 29, 0.54), transparent 55%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    color: #ffffff;
    max-width: 1180px;
}

.hero-content h1 {
    max-width: 760px;
    margin: 16px 0;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 680px;
    margin: 0;
    font-size: clamp(18px, 2.3vw, 24px);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.9);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 16px;
    border-radius: 999px;
    color: #b91c1c;
    background: linear-gradient(90deg, #fee2e2, #ffedd5, #fce7f3);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

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

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

.hero-tags span,
.tag-row span,
.detail-tags a {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

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

.tag-row span {
    color: #c2410c;
    background: #ffedd5;
}

.detail-tags a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

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

.primary-button,
.ghost-button,
.text-link,
.home-search button,
.filter-row button,
.site-search-box button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    min-height: 48px;
    padding: 0 26px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--red), var(--orange), var(--pink));
    box-shadow: 0 18px 32px rgba(239, 68, 68, 0.28);
}

.primary-button:hover,
.ghost-button:hover,
.home-search button:hover,
.filter-row button:hover,
.site-search-box button:hover {
    transform: translateY(-2px);
}

.ghost-button {
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.small-button {
    min-height: 42px;
    padding: 0 18px;
    font-size: 14px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.search-panel {
    margin-top: -54px;
    position: relative;
    z-index: 8;
}

.search-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: center;
    padding: 30px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-inner h2,
.section-heading h2,
.page-hero h1,
.detail-intro h1 {
    margin: 14px 0 10px;
    font-weight: 950;
    letter-spacing: -0.04em;
    color: #1f2937;
}

.search-inner h2,
.section-heading h2 {
    font-size: clamp(30px, 4vw, 46px);
}

.search-inner p,
.section-heading p,
.page-hero p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.home-search,
.site-search-box,
.filter-row {
    display: flex;
    gap: 12px;
}

.home-search input,
.site-search-box input,
.filter-row input,
.filter-row select {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    color: var(--text);
    background: #ffffff;
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.home-search input:focus,
.site-search-box input:focus,
.filter-row input:focus,
.filter-row select:focus {
    border-color: rgba(239, 68, 68, 0.55);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.home-search button,
.filter-row button,
.site-search-box button {
    min-height: 52px;
    padding: 0 22px;
    border-radius: 18px;
    color: #ffffff;
    white-space: nowrap;
    background: linear-gradient(90deg, var(--red), var(--orange));
}

.section-block {
    padding: 76px 0 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 30px;
}

.section-heading.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.text-link {
    margin-top: 14px;
    color: var(--red);
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 28px rgba(127, 29, 29, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 42px rgba(127, 29, 29, 0.16);
}

.poster-link,
.poster-frame {
    display: block;
}

.poster-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.movie-card:hover .poster-frame img {
    transform: scale(1.08);
    filter: brightness(0.72);
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(239, 68, 68, 0.86);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 14px;
    font-weight: 950;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.32);
}

.movie-info {
    padding: 18px;
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 800;
}

.movie-info h3 {
    margin: 0 0 10px;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 900;
}

.movie-info h3 a:hover {
    color: var(--red);
}

.movie-info p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 47px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.card-small .movie-info {
    padding: 14px;
}

.card-small .movie-info h3 {
    font-size: 16px;
}

.category-strip {
    padding: 76px 0;
    background: linear-gradient(90deg, #ffedd5, #fce7f3, #fee2e2);
}

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

.category-card {
    position: relative;
    min-height: 240px;
    overflow: hidden;
    border-radius: 24px;
    padding: 20px;
    display: flex;
    justify-content: flex-end;
    flex-direction: column;
    color: #ffffff;
    background: #111827;
    box-shadow: 0 16px 32px rgba(127, 29, 29, 0.14);
}

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

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

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.1));
}

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

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

.category-card p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.6;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 92px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.18), transparent 30%),
        linear-gradient(135deg, var(--red), var(--orange), var(--pink));
}

.page-hero.compact-hero {
    padding: 72px 0;
}

.page-hero .eyebrow {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.page-hero h1 {
    color: #ffffff;
    font-size: clamp(42px, 6vw, 70px);
}

.page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
}

.category-overview-grid {
    display: grid;
    gap: 26px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    align-items: center;
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.category-cover-stack {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.category-cover-stack img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 16px;
}

.category-overview-card h2 {
    margin: 12px 0 10px;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 950;
}

.category-overview-card p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.8;
}

.filter-box {
    padding-top: 38px;
}

.filter-row {
    margin-bottom: 28px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
}

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

.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) brightness(0.52);
    transform: scale(1.08);
}

.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 22% 20%, rgba(249, 115, 22, 0.32), transparent 34%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.44));
}

.detail-layout {
    position: relative;
    z-index: 2;
    min-height: 610px;
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 42px;
    align-items: center;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 14px;
}

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

.detail-intro .eyebrow {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.detail-intro h1 {
    color: #ffffff;
    font-size: clamp(42px, 6vw, 74px);
}

.detail-intro p {
    max-width: 780px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    line-height: 1.8;
}

.player-section {
    margin-top: -96px;
    position: relative;
    z-index: 4;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.34);
    aspect-ratio: 16 / 9;
}

.video-shell video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000000;
}

.video-play-button {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.18));
    cursor: pointer;
}

.video-play-button span {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 32px;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 20px 44px rgba(239, 68, 68, 0.42);
    transition: transform 0.2s ease;
}

.video-play-button:hover span {
    transform: scale(1.08);
}

.video-shell.is-playing .video-play-button {
    opacity: 0;
    pointer-events: none;
}

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

.content-card {
    padding: 28px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 28px;
    font-weight: 950;
}

.content-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.95;
}

.meta-card {
    grid-column: 1 / -1;
}

.meta-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.meta-card div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #fff7ed;
}

.meta-card dt {
    color: #9a3412;
    font-weight: 900;
}

.meta-card dd {
    margin: 0;
    color: #374151;
}

.site-search-box {
    max-width: 780px;
    margin-top: 28px;
}

.site-footer {
    margin-top: 86px;
    padding: 54px 0 24px;
    color: #ffffff;
    background: linear-gradient(90deg, #7f1d1d, #9a3412, #831843);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 34px;
}

.site-footer h2,
.site-footer h3 {
    margin: 0 0 14px;
}

.site-footer p,
.site-footer a {
    display: block;
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
}

.is-hidden {
    display: none !important;
}

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

    .search-inner,
    .detail-layout,
    .category-overview-card,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        padding: 56px 0 132px;
    }

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

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

    .menu-toggle {
        display: flex;
    }

    .brand {
        font-size: 21px;
    }

    .hero {
        height: 620px;
    }

    .hero-content {
        justify-content: flex-end;
        padding-bottom: 96px;
    }

    .hero-actions,
    .home-search,
    .site-search-box,
    .filter-row {
        flex-direction: column;
    }

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

    .search-inner {
        padding: 22px;
    }

    .category-overview-card {
        padding: 18px;
    }

    .category-cover-stack {
        grid-template-columns: repeat(4, 1fr);
    }

    .detail-content,
    .meta-card dl {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        gap: 26px;
    }

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

    .detail-intro p {
        font-size: 17px;
    }

    .content-card {
        padding: 22px;
    }

    .meta-card div {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .movie-grid,
    .category-grid,
    .ranking-page-grid,
    .category-movie-grid,
    .search-results-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        height: 660px;
    }

    .page-hero {
        padding: 58px 0;
    }
}
