:root {
    --bg: #fff7f0;
    --bg-soft: #fffdf9;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(248, 113, 113, 0.18);
    --orange: #f97316;
    --pink: #ec4899;
    --blue: #3b82f6;
    --gold: #f59e0b;
    --shadow: 0 24px 70px rgba(249, 115, 22, 0.18);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 8%, rgba(251, 146, 60, 0.22), transparent 30%),
        radial-gradient(circle at 88% 4%, rgba(59, 130, 246, 0.18), transparent 28%),
        linear-gradient(135deg, #fff7ed 0%, #fff1f7 46%, #eff6ff 100%);
    min-height: 100vh;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 247, 237, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(249, 115, 22, 0.18);
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.08);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 24px;
    background: linear-gradient(90deg, var(--orange), var(--pink), var(--blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #fb923c, #f472b6);
    color: white;
    font-size: 14px;
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.25);
}

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

.desktop-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: 0.22s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--orange);
    background: rgba(249, 115, 22, 0.12);
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(249, 115, 22, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
}

.nav-search input,
.mobile-panel input,
.control-bar input,
.control-bar select {
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 14px;
}

.nav-search input {
    width: 190px;
    padding: 8px 4px 8px 10px;
}

.nav-search button,
.mobile-panel button,
.primary-btn,
.secondary-btn,
.control-bar button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 800;
    transition: 0.22s ease;
}

.nav-search button,
.primary-btn,
.control-bar button {
    color: white;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.22);
}

.secondary-btn {
    padding: 11px 18px;
    color: var(--orange);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(249, 115, 22, 0.24);
}

.nav-search button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.control-bar button:hover {
    transform: translateY(-2px);
}

.menu-btn {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: white;
    color: var(--orange);
    font-size: 22px;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.15);
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(249, 115, 22, 0.18);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.mobile-panel.open {
    display: grid;
    gap: 12px;
}

.mobile-panel a {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(249, 115, 22, 0.08);
    font-weight: 700;
}

.mobile-panel form {
    display: flex;
    gap: 8px;
    padding: 6px;
    border-radius: 999px;
    background: #fff7ed;
    border: 1px solid rgba(249, 115, 22, 0.18);
}

.mobile-panel input {
    flex: 1;
    padding: 10px 12px;
}

.mobile-panel button {
    padding: 10px 16px;
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

.mobile-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.hero {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 40px;
    min-height: 580px;
    overflow: hidden;
    border-radius: 34px;
    background: #111827;
    box-shadow: 0 32px 90px rgba(236, 72, 153, 0.22);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    padding: 56px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 28% 28%, rgba(249, 115, 22, 0.42), transparent 30%),
        radial-gradient(circle at 72% 18%, rgba(236, 72, 153, 0.38), transparent 28%),
        linear-gradient(125deg, rgba(17, 24, 39, 0.96), rgba(30, 41, 59, 0.72));
    z-index: 0;
}

.hero-copy,
.hero-art {
    position: relative;
    z-index: 1;
}

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

.hero h1 {
    margin: 20px 0 16px;
    max-width: 680px;
    color: white;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -1px;
}

.hero h1 span {
    background: linear-gradient(90deg, #fed7aa, #fbcfe8, #bfdbfe);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.85;
}

.hero-meta,
.detail-meta,
.rank-meta,
.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hero-meta span,
.detail-meta span,
.rank-meta span,
.meta-line span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.hero-meta span {
    color: white;
    background: rgba(255, 255, 255, 0.14);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0;
}

.hero-search {
    display: flex;
    max-width: 590px;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: white;
    padding: 12px 16px;
    background: transparent;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.hero-search button {
    border: 0;
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 999px;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

.hero-art {
    display: grid;
    align-items: center;
}

.hero-poster {
    position: relative;
    isolation: isolate;
    margin-left: auto;
    width: min(390px, 100%);
    aspect-ratio: 2 / 2.85;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.38);
    transform: rotate(2deg);
}

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

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

.hero-poster strong {
    position: absolute;
    left: 22px;
    bottom: 22px;
    z-index: 2;
    color: white;
    font-size: 26px;
}

.hero-controls {
    position: absolute;
    right: 30px;
    bottom: 30px;
    z-index: 3;
    display: flex;
    gap: 10px;
}

.hero-controls button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    color: white;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-size: 22px;
}

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

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

.section-title {
    margin: 0;
    font-size: clamp(26px, 3.5vw, 42px);
    color: #111827;
    letter-spacing: -0.5px;
}

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

.section-link {
    color: var(--orange);
    font-weight: 900;
    white-space: nowrap;
}

.category-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 999px;
    color: #9a3412;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(249, 115, 22, 0.2);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.1);
    font-weight: 800;
    transition: 0.22s ease;
}

.category-pill:hover {
    transform: translateY(-3px);
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(249, 115, 22, 0.14);
    box-shadow: 0 18px 50px rgba(249, 115, 22, 0.1);
    transition: 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 70px rgba(249, 115, 22, 0.18);
}

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

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

.movie-card:hover .poster-img,
.rank-card:hover img,
.detail-cover:hover img {
    transform: scale(1.05);
}

.score-badge,
.rank-no {
    position: absolute;
    top: 12px;
    display: inline-grid;
    place-items: center;
    min-width: 44px;
    min-height: 30px;
    padding: 5px 9px;
    border-radius: 999px;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold), var(--orange));
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.28);
}

