:root {
    --page-bg: #f9fafb;
    --text-main: #1f2937;
    --text-soft: #4b5563;
    --muted: #6b7280;
    --line: #e5e7eb;
    --card: #ffffff;
    --dark: #0f172a;
    --dark-2: #111827;
    --amber: #d97706;
    --amber-dark: #b45309;
    --amber-soft: #fff7ed;
    --red: #dc2626;
    --blue: #2563eb;
    --shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
    font: inherit;
}

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

.header-inner,
.footer-inner,
.footer-bottom,
.page-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.28);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a,
.mobile-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--text-soft);
    font-size: 15px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
    color: var(--amber-dark);
    background: var(--amber-soft);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--amber-soft);
    color: var(--amber-dark);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 12px;
    padding: 8px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.hero {
    position: relative;
    min-height: 70vh;
    overflow: hidden;
    background: var(--dark);
}

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

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

.hero-slide img {
    height: 100%;
    object-fit: cover;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.55) 52%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    z-index: 2;
}

.hero-copy {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    max-width: 690px;
    color: #ffffff;
}

.hero-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 72px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 650px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2.2vw, 22px);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.hero-meta span {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: #ffffff;
    backdrop-filter: blur(12px);
}

.hero-meta span:first-child {
    color: #fbbf24;
    background: rgba(217, 119, 6, 0.18);
}

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

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

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

.btn-primary {
    color: #ffffff;
    background: var(--amber);
    box-shadow: 0 14px 26px rgba(217, 119, 6, 0.28);
}

.btn-primary:hover {
    background: var(--amber-dark);
}

.btn-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
}

.hero-search {
    width: min(420px, 100%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.hero-search button {
    border: 0;
    border-radius: 10px;
    padding: 9px 14px;
    color: #ffffff;
    background: var(--amber);
    cursor: pointer;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.48);
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
    transition: background 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.68);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

.main-space {
    padding: 52px 0 72px;
}

.page-hero {
    padding: 58px 0 32px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 52%, #f1f5f9 100%);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--text-soft);
    font-size: 18px;
}

.section-block {
    margin-bottom: 58px;
}

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

.section-head h2 {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(26px, 4vw, 36px);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.section-head p {
    margin: 6px 0 0;
    color: var(--muted);
}

.section-link {
    color: var(--amber-dark);
    font-weight: 700;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--card);
    box-shadow: var(--shadow-soft);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

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

.poster-link img,
.large-card img,
.compact-poster img,
.rank-thumb img,
.detail-cover img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

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

.type-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 4px 9px;
    border-radius: 9px;
    color: #fbbf24;
    background: rgba(0, 0, 0, 0.68);
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.72) 100%);
    transition: opacity 0.25s ease;
}

.play-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--amber);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-shade,
.movie-card:hover .play-dot {
    opacity: 1;
}

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

.card-body {
    padding: 14px;
}

.card-body h3,
.compact-copy h3,
.rank-copy h3 {
    margin: 0 0 6px;
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.35;
}

.card-body h3 a:hover,
.compact-copy h3 a:hover,
.rank-copy h3 a:hover {
    color: var(--amber-dark);
}

.meta-line {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-row span {
    padding: 3px 8px;
    border-radius: 999px;
    color: #92400e;
    background: var(--amber-soft);
    font-size: 12px;
}

.large-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 24px;
}

.large-card {
    position: relative;
    min-height: 260px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--card);
    box-shadow: var(--shadow-soft);
}

.large-card:first-child {
    grid-row: span 2;
}

.large-card a,
.large-card img,
.large-shade {
    position: absolute;
    inset: 0;
}

.large-shade {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.88));
}

.large-play {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: var(--amber);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.large-copy {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    display: grid;
    gap: 8px;
    color: #ffffff;
}

.large-copy strong {
    font-size: 25px;
    line-height: 1.2;
}

.large-copy em,
.large-copy small {
    color: rgba(255, 255, 255, 0.84);
    font-style: normal;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding: 10px;
}

.compact-poster {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 2 / 3;
    background: #e5e7eb;
}

.compact-copy {
    min-width: 0;
    align-self: center;
}

.compact-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.strip-section {
    padding: 34px;
    border-radius: var(--radius-lg);
    background: #f3f4f6;
}

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 220px;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 0 18px;
    scroll-snap-type: x proximity;
}

