
:root {
    --accent: #ea580c;
    --accent-dark: #c2410c;
    --accent-soft: #ffedd5;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --bg: #f9fafb;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    --radius: 22px;
}

* {
    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: linear-gradient(180deg, #ffffff 0%, #f8fafc 48%, #fff7ed 100%);
    min-height: 100vh;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
    color: var(--text);
    white-space: nowrap;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(234, 88, 12, 0.28);
    font-size: 14px;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #374151;
    font-size: 15px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-bar input,
.filter-bar select {
    width: 220px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
    outline: none;
    background: #ffffff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.header-search button,
.mobile-search button,
.filter-bar button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.filter-bar button:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.menu-button {
    width: 44px;
    height: 44px;
    display: none;
    border: 0;
    border-radius: 14px;
    background: #fff7ed;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    background: #9a3412;
    margin: 5px auto;
    border-radius: 99px;
}

.mobile-panel {
    display: none;
    padding: 0 22px 18px;
    border-top: 1px solid var(--line);
}

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

.mobile-link {
    display: block;
    padding: 12px 0;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.hero-carousel {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 1.2s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.56) 48%, rgba(0, 0, 0, 0.15) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 100px 24px 82px;
    color: #ffffff;
}

.hero-content h1 {
    max-width: 760px;
    margin: 0 0 20px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 24px;
    color: #e5e7eb;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 22px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.88);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-tags span,
.tag-row span,
.meta-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 11px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-size: 13px;
    backdrop-filter: blur(10px);
}

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

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

.primary-button,
.detail-button {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(234, 88, 12, 0.28);
}

.primary-button:hover,
.detail-button:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.ghost-button {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

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

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

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

.main-section,
.page-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 22px;
}

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

.section-heading p {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.section-heading h2,
.page-title h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.18;
}

.section-heading span,
.page-title p {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.8;
}

.section-more {
    color: var(--accent);
    background: #fff7ed;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid rgba(229, 231, 235, 0.82);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: #fed7aa;
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #111827;
}

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

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

.poster-overlay {
    position: absolute;
    inset: auto 14px 14px 14px;
    display: flex;
    justify-content: center;
    border-radius: 999px;
    padding: 10px;
    background: rgba(234, 88, 12, 0.92);
    color: #ffffff;
    font-weight: 800;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-overlay {
    opacity: 1;
    transform: translateY(0);
}

.card-body {
    padding: 16px;
}

.card-body h2 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.card-body h2 a:hover {
    color: var(--accent);
}

.card-meta,
.card-desc {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

.card-desc {
    min-height: 48px;
}

.tag-row span {
    background: #fff7ed;
    color: #9a3412;
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

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

.category-card {
    border-radius: var(--radius);
    padding: 24px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    border: 1px solid #fed7aa;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.75;
}

.category-card span {
    color: var(--accent);
    font-weight: 900;
}

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

.rail-card {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.rail-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.rail-card span {
    display: block;
    padding: 12px;
    font-weight: 800;
    line-height: 1.45;
}

.page-title {
    padding: 54px 22px 26px;
    max-width: 1200px;
    margin: 0 auto;
}

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

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

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 18px;
    margin-bottom: 26px;
    border-radius: var(--radius);
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

.filter-bar input {
    min-width: 300px;
}

.no-results {
    display: none;
    padding: 30px;
    text-align: center;
    color: var(--muted);
    border-radius: var(--radius);
    background: #ffffff;
    border: 1px solid var(--line);
}

.no-results.is-visible {
    display: block;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 34px;
}

.pagination a {
    min-width: 42px;
    padding: 10px 13px;
    border-radius: 13px;
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--line);
    color: #374151;
}

.pagination a.current,
.pagination a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.detail-hero {
    background: #0f172a;
    color: #ffffff;
}

.detail-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 46px 22px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.45fr);
    gap: 34px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

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

.detail-copy h1 {
    color: #ffffff;
    margin-bottom: 18px;
}

.detail-copy p {
    color: #cbd5e1;
    line-height: 1.85;
    font-size: 17px;
}

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

.player-block {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
}

.player-block video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000000;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    z-index: 3;
}

.play-layer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.play-layer span,
.play-layer strong {
    position: relative;
    z-index: 2;
}

.play-layer span {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(234, 88, 12, 0.96);
    color: #ffffff;
    font-size: 30px;
    box-shadow: 0 16px 35px rgba(234, 88, 12, 0.35);
}

.play-layer strong {
    color: #ffffff;
    font-size: 20px;
}

.play-layer.is-hidden {
    display: none;
}

.content-card {
    padding: 28px;
    border-radius: var(--radius);
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
    margin-bottom: 22px;
}

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

.content-card p {
    margin: 0;
    color: #374151;
    line-height: 1.95;
}

.site-footer {
    margin-top: 40px;
    background: #ffffff;
    border-top: 1px solid var(--line);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 42px 22px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 30px;
}

.footer-brand p,
.footer-links a {
    color: var(--muted);
    line-height: 1.8;
}

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

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

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 22px 28px;
    color: var(--muted);
    border-top: 1px solid #f3f4f6;
}

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

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

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

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

    .detail-hero-inner {
        grid-template-columns: 0.75fr 1fr;
    }
}

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

    .menu-button {
        display: block;
        margin-left: auto;
    }

    .hero-content {
        padding: 86px 20px 76px;
    }

    .movie-grid,
    .category-grid,
    .footer-inner,
    .detail-hero-inner {
        grid-template-columns: 1fr;
    }

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

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

    .filter-bar input {
        width: 100%;
        min-width: 0;
    }

    .filter-bar select,
    .filter-bar button {
        flex: 1 1 140px;
    }
}

@media (max-width: 520px) {
    .header-inner {
        padding: 12px 16px;
    }

    .brand {
        font-size: 17px;
    }

    .brand-icon {
        width: 32px;
        height: 32px;
    }

    .hero-carousel {
        min-height: 76vh;
    }

    .main-section,
    .page-main,
    .page-title,
    .detail-hero-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    .movie-grid {
        gap: 16px;
    }

    .card-body {
        padding: 14px;
    }
}
