:root {
    --brand-one: #f97316;
    --brand-two: #ef4444;
    --brand-three: #ec4899;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: #fed7aa;
    --dark: #111827;
    --shadow: 0 20px 45px rgba(17, 24, 39, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 34%, #f9fafb 100%);
    color: var(--ink);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, var(--brand-one), var(--brand-two), var(--brand-three));
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.28);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32);
    transition: transform 0.2s ease;
}

.logo:hover .logo-mark {
    transform: rotate(10deg) scale(1.04);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-weight: 650;
}

.desktop-nav a,
.mobile-nav a {
    opacity: 0.96;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: #ffedd5;
    opacity: 1;
}

.header-search {
    position: relative;
    width: min(300px, 28vw);
}

.header-search input,
.page-search input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    padding: 11px 44px 11px 18px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    backdrop-filter: blur(8px);
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.header-search button,
.page-search button {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 18px;
}

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

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    gap: 12px;
    flex-wrap: wrap;
    font-weight: 650;
}

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

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

.hero-carousel {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #ffffff;
    isolation: isolate;
    background: #111827;
}

.hero-carousel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 18%, rgba(249, 115, 22, 0.45), transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.38), transparent 30%);
    z-index: -2;
}

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

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
    transform: scale(1.06);
    filter: blur(2px) saturate(1.04);
    opacity: 0.45;
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.72) 48%, rgba(17, 24, 39, 0.42) 100%);
}

.hero-content {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 620px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.72fr);
    align-items: center;
    gap: 42px;
    padding: 72px 0 52px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffedd5;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.hero-title {
    margin: 18px 0 12px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.96;
    letter-spacing: -0.08em;
    font-weight: 900;
}

.hero-movie-title {
    margin: 0 0 16px;
    font-size: clamp(28px, 4vw, 48px);
    letter-spacing: -0.05em;
}

.hero-desc {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 30px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(0, 0, 0, 0.28);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn-primary,
.btn-secondary,
.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 22px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand-one), var(--brand-two));
    box-shadow: 0 14px 28px rgba(239, 68, 68, 0.32);
}

.btn-secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.btn-light {
    color: #c2410c;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.14);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-light:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 34px 70px rgba(0, 0, 0, 0.4);
    transform: rotate(2deg);
}

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

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

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
    padding: 58px 0;
}

.section.compact {
    padding-top: 28px;
}

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.section-subtitle {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

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

.movie-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.card-poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #ffedd5, #fce7f3);
}

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

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

.card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 14px;
    background: linear-gradient(180deg, transparent 28%, rgba(0, 0, 0, 0.78));
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.movie-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay p {
    margin: 0;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 13px;
    line-height: 1.55;
}

.badge-row {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    pointer-events: none;
}

.badge {
    border-radius: 9px;
    padding: 5px 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.badge.hot {
    background: #dc2626;
}

.card-body {
    padding: 14px;
}

.card-title {
    margin: 0 0 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #1f2937;
    font-size: 16px;
    font-weight: 800;
    transition: color 0.2s ease;
}

.movie-card:hover .card-title {
    color: #ea580c;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: #6b7280;
    font-size: 12px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 186px;
    border-radius: 24px;
    padding: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444 55%, #ec4899);
    box-shadow: 0 18px 38px rgba(239, 68, 68, 0.18);
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #fb7185, #f97316 52%, #fde047);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #7c3aed, #ec4899 55%, #f97316);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -35px;
    bottom: -45px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-size: 24px;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.65;
}

.category-card span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    border-radius: 999px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 800;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 82px 0 48px;
    color: #ffffff;
    background:
        linear-gradient(110deg, rgba(249, 115, 22, 0.95), rgba(239, 68, 68, 0.94), rgba(236, 72, 153, 0.92)),
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.22), transparent 26%);
}

.page-hero h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.07em;
}

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

