:root {
    --page-bg: #fff7ed;
    --surface: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.88);
    --text: #111827;
    --muted: #6b7280;
    --line: rgba(17, 24, 39, 0.10);
    --brand: #f97316;
    --brand-deep: #ea580c;
    --brand-pink: #ec4899;
    --brand-purple: #7e22ce;
    --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.18), transparent 34rem),
        radial-gradient(circle at 85% 10%, rgba(236, 72, 153, 0.14), transparent 28rem),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 48%, #fff7ed 100%);
    color: var(--text);
    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: fixed;
    inset: 0 0 auto;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(249, 115, 22, 0.12);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.header-inner {
    max-width: 1280px;
    min-height: 76px;
    margin: 0 auto;
    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: 900;
    color: var(--text);
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-pink));
    box-shadow: 0 14px 24px rgba(249, 115, 22, 0.28);
}

.brand-text,
.footer-brand {
    font-size: 20px;
    background: linear-gradient(135deg, var(--brand), var(--brand-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-link {
    padding: 9px 13px;
    border-radius: 999px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
    transition: 0.25s ease;
}

.nav-link:hover {
    color: var(--brand-deep);
    background: #ffedd5;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #fff7ed;
    border: 1px solid rgba(249, 115, 22, 0.18);
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--brand-deep);
}

.page-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 104px 0 56px;
}

.inner-page {
    padding-top: 120px;
}

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

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

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

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

.hero-slide img {
    filter: saturate(1.1) contrast(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.68) 42%, rgba(17, 24, 39, 0.18) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.62), transparent 48%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(720px, 92%);
    min-height: 640px;
    padding: clamp(48px, 8vw, 96px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.eyebrow,
.hero-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.14);
    border: 1px solid rgba(249, 115, 22, 0.28);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1 {
    font-size: clamp(36px, 6vw, 76px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 680px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
}

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

.primary-button,
.ghost-button,
.outline-button,
.filter-reset {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 850;
    transition: 0.25s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-pink));
    box-shadow: 0 16px 28px rgba(249, 115, 22, 0.28);
}

.primary-button:hover,
.filter-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 38px rgba(249, 115, 22, 0.34);
}

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

.outline-button {
    color: var(--brand-deep);
    background: #fff7ed;
    border: 1px solid rgba(249, 115, 22, 0.26);
}

.hero-controls {
    position: absolute;
    right: 32px;
    bottom: 32px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-controls button {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
    font-size: 28px;
}

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

.hero-dot {
    width: 11px !important;
    height: 11px !important;
    padding: 0;
    opacity: 0.5;
}

.hero-dot.is-active {
    width: 28px !important;
    opacity: 1;
    background: linear-gradient(135deg, var(--brand), var(--brand-pink));
}

.hero-search {
    position: absolute;
    left: clamp(24px, 8vw, 96px);
    right: 32px;
    bottom: 32px;
    z-index: 3;
    width: min(560px, calc(100% - 64px));
    display: flex;
    gap: 10px;
    padding: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(18px);
}

.hero-search input,
.filter-grid input,
.filter-grid select {
    width: 100%;
    min-height: 44px;
    border-radius: 999px;
    padding: 0 16px;
    background: #ffffff;
    color: var(--text);
    outline: none;
    border: 1px solid rgba(17, 24, 39, 0.08);
}

.hero-search button,
.filter-reset {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-pink));
}

.section-block,
.filter-panel,
.category-section,
.content-card,
.ranking-panel,
.page-hero {
    margin-top: 34px;
    border-radius: var(--radius-xl);
    background: var(--surface-soft);
    border: 1px solid rgba(249, 115, 22, 0.12);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.section-block,
.filter-panel,
.category-section,
.page-hero {
    padding: clamp(22px, 4vw, 34px);
}

.section-heading,
.filter-heading,
.category-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.section-heading h2,
.filter-heading h2,
.category-section h2,
.content-card h2 {
    color: var(--text);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 950;
    letter-spacing: -0.03em;
}

.section-heading a {
    color: var(--brand-deep);
    font-weight: 850;
}

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

.compact-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #111827;
}

.poster-link img {
    transition: transform 0.5s ease;
}

.movie-card:hover img,
.category-tile:hover img,
.rank-item:hover img {
    transform: scale(1.07);
}

.poster-badge,
.poster-play {
    position: absolute;
    z-index: 2;
}

.poster-badge {
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.72);
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.poster-play {
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-pink));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.3);
}

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

.card-meta-line,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.movie-card h3,
.rank-item h3 {
    margin-top: 8px;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-item h3 a:hover,
.next-prev-nav a:hover {
    color: var(--brand-deep);
}

.movie-card p,
.rank-item p,
.page-hero p,
.category-section p,
.content-card p,
.footer-inner p {
    color: var(--muted);
    line-height: 1.75;
}

.movie-card p {
    min-height: 74px;
    margin-top: 8px;
    font-size: 14px;
}

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

.tag-row span,
.detail-tags span {
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff7ed;
    color: var(--brand-deep);
    font-size: 12px;
    font-weight: 800;
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
    background: #111827;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
}

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

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

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

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

.category-tile strong {
    color: #fed7aa;
    margin-top: 4px;
}

.category-tile p {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.84);
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 26px;
}

