html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #1f2937;
    background: linear-gradient(180deg, #fff7ed 0%, #fffbeb 42%, #ffffff 100%);
}

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

img {
    max-width: 100%;
}

.site-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 5%, rgba(251, 191, 36, 0.25), transparent 28rem),
        radial-gradient(circle at 95% 12%, rgba(249, 115, 22, 0.18), transparent 24rem),
        linear-gradient(180deg, #fff7ed 0%, #fffbeb 48%, #ffffff 100%);
}

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

.top-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #f59e0b 0%, #facc15 48%, #f97316 100%);
    box-shadow: 0 18px 45px rgba(245, 158, 11, 0.28);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    color: #f59e0b;
    background: #ffffff;
    box-shadow: 0 12px 25px rgba(146, 64, 14, 0.18);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-weight: 700;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0.94;
    transition: opacity 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    padding: 0 0 18px;
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    font-weight: 700;
}

.hero {
    position: relative;
    min-height: 610px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(100deg, #d97706 0%, #f97316 46%, #facc15 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(42px);
    opacity: 0.28;
    animation: softPulse 5.5s ease-in-out infinite alternate;
}

.hero::before {
    top: 38px;
    left: 4%;
    width: 280px;
    height: 280px;
    background: #fde68a;
}

.hero::after {
    right: 5%;
    bottom: 32px;
    width: 380px;
    height: 380px;
    background: #fb923c;
    animation-delay: 1.1s;
}

@keyframes softPulse {
    from {
        transform: scale(0.95);
    }
    to {
        transform: scale(1.08);
    }
}

.hero-slide {
    display: none;
    position: relative;
    z-index: 2;
    min-height: 610px;
    align-items: center;
}

.hero-slide.is-active {
    display: flex;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.72fr);
    gap: 46px;
    align-items: center;
    padding: 74px 0 92px;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    margin-bottom: 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    color: #92400e;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 14px 35px rgba(120, 53, 15, 0.14);
}

.hero h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.055em;
    text-shadow: 0 20px 60px rgba(146, 64, 14, 0.2);
}

.hero-subtitle {
    max-width: 720px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.8;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.button:hover {
    transform: translateY(-2px) scale(1.02);
}

.button-primary {
    color: #d97706;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(146, 64, 14, 0.2);
}

.button-amber {
    color: #ffffff;
    background: #d97706;
    box-shadow: 0 14px 34px rgba(146, 64, 14, 0.22);
}

.button-ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.17);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

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

.tag-pill,
.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #92400e;
    background: #fffbeb;
}

.hero-poster-wrap {
    position: relative;
}

.hero-poster-card {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 34px 78px rgba(120, 53, 15, 0.26);
    transform: rotate(2deg);
}

.hero-poster-card img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-poster-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 55%);
}

.hero-poster-info {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
    z-index: 2;
}

.hero-poster-info strong {
    display: block;
    margin-bottom: 4px;
    font-size: 24px;
}

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

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

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

.hero-search {
    display: flex;
    width: min(100%, 560px);
    padding: 7px;
    margin-top: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 22px 48px rgba(146, 64, 14, 0.2);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    padding: 0 18px;
    color: #78350f;
    font-size: 16px;
    background: transparent;
    outline: none;
}

.section {
    padding: 62px 0;
}

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

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

.section-kicker {
    margin: 0 0 8px;
    color: #d97706;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.16;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.section-desc {
    max-width: 700px;
    margin: 10px 0 0;
    color: #6b7280;
    line-height: 1.8;
}

.stat-panel {
    padding: 34px;
    border-radius: 34px;
    background: #ffffff;
    box-shadow: 0 22px 65px rgba(120, 53, 15, 0.1);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    text-align: center;
}

.stat-item strong {
    display: block;
    margin-bottom: 7px;
    color: #d97706;
    font-size: 30px;
    font-weight: 900;
}

.stat-item span {
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(120, 53, 15, 0.1);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 24px 55px rgba(120, 53, 15, 0.18);
}

.poster {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f59e0b, #f97316);
}

.movie-card .poster img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 420ms ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.2));
    transition: opacity 220ms ease;
}

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

