:root {
    --site-bg: #fff7ed;
    --site-bg-soft: #fffbf5;
    --site-text: #1f2937;
    --site-muted: #6b7280;
    --site-line: #fed7aa;
    --site-orange: #f97316;
    --site-orange-dark: #ea580c;
    --site-pink: #ec4899;
    --site-red: #ef4444;
    --site-card: rgba(255, 255, 255, 0.94);
    --site-shadow: 0 18px 48px rgba(194, 65, 12, 0.14);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 8% 8%, rgba(251, 146, 60, 0.24), transparent 28rem),
        radial-gradient(circle at 88% 3%, rgba(236, 72, 153, 0.16), transparent 30rem),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff7ed 100%);
    color: var(--site-text);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-shell {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(254, 215, 170, 0.9);
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 0 22px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 24px;
    letter-spacing: -0.02em;
    color: #111827;
}

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

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

.header-nav a {
    position: relative;
    padding: 9px 0;
    transition: color 0.2s ease;
}

.header-nav a:hover,
.header-nav a.is-active {
    color: var(--site-orange);
}

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

.header-nav a:hover::after,
.header-nav a.is-active::after {
    transform: scaleX(1);
}

.mobile-toggle {
    display: none;
    border: 0;
    border-radius: 14px;
    width: 44px;
    height: 44px;
    background: #fff7ed;
    color: var(--site-orange);
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: currentColor;
}

.mobile-nav {
    display: none;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 22px 18px;
}

.mobile-nav a {
    display: block;
    padding: 13px 0;
    border-top: 1px solid #ffedd5;
    color: #374151;
    font-weight: 700;
}

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

.main-content {
    overflow: hidden;
}

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

.hero {
    position: relative;
    min-height: 650px;
    color: #ffffff;
    background: #111827;
    overflow: hidden;
}

.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-position: center;
    background-size: cover;
    transform: scale(1.05);
    filter: saturate(1.08);
}

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

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 52px;
    align-items: center;
    padding: 76px 0 88px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.2);
    border: 1px solid rgba(251, 146, 60, 0.46);
    color: #fed7aa;
    font-weight: 800;
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(38px, 7vw, 72px);
    line-height: 0.98;
    margin: 0 0 18px;
    letter-spacing: -0.055em;
    max-width: 780px;
}

.hero-text {
    max-width: 720px;
    margin: 0 0 24px;
    color: #ffedd5;
    font-size: 18px;
    line-height: 1.8;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-meta span,
.meta-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff7ed;
    font-size: 14px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

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

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

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

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

.btn-light {
    color: var(--site-orange-dark);
    background: #ffffff;
    border: 1px solid #fed7aa;
}

.hero-poster {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    min-height: 500px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

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

.hero-poster-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    right: 18px;
    padding: 16px;
    border-radius: 22px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(14px);
}

.hero-dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.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;
}

.search-panel {
    margin-top: -38px;
    position: relative;
    z-index: 8;
}

.search-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 18px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ffedd5;
    box-shadow: var(--site-shadow);
}

.search-input {
    width: 100%;
    height: 54px;
    border: 1px solid #fed7aa;
    border-radius: 999px;
    padding: 0 22px;
    outline: 0;
    color: #111827;
    background: #fffaf4;
}

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

.section {
    padding: 72px 0;
}

.section-soft {
    background: rgba(255, 247, 237, 0.72);
}

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

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #111827;
}

.section-title .gradient-text,
.gradient-text {
    background: linear-gradient(135deg, var(--site-orange), var(--site-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 160px;
    border-radius: 28px;
    padding: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ec4899);
    box-shadow: var(--site-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    right: -42px;
    top: -42px;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.category-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 22px 58px rgba(194, 65, 12, 0.2);
}

.category-card strong {
    display: block;
    position: relative;
    z-index: 2;
    font-size: 24px;
    margin-bottom: 12px;
}

.category-card span {
    position: relative;
    z-index: 2;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--site-card);
    border: 1px solid rgba(254, 215, 170, 0.88);
    box-shadow: 0 14px 34px rgba(194, 65, 12, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 56px rgba(194, 65, 12, 0.18);
}

.movie-cover {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111827;
}

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

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

.cover-shade {
    position: absolute;
    inset: auto 0 0;
    padding: 34px 12px 12px;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
    font-size: 13px;
    font-weight: 800;
}

.movie-body {
    padding: 16px;
}

.movie-title {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.card-tag,
.detail-tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #fff7ed;
    color: var(--site-orange-dark);
    border: 1px solid #fed7aa;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 800;
}

.horizontal-list {
    display: grid;
    gap: 16px;
}

.rank-card {
    display: grid;
    grid-template-columns: 74px 112px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    border-radius: 24px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #ffedd5;
    box-shadow: 0 12px 28px rgba(194, 65, 12, 0.08);
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-orange), var(--site-pink));
    font-weight: 950;
}

