:root {
    --orange: #f97316;
    --pink: #ec4899;
    --purple: #8b5cf6;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #fff7ed;
    --border: #f3f4f6;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: #fffaf6;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(249, 115, 22, 0.12);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

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

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.35);
    font-size: 16px;
}

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

.site-nav a {
    position: relative;
    padding: 6px 0;
    transition: color 0.25s ease;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--orange), var(--pink));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.site-nav a:hover {
    color: var(--orange);
}

.site-nav a:hover::after {
    transform: scaleX(1);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: #fff7ed;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--orange);
    border-radius: 999px;
}

.hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 20% 20%, rgba(251, 146, 60, 0.48), transparent 36%), linear-gradient(135deg, #111827 0%, #3b0764 54%, #f97316 135%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.72));
}

.hero-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 999px;
    filter: blur(40px);
    opacity: 0.42;
}

.hero-glow-one {
    top: -120px;
    right: 10%;
    background: #fb7185;
}

.hero-glow-two {
    bottom: -160px;
    left: 6%;
    background: #f97316;
}

.hero-shell {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    padding: 78px 0 46px;
}

.hero-slide {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr);
    gap: 46px;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s ease;
    position: absolute;
    inset: 78px 0 auto;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative;
    inset: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 14px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero h1,
.page-hero h1,
.detail-intro h1 {
    margin: 22px 0 18px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero p {
    width: min(620px, 100%);
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

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

.hero-tags span,
.movie-tags span,
.detail-tags span {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.1);
    color: #c2410c;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 16px 35px rgba(236, 72, 153, 0.28);
}

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

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: 0 38px 90px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.72));
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-poster span {
    position: absolute;
    left: 22px;
    bottom: 22px;
    z-index: 2;
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
    font-size: 13px;
    font-weight: 800;
}

.hero-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 34px;
}

.hero-arrow,
.hero-dot,
.hero-thumb {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 44px;
    height: 44px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    font-size: 32px;
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 9px;
}

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

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

.hero-thumbs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.hero-thumb {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    text-align: left;
    overflow: hidden;
}

.hero-thumb.is-active {
    background: rgba(255, 255, 255, 0.22);
}

.hero-thumb img {
    width: 42px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
    flex: 0 0 auto;
}

.hero-thumb span {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 13px;
    font-weight: 800;
}

.search-strip {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
}

.search-strip-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.65fr);
    gap: 24px;
    align-items: center;
    padding: 28px 0;
}

.search-strip h2 {
    margin: 0 0 6px;
    font-size: 24px;
}

.search-strip p {
    margin: 0;
    color: var(--muted);
}

.quick-search,
.filter-panel {
    display: flex;
    gap: 12px;
}

.quick-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    outline: none;
    padding: 14px 18px;
    color: var(--text);
    background: #ffffff;
}

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

.quick-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    font-weight: 900;
    cursor: pointer;
}

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

.soft-bg {
    width: 100%;
    max-width: none;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(180deg, #fff7ed, #ffffff);
}

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

.section-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
    background: linear-gradient(120deg, var(--orange), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.section-link,
.text-link {
    display: inline-flex;
    align-items: center;
    color: var(--orange);
    font-weight: 900;
}

.movie-grid {
    display: grid;
    gap: 22px;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    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-cover {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #fff7ed;
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.movie-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.72);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    backdrop-filter: blur(12px);
}

.movie-info {
    padding: 15px;
}

.movie-title {
    display: block;
    min-height: 48px;
    margin-bottom: 8px;
    color: #111827;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.35;
    transition: color 0.2s ease;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card:hover .movie-title {
    color: var(--orange);
}

.movie-desc {
    min-height: 44px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

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

.movie-card-horizontal .movie-cover {
    height: 100%;
    aspect-ratio: auto;
}

.movie-card-horizontal .movie-title {
    min-height: auto;
}

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

.category-card,
.category-overview-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.category-card {
    position: relative;
    min-height: 210px;
    color: #ffffff;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72));
}

.category-card img {
    width: 100%;
    height: 100%;
    min-height: 210px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.category-card div {
    position: absolute;
    z-index: 2;
    left: 18px;
    right: 18px;
    bottom: 18px;
}

.category-card h3,
.category-overview-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.category-card p,
.category-overview-card p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.84);
}

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

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

.category-overview-media img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
}

.category-overview-body {
    padding: 20px;
}

.category-overview-card p {
    color: var(--muted);
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: radial-gradient(circle at 15% 20%, rgba(249, 115, 22, 0.45), transparent 30%), linear-gradient(135deg, #111827, #581c87 72%, #f97316 140%);
}

.compact-hero,
.ranking-hero {
    width: 100%;
    padding: 78px max(16px, calc((100% - 1180px) / 2));
}

.compact-hero p,
.ranking-hero p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
}

.filter-panel {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.filter-panel select {
    max-width: 180px;
}

.cards-section {
    padding-top: 34px;
}

.ranking-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.55fr);
    gap: 30px;
    align-items: center;
}

.ranking-mini {
    margin: 0;
    padding: 18px;
    list-style: none;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(18px);
}

.ranking-mini li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.ranking-mini a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px 0;
}

