/* 静态电影网站主样式：延续原站白底、橙色渐变、卡片阴影和响应式布局 */
:root {
    --brand: #f97316;
    --brand-dark: #ea580c;
    --brand-soft: #fff7ed;
    --amber: #f59e0b;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --paper: #ffffff;
    --bg: #f9fafb;
    --dark: #111827;
    --radius: 18px;
    --shadow: 0 16px 40px rgba(17, 24, 39, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    white-space: nowrap;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--amber));
    box-shadow: 0 10px 24px rgba(249, 115, 22, 0.32);
}

.logo-text {
    background: linear-gradient(90deg, var(--brand), var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.main-nav a {
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--brand);
}

.header-search {
    position: relative;
    width: min(300px, 28vw);
}

.header-search input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    padding: 10px 16px 10px 40px;
    background: #ffffff;
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.mobile-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: #374151;
    font-size: 26px;
    line-height: 1;
}

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

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

.mobile-panel a {
    display: block;
    padding: 12px 0;
    font-weight: 700;
    color: #374151;
}

.header-search-mobile {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.header-search-mobile input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    padding: 12px 14px;
    background: #ffffff;
    outline: none;
}

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

.page-hero,
.category-hero {
    color: #ffffff;
    background: linear-gradient(120deg, var(--brand), var(--amber));
    padding: 46px 0;
    overflow: hidden;
}

.page-hero h1,
.category-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.1;
    font-weight: 900;
}

.page-hero p,
.category-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.42), transparent 28%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.62) 46%, rgba(17, 24, 39, 0.18)),
        linear-gradient(0deg, rgba(17, 24, 39, 0.82), rgba(17, 24, 39, 0.16));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.55fr);
    gap: 48px;
    align-items: center;
    min-height: 650px;
    padding: 72px 0;
}

.hero-copy {
    max-width: 760px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.92);
    color: #ffffff;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.32);
}

.hero-title {
    margin: 0;
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.04em;
    text-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
}

.hero-desc {
    max-width: 720px;
    margin: 22px 0 0;
    color: #e5e7eb;
    font-size: clamp(17px, 2vw, 21px);
}

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

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

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

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--amber));
    box-shadow: 0 16px 34px rgba(249, 115, 22, 0.34);
}

.btn-primary:hover {
    box-shadow: 0 22px 45px rgba(249, 115, 22, 0.42);
}

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

.hero-poster-card {
    justify-self: end;
    width: min(340px, 100%);
    border-radius: 28px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.22);
    transform: rotate(2deg);
}

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

.hero-poster-caption {
    padding: 16px 18px 18px;
    background: rgba(17, 24, 39, 0.74);
    backdrop-filter: blur(16px);
}

.hero-poster-caption strong {
    display: block;
    font-size: 18px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: width 0.25s ease, background 0.25s ease;
}

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

.section {
    padding: 42px 0;
}

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

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-icon {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    color: var(--brand);
    background: var(--brand-soft);
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
}

.more-link {
    color: var(--brand);
    font-weight: 850;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fff7ed, #fed7aa);
}

.movie-poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .movie-poster {
    transform: scale(1.06);
    filter: saturate(1.08);
}

.corner-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 4px 9px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 850;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.92);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.card-body {
    padding: 14px;
}

.card-title {
    display: -webkit-box;
    min-height: 46px;
    margin: 0 0 6px;
    overflow: hidden;
    color: #111827;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.42;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: #6b7280;
    font-size: 12px;
}

.card-desc {
    display: -webkit-box;
    min-height: 42px;
    margin: 10px 0 0;
    overflow: hidden;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 24px;
    color: #ffffff;
    border-radius: 24px;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    box-shadow: var(--shadow);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -40px;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.category-card h2,
.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-size: 26px;
    font-weight: 900;
}

.category-card p,
.category-card .category-count {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.92);
}

.category-count {
    display: inline-flex;
    margin-top: 18px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-weight: 800;
}