.score-badge {
    right: 12px;
}

.rank-no {
    left: 12px;
    background: linear-gradient(135deg, var(--pink), var(--blue));
}

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

.meta-line {
    margin-bottom: 10px;
}

.meta-line span,
.detail-meta span,
.rank-meta span {
    color: #9a3412;
    background: rgba(249, 115, 22, 0.1);
}

.movie-card h3,
.rank-card h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-card h3 a:hover {
    color: var(--orange);
}

.movie-card p,
.rank-card p,
.category-card p,
.detail-content p,
.site-footer p {
    color: var(--muted);
    line-height: 1.75;
}

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

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

.tag-row span {
    padding: 5px 9px;
    border-radius: 999px;
    color: #be185d;
    background: rgba(236, 72, 153, 0.1);
    font-size: 12px;
    font-weight: 800;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 16px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(249, 115, 22, 0.14);
    box-shadow: 0 18px 50px rgba(249, 115, 22, 0.08);
    transition: 0.22s ease;
}

.rank-card:hover {
    transform: translateY(-4px);
}

.rank-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 2.85;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(249, 115, 22, 0.12);
}

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

.rank-poster strong {
    position: absolute;
    top: 8px;
    left: 8px;
    min-width: 32px;
    min-height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--pink), var(--orange));
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.25);
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 26px;
    border-radius: 28px;
    color: #111827;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(249, 115, 22, 0.14);
    box-shadow: var(--shadow);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -50px;
    top: -50px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(59, 130, 246, 0.16));
}

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

.category-card .category-link {
    display: inline-flex;
    margin-top: 12px;
    color: var(--orange);
    font-weight: 900;
}

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 28px;
    padding: clamp(26px, 5vw, 56px);
    border-radius: 32px;
    color: white;
    background:
        radial-gradient(circle at 18% 22%, rgba(249, 115, 22, 0.5), transparent 32%),
        radial-gradient(circle at 88% 15%, rgba(59, 130, 246, 0.34), transparent 30%),
        linear-gradient(125deg, #111827, #312e81 55%, #9d174d);
    box-shadow: 0 30px 86px rgba(236, 72, 153, 0.22);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 62px);
}

.page-hero p {
    max-width: 860px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    line-height: 1.85;
}

.control-bar {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 24px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(249, 115, 22, 0.14);
    box-shadow: 0 18px 50px rgba(249, 115, 22, 0.08);
}

.control-bar input,
.control-bar select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 16px;
    background: #fff7ed;
    border: 1px solid rgba(249, 115, 22, 0.16);
}

.detail-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 42px;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 28px;
    align-items: start;
}

.detail-cover {
    overflow: hidden;
    border-radius: 30px;
    aspect-ratio: 2 / 2.85;
    background: rgba(249, 115, 22, 0.12);
    box-shadow: var(--shadow);
}

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

.detail-panel {
    padding: clamp(24px, 4vw, 40px);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(249, 115, 22, 0.14);
    box-shadow: var(--shadow);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--muted);
    font-weight: 700;
}

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

.detail-panel h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.12;
}

.detail-intro {
    margin: 18px 0 22px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.85;
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    box-shadow: 0 32px 90px rgba(15, 23, 42, 0.3);
}

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #0f172a;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
    color: white;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.64), rgba(15, 23, 42, 0.2));
}

.player-start span {
    display: inline-grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 24px 48px rgba(249, 115, 22, 0.34);
    font-size: 36px;
    padding-left: 6px;
}

.player-shell.is-playing .player-start {
    display: none;
}

.detail-content {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 42px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.content-card {
    padding: clamp(22px, 4vw, 34px);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(249, 115, 22, 0.14);
    box-shadow: 0 18px 50px rgba(249, 115, 22, 0.09);
}

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

.filter-empty {
    display: none;
    padding: 32px;
    border-radius: 24px;
    text-align: center;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(249, 115, 22, 0.14);
}

.site-footer {
    margin-top: 64px;
    padding: 44px 0;
    background: rgba(17, 24, 39, 0.96);
    color: white;
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.8fr;
    gap: 28px;
}

.site-footer h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.site-footer p {
    color: rgba(255, 255, 255, 0.68);
}

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

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.78);
    background: rgba(255, 255, 255, 0.08);
}

.footer-links a:hover {
    color: white;
    background: rgba(249, 115, 22, 0.38);
}

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

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

    .hero {
        min-height: 780px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 34px;
    }

    .hero-poster {
        margin: 0;
        width: min(280px, 72%);
    }

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

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

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

@media (max-width: 720px) {
    .nav-wrap {
        min-height: 64px;
        width: min(100% - 22px, 1180px);
    }

    .logo,
    .footer-logo {
        font-size: 20px;
    }

    .hero,
    .section,
    .page-hero,
    .control-bar,
    .detail-layout,
    .watch-section,
    .detail-content {
        width: min(100% - 22px, 1180px);
    }

    .hero {
        min-height: 760px;
        border-radius: 24px;
    }

    .hero-slide {
        padding: 24px;
    }

    .hero-search,
    .control-bar {
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .hero-search {
        display: grid;
    }

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

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

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

    .rank-card {
        grid-template-columns: 92px 1fr;
        gap: 12px;
    }

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

    .detail-cover {
        max-width: 300px;
    }

    .section-head {
        display: grid;
    }
}

@media (max-width: 430px) {
    .movie-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: 820px;
    }
}