.ranking-mini span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 900;
}

.ranking-mini strong,
.ranking-mini em {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-mini strong {
    display: block;
}

.ranking-mini em {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-style: normal;
}

.detail-hero {
    padding: 36px max(16px, calc((100% - 1180px) / 2)) 74px;
}

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

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 32px 75px rgba(0, 0, 0, 0.35);
}

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

.detail-intro p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

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

.detail-meta-grid span {
    padding: 12px 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    font-weight: 800;
}

.detail-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

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

.player-section {
    margin-top: -46px;
    position: relative;
    z-index: 2;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 28px 72px rgba(15, 23, 42, 0.28);
    aspect-ratio: 16 / 9;
}

.player-box video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.62));
    border: 0;
    cursor: pointer;
    text-align: center;
}

.player-overlay.is-hidden {
    display: none;
}

.play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 18px 45px rgba(236, 72, 153, 0.35);
    font-size: 30px;
}

.player-overlay strong {
    max-width: 78%;
    font-size: 22px;
}

.player-message {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    color: #ffffff;
    text-align: center;
    font-weight: 800;
    pointer-events: none;
}

.detail-content {
    padding: 50px 0 14px;
}

.detail-block {
    margin-bottom: 24px;
    padding: 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.detail-block h2 {
    margin: 0 0 12px;
    font-size: 26px;
}

.detail-block p {
    margin: 0;
    color: #4b5563;
    font-size: 17px;
}

.related-section {
    padding-top: 44px;
}

.site-footer {
    margin-top: 30px;
    background: #111827;
    color: #ffffff;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 0.7fr 0.7fr;
    gap: 30px;
    padding: 48px 0;
}

.footer-logo {
    font-size: 24px;
}

.footer-brand p {
    max-width: 420px;
    color: rgba(255, 255, 255, 0.68);
}

.footer-links h3 {
    margin: 0 0 14px;
    font-size: 18px;
}

.footer-links a {
    display: block;
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.68);
}

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

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

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

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

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

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

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

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

    .site-nav a:hover {
        background: #fff7ed;
    }

    .hero-shell {
        min-height: auto;
        padding: 52px 0 34px;
    }

    .hero-slide,
    .detail-layout,
    .ranking-hero,
    .search-strip-inner,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-slide {
        gap: 26px;
    }

    .hero-poster {
        max-width: 420px;
        margin: 0 auto;
    }

    .hero-thumbs {
        display: none;
    }

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

    .section-heading,
    .filter-panel,
    .quick-search {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-panel select {
        max-width: none;
    }

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

@media (max-width: 560px) {
    .header-inner,
    .content-section,
    .filter-panel,
    .player-section,
    .detail-content {
        width: min(100% - 24px, 1180px);
    }

    .logo {
        font-size: 22px;
    }

    .logo-mark {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .hero h1,
    .page-hero h1,
    .detail-intro h1 {
        font-size: 38px;
    }

    .hero-controls {
        justify-content: center;
    }

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

    .movie-card-horizontal {
        grid-template-columns: 120px minmax(0, 1fr);
    }

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

    .compact-hero,
    .ranking-hero,
    .detail-hero {
        padding-left: 12px;
        padding-right: 12px;
    }
}
