:root {
    --autumn-50: #fff7ed;
    --autumn-100: #ffedd5;
    --autumn-200: #fed7aa;
    --autumn-300: #fdba74;
    --autumn-400: #fb923c;
    --autumn-500: #f97316;
    --autumn-600: #ea580c;
    --autumn-700: #c2410c;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #f1f5f9;
    --surface: #ffffff;
    --shadow: 0 20px 45px rgba(146, 64, 14, 0.12);
}

* {
    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(--ink);
    background: linear-gradient(180deg, var(--autumn-50) 0%, #ffffff 36%, #f9fafb 100%);
    min-height: 100vh;
}

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;
}

.topline {
    background: linear-gradient(135deg, var(--autumn-500), var(--autumn-600), var(--autumn-400));
    color: #ffffff;
    text-align: center;
    font-size: 14px;
    padding: 8px 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 168px;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--autumn-500), var(--autumn-700));
    box-shadow: 0 10px 22px rgba(234, 88, 12, 0.28);
    transform: rotate(-4deg);
}

.logo:hover .logo-mark {
    transform: rotate(8deg) scale(1.04);
    transition: transform 0.2s ease;
}

.logo-title {
    display: block;
    color: var(--autumn-700);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.logo-subtitle {
    display: block;
    color: var(--autumn-500);
    font-size: 12px;
    margin-top: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    color: #374151;
    font-weight: 650;
}

.nav-links a {
    position: relative;
    padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--autumn-600);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 3px;
    border-radius: 999px;
    background: var(--autumn-500);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
    transform: scaleX(1);
}

.nav-search {
    position: relative;
    width: 250px;
}

.nav-search input,
.filter-input,
.filter-select {
    width: 100%;
    border: 2px solid var(--autumn-200);
    border-radius: 999px;
    outline: none;
    padding: 10px 16px;
    color: #374151;
    background: #ffffff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

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

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--autumn-600);
    background: var(--autumn-100);
}

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

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

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

.hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    background: #111827;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 24%, rgba(249, 115, 22, 0.45), transparent 30%), radial-gradient(circle at 78% 32%, rgba(251, 146, 60, 0.35), transparent 28%);
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-image {
    position: absolute;
    inset: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #7c2d12, #111827);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.72) 44%, rgba(17, 24, 39, 0.18) 100%), linear-gradient(0deg, rgba(17, 24, 39, 0.78) 0%, transparent 36%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: grid;
    align-items: center;
    padding: 72px 0 86px;
    color: #ffffff;
}

.hero-card {
    width: min(680px, 100%);
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    color: var(--autumn-100);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
    font-weight: 700;
}

.hero h1,
.hero h2 {
    margin: 22px 0 16px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.hero-lead {
    max-width: 630px;
    font-size: 18px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.86);
}

.hero-meta,
.detail-meta,
.card-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta {
    margin: 24px 0 30px;
}

.meta-pill,
.tag-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
}

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

.tag-pill {
    color: var(--autumn-700);
    background: var(--autumn-100);
}

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

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--autumn-500), var(--autumn-700));
    box-shadow: 0 15px 26px rgba(234, 88, 12, 0.32);
}

.btn-light {
    color: var(--autumn-700);
    background: #ffffff;
}

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

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

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

