:root {
    --bg: #fff7ed;
    --surface: #ffffff;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #fed7aa;
    --orange: #f97316;
    --amber: #f59e0b;
    --deep: #111827;
    --shadow: 0 18px 45px rgba(31, 41, 55, 0.12);
    --soft-shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 38%, #f8fafc 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(255, 247, 237, 0.94), rgba(255, 251, 235, 0.94));
    border-bottom: 1px solid rgba(251, 146, 60, 0.22);
    box-shadow: 0 8px 24px rgba(148, 78, 14, 0.08);
    backdrop-filter: blur(18px);
}

.nav-wrap,
.footer-grid,
.section,
.hero,
.page-hero,
.detail-layout,
.breadcrumb {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.nav-wrap {
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}

.brand-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 12px 25px rgba(249, 115, 22, 0.28);
    font-size: 16px;
}

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

.desktop-nav a,
.mobile-nav a {
    padding: 10px 16px;
    color: #374151;
    border-radius: 999px;
    font-weight: 700;
    transition: 0.25s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.24);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--soft-shadow);
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    background: #111827;
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 18px;
    box-shadow: var(--soft-shadow);
}

.mobile-nav.open {
    display: grid;
    gap: 6px;
}

.hero {
    position: relative;
    height: 620px;
    margin-top: 28px;
    border-radius: 34px;
    overflow: hidden;
    background: #111827;
    box-shadow: 0 30px 80px rgba(17, 24, 39, 0.22);
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    display: grid;
    place-items: stretch;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.04);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 20%, rgba(245, 158, 11, 0.24), transparent 32%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.62) 46%, rgba(15, 23, 42, 0.18) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.75), transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(760px, calc(100% - 44px));
    padding: 82px 0 82px 58px;
    color: #fff;
}

.hero-eyebrow,
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fbbf24;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero h1 {
    margin: 16px 0 18px;
    font-size: clamp(38px, 7vw, 70px);
    line-height: 1.06;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 680px;
    margin: 0 0 24px;
    color: #e5e7eb;
    font-size: 20px;
}

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

.hero-tags span,
.detail-tags span {
    padding: 8px 14px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 700;
}

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

.btn,
.btn-ghost,
.btn-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: 0.25s ease;
}

.btn {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 18px 30px rgba(249, 115, 22, 0.28);
}

.btn:hover,
.btn-soft:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 20px 34px rgba(249, 115, 22, 0.34);
}

.btn-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.btn-soft {
    color: #9a3412;
    background: #ffedd5;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    padding: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
    transition: 0.25s ease;
}

.hero-dots button.active {
    width: 34px;
    background: #fff;
}

.section {
    padding: 58px 0 24px;
}

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

.section-title h2,
.page-hero h1,
.detail-info h1 {
    margin: 4px 0 8px;
    color: #1f2937;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-title p,
.page-hero p,
.detail-info .lead {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    margin: 0 0 28px;
    padding: 16px;
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--soft-shadow);
}

.search-panel input {
    width: 100%;
    min-height: 50px;
    border: 1px solid #fed7aa;
    outline: 0;
    border-radius: 16px;
    padding: 0 18px;
    color: #111827;
    background: #fff;
    font-size: 16px;
}

.search-panel input:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

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

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.movie-card {
    overflow: hidden;
    background: var(--surface);
    border: 1px solid rgba(251, 146, 60, 0.12);
    border-radius: 24px;
    box-shadow: var(--soft-shadow);
    transition: 0.28s ease;
}

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

.card-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, #111827, #7c2d12);
}

.feature-grid .card-cover {
    aspect-ratio: 16 / 9;
}

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

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

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

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 5px 10px;
    color: #fff;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 800;
}

.card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
    transform: translate(-50%, -50%) scale(0.86);
    opacity: 0;
    transition: 0.25s ease;
}

.movie-card:hover .card-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-body {
    padding: 18px;
}

.card-meta,
.rank-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #ea580c;
    font-size: 13px;
    font-weight: 800;
}

.card-body h3 {
    margin: 8px 0;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 900;
}

.card-body h3 a:hover,
.rank-item h3 a:hover,
.mini-card:hover strong {
    color: var(--orange);
}

.card-body p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--muted);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
}

.card-tags span {
    padding: 5px 9px;
    color: #9a3412;
    border-radius: 999px;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 800;
}

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

.category-card {
    position: relative;
    min-height: 170px;
    padding: 24px;
    overflow: hidden;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(251, 146, 60, 0.14);
    transition: 0.25s ease;
}

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

.category-card::before {
    content: "";
    position: absolute;
    right: -34px;
    top: -34px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(245, 158, 11, 0.24));
}

.category-card strong {
    position: relative;
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 900;
}