.category-amber {
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.category-rose {
    background: linear-gradient(135deg, #f43f5e, #fb923c);
}

.category-blue {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.category-purple {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.category-green {
    background: linear-gradient(135deg, #10b981, #84cc16);
}

.category-red {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.category-cyan {
    background: linear-gradient(135deg, #06b6d4, #0ea5e9);
}

.rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
    gap: 28px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 52px 74px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
}

.rank-num {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--brand), var(--amber));
    font-weight: 950;
}

.rank-poster {
    width: 74px;
    height: 102px;
    object-fit: cover;
    border-radius: 12px;
    background: #ffedd5;
}

.rank-title {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 900;
}

.rank-desc {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #6b7280;
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hot-value {
    color: var(--brand);
    font-weight: 950;
}

.detail-wrap {
    padding: 36px 0 48px;
}

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

.detail-card,
.side-card,
.player-panel,
.search-panel {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.detail-card {
    overflow: hidden;
}

.detail-head {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
    padding: 28px;
}

.detail-cover {
    width: 100%;
    border-radius: 20px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #ffedd5;
    box-shadow: 0 18px 35px rgba(17, 24, 39, 0.16);
}

.detail-title {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.15;
    font-weight: 950;
}

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

.detail-meta .pill {
    color: #9a3412;
    background: #fff7ed;
    border-color: #fed7aa;
}

.detail-one-line {
    color: #4b5563;
    font-size: 18px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.tag {
    padding: 5px 10px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 13px;
    font-weight: 800;
}

.content-block {
    padding: 0 28px 28px;
}

.content-block h2 {
    margin: 26px 0 12px;
    font-size: 24px;
    font-weight: 950;
}

.content-block p {
    margin: 0 0 16px;
    color: #374151;
}

.player-panel {
    padding: 20px;
    margin-bottom: 28px;
}

.player-panel h2 {
    margin: 0 0 16px;
    font-size: 24px;
    font-weight: 950;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000000;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 8px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.18));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button-core {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--amber));
    box-shadow: 0 20px 46px rgba(249, 115, 22, 0.38);
    font-size: 34px;
}

.play-overlay strong {
    display: block;
    font-size: 22px;
}

.play-overlay small {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.78);
}

.side-card {
    padding: 20px;
}

.side-card h2,
.side-card h3 {
    margin: 0 0 16px;
    font-size: 21px;
    font-weight: 950;
}

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

.mini-card {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.mini-card:hover {
    background: #fff7ed;
}

.mini-card img {
    width: 70px;
    height: 96px;
    object-fit: cover;
    border-radius: 12px;
    background: #ffedd5;
}

.mini-card strong {
    display: -webkit-box;
    overflow: hidden;
    color: #111827;
    font-size: 15px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mini-card span {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
}

.search-panel {
    padding: 24px;
}

.search-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px 180px 140px;
    gap: 14px;
    margin-bottom: 20px;
}

.search-controls input,
.search-controls select {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 12px 14px;
    background: #ffffff;
    outline: none;
}

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

.empty-state {
    padding: 34px;
    text-align: center;
    color: #6b7280;
    border: 1px dashed #d1d5db;
    border-radius: 18px;
    background: #ffffff;
}

.footer {
    margin-top: 52px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff, #f3f4f6);
}

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

.footer h3 {
    margin: 0 0 12px;
    font-size: 17px;
}

.footer p,
.footer a {
    color: #6b7280;
    font-size: 14px;
}

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

.copyright {
    padding: 18px 0;
    border-top: 1px solid var(--line);
    color: #6b7280;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 1080px) {
    .movie-grid,
    .movie-grid.compact-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

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

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

    .mobile-toggle {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 28px;
        min-height: 680px;
        padding: 54px 0 76px;
    }

    .hero-poster-card {
        justify-self: start;
        width: min(250px, 70vw);
    }

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

    .detail-head {
        grid-template-columns: 170px minmax(0, 1fr);
        gap: 18px;
        padding: 20px;
    }

    .content-block {
        padding: 0 20px 22px;
    }

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

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

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

    .logo {
        font-size: 20px;
    }

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

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

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

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

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

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

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

    .rank-poster {
        width: 58px;
        height: 82px;
    }

    .hot-value {
        display: none;
    }

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

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

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

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