.hero-dot.is-active {
    background: var(--autumn-400);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.section {
    padding: 68px 0;
}

.section-panel {
    background: #ffffff;
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 42px;
}

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

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

.section-desc {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.grid {
    display: grid;
    gap: 24px;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 48px rgba(146, 64, 14, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--autumn-100), #ffffff);
}

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

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

.card-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(234, 88, 12, 0.92);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
}

.card-score {
    position: absolute;
    right: 12px;
    bottom: 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.76);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.card-body {
    padding: 18px;
}

.card-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.card-title a:hover {
    color: var(--autumn-600);
}

.card-meta {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.card-desc {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.featured-card {
    display: grid;
    grid-template-columns: 42% 58%;
    min-height: 250px;
}

.featured-card .poster-link img {
    height: 100%;
    aspect-ratio: auto;
}

.list-stack {
    display: grid;
    gap: 18px;
}

.list-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    align-items: stretch;
}

.list-card .poster-link img {
    height: 100%;
    aspect-ratio: auto;
}

.category-card {
    display: block;
    min-height: 190px;
    border-radius: 22px;
    padding: 26px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 42px rgba(146, 64, 14, 0.14);
}

.category-icon {
    font-size: 44px;
    line-height: 1;
    margin-bottom: 18px;
}

.category-card h2,
.category-card h3 {
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 21px;
}

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

.cta-panel {
    border-radius: 30px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--autumn-500), var(--autumn-700), var(--autumn-400));
    padding: 52px;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.cta-panel::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -80px;
    top: -110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.cta-panel h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 48px);
}

.cta-panel p,
.cta-panel .section-actions {
    position: relative;
    z-index: 1;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 92px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    border-radius: 20px;
    padding: 12px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.07);
}

.rank-number {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--autumn-500), var(--autumn-700));
    font-weight: 900;
}

.rank-thumb {
    overflow: hidden;
    border-radius: 14px;
    background: var(--autumn-100);
}

.rank-thumb img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

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

.rank-title a:hover {
    color: var(--autumn-600);
}

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

.page-hero {
    padding: 70px 0 44px;
    background: radial-gradient(circle at 16% 22%, var(--autumn-200), transparent 32%), linear-gradient(180deg, #ffffff, var(--autumn-50));
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 6vw, 58px);
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: var(--muted);
    line-height: 1.85;
    font-size: 17px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px;
    gap: 14px;
    margin: 0 0 28px;
}

.empty-message {
    display: none;
    border-radius: 18px;
    padding: 26px;
    color: var(--muted);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

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

.breadcrumb {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 22px;
}

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

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

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: var(--shadow);
    background: var(--autumn-100);
}

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

.detail-content h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

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

.detail-meta {
    margin: 18px 0 20px;
}

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

.player-panel {
    margin-top: 38px;
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    box-shadow: 0 28px 70px rgba(17, 24, 39, 0.26);
}

.player-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(194, 65, 12, 0.95));
}

.player-title {
    font-weight: 850;
}

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

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.2), rgba(0, 0, 0, 0.52));
    cursor: pointer;
    z-index: 3;
}

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

.play-button-core {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--autumn-700);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
    font-size: 32px;
    padding-left: 6px;
}

.content-panel {
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
    padding: 30px;
}

.content-panel h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.content-panel p {
    margin: 0;
    color: #4b5563;
    line-height: 2;
}

.footer {
    margin-top: 70px;
    color: #ffffff;
    background: #111827;
}

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

.footer h2,
.footer h3 {
    margin: 0 0 10px;
}

.footer p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.8;
    margin: 0;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.76);
}

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

.image-empty {
    opacity: 0;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

.float-card {
    animation: floatCard 6s ease-in-out infinite;
}

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

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

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

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

    .detail-shell {
        grid-template-columns: 260px minmax(0, 1fr);
    }
}

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

    .topline {
        font-size: 12px;
    }

    .navbar {
        padding: 12px 0;
    }

    .logo-title {
        font-size: 21px;
    }

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

    .hero h1,
    .hero h2 {
        font-size: clamp(36px, 12vw, 54px);
    }

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

    .section {
        padding: 44px 0;
    }

    .section-panel {
        padding: 24px;
        border-radius: 22px;
    }

    .section-head {
        display: block;
    }

    .section-actions {
        margin-top: 18px;
    }

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

    .featured-card,
    .list-card,
    .rank-item,
    .detail-shell,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .rank-item {
        align-items: start;
    }

    .rank-thumb {
        display: none;
    }

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

    .detail-poster {
        max-width: 280px;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

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

    .hero-actions .btn,
    .section-actions .btn {
        width: 100%;
    }

    .cta-panel {
        padding: 34px 22px;
    }
}