.ranking-panel {
    margin-top: 0;
    padding: 24px;
}

.rank-list {
    display: grid;
    gap: 14px;
}

.rank-item {
    display: grid;
    grid-template-columns: 66px 96px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.rank-number {
    font-size: 22px;
    font-weight: 950;
    color: var(--muted);
}

.rank-top .rank-number {
    color: var(--brand-deep);
}

.rank-cover {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    background: #111827;
}

.rank-content p {
    margin-top: 6px;
}

.rank-meta strong {
    color: var(--brand-deep);
}

.filter-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 160px 160px 140px;
    gap: 14px;
    align-items: end;
}

.filter-grid label span {
    display: block;
    margin: 0 0 8px 6px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.filter-reset {
    min-height: 44px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.12), rgba(236, 72, 153, 0.10)),
        rgba(255, 255, 255, 0.92);
}

.page-hero h1 {
    color: var(--text);
}

.page-hero p {
    max-width: 820px;
    margin-top: 14px;
    font-size: 18px;
}

.category-section-head {
    align-items: center;
}

.category-title-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
}

.category-title-wrap img {
    width: 96px;
    height: 126px;
    border-radius: 18px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    color: var(--muted);
    font-weight: 750;
}

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

.detail-hero {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 34px;
    align-items: stretch;
    padding: clamp(22px, 4vw, 38px);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(135deg, rgba(17, 24, 39, 0.96), rgba(76, 29, 149, 0.88)),
        #111827;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: var(--radius-lg);
    aspect-ratio: 3 / 4;
    box-shadow: 0 24px 44px rgba(0, 0, 0, 0.28);
}

.detail-info h1 {
    margin-top: 8px;
    color: #ffffff;
}

.detail-one-line {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.detail-meta-grid span {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.90);
}

.detail-meta-grid strong {
    display: block;
    margin-bottom: 4px;
    color: #fed7aa;
    font-size: 12px;
}

.player-section {
    margin-top: 34px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #030712;
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow);
}

.movie-video {
    width: 100%;
    height: 100%;
    background: #030712;
    object-fit: contain;
}

.player-activate {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    background:
        radial-gradient(circle at center, rgba(249, 115, 22, 0.20), transparent 18rem),
        linear-gradient(0deg, rgba(3, 7, 18, 0.76), rgba(3, 7, 18, 0.38));
    transition: opacity 0.25s ease;
}

.player-shell.is-ready .player-activate {
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--brand-pink));
    box-shadow: 0 20px 42px rgba(249, 115, 22, 0.38);
    font-size: 30px;
}

.player-activate strong {
    font-size: 22px;
}

.player-activate em {
    color: rgba(255, 255, 255, 0.76);
    font-style: normal;
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: none;
    padding: 10px 14px;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(185, 28, 28, 0.80);
}

.player-message:not(:empty) {
    display: block;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 34px;
}

.content-card {
    padding: clamp(22px, 4vw, 32px);
}

.content-card p {
    margin-top: 14px;
    font-size: 17px;
}

.next-prev-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.next-prev-nav a {
    padding: 16px 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
    font-weight: 850;
}

.site-footer {
    margin-top: 40px;
    padding: 40px 24px 28px;
    background: rgba(255, 255, 255, 0.86);
    border-top: 1px solid rgba(249, 115, 22, 0.14);
}

.footer-inner {
    width: min(1280px, 100%);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-inner p {
    max-width: 620px;
    margin-top: 10px;
}

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

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff7ed;
    color: var(--brand-deep);
    font-weight: 800;
}

.copyright {
    width: min(1280px, 100%);
    margin: 24px auto 0;
    color: var(--muted);
    font-size: 14px;
}

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

@media (max-width: 1100px) {
    .two-column-section,
    .detail-hero,
    .detail-content-grid {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(320px, 100%);
    }

    .filter-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 840px) {
    .header-inner {
        min-height: 68px;
        padding: 0 16px;
    }

    .mobile-menu-button {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 74px;
        display: none;
        padding: 14px;
        border-radius: 22px;
        background: #ffffff;
        box-shadow: var(--shadow);
        align-items: stretch;
        flex-direction: column;
    }

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

    .nav-link {
        border-radius: 14px;
    }

    .page-shell {
        width: min(100% - 20px, 1280px);
        padding-top: 86px;
    }

    .hero-carousel,
    .hero-content {
        min-height: 620px;
    }

    .hero-content {
        padding: 34px 24px 130px;
    }

    .hero-search {
        left: 18px;
        right: 18px;
        bottom: 82px;
        width: auto;
    }

    .hero-controls {
        left: 18px;
        right: auto;
        bottom: 22px;
    }

    .section-heading,
    .filter-heading,
    .category-section-head,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .rank-item {
        grid-template-columns: 48px 72px minmax(0, 1fr);
        gap: 12px;
    }

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

@media (max-width: 560px) {
    .hero-search,
    .filter-grid,
    .next-prev-nav {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .hero-search {
        border-radius: 22px;
    }

    .hero-search input,
    .hero-search button {
        width: 100%;
    }

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

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

    .movie-card p,
    .card-meta-line span:nth-child(3) {
        display: none;
    }

    .rank-content p {
        display: none;
    }

    .category-title-wrap {
        align-items: flex-start;
        flex-direction: column;
    }
}