.rank-cover {
    aspect-ratio: 2 / 3;
    border-radius: 18px;
    overflow: hidden;
    background: #111827;
}

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

.rank-info h3 {
    margin: 0 0 8px;
    font-size: 21px;
}

.rank-info p {
    margin: 0;
    color: var(--site-muted);
    line-height: 1.65;
}

.page-hero {
    padding: 82px 0 58px;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(249, 115, 22, 0.94), rgba(236, 72, 153, 0.92)),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.24), transparent 24rem);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1;
    letter-spacing: -0.05em;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 700;
}

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

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

.detail-card,
.side-card {
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid #ffedd5;
    box-shadow: var(--site-shadow);
    overflow: hidden;
}

.detail-padding {
    padding: 30px;
}

.movie-player {
    position: relative;
    overflow: hidden;
    border-radius: 30px 30px 0 0;
    background: #050505;
    aspect-ratio: 16 / 9;
}

.player-video {
    display: block;
    width: 100%;
    height: 100%;
    background: #000000;
    object-fit: contain;
    cursor: pointer;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at center, rgba(249, 115, 22, 0.22), rgba(0, 0, 0, 0.72)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-start {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--site-orange), var(--site-pink));
    box-shadow: 0 20px 42px rgba(236, 72, 153, 0.42);
    cursor: pointer;
    font-size: 30px;
    padding-left: 6px;
}

.detail-title {
    margin: 0 0 14px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 24px;
}

.detail-meta span {
    display: inline-flex;
    border-radius: 999px;
    background: #fff7ed;
    color: var(--site-orange-dark);
    border: 1px solid #fed7aa;
    padding: 7px 12px;
    font-weight: 800;
    font-size: 14px;
}

.content-block {
    margin-top: 28px;
}

.content-block h2 {
    margin: 0 0 12px;
    font-size: 24px;
    color: #111827;
}

.content-block p {
    margin: 0;
    color: #4b5563;
    line-height: 1.88;
    font-size: 16px;
}

.side-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111827;
}

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

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

.related-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #fff7ed;
    border: 1px solid #ffedd5;
}

.related-item img {
    width: 64px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
    background: #111827;
}

.related-item strong {
    display: block;
    color: #111827;
    line-height: 1.35;
    margin-bottom: 5px;
}

.related-item span {
    color: var(--site-muted);
    font-size: 13px;
}

.search-empty {
    display: none;
    padding: 30px;
    text-align: center;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #ffedd5;
    color: var(--site-muted);
}

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

.footer {
    margin-top: 72px;
    padding: 48px 0;
    background: #111827;
    color: #d1d5db;
}

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

.footer h2,
.footer h3 {
    color: #ffffff;
    margin: 0 0 14px;
}

.footer p,
.footer a {
    color: #d1d5db;
    line-height: 1.8;
}

.footer a:hover {
    color: #fed7aa;
}

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

.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: 1080px) {
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

    .hero-poster {
        display: none;
    }
}

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

    .mobile-toggle {
        display: block;
    }

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

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

    .rank-card {
        grid-template-columns: 52px 82px minmax(0, 1fr);
    }

    .rank-card .btn {
        grid-column: 1 / -1;
    }

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

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

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

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

@media (max-width: 540px) {
    .container,
    .hero-content {
        width: min(100% - 24px, 1180px);
    }

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

    .section {
        padding: 52px 0;
    }

    .detail-padding {
        padding: 22px;
    }

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