:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #f3f4f6;
    --line: #e5e7eb;
    --brand: #f97316;
    --brand-deep: #ef4444;
    --brand-soft: #fff7ed;
    --dark: #111827;
    --shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--ink);
}

.logo__mark {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #fb923c, #ef4444);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.28);
}

.logo__text {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15px;
    font-weight: 700;
    color: #374151;
}

.site-nav a,
.mobile-nav a,
.footer-links a {
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--brand);
}

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

.icon-button {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #374151;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 22px;
}

.icon-button:hover {
    color: var(--brand);
    background: var(--brand-soft);
}

.site-header__menu {
    display: none;
}

.top-search,
.mobile-nav {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 18px;
}

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

.top-search input,
.page-filter input {
    flex: 1;
    min-width: 0;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    padding: 14px 18px;
    background: #fff;
    color: var(--ink);
    outline: none;
}

.top-search input:focus,
.page-filter input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
}

.top-search button {
    margin-left: 10px;
    padding: 0 22px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #fb923c, #ef4444);
    font-weight: 800;
}

.mobile-nav {
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--line);
}

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 700;
    color: #374151;
}

.mobile-nav a:hover {
    color: var(--brand);
    background: var(--brand-soft);
}

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #111827;
}

.hero__slides {
    position: relative;
    min-height: 620px;
}

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

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

.hero-slide img {
    position: absolute;
    inset: 0;
    filter: saturate(1.08);
}

.hero-slide__shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(249, 115, 22, 0.38), transparent 34%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.72) 46%, rgba(17, 24, 39, 0.14));
}

.hero-slide__content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 620px;
    margin: 0 auto;
    padding: 92px 24px 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}

.hero-slide__eyebrow,
.page-hero__kicker,
.detail-hero__kicker,
.section-heading__kicker {
    color: #fb923c;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-slide h1 {
    max-width: 760px;
    margin-top: 14px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.05em;
}

.hero-slide__desc {
    max-width: 680px;
    margin-top: 24px;
    color: #e5e7eb;
    font-size: 20px;
    line-height: 1.75;
}

.hero-slide__tags,
.detail-tags,
.movie-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-slide__tags {
    margin-top: 24px;
}

.hero-slide__tags span,
.detail-tags span,
.movie-card__tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-slide__tags span,
.detail-tags span {
    padding: 8px 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
}

.hero-slide__actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

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

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

.button--primary {
    color: #fff;
    background: linear-gradient(135deg, #fb923c, #ef4444);
    box-shadow: 0 14px 28px rgba(239, 68, 68, 0.22);
}

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

.button--dark {
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
}

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

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

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

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 70px 24px;
}

.content-section--overlap {
    margin-top: -46px;
    position: relative;
    z-index: 4;
}

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

.section-heading h2 {
    margin-top: 8px;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.section-heading p:not(.section-heading__kicker) {
    max-width: 720px;
    margin-top: 10px;
    color: var(--muted);
}

.section-heading__link {
    flex: 0 0 auto;
    color: var(--brand);
    font-weight: 900;
}

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

.category-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #111827;
    color: #fff;
    box-shadow: var(--shadow);
}

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

.category-card img {
    position: absolute;
    inset: 0;
    transition: transform 0.5s ease;
}

.category-card span,
.category-card p {
    position: relative;
    z-index: 2;
    display: block;
    padding: 0 20px;
}

.category-card span {
    margin-top: 108px;
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    margin-top: 8px;
    color: #e5e7eb;
    font-size: 14px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.movie-card.is-hidden {
    display: none;
}

.movie-card__poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111827;
}

.movie-card--compact .movie-card__poster {
    aspect-ratio: 16 / 10;
}

.movie-card__poster img {
    transition: transform 0.45s ease;
}

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

.movie-card__play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #fb923c, #ef4444);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

.movie-card__body {
    padding: 16px;
}

.movie-card__tags span {
    padding: 5px 8px;
    color: #ea580c;
    background: #fff7ed;
}

.movie-card h3 {
    margin-top: 12px;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.3;
}

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

.movie-card p {
    min-height: 44px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.58;
}

.movie-card__meta {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9ca3af;
    font-size: 12px;
    font-weight: 700;
}

