:root {
    --bg: #fff7ed;
    --bg-soft: #fff1f2;
    --card: rgba(255, 255, 255, 0.88);
    --text: #111827;
    --muted: #6b7280;
    --line: rgba(251, 113, 133, 0.18);
    --rose: #e11d48;
    --rose-dark: #be123c;
    --orange: #f97316;
    --amber: #f59e0b;
    --shadow: 0 24px 70px rgba(190, 18, 60, 0.14);
    --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(251, 146, 60, 0.26), transparent 35rem),
        radial-gradient(circle at top right, rgba(244, 63, 94, 0.18), transparent 32rem),
        linear-gradient(135deg, #fff7ed 0%, #fdf2f8 48%, #fff1f2 100%);
    line-height: 1.6;
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.74);
    box-shadow: 0 10px 35px rgba(15, 23, 42, 0.06);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 24px;
    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.02em;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 12px 28px rgba(225, 29, 72, 0.28);
}

.brand-name {
    font-size: 20px;
}

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

.desktop-nav > a,
.nav-dropdown > button {
    border: 0;
    background: transparent;
    padding: 10px 14px;
    border-radius: 999px;
    color: #374151;
    cursor: pointer;
    transition: color 0.25s ease, background 0.25s ease;
}

.desktop-nav > a:hover,
.desktop-nav > a.active,
.nav-dropdown:hover > button {
    color: var(--rose-dark);
    background: #fff1f2;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 180px;
    padding: 10px;
    display: none;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
}

.nav-dropdown:hover .dropdown-panel {
    display: grid;
    gap: 4px;
}

.dropdown-panel a,
.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    color: #4b5563;
}

.dropdown-panel a:hover,
.mobile-nav a:hover {
    background: #fff1f2;
    color: var(--rose-dark);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
}

.mobile-nav {
    display: none;
    padding: 0 20px 16px;
    border-top: 1px solid var(--line);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 72px;
}

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

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

.hero-slide {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 360px;
    gap: 44px;
    align-items: center;
    padding: 66px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-copy {
    max-width: 700px;
    color: #fff;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--rose-dark);
    background: rgba(255, 241, 242, 0.9);
}

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

.hero h1,
.hero h2,
.page-hero h1,
.detail-copy h1 {
    margin: 18px 0 18px;
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.hero h1,
.hero h2 {
    font-size: clamp(40px, 6vw, 72px);
}

.hero-movie-name {
    margin: -4px 0 18px;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 800;
    color: #fed7aa;
}

.hero p,
.page-hero p,
.detail-copy .lead {
    max-width: 720px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
}

.hero-poster {
    height: 430px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
    transform: rotate(2deg);
    transition: transform 0.35s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) translateY(-6px);
}

.hero-actions,
.hero-controls,
.tag-row,
.filter-chips,
.prev-next {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.btn,
.search-form button,
.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn:hover,
.search-form button:hover,
.filter-chip:hover {
    transform: translateY(-2px);
}

.btn.primary,
.search-form button {
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 16px 36px rgba(225, 29, 72, 0.24);
}

.btn.ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.38);
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
}

.btn.soft,
.filter-chip {
    color: var(--rose-dark);
    border-color: var(--line);
    background: #fff1f2;
}

.filter-chip.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 4;
    transform: translateX(-50%);
    padding: 8px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.38);
    backdrop-filter: blur(16px);
}

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-prev,
.hero-next {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    color: #fff;
    font-size: 28px;
    background: rgba(255, 255, 255, 0.18);
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
    width: 28px;
    background: #fff;
}

.search-band,
.filter-panel,
.content-section,
.article-section,
.watch-section,
.page-hero,
.detail-hero,
.prev-next {
    margin-top: 34px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 28px;
    background: var(--card);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.search-band {
    padding: 28px;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 430px);
    align-items: center;
    gap: 24px;
}

.search-band h2,
.section-heading h2,
.article-section h2,
.watch-section h2,
.category-card h2,
.movie-card h2 {
    margin: 0;
    line-height: 1.25;
}

.search-band p,
.section-heading p,
.category-card p,
.movie-card p,
.article-section p,
.footer-inner p {
    color: var(--muted);
}

.search-form {
    display: flex;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
}