.category-card p {
    position: relative;
    margin: 0;
    color: var(--muted);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px;
    background: #fff;
    border: 1px solid rgba(251, 146, 60, 0.14);
    border-radius: 22px;
    box-shadow: var(--soft-shadow);
}

.rank-cover {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 3 / 4;
    background: #111827;
}

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

.rank-cover span {
    position: absolute;
    left: 8px;
    top: 8px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    font-weight: 900;
}

.rank-item h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 900;
}

.rank-item p {
    margin: 0 0 12px;
    color: var(--muted);
}

.page-hero {
    margin-top: 28px;
    padding: 48px;
    overflow: hidden;
    border-radius: 30px;
    background:
        radial-gradient(circle at 82% 22%, rgba(249, 115, 22, 0.18), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #fff7ed 54%, #ffedd5 100%);
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(251, 146, 60, 0.14);
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 0;
}

.category-tabs a {
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff;
    color: #9a3412;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.09);
}

.category-tabs a.active,
.category-tabs a:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    padding: 24px 0 54px;
}

.detail-main,
.detail-side {
    min-width: 0;
}

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

.video-player video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000;
    object-fit: contain;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    cursor: pointer;
    background-position: center;
    background-size: cover;
    transition: opacity 0.25s ease;
}

.player-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 45%, rgba(249, 115, 22, 0.16), transparent 28%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.35));
}

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

.play-button {
    position: relative;
    z-index: 3;
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 20px 46px rgba(0, 0, 0, 0.38);
    font-size: 32px;
    cursor: pointer;
    transition: 0.2s ease;
}

.play-button:hover {
    transform: scale(1.08);
}

.detail-info {
    margin-top: 26px;
    padding: 28px;
    background: #fff;
    border: 1px solid rgba(251, 146, 60, 0.14);
    border-radius: 26px;
    box-shadow: var(--soft-shadow);
}

.detail-info h2,
.detail-side h2,
.copy-page h2 {
    margin: 24px 0 10px;
    font-size: 24px;
    font-weight: 900;
}

.detail-info p,
.copy-page p {
    color: #4b5563;
    font-size: 16px;
}

.detail-tags span {
    color: #9a3412;
    background: #ffedd5;
    border-color: #fed7aa;
}

.detail-side {
    position: sticky;
    top: 96px;
    align-self: start;
    padding: 22px;
    background: #fff;
    border: 1px solid rgba(251, 146, 60, 0.14);
    border-radius: 26px;
    box-shadow: var(--soft-shadow);
}

.mini-list {
    display: grid;
    gap: 14px;
}

.mini-card {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px;
    align-items: center;
}

.mini-card img {
    width: 78px;
    height: 104px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.12);
}

.mini-card strong {
    display: block;
    margin-bottom: 4px;
    line-height: 1.35;
}

.mini-card small {
    color: var(--muted);
}

.copy-page {
    width: min(900px, calc(100% - 32px));
    margin: 28px auto 58px;
    padding: 40px;
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--soft-shadow);
    border: 1px solid rgba(251, 146, 60, 0.14);
}

.site-footer {
    margin-top: 52px;
    color: #e5e7eb;
    background: linear-gradient(135deg, #111827, #1f2937 54%, #111827);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 34px;
    padding: 48px 0 28px;
}

.footer-brand {
    color: #fff;
}

.site-footer p,
.site-footer a,
.footer-bottom {
    color: #9ca3af;
}

.site-footer a:hover {
    color: #fbbf24;
}

.site-footer h3 {
    margin: 0 0 16px;
    color: #fbbf24;
    font-size: 18px;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li {
    margin: 8px 0;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.hidden-card {
    display: none !important;
}

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

    .menu-toggle {
        display: block;
    }

    .hero {
        height: 560px;
        border-radius: 26px;
    }

    .hero-content {
        padding: 62px 28px;
    }

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

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

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

    .detail-side {
        position: static;
    }

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

@media (max-width: 640px) {
    .nav-wrap,
    .footer-grid,
    .section,
    .hero,
    .page-hero,
    .detail-layout,
    .breadcrumb,
    .copy-page {
        width: min(100% - 22px, 1180px);
    }

    .brand {
        font-size: 18px;
    }

    .hero {
        height: 520px;
        margin-top: 16px;
    }

    .hero-content {
        width: 100%;
        padding: 46px 22px;
    }

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

    .section {
        padding-top: 42px;
    }

    .section-head,
    .search-panel {
        display: grid;
        grid-template-columns: 1fr;
    }

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

    .rank-item {
        grid-template-columns: 88px 1fr;
    }

    .page-hero,
    .detail-info,
    .copy-page {
        padding: 26px;
    }

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