.scroll-row .movie-card {
    scroll-snap-align: start;
}

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

.category-tile {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-tile strong {
    color: var(--dark);
    font-size: 22px;
}

.category-tile span {
    color: var(--muted);
}

.filter-panel {
    position: sticky;
    top: 84px;
    z-index: 18;
    display: grid;
    grid-template-columns: minmax(200px, 1fr) 160px 160px 160px;
    gap: 12px;
    margin: 0 0 26px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0 12px;
    outline: 0;
    background: #ffffff;
    color: var(--text-main);
}

.empty-result {
    display: none;
    padding: 32px;
    border-radius: var(--radius-md);
    background: #ffffff;
    color: var(--muted);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

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

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

.rank-card {
    display: grid;
    grid-template-columns: 70px 110px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 12px 18px 12px 12px;
}

.rank-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #b45309);
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.24);
}

.rank-thumb {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 2 / 3;
    background: #e5e7eb;
}

.rank-copy p {
    margin: 0;
    color: var(--muted);
}

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

.breadcrumb a {
    color: var(--amber-dark);
    font-weight: 700;
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 34px;
    align-items: stretch;
    margin-bottom: 34px;
}

.detail-cover {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #e5e7eb;
    box-shadow: var(--shadow);
}

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: var(--shadow-soft);
}

.detail-info h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.detail-intro {
    margin: 0 0 22px;
    color: var(--text-soft);
    font-size: 18px;
}

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

.detail-meta span {
    padding: 6px 12px;
    border-radius: 999px;
    color: #374151;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px var(--line);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.detail-tags span {
    padding: 6px 12px;
    border-radius: 999px;
    color: #92400e;
    background: #ffedd5;
}

.player-section {
    margin-bottom: 38px;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000000;
    box-shadow: var(--shadow);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.64));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.start-play {
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: var(--amber);
    font-size: 34px;
    cursor: pointer;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
    transition: transform 0.2s ease, background 0.2s ease;
}

.start-play:hover {
    transform: scale(1.08);
    background: var(--amber-dark);
}

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

.article-card,
.side-card {
    padding: 26px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.article-card + .article-card {
    margin-top: 20px;
}

.article-card h2,
.side-card h2 {
    margin: 0 0 14px;
    color: var(--dark);
    font-size: 26px;
}

.article-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: 17px;
}

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

.gradient-panel {
    padding: 34px;
    border-radius: var(--radius-lg);
    background: linear-gradient(90deg, #f3e8ff 0%, #fce7f3 50%, #ffedd5 100%);
}

.site-footer {
    margin-top: 40px;
    background: var(--dark-2);
    color: #cbd5e1;
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 34px;
    padding: 42px 0 26px;
}

.footer-brand {
    color: #ffffff;
}

.footer-inner p {
    max-width: 620px;
    margin: 14px 0 0;
    color: #9ca3af;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-content: start;
}

.footer-links a {
    color: #cbd5e1;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    color: #9ca3af;
    font-size: 14px;
}

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

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

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

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

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-nav.is-open {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        min-height: 660px;
    }

    .hero-control {
        display: none;
    }

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

    .large-grid,
    .compact-list,
    .detail-hero,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .large-card:first-child {
        grid-row: auto;
    }

    .filter-panel {
        position: static;
        grid-template-columns: 1fr 1fr;
    }

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

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

@media (max-width: 560px) {
    .header-inner,
    .footer-inner,
    .footer-bottom,
    .page-shell,
    .hero-copy {
        width: min(100% - 24px, 1180px);
    }

    .hero {
        min-height: 620px;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-search {
        width: 100%;
    }

    .main-space {
        padding-top: 34px;
    }

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

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

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

    .rank-card {
        grid-template-columns: 54px 78px minmax(0, 1fr);
        gap: 12px;
        padding: 10px;
    }

    .rank-index {
        width: 48px;
        height: 48px;
        border-radius: 14px;
        font-size: 18px;
    }

    .detail-info {
        padding: 24px;
    }

    .article-card,
    .side-card,
    .strip-section,
    .gradient-panel {
        padding: 22px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