.tools-panel {
    margin: -30px auto 28px;
    position: relative;
    z-index: 5;
    border-radius: 24px;
    padding: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.page-search {
    position: relative;
}

.page-search input {
    border-color: #fed7aa;
    background: #fff7ed;
    color: #1f2937;
}

.page-search input::placeholder {
    color: #9ca3af;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.filter-chip {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    color: #9a3412;
    background: #ffedd5;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.filter-chip.is-active,
.filter-chip:hover {
    color: #ffffff;
    background: linear-gradient(90deg, var(--brand-one), var(--brand-two));
}

.empty-state {
    display: none;
    border-radius: 18px;
    padding: 24px;
    background: #ffffff;
    color: #6b7280;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 58px 74px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border-radius: 18px;
    padding: 12px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-one), var(--brand-two));
    font-weight: 900;
}

.rank-thumb {
    width: 74px;
    height: 96px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 900;
}

.rank-desc {
    margin: 0;
    color: #6b7280;
    line-height: 1.6;
}

.rank-score {
    color: #ea580c;
    font-weight: 900;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #9ca3af;
    font-size: 14px;
}

.breadcrumbs a {
    color: #ea580c;
    font-weight: 800;
}

.detail-hero {
    padding: 46px 0 34px;
    background: linear-gradient(180deg, #fff7ed, #ffffff);
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    background: #ffedd5;
    box-shadow: var(--shadow);
}

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

.detail-info h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.detail-lead {
    margin: 0 0 22px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.85;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0;
}

.info-box {
    border: 1px solid #fed7aa;
    border-radius: 16px;
    padding: 12px;
    background: #fff7ed;
}

.info-label {
    display: block;
    color: #9a3412;
    font-size: 12px;
    font-weight: 900;
}

.info-value {
    display: block;
    margin-top: 4px;
    color: #1f2937;
    font-weight: 850;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 18px 0 26px;
}

.tag {
    border-radius: 999px;
    padding: 7px 12px;
    background: #ffedd5;
    color: #9a3412;
    font-size: 13px;
    font-weight: 800;
}

.player-section {
    padding: 28px 0 58px;
}

.player-shell {
    overflow: hidden;
    border-radius: 26px;
    background: #0f172a;
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.35);
}

.player-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    color: #ffffff;
    background: linear-gradient(90deg, #111827, #1f2937);
}

.player-titlebar h2 {
    margin: 0;
    font-size: 22px;
}

.video-frame {
    position: relative;
    background: #000000;
    aspect-ratio: 16 / 9;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.2), rgba(0, 0, 0, 0.72));
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-button {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 999px;
    padding-left: 6px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-one), var(--brand-two));
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.35);
    font-size: 35px;
    cursor: pointer;
}

.content-panel {
    border-radius: 24px;
    padding: 28px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
}

.content-panel h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.content-panel p {
    margin: 0 0 16px;
    color: #4b5563;
    line-height: 1.9;
}

.site-footer {
    margin-top: 38px;
    color: #d1d5db;
    background: linear-gradient(180deg, #111827, #030712);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 28px;
}

.footer-title {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
}

.footer-text {
    margin: 0;
    line-height: 1.75;
}

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

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

.footer-bottom {
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 14px;
}

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

    .menu-button {
        display: inline-grid;
        place-items: center;
    }

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

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

@media (max-width: 780px) {
    .header-inner {
        height: 62px;
    }

    .logo {
        font-size: 21px;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 46px 0 70px;
    }

    .hero-poster {
        width: min(260px, 80%);
        margin: 0 auto;
    }

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

    .section-header {
        display: block;
    }

    .section-actions {
        margin-top: 14px;
    }

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

    .detail-layout {
        gap: 24px;
    }

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

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

    .rank-item {
        grid-template-columns: 42px 62px minmax(0, 1fr);
    }

    .rank-score {
        display: none;
    }
}

@media (max-width: 480px) {
    .container,
    .header-inner,
    .mobile-nav,
    .footer-inner {
        width: min(100% - 22px, 1180px);
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-desc,
    .page-hero p,
    .detail-lead {
        font-size: 16px;
    }

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

    .card-title {
        font-size: 14px;
    }

    .card-body {
        padding: 12px;
    }

    .play-button {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}
