* {
    box-sizing: border-box;
}

:root {
    --bg: #0f1117;
    --panel: #171923;
    --panel-soft: #202331;
    --text: #f7f8fb;
    --muted: #a7adbd;
    --line: rgba(255, 255, 255, 0.1);
    --orange: #f97316;
    --red: #ef4444;
    --pink: #ec4899;
    --gold: #facc15;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 0%, rgba(249, 115, 22, 0.22), transparent 30%),
        radial-gradient(circle at 82% 12%, rgba(236, 72, 153, 0.16), transparent 28%),
        linear-gradient(180deg, #11131a 0%, #0f1117 46%, #12141c 100%);
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.96), rgba(239, 68, 68, 0.96), rgba(236, 72, 153, 0.96));
    color: #ffffff;
    box-shadow: 0 12px 36px rgba(239, 68, 68, 0.26);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    height: 68px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.brand-text {
    font-size: 22px;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav-link {
    padding: 9px 13px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.9);
    transition: background 0.18s ease, transform 0.18s ease;
}

.nav-link:hover,
.nav-link.is-active {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.header-search {
    position: relative;
    width: 260px;
}

.header-search input,
.mobile-search input,
.search-hero input,
.filter-bar input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.header-search input {
    height: 40px;
    padding: 0 44px 0 18px;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.search-hero input::placeholder,
.filter-bar input::placeholder {
    color: rgba(255, 255, 255, 0.76);
}

.header-search button {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 30px;
    height: 30px;
    transform: translateY(-50%);
    border: 0;
    color: #ffffff;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    cursor: pointer;
}

.menu-button {
    display: none;
    border: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    width: 42px;
    height: 42px;
    border-radius: 14px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 18px;
}

.mobile-panel.is-open {
    display: block;
}

.mobile-panel nav,
.mobile-cats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-link,
.mobile-cats a {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
}

.mobile-search {
    display: flex;
    gap: 10px;
    margin: 14px 0;
}

.mobile-search input {
    height: 42px;
    padding: 0 16px;
}

.mobile-search button,
.search-hero button,
.filter-bar button,
.cta-button,
.secondary-button {
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--red));
    cursor: pointer;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
}

main {
    min-height: 70vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 46px 20px;
}

.hero-carousel {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    background: #07080c;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.72s ease, transform 1.1s ease;
    pointer-events: none;
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 7, 12, 0.92) 0%, rgba(5, 7, 12, 0.56) 46%, rgba(5, 7, 12, 0.82) 100%),
        linear-gradient(0deg, rgba(15, 17, 23, 1) 0%, rgba(15, 17, 23, 0.12) 38%, rgba(15, 17, 23, 0.2) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 610px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 44px;
    padding: 98px 20px 72px;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow,
.section-kicker,
.detail-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.95);
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.28);
}

.hero-copy h1 {
    margin: 24px 0 16px;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero-copy p {
    margin: 0;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 20px;
    line-height: 1.75;
}

.hero-meta,
.detail-meta,
.card-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.86);
}

.hero-meta span,
.detail-meta span,
.card-meta-line span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

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

.cta-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.secondary-button {
    background: rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.cta-button:hover,
.secondary-button:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-feature-card {
    position: relative;
    border-radius: 34px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
}

.hero-feature-card img {
    position: static;
    height: 500px;
    object-fit: cover;
    opacity: 1;
}

.hero-feature-card .feature-caption {
    position: absolute;
    inset: auto 18px 18px 18px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(6, 8, 13, 0.72);
    backdrop-filter: blur(15px);
}

.feature-caption strong {
    display: block;
    font-size: 20px;
    margin-bottom: 6px;
}

.feature-caption span {
    color: rgba(255, 255, 255, 0.72);
}

.hero-control {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 48px;
    height: 48px;
    transform: translateY(-50%);
    border: 0;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.hero-control:hover {
    background: rgba(249, 115, 22, 0.88);
    transform: translateY(-50%) scale(1.06);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.hero-dots button.is-active {
    width: 34px;
    background: var(--orange);
}

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

.section-head h2,
.page-title h1,
.detail-copy h1 {
    margin: 12px 0 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.section-head p,
.page-title p,
.detail-copy p,
.category-card p,
.movie-card p,
.info-panel p,
.footer-inner p {
    color: var(--muted);
    line-height: 1.72;
}

.section-link {
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px var(--line);
    white-space: nowrap;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035));
    box-shadow: inset 0 0 0 1px var(--line), 0 18px 34px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.38), 0 22px 54px rgba(0, 0, 0, 0.32);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.22), rgba(236, 72, 153, 0.22));
}

.poster-link img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease;
}

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

.quality-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(249, 115, 22, 0.95);
    font-size: 12px;
    font-weight: 900;
}

.play-float {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

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

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

.movie-card h3 a:hover,
.footer-links a:hover,
.category-card:hover h2,
.breadcrumb a:hover {
    color: #fed7aa;
}

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

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}

