:root {
    --color-slate-950: #020617;
    --color-slate-900: #0f172a;
    --color-slate-800: #1e293b;
    --color-slate-700: #334155;
    --color-slate-600: #475569;
    --color-slate-100: #f1f5f9;
    --color-slate-50: #f8fafc;
    --color-orange: #f97316;
    --color-amber: #f59e0b;
    --color-rose: #f43f5e;
    --color-text: #1f2937;
    --color-muted: #64748b;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #ffffff;
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.28);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-orange), var(--color-amber));
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.35);
}

.brand-name {
    display: block;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(90deg, #fb923c, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    display: block;
    margin-top: 2px;
    color: #94a3b8;
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #e2e8f0;
    font-weight: 600;
}

.main-nav a {
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fb923c;
}

.header-search {
    flex: 1;
    max-width: 420px;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    height: 42px;
    padding: 0 18px 0 44px;
    color: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    outline: none;
    background: rgba(51, 65, 85, 0.82);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input::placeholder {
    color: #94a3b8;
}

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

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: 0;
    border-radius: 12px;
    background: rgba(51, 65, 85, 0.8);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 0 0 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

.mobile-links {
    display: grid;
    gap: 12px;
    margin-top: 14px;
    color: #e2e8f0;
    font-weight: 600;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    background-position: center;
    background-size: cover;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.68), rgba(2, 6, 23, 0.24));
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 20%, rgba(249, 115, 22, 0.22), transparent 34%), linear-gradient(0deg, rgba(2, 6, 23, 0.88), transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 76px;
}

.hero-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    color: #ffffff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    background: linear-gradient(90deg, var(--color-orange), var(--color-amber));
    box-shadow: 0 12px 26px rgba(249, 115, 22, 0.28);
}

.hero h1 {
    max-width: 820px;
    margin: 18px 0 16px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p {
    max-width: 700px;
    margin: 0 0 26px;
    color: #e2e8f0;
    font-size: 19px;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    color: #e2e8f0;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.54);
    backdrop-filter: blur(12px);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--color-orange), var(--color-amber));
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.32);
}

.button-secondary {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.button-light {
    color: var(--color-slate-900);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.button:hover {
    transform: translateY(-2px);
}

.hero-dots {
    position: absolute;
    z-index: 4;
    right: calc((100vw - min(1180px, calc(100% - 32px))) / 2);
    bottom: 72px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 42px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    cursor: pointer;
}

.hero-dot.active {
    background: linear-gradient(90deg, var(--color-orange), var(--color-amber));
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 54%, #7c2d12 100%);
}

.page-hero-inner {
    padding: 74px 0 68px;
}

.page-hero h1 {
    max-width: 900px;
    margin: 18px 0 12px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: #cbd5e1;
    font-size: 18px;
}

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

.breadcrumb a {
    color: #fed7aa;
}

.section {
    padding: 68px 0;
}

.section-tight {
    padding: 44px 0;
}

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

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
}

.section-title::before {
    content: "";
    width: 8px;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--color-orange), var(--color-amber));
}

.section-link {
    color: #ea580c;
    font-weight: 800;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.38);
    box-shadow: var(--shadow-soft);
}

.poster-wrap {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #7c2d12);
}

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

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

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.82), transparent);
}

.badge-row {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    color: #ffffff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    background: rgba(15, 23, 42, 0.76);
    backdrop-filter: blur(10px);
}

.badge-hot {
    background: linear-gradient(90deg, var(--color-orange), var(--color-amber));
}

.card-body {
    padding: 16px;
}

.card-title {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    color: #111827;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

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

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 9px;
    color: #c2410c;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #ffedd5;
}

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

.media-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 16px;
    padding: 14px;
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.media-card img {
    width: 118px;
    height: 154px;
    object-fit: cover;
    border-radius: 14px;
}

.media-card h3 {
    margin: 2px 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

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

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

.category-card {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    padding: 24px;
    color: #ffffff;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #1e293b, #c2410c);
    box-shadow: var(--shadow-soft);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -36px;
    bottom: -36px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.category-card h3 {
    position: relative;
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p {
    position: relative;
    margin: 0;
    color: #ffedd5;
    font-size: 14px;
}

.rank-panel {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.rank-list {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-item {
    display: grid;
    grid-template-columns: 64px 72px minmax(0, 1fr) 110px;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

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

.rank-number {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #ffffff;
    border-radius: 50%;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-orange), var(--color-amber));
}

.rank-item img {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 12px;
}

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

.rank-meta {
    color: var(--color-muted);
    font-size: 14px;
}

.rank-score {
    color: #ea580c;
    font-size: 20px;
    font-weight: 900;
    text-align: right;
}

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

.player-card,
.detail-card,
.side-card {
    border: 1px solid rgba(226, 232, 240, 0.88);
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.player-card {
    overflow: hidden;
    background: #020617;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-shell video {
    width: 100%;
    height: 100%;
    background: #020617;
    object-fit: contain;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    cursor: pointer;
}

.player-cover.hidden {
    display: none;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
    filter: saturate(1.08);
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.2));
}

.play-button {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    font-weight: 900;
    background: linear-gradient(90deg, var(--color-orange), var(--color-amber));
    box-shadow: 0 18px 38px rgba(249, 115, 22, 0.38);
    cursor: pointer;
}

.play-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--color-orange);
    border-radius: 50%;
    background: #ffffff;
}

.detail-card {
    padding: 28px;
    margin-top: 26px;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 18px;
    font-size: 26px;
}

.detail-card p {
    margin: 0 0 18px;
    color: #334155;
}

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

.info-item {
    padding: 14px;
    border-radius: 14px;
    background: #f8fafc;
}

.info-label {
    display: block;
    color: #64748b;
    font-size: 13px;
}

.info-value {
    display: block;
    margin-top: 3px;
    color: #0f172a;
    font-weight: 800;
}

.side-card {
    padding: 22px;
}

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

.side-link {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.side-link img {
    width: 72px;
    height: 96px;
    object-fit: cover;
    border-radius: 12px;
}

.side-link strong {
    display: -webkit-box;
    overflow: hidden;
    color: #111827;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.side-link span {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
}

.search-page-box {
    max-width: 720px;
    margin-top: 26px;
}

.search-page-box input {
    height: 56px;
    color: #0f172a;
    border: 0;
    background: #ffffff;
}

.empty-state {
    padding: 80px 24px;
    color: #64748b;
    text-align: center;
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.site-footer {
    margin-top: 60px;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
    padding: 48px 0;
}

.footer-title {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
}

.footer-inner p {
    margin: 0;
    color: #94a3b8;
}

.footer-links {
    display: grid;
    gap: 10px;
    color: #94a3b8;
}

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

@media (max-width: 1050px) {
    .movie-grid,
    .movie-grid-wide,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

    .mobile-toggle {
        display: inline-flex;
    }

    .hero {
        min-height: 560px;
    }

    .hero-content {
        padding-bottom: 86px;
    }

    .hero-dots {
        left: 16px;
        right: auto;
        bottom: 42px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .horizontal-list {
        gap: 16px;
    }

    .media-card {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .media-card img {
        width: 96px;
        height: 128px;
    }

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

    .rank-score {
        display: none;
    }

    .info-table,
    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .movie-grid,
    .movie-grid-wide,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .hero-meta {
        gap: 8px;
    }
}
