* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #1f2937;
    background: #f8fafc;
    line-height: 1.6;
}

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

img {
    display: block;
    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: 100;
    color: #ffffff;
    background: linear-gradient(90deg, #f97316 0%, #f59e0b 48%, #eab308 100%);
    box-shadow: 0 16px 40px rgba(249, 115, 22, 0.22);
}

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

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

.brand-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #f97316;
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

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

.site-nav a {
    opacity: 0.92;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.nav-toggle {
    display: none;
    color: #ffffff;
    border: 0;
    background: transparent;
    font-size: 28px;
}

.hero-carousel {
    position: relative;
    height: clamp(520px, 70vh, 720px);
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

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

.hero-slide img,
.detail-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.58) 54%, rgba(0, 0, 0, 0.78));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
}

.hero-kicker,
.section-kicker {
    margin: 0 0 12px;
    color: #f97316;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 980px;
    margin: 0;
    font-size: clamp(44px, 7vw, 82px);
    line-height: 1.05;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.hero-content p {
    max-width: 760px;
    margin: 22px auto 0;
    font-size: clamp(18px, 2.4vw, 26px);
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.38);
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 28px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, #f97316, #f59e0b);
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.35);
}

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

.hero-tags,
.detail-tags,
.tag-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.tag-line span {
    border-radius: 999px;
    padding: 5px 10px;
    color: #9a3412;
    background: #ffedd5;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

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

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

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

.section-block {
    padding: 58px 0;
}

.intro-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 28px;
    align-items: center;
}

.intro-panel h2,
.section-title-row h2,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
}

.intro-panel p,
.page-hero p {
    margin: 12px 0 0;
    color: #4b5563;
}

.site-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 12px;
    padding: 14px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.inline-search {
    max-width: 720px;
    grid-template-columns: 1fr;
    margin-top: 26px;
}

.site-search input,
.site-search select {
    min-height: 48px;
    width: 100%;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    padding: 0 16px;
    color: #111827;
    background: #fff7ed;
    outline: 0;
}

.site-search input:focus,
.site-search select:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

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

.text-link {
    color: #ea580c;
    font-weight: 800;
}

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

.category-pill,
.category-card a {
    display: block;
    min-height: 150px;
    border-radius: 24px;
    padding: 22px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-pill:hover,
.category-card a:hover,
.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.14);
}

.category-pill strong,
.category-card h2 {
    display: block;
    margin: 0 0 8px;
    color: #111827;
    font-size: 20px;
}

.category-pill span,
.category-card p,
.category-sample a {
    display: block;
    color: #6b7280;
    font-size: 14px;
}

.category-sample {
    display: grid;
    gap: 4px;
    margin: 14px 0;
}

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

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

.warm-section {
    background: linear-gradient(135deg, #fff7ed, #fef3c7);
}

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card.is-hidden,
.rank-item.is-hidden {
    display: none;
}

.poster-link {
    position: relative;
    display: block;
    height: 330px;
    overflow: hidden;
    background: #111827;
}

.movie-card.compact .poster-link {
    height: 230px;
}

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

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

.poster-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    border-radius: 999px;
    padding: 6px 12px;
    color: #ffffff;
    background: #f97316;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.35);
}

.movie-card-body {
    padding: 18px;
}

.movie-title {
    display: -webkit-box;
    min-height: 54px;
    overflow: hidden;
    color: #111827;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: #ea580c;
}

.movie-meta,
.movie-desc {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.movie-desc {
    display: -webkit-box;
    min-height: 44px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.tag-line {
    justify-content: flex-start;
}

.page-main {
    min-height: 70vh;
}

.page-hero {
    margin-top: 44px;
    border-radius: 32px;
    padding: 56px;
    background: linear-gradient(135deg, #fff7ed, #ffffff 48%, #fef3c7);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.08);
}

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

.detail-bg,
.detail-hero-mask {
    position: absolute;
    inset: 0;
}

.detail-hero-mask {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.32));
}

.detail-hero-content {
    position: relative;
    z-index: 2;
    padding: 34px 0 64px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 14px;
}

.detail-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 44px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.36);
}

.detail-poster img {
    height: 460px;
    object-fit: cover;
}

.detail-info h1 {
    color: #ffffff;
    font-size: clamp(40px, 6vw, 72px);
}

.detail-one-line {
    max-width: 760px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 21px;
}

.detail-meta,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.detail-meta span {
    border-radius: 999px;
    padding: 6px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    font-weight: 700;
}

.detail-tags {
    justify-content: flex-start;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
}

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

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.54));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-start span {
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(90deg, #f97316, #f59e0b);
    box-shadow: 0 18px 44px rgba(249, 115, 22, 0.38);
    font-size: 34px;
}

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

.detail-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.content-card {
    border-radius: 28px;
    padding: 30px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.content-card h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 26px;
}

.content-card p {
    margin: 0;
    color: #4b5563;
    font-size: 16px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 54px 96px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    border-radius: 22px;
    padding: 14px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
}

.rank-no {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(90deg, #f97316, #f59e0b);
    font-weight: 900;
}

.rank-cover img {
    height: 120px;
    border-radius: 16px;
    object-fit: cover;
}

.rank-title {
    color: #111827;
    font-size: 20px;
    font-weight: 900;
}

.rank-info p {
    margin: 6px 0 0;
    color: #6b7280;
}

.rank-link {
    border-radius: 999px;
    padding: 10px 18px;
    color: #ffffff;
    background: #f97316;
    font-weight: 800;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
    padding: 46px 0;
}

.footer-brand {
    color: #ffffff;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 18px;
}

.site-footer p,
.site-footer li {
    margin: 0;
    color: #d1d5db;
    font-size: 14px;
}

.site-footer ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a:hover {
    color: #f97316;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
}

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

    .feature-grid,
    .detail-content,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 12px;
        right: 12px;
        top: 66px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow: hidden;
        border-radius: 0 0 22px 22px;
        background: #ea580c;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.16);
    }

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

    .site-nav a {
        padding: 14px 18px;
    }

    .hero-carousel {
        height: 610px;
    }

    .hero-content {
        align-items: flex-start;
        text-align: left;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .hero-tags {
        justify-content: flex-start;
    }

    .intro-panel,
    .site-search,
    .feature-grid,
    .category-grid,
    .category-page-grid,
    .movie-grid,
    .detail-layout,
    .detail-content,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .page-hero {
        padding: 34px 22px;
    }

    .detail-hero {
        min-height: auto;
    }

    .detail-hero-content {
        padding-bottom: 42px;
    }

    .detail-poster img {
        height: auto;
    }

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

    .rank-link {
        grid-column: 2 / 4;
        text-align: center;
    }

    .poster-link,
    .movie-card.compact .poster-link {
        height: 300px;
    }
}
