* {
    box-sizing: border-box;
}

:root {
    --bg: #fff7ed;
    --bg-soft: #fff1f2;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(251, 146, 60, 0.22);
    --brand: #f97316;
    --brand-2: #fb7185;
    --brand-3: #ec4899;
    --dark: #0f172a;
    --card: #ffffff;
    --shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    color-scheme: light;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
    background:
        radial-gradient(circle at top left, rgba(251, 146, 60, 0.18), transparent 34rem),
        radial-gradient(circle at top right, rgba(244, 114, 182, 0.18), transparent 30rem),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff7ed 100%);
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand-3));
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.25);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand__icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--brand);
    background: #ffffff;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
}

.brand__text {
    font-size: 22px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-nav a {
    padding: 9px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    transition: background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: #ffffff;
}

main {
    min-height: 70vh;
}

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
}

.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero__background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.06);
    filter: saturate(1.08);
}

.hero__slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.76) 42%, rgba(15, 23, 42, 0.25) 100%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.12), rgba(15, 23, 42, 0.78));
}

.hero__inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 70vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.56fr);
    align-items: center;
    gap: 42px;
    padding: 64px 0 86px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero h1 {
    max-width: 760px;
    margin: 20px 0 18px;
    font-size: clamp(38px, 6vw, 74px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero__summary {
    max-width: 760px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero__meta span,
.tag-list span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    white-space: nowrap;
}

.hero__meta span {
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

.hero__actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button,
.section-action,
.hero__button,
.play-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 11px 18px;
    border: 0;
    border-radius: 999px;
    font-weight: 750;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button--primary,
.hero__button--primary,
.play-link {
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    box-shadow: 0 14px 26px rgba(249, 115, 22, 0.3);
}

.button--ghost,
.hero__button--ghost {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.button:hover,
.section-action:hover,
.hero__button:hover,
.play-link:hover {
    transform: translateY(-2px);
}

.hero__poster {
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.36);
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.28), rgba(244, 114, 182, 0.22));
}

.hero__poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero__dots {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 28px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero__dots button {
    width: 34px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero__dots button.is-active {
    width: 54px;
    background: #ffffff;
}

.page-hero,
.detail-hero {
    color: #ffffff;
    background:
        radial-gradient(circle at 22% 24%, rgba(251, 146, 60, 0.52), transparent 22rem),
        radial-gradient(circle at 78% 8%, rgba(236, 72, 153, 0.48), transparent 24rem),
        linear-gradient(120deg, #334155, #0f172a);
}

.page-hero__inner,
.detail-hero__inner,
.content-section,
.filter-panel,
.sitemap-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.page-hero__inner {
    padding: 72px 0 54px;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.12;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.quick-channels {
    background: linear-gradient(90deg, rgba(255, 237, 213, 0.9), rgba(252, 231, 243, 0.9));
    border-bottom: 1px solid rgba(251, 146, 60, 0.2);
}

.quick-channels__inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    display: flex;
    gap: 12px;
    overflow-x: auto;
}

.quick-channels a {
    flex: 0 0 auto;
    padding: 10px 16px;
    border-radius: 999px;
    color: #9a3412;
    font-weight: 750;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 24px rgba(251, 146, 60, 0.14);
}

.content-section {
    padding: 54px 0;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.15;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-action {
    color: #c2410c;
    border: 1px solid rgba(251, 146, 60, 0.32);
    background: #ffffff;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(249, 115, 22, 0.12);
    border-radius: var(--radius-md);
    background: var(--card);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(249, 115, 22, 0.28);
    box-shadow: var(--shadow);
}

.movie-card__poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(254, 215, 170, 0.8), rgba(251, 207, 232, 0.8));
}

.movie-card__poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.28s ease;
}

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

.movie-card__type,
.movie-card__score,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.22);
}

.movie-card__type {
    left: 12px;
    bottom: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    font-size: 12px;
}

.movie-card__score {
    top: 12px;
    right: 12px;
    min-width: 42px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b, #f97316);
    font-size: 13px;
}

.rank-badge {
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    font-size: 18px;
}

.movie-card__body {
    padding: 16px;
}

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

.movie-card h3 a:hover {
    color: var(--brand);
}

.movie-card__meta,
.movie-card__line {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.movie-card__meta {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-card__line {
    height: 44px;
    margin-top: 8px;
    overflow: hidden;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-list span {
    padding: 3px 8px;
    color: #be123c;
    background: #fff1f2;
    font-size: 12px;
}

.filter-panel {
    margin-top: 34px;
    padding: 18px;
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(12px);
}

.filter-panel__search input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(251, 146, 60, 0.25);
    border-radius: 999px;
    color: var(--text);
    background: #ffffff;
    outline: none;
}

.filter-panel__search input {
    padding: 0 18px;
}

.filter-panel__search input:focus,
.filter-panel select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-panel__selects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.filter-panel select {
    padding: 0 16px;
}

.filter-panel__empty {
    margin: 16px 0 0;
    color: #be123c;
    text-align: center;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    border-radius: var(--radius-md);
    color: #ffffff;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(249, 115, 22, 0.58));
    box-shadow: var(--shadow);
}

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

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

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.88));
}

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