.tag-row span {
    padding: 5px 8px;
    border-radius: 999px;
    color: #fed7aa;
    background: rgba(249, 115, 22, 0.12);
    font-size: 12px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

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

.category-card {
    min-height: 210px;
    padding: 24px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.22), rgba(236, 72, 153, 0.11)),
        rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px var(--line), 0 18px 48px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.34), 0 24px 58px rgba(0, 0, 0, 0.3);
}

.category-card h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

.category-card p {
    margin: 0 0 18px;
}

.category-card span {
    color: #ffffff;
    font-weight: 800;
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    gap: 24px;
}

.rank-list,
.side-panel,
.info-panel,
.filter-card,
.player-card,
.detail-panel {
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px rgba(0, 0, 0, 0.2);
}

.rank-list {
    overflow: hidden;
}

.rank-item {
    display: grid;
    grid-template-columns: 52px 78px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    transition: background 0.18s ease;
}

.rank-item:hover {
    background: rgba(249, 115, 22, 0.12);
}

.rank-item:last-child {
    border-bottom: 0;
}

.rank-number {
    font-size: 24px;
    font-weight: 900;
    color: #fed7aa;
    text-align: center;
}

.rank-item img {
    width: 78px;
    height: 104px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-copy strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

.rank-copy em {
    color: var(--muted);
    font-style: normal;
}

.side-panel {
    padding: 24px;
}

.side-panel h3 {
    margin: 0 0 16px;
    font-size: 22px;
}

.side-links {
    display: grid;
    gap: 10px;
}

.side-links a {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.86);
}

.page-title {
    max-width: 850px;
    margin-bottom: 30px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 20px;
    color: var(--muted);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.36);
}

.filter-card {
    padding: 18px;
    margin-bottom: 24px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto auto auto auto;
    gap: 12px;
    align-items: center;
}

.filter-bar input {
    height: 44px;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.08);
}

.filter-bar button {
    min-height: 44px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px var(--line);
}

.filter-bar button.is-active {
    background: linear-gradient(90deg, var(--orange), var(--red));
}

.watch-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.45fr);
    gap: 24px;
    align-items: start;
}

.player-card {
    padding: 16px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: 16 / 9;
    background: #000000;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-overlay img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.22));
}

.player-start {
    position: relative;
    z-index: 2;
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--orange), var(--red));
    box-shadow: 0 18px 60px rgba(249, 115, 22, 0.46);
    font-size: 30px;
    cursor: pointer;
}

.player-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
}

.player-title-row h2 {
    margin: 0;
    font-size: 24px;
}

.detail-panel {
    padding: 22px;
}

.detail-cover {
    overflow: hidden;
    border-radius: 22px;
    margin-bottom: 18px;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(236, 72, 153, 0.18));
}

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

.detail-copy {
    margin-top: 28px;
}

.detail-copy h1 {
    font-size: clamp(32px, 5vw, 56px);
}

.detail-copy section {
    margin-top: 30px;
}

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

.detail-copy p {
    font-size: 17px;
}

.related-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.related-mini {
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px var(--line);
}

.related-mini img {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.related-mini span {
    display: block;
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
}

.search-hero {
    padding: 36px;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.26), rgba(236, 72, 153, 0.13)),
        rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow);
    margin-bottom: 32px;
}

.search-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 58px);
}

.search-hero p {
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 22px;
    line-height: 1.75;
}

.search-hero form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    max-width: 760px;
}

.search-hero input {
    height: 54px;
    padding: 0 20px;
    background: rgba(255, 255, 255, 0.11);
}

.search-hero button {
    min-height: 54px;
    padding: 0 28px;
}

.site-footer {
    margin-top: 44px;
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, 0.18);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 34px 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
    gap: 26px;
}

.footer-brand {
    margin-bottom: 10px;
    font-size: 24px;
}

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

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

.footer-links a {
    padding: 9px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.06);
}

.empty-state {
    display: none;
    padding: 28px;
    border-radius: 24px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px var(--line);
}

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

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

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

    .related-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .hero-content,
    .watch-grid,
    .rank-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-feature-card {
        display: none;
    }

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

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

@media (max-width: 720px) {
    .header-inner {
        height: 62px;
        padding: 0 14px;
    }

    .brand-text {
        font-size: 18px;
    }

    .container {
        padding: 32px 14px;
    }

    .hero-content {
        padding: 86px 16px 66px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-control {
        display: none;
    }

    .section-head {
        display: block;
    }

    .section-link {
        display: inline-flex;
        margin-top: 14px;
    }

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

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

    .movie-card p {
        min-height: auto;
    }

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

    .rank-item {
        grid-template-columns: 40px 64px minmax(0, 1fr);
        padding: 12px;
    }

    .rank-item img {
        width: 64px;
        height: 88px;
    }

    .filter-bar,
    .search-hero form {
        grid-template-columns: 1fr;
    }

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

    .player-title-row {
        display: block;
    }

    .player-start {
        width: 72px;
        height: 72px;
    }
}