.play-circle {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 999px;
    color: #ffffff;
    background: #f59e0b;
    box-shadow: 0 20px 38px rgba(0, 0, 0, 0.26);
}

.card-duration {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(217, 119, 6, 0.95);
}

.card-body {
    padding: 16px;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.card-type {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.card-rating {
    color: #78350f;
    font-size: 13px;
    font-weight: 900;
}

.card-title {
    margin: 0 0 8px;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
    transition: color 160ms ease;
}

.movie-card:hover .card-title {
    color: #d97706;
}

.card-text {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-foot {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: #8b5cf6;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

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

.horizontal-card {
    display: grid;
    grid-template-columns: 138px minmax(0, 1fr);
    overflow: hidden;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(120, 53, 15, 0.1);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.horizontal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(120, 53, 15, 0.15);
}

.horizontal-card img {
    width: 100%;
    height: 100%;
    min-height: 174px;
    object-fit: cover;
}

.horizontal-body {
    padding: 18px;
}

.horizontal-body h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
}

.horizontal-body p {
    margin: 0 0 14px;
    color: #6b7280;
    line-height: 1.7;
}

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

.category-tile {
    position: relative;
    min-height: 158px;
    overflow: hidden;
    padding: 22px;
    border-radius: 26px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 18px 38px rgba(217, 119, 6, 0.18);
}

.category-tile::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -50px;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.category-tile h3 {
    position: relative;
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 900;
}

.category-tile p {
    position: relative;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    line-height: 1.7;
}

.rank-panel {
    padding: 28px;
    border-radius: 30px;
    color: #ffffff;
    background: linear-gradient(100deg, #f59e0b, #f97316 55%, #facc15);
    box-shadow: 0 24px 58px rgba(217, 119, 6, 0.22);
}

.rank-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-item a {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    transition: background-color 180ms ease, transform 180ms ease;
}

.rank-item a:hover {
    transform: translateX(4px);
    background: rgba(255, 255, 255, 0.22);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    color: #d97706;
    font-weight: 900;
    background: #ffffff;
}

.rank-title {
    font-weight: 900;
}

.rank-meta {
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
}

.page-hero {
    padding: 72px 0 46px;
    color: #ffffff;
    background: linear-gradient(100deg, #d97706, #f97316 50%, #facc15);
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.84);
    font-weight: 700;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px 180px;
    gap: 14px;
    padding: 20px;
    margin-bottom: 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(120, 53, 15, 0.1);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    padding: 0 14px;
    color: #78350f;
    font-size: 15px;
    background: #fff7ed;
    outline: none;
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 28px 60px rgba(120, 53, 15, 0.16);
}

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

.detail-content h2 {
    margin: 0 0 18px;
    color: #111827;
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
}

.content-card {
    padding: 26px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(120, 53, 15, 0.09);
}

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

.content-card h2,
.content-card h3 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 24px;
    font-weight: 900;
}

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

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

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

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

.player-area 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: linear-gradient(0deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.24));
    cursor: pointer;
}

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

.play-button-core {
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 20px 52px rgba(245, 158, 11, 0.38);
}

.play-label {
    margin-top: 14px;
    font-size: 18px;
    font-weight: 900;
}

.footer {
    margin-top: 70px;
    padding: 42px 0;
    color: #ffffff;
    background: linear-gradient(90deg, #92400e, #d97706 55%, #f97316);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
}

.footer p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.78);
}

.footer-links {
    display: flex;
    gap: 18px;
    font-weight: 800;
}

.hidden-by-filter {
    display: none !important;
}

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

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

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

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

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

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

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

    .hero-poster-wrap {
        max-width: 360px;
    }

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

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

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

    .section-head {
        display: block;
    }

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

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

    .hero,
    .hero-slide {
        min-height: auto;
    }

    .hero-grid {
        padding: 42px 0 86px;
    }

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

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

    .hero-search {
        display: grid;
        gap: 8px;
        border-radius: 22px;
    }

    .hero-search input {
        min-height: 42px;
    }

    .hero-search .button {
        width: 100%;
    }

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

    .horizontal-card {
        grid-template-columns: 112px minmax(0, 1fr);
    }

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

    .rank-score {
        display: none;
    }

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