.category-card h2 {
    margin: 0 0 8px;
    font-size: 23px;
}

.category-card p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.82);
}

.category-card span {
    align-self: flex-start;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    font-weight: 750;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 62px 92px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(249, 115, 22, 0.12);
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.ranking-row__num {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    font-size: 20px;
    font-weight: 900;
}

.ranking-row img {
    width: 92px;
    height: 124px;
    object-fit: cover;
    border-radius: 14px;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.ranking-row h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.ranking-row p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.detail-hero__inner {
    padding: 54px 0;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(254, 215, 170, 0.9), rgba(251, 207, 232, 0.9));
    box-shadow: 0 26px 56px rgba(0, 0, 0, 0.34);
}

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

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

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

.detail-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.1;
}

.detail-line {
    max-width: 780px;
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
}

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

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

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

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.26), rgba(2, 6, 23, 0.72));
    cursor: pointer;
}

.play-overlay[hidden] {
    display: none;
}

.play-overlay span {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.42);
    font-size: 30px;
}

.play-overlay strong {
    font-size: 18px;
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 4;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    text-align: center;
    pointer-events: none;
}

.detail-content {
    width: min(1180px, calc(100% - 32px));
    margin: 46px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}

.article-card,
.side-card {
    border: 1px solid rgba(249, 115, 22, 0.12);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.article-card {
    padding: 30px;
}

.article-card h2,
.side-card h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.article-card p {
    margin: 0 0 20px;
    color: #374151;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-tags span {
    padding: 7px 11px;
    color: #be123c;
    background: #fff1f2;
}

.side-card {
    padding: 20px;
}

.related-list {
    display: grid;
    gap: 12px;
}

.related-item {
    display: grid;
    grid-template-columns: 66px 1fr;
    gap: 12px;
    align-items: center;
}

.related-item img {
    width: 66px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.related-item h3 {
    margin: 0 0 5px;
    font-size: 15px;
}

.related-item p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.sitemap-section {
    padding: 46px 0;
}

.sitemap-groups {
    display: grid;
    gap: 18px;
}

.sitemap-group {
    padding: 22px;
    border-radius: var(--radius-md);
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.sitemap-group h2 {
    margin: 0 0 14px;
}

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

.sitemap-links a {
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.site-footer {
    margin-top: 64px;
    color: #ffffff;
    background: linear-gradient(120deg, #1e293b, #0f172a);
}

.site-footer__inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
}

.brand--footer .brand__icon {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.footer-brand p,
.footer-links a {
    color: rgba(255, 255, 255, 0.72);
}

.footer-brand p {
    max-width: 420px;
    margin: 16px 0 0;
}

.footer-links {
    display: grid;
    align-content: start;
    gap: 8px;
}

.footer-links h2 {
    margin: 0 0 10px;
    font-size: 18px;
}

.footer-links a:hover {
    color: #fed7aa;
}

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

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

@media (max-width: 860px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 78px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border-radius: 20px;
        background: linear-gradient(135deg, rgba(249, 115, 22, 0.96), rgba(236, 72, 153, 0.96));
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
    }

    body.nav-open .site-nav {
        display: flex;
    }

    .site-nav a {
        padding: 12px 14px;
    }

    .hero__inner {
        grid-template-columns: 1fr;
        padding-top: 46px;
    }

    .hero__poster {
        max-width: 340px;
    }

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

    .filter-panel__selects,
    .site-footer__inner,
    .detail-hero__inner {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 560px) {
    .site-header__inner,
    .page-hero__inner,
    .detail-hero__inner,
    .content-section,
    .filter-panel,
    .quick-channels__inner,
    .player-section,
    .detail-content,
    .site-footer__inner,
    .sitemap-section {
        width: min(100% - 24px, 1180px);
    }

    .brand__text {
        font-size: 19px;
    }

    .movie-grid,
    .category-cards,
    .ranking-list,
    .sitemap-links {
        grid-template-columns: 1fr;
    }

    .ranking-row {
        grid-template-columns: 48px 76px 1fr;
        gap: 12px;
    }

    .ranking-row img {
        width: 76px;
        height: 104px;
    }

    .section-heading {
        display: block;
    }

    .section-action {
        margin-top: 16px;
    }

    .hero__summary,
    .page-hero p,
    .detail-line {
        font-size: 16px;
    }

    .article-card {
        padding: 22px;
    }
}