.search-form input,
.filter-panel input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.content-section,
.article-section,
.watch-section {
    padding: 28px;
}

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

.section-heading h2 {
    margin-top: 10px;
    font-size: clamp(24px, 3vw, 34px);
}

.section-link {
    color: var(--rose-dark);
    font-weight: 800;
}

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

.category-tile,
.category-card a {
    min-height: 136px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(135deg, #fff, #fff7ed);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover,
.category-card a:hover,
.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 55px rgba(225, 29, 72, 0.14);
}

.category-tile span,
.category-number {
    color: var(--rose-dark);
    font-size: 20px;
    font-weight: 900;
}

.category-tile small,
.category-card p {
    color: var(--muted);
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-frame img {
    transition: transform 0.45s ease;
}

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

.poster-shine {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.45));
}

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

.movie-meta {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.movie-card h2 {
    margin-top: 8px;
    font-size: 18px;
}

.movie-card h2 a:hover {
    color: var(--rose-dark);
}

.movie-card p {
    min-height: 46px;
    margin: 10px 0 0;
    font-size: 14px;
}

.tag-row {
    margin-top: 12px;
}

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--rose-dark);
    background: #fff1f2;
    font-size: 12px;
    font-weight: 800;
}

.tag-row.light span {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.movie-card.compact {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    min-height: 210px;
}

.movie-card.compact .poster-frame {
    height: 100%;
    aspect-ratio: auto;
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 10px 24px rgba(225, 29, 72, 0.25);
}

.page-hero.slim {
    padding: 42px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 241, 242, 0.88));
}

.page-hero h1,
.detail-copy h1 {
    color: var(--text);
    font-size: clamp(36px, 5vw, 58px);
}

.page-hero p,
.detail-copy .lead {
    color: var(--muted);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

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

.filter-panel {
    padding: 22px;
    display: grid;
    gap: 16px;
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 800;
}

.filter-panel input {
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.detail-hero {
    padding: 34px;
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, #fecdd3, #fed7aa);
}

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

.detail-meta div {
    padding: 14px;
    border-radius: 16px;
    background: #fff7ed;
}

.detail-meta dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.detail-meta dd {
    margin: 4px 0 0;
    font-weight: 900;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.25);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: #fff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.72));
    cursor: pointer;
}

.play-circle {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    padding-left: 5px;
    border-radius: 50%;
    font-size: 32px;
    color: #fff;
    background: linear-gradient(135deg, var(--rose), var(--orange));
    box-shadow: 0 20px 45px rgba(225, 29, 72, 0.35);
}

.player-card.is-playing .play-overlay {
    opacity: 0;
    pointer-events: none;
}

.article-section h2 {
    margin-top: 0;
    margin-bottom: 12px;
}

.article-section h2 + p {
    margin-top: 0;
}

.article-section p {
    font-size: 17px;
}

.prev-next {
    justify-content: space-between;
    padding: 18px;
}

.prev-next a {
    color: var(--rose-dark);
    font-weight: 800;
}

.site-footer {
    background: #111827;
    color: #e5e7eb;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 46px 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
}

.footer-inner h2 {
    margin: 0 0 12px;
    color: #fb7185;
    font-size: 16px;
}

.footer-inner ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-inner li + li {
    margin-top: 8px;
}

.footer-inner a:hover {
    color: #fff;
}

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

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

@media (max-width: 1024px) {
    .hero-slide,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        display: none;
    }

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

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

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

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

    .mobile-toggle {
        display: inline-grid;
        place-items: center;
    }

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

    .header-inner,
    main {
        padding-left: 16px;
        padding-right: 16px;
    }

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

    .hero-slide {
        padding: 36px 24px 86px;
    }

    .search-band,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .search-form {
        border-radius: 22px;
        flex-direction: column;
    }

    .category-grid,
    .category-grid.overview,
    .movie-grid {
        grid-template-columns: 1fr;
    }

    .movie-card.compact {
        grid-template-columns: 118px minmax(0, 1fr);
        min-height: 168px;
    }

    .detail-hero,
    .content-section,
    .article-section,
    .watch-section,
    .page-hero.slim {
        padding: 22px;
        border-radius: 22px;
    }

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

    .prev-next {
        align-items: flex-start;
        flex-direction: column;
    }
}
