:root {
    --bg: #fff7ed;
    --bg-soft: #ffedd5;
    --surface: #ffffff;
    --surface-strong: #fffbeb;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(251, 146, 60, 0.22);
    --orange: #f97316;
    --orange-deep: #ea580c;
    --amber: #f59e0b;
    --red: #dc2626;
    --shadow: 0 20px 50px rgba(124, 45, 18, 0.14);
    --shadow-soft: 0 12px 30px rgba(124, 45, 18, 0.1);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 48%, #fff7ed 100%);
    color: var(--text);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 247, 237, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(251, 146, 60, 0.22);
}

.navbar {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    font-size: 24px;
    color: var(--orange-deep);
    letter-spacing: -0.04em;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
    font-size: 15px;
    font-weight: 700;
}

.nav-links a {
    padding: 10px 14px;
    border-radius: 999px;
    transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    background: #ffffff;
    color: var(--orange-deep);
    box-shadow: var(--shadow-soft);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: var(--orange-deep);
    box-shadow: var(--shadow-soft);
}

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

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #ea580c, #f59e0b);
}

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

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(124, 45, 18, 0.9), rgba(124, 45, 18, 0.55), rgba(251, 146, 60, 0.08)), var(--hero-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.28), transparent 28%), radial-gradient(circle at 76% 18%, rgba(253, 186, 116, 0.26), transparent 25%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    padding: 88px 0 130px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 56px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    color: #ffedd5;
    font-size: 14px;
    font-weight: 800;
}

.hero h1 {
    margin: 0 0 14px;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 0.96;
    letter-spacing: -0.07em;
    text-shadow: 0 16px 40px rgba(124, 45, 18, 0.42);
}

.hero h2 {
    margin: 0 0 16px;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-text {
    max-width: 680px;
    margin: 0 0 28px;
    color: #ffedd5;
    font-size: clamp(17px, 2vw, 22px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 20px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: var(--orange-deep);
    font-weight: 900;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow);
}

.btn-primary {
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: #ffffff;
}

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

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

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #ffedd5;
    color: #9a3412;
    font-size: 13px;
    font-weight: 800;
}

.hero .pill {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(124, 45, 18, 0.48);
    transform: rotate(3deg);
    border: 8px solid rgba(255, 255, 255, 0.22);
}

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

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 52px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
    transition: 0.25s ease;
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 24px;
    backdrop-filter: blur(12px);
}

.hero-arrow:hover {
    background: #ffffff;
    color: var(--orange-deep);
}

.hero-dot {
    width: 36px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
}

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

.hero-wave {
    position: absolute;
    z-index: 3;
    left: 0;
    right: 0;
    bottom: -1px;
    color: var(--bg);
}

.section {
    padding: 74px 0;
}

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

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

.section-kicker {
    margin: 0 0 8px;
    color: var(--orange-deep);
    font-weight: 900;
}

.section-title {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.section-desc {
    margin: 10px 0 0;
    color: var(--muted);
    max-width: 720px;
}

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

.category-card {
    display: block;
    min-height: 160px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    box-shadow: var(--shadow-soft);
    transition: 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: var(--shadow);
}

.category-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 22px;
    color: #9a3412;
}

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

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid rgba(251, 146, 60, 0.18);
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
    transition: 0.25s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fdba74);
}

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

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

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #dc2626);
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 10px 18px rgba(124, 45, 18, 0.25);
}

.rank-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.92);
    color: var(--red);
    font-weight: 900;
    box-shadow: var(--shadow-soft);
}

.play-mark {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.92);
    color: var(--orange-deep);
    box-shadow: var(--shadow-soft);
}

.card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.card-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    color: var(--text);
}

.card-title a:hover {
    color: var(--orange-deep);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

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

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

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

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

.rank-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

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

.rank-item h3 {
    margin: 0;
    font-size: 17px;
}

.rank-item p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px 160px;
    gap: 12px;
    margin: 26px 0 32px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(251, 146, 60, 0.26);
    border-radius: 999px;
    padding: 0 16px;
    background: #ffffff;
    color: var(--text);
    outline: none;
}

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

.page-hero {
    padding: 70px 0 54px;
    background: radial-gradient(circle at 18% 20%, rgba(249, 115, 22, 0.24), transparent 26%), linear-gradient(135deg, #fff7ed, #ffffff 60%, #ffedd5);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1.04;
    letter-spacing: -0.07em;
}

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

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

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

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #7c2d12, #ea580c);
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(67, 20, 7, 0.94), rgba(124, 45, 18, 0.72), rgba(251, 146, 60, 0.2)), var(--detail-image);
    background-size: cover;
    background-position: center;
    filter: saturate(1.08);
    transform: scale(1.04);
}

.detail-layout {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 66px 0;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 46px;
    align-items: center;
}

.detail-poster {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    border: 8px solid rgba(255, 255, 255, 0.18);
}

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

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.detail-one {
    max-width: 820px;
    margin: 0 0 22px;
    color: #ffedd5;
    font-size: 20px;
}

.detail-info .pill,
.detail-info .tag {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.player-section {
    padding: 64px 0 36px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    box-shadow: 0 28px 80px rgba(17, 24, 39, 0.34);
    aspect-ratio: 16 / 9;
    cursor: pointer;
}

.movie-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-cover {
    position: absolute;
    inset: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.36), rgba(0, 0, 0, 0.78));
    color: #ffffff;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
    width: 82px;
    height: 82px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    color: #ffffff;
    font-size: 38px;
    box-shadow: 0 18px 36px rgba(249, 115, 22, 0.36);
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.78);
    color: #ffffff;
    display: none;
}

.player-message.is-visible {
    display: block;
}

.article-panel {
    padding: 32px;
    border-radius: 30px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.article-panel h2 {
    margin: 0 0 14px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.article-panel p {
    margin: 0 0 18px;
    color: #4b5563;
    font-size: 17px;
}

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

.link-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 30px;
}

.site-footer {
    margin-top: 72px;
    padding: 42px 0;
    background: #431407;
    color: #ffedd5;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-inner strong {
    display: block;
    color: #ffffff;
    font-size: 22px;
}

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

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

.hide-empty:empty {
    display: none;
}

@media (max-width: 1024px) {
    .hero-inner,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .detail-poster {
        max-width: 320px;
    }

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

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

    .rank-list,
    .two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .navbar {
        min-height: 64px;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 72px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border-radius: 24px;
        background: #ffffff;
        box-shadow: var(--shadow);
    }

    .nav-links.is-open {
        display: flex;
    }

    .hero,
    .hero-inner {
        min-height: 760px;
    }

    .hero-inner {
        padding-top: 58px;
        gap: 28px;
    }

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

    .hero h2 {
        font-size: 30px;
    }

    .hero-controls {
        bottom: 28px;
    }

    .section-head,
    .footer-inner,
    .link-row {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

    .filter-bar {
        grid-template-columns: 1fr;
    }

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

    .rank-item .btn {
        grid-column: 1 / -1;
    }

    .article-panel {
        padding: 24px;
    }
}

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

    .logo {
        font-size: 20px;
    }
}