.ranking-section {
    max-width: 1180px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 72px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

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

.rank-item__num {
    color: var(--brand);
    font-size: 24px;
    font-weight: 900;
}

.rank-item img {
    width: 72px;
    height: 48px;
    border-radius: 12px;
}

.rank-item__title {
    font-weight: 900;
}

.rank-item__meta {
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

.page-hero,
.detail-hero {
    max-width: 1280px;
    margin: 34px auto 0;
    padding: 56px 24px;
    border-radius: 0 0 34px 34px;
}

.page-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 34px;
}

.page-hero--compact,
.page-hero--category {
    background:
        radial-gradient(circle at 92% 12%, rgba(249, 115, 22, 0.22), transparent 30%),
        linear-gradient(135deg, #ffffff, #fff7ed);
}

.page-hero h1,
.detail-hero h1 {
    max-width: 840px;
    margin-top: 10px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.045em;
}

.page-hero p:not(.page-hero__kicker) {
    max-width: 760px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.72;
}

.page-filter {
    min-width: 360px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-chips {
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chips button {
    padding: 10px 16px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-weight: 900;
}

.filter-chips button:hover {
    color: #fff;
    background: linear-gradient(135deg, #fb923c, #ef4444);
}

.empty-state {
    display: none;
    margin-top: 24px;
    padding: 26px;
    border-radius: 18px;
    background: #fff;
    color: var(--muted);
    text-align: center;
    font-weight: 800;
}

.empty-state.is-visible {
    display: block;
}

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

.category-overview {
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.category-overview__thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    height: 150px;
    background: #111827;
}

.category-overview__body {
    padding: 22px;
}

.category-overview h2 {
    font-size: 24px;
    font-weight: 900;
}

.category-overview p {
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.65;
}

.category-overview span {
    display: inline-flex;
    margin-top: 18px;
    color: var(--brand);
    font-weight: 900;
}

.detail-hero {
    position: relative;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 42px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.38), transparent 34%),
        linear-gradient(135deg, #111827, #1f2937 54%, #7c2d12);
}

.detail-hero__poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 26px;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #d1d5db;
    font-size: 14px;
}

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

.detail-hero__kicker {
    margin-top: 24px;
}

.detail-hero__desc {
    max-width: 820px;
    margin-top: 18px;
    color: #e5e7eb;
    font-size: 19px;
    line-height: 1.75;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.player-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 26px;
    background: #020617;
    box-shadow: var(--shadow);
}

.player-card video,
.player-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.player-cover {
    z-index: 2;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.12), rgba(2, 6, 23, 0.68));
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-cover__button {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 82px;
    height: 82px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #fb923c, #ef4444);
    font-size: 34px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.detail-article {
    margin-top: 28px;
    padding: 32px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.detail-article h2,
.detail-aside h2 {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.detail-article h2:not(:first-child) {
    margin-top: 28px;
}

.detail-article p {
    margin-top: 14px;
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
}

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

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

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

.detail-meta-list dd {
    margin-top: 6px;
    font-weight: 900;
}

.detail-aside {
    position: sticky;
    top: 92px;
    padding: 24px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.aside-list {
    margin-top: 18px;
    display: grid;
    gap: 16px;
}

.aside-list .movie-card {
    display: grid;
    grid-template-columns: 118px 1fr;
}

.aside-list .movie-card__poster {
    height: 100%;
    aspect-ratio: auto;
}

.aside-list .movie-card p {
    display: none;
}

.site-footer {
    margin-top: 60px;
    background: #111827;
    color: #d1d5db;
}

.site-footer__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    display: flex;
    justify-content: space-between;
    gap: 34px;
}

.footer-logo {
    color: #fff;
    font-size: 22px;
}

.site-footer p {
    max-width: 620px;
    margin-top: 12px;
    color: #9ca3af;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: start;
    font-weight: 800;
}

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

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 24px;
    color: #9ca3af;
    text-align: center;
    font-size: 14px;
}

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

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

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

    .detail-aside {
        position: static;
    }
}

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

    .site-header__menu {
        display: inline-grid;
    }

    .hero,
    .hero__slides,
    .hero-slide__content {
        min-height: 560px;
    }

    .hero-slide__content {
        padding-top: 74px;
        padding-bottom: 92px;
    }

    .hero-slide__desc {
        font-size: 17px;
    }

    .section-heading,
    .page-hero,
    .site-footer__inner {
        align-items: stretch;
        flex-direction: column;
    }

    .page-filter {
        min-width: 0;
        width: 100%;
    }

    .rank-list,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .detail-hero__poster {
        max-width: 260px;
    }
}

@media (max-width: 620px) {
    .site-header__inner {
        padding: 0 16px;
    }

    .logo__text {
        font-size: 18px;
    }

    .content-section {
        padding: 48px 16px;
    }

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

    .movie-card__body {
        padding: 12px;
    }

    .movie-card p {
        min-height: 0;
        font-size: 13px;
    }

    .rank-item {
        grid-template-columns: 44px 58px 1fr;
    }

    .rank-item__meta {
        display: none;
    }

    .page-hero,
    .detail-hero {
        margin-top: 18px;
        padding: 34px 16px;
    }

    .detail-article {
        padding: 22px;
    }

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

    .aside-list .movie-card {
        grid-template-columns: 96px 1fr;
    }
}
