* {
    box-sizing: border-box;
}

:root {
    --page-bg: #f9fafb;
    --card-bg: #ffffff;
    --text-main: #111827;
    --text-soft: #4b5563;
    --text-light: #6b7280;
    --brand: #ea580c;
    --brand-strong: #dc2626;
    --brand-soft: #fff7ed;
    --border: #e5e7eb;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-soft: 0 10px 25px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

body {
    margin: 0;
    color: var(--text-main);
    background: var(--page-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(229, 231, 235, 0.95);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 14px 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    color: var(--text-main);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    box-shadow: 0 10px 20px rgba(234, 88, 12, 0.28);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-link {
    padding: 10px 12px;
    color: #374151;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 650;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--brand);
    background: var(--brand-soft);
}

.header-search {
    display: flex;
    align-items: center;
    min-width: 220px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #ffffff;
    overflow: hidden;
}

.header-search input {
    width: 100%;
    border: 0;
    outline: 0;
    padding: 10px 14px;
    color: var(--text-main);
    background: transparent;
}

.header-search button {
    border: 0;
    color: #ffffff;
    background: var(--brand);
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    border: 0;
    color: var(--text-main);
    background: transparent;
    font-size: 26px;
    cursor: pointer;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.hero-slide {
    display: none;
    min-height: 640px;
    position: relative;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.36;
}

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

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(127, 29, 29, 0.74), rgba(234, 88, 12, 0.42));
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 360px;
    gap: 54px;
    align-items: center;
    min-height: 640px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 20px 90px;
}

.hero-kicker {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 18px;
    padding: 8px 13px;
    color: #fed7aa;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
}

.hero-title {
    max-width: 860px;
    margin: 0 0 20px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-subtitle {
    max-width: 740px;
    margin: 0 0 30px;
    color: #fff7ed;
    font-size: 19px;
}

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

.btn-primary,
.btn-secondary,
.btn-light,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 20px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.25);
}

.btn-secondary {
    color: var(--brand);
    background: var(--brand-soft);
}

.btn-light {
    color: var(--brand);
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(255, 255, 255, 0.18);
}

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

.btn-primary:hover,
.btn-secondary:hover,
.btn-light:hover,
.btn-ghost:hover {
    transform: translateY(-2px);
}

.hero-poster-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(10px);
}

.hero-poster-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
}

.hero-poster-info {
    padding: 20px;
}

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

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

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

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

.section {
    padding: 58px 0;
}

.section-tight {
    padding: 34px 0 58px;
}

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

.section-title {
    margin: 0 0 8px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.section-desc {
    max-width: 760px;
    margin: 0;
    color: var(--text-soft);
}

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

.feature-card,
.category-card,
.movie-card,
.rank-card,
.info-panel,
.related-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card-bg);
    box-shadow: var(--shadow-soft);
}

.feature-card {
    padding: 24px;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 14px;
    font-size: 22px;
}

.feature-card h3,
.category-card h2,
.info-panel h2,
.related-panel h2 {
    margin: 0 0 10px;
}

.feature-card p,
.category-card p,
.info-panel p,
.related-panel p {
    margin: 0;
    color: var(--text-soft);
}

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

.category-card {
    display: flex;
    flex-direction: column;
    min-height: 210px;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover,
.movie-card:hover,
.rank-card:hover {
    transform: translateY(-4px);
    border-color: rgba(234, 88, 12, 0.42);
    box-shadow: var(--shadow);
}

.category-card .category-link {
    margin-top: auto;
    color: var(--brand);
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fecaca);
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    transition: transform 0.32s ease;
}

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

.movie-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    padding: 5px 10px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.74);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.movie-body {
    padding: 15px;
}

.movie-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 52px;
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    color: var(--text-light);
    font-size: 13px;
}

.movie-desc {
    display: -webkit-box;
    overflow: hidden;
    min-height: 68px;
    margin: 0 0 14px;
    color: var(--text-soft);
    font-size: 14px;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

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

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    color: #9a3412;
    background: var(--brand-soft);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #ea580c 54%, #dc2626);
}

.page-hero .container {
    padding-top: 66px;
    padding-bottom: 66px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.page-hero h1 {
    max-width: 920px;
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.12;
}

.page-hero p {
    max-width: 860px;
    margin: 0;
    color: #fff7ed;
    font-size: 18px;
}

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

.player-card {
    overflow: hidden;
    border-radius: 24px;
    background: #020617;
    box-shadow: 0 25px 55px rgba(2, 6, 23, 0.28);
}

.player-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(234, 88, 12, 0.18), rgba(0, 0, 0, 0.58));
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.play-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.play-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    padding-left: 6px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    box-shadow: 0 20px 40px rgba(234, 88, 12, 0.36);
    font-size: 34px;
}

.player-caption {
    padding: 20px 22px 24px;
    color: #ffffff;
}

.player-caption h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.player-caption p {
    margin: 0;
    color: #d1d5db;
}

.info-panel,
.related-panel {
    padding: 24px;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.info-list div {
    padding: 12px;
    border-radius: 14px;
    background: #f9fafb;
}

.info-list span {
    display: block;
    color: var(--text-light);
    font-size: 12px;
}

.info-list strong {
    display: block;
    color: var(--text-main);
}

.detail-cover {
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #fed7aa, #fecaca);
}

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

.text-block {
    margin-top: 24px;
}

.text-block h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.text-block p {
    margin: 0;
    color: var(--text-soft);
}

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

.related-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
}

.related-item img {
    width: 72px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
    background: #f3f4f6;
}

.related-item strong {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-item span {
    color: var(--text-light);
    font-size: 12px;
}

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

.rank-card {
    display: grid;
    grid-template-columns: 68px 88px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-number {
    color: var(--brand);
    font-size: 28px;
    font-weight: 900;
    text-align: center;
}

.rank-cover img {
    width: 88px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
    background: #f3f4f6;
}

.rank-info h2 {
    margin: 0 0 6px;
    font-size: 19px;
}

.rank-info p {
    margin: 0;
    color: var(--text-soft);
}

.search-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 12px;
    margin-bottom: 30px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.search-panel input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 16px;
    outline: none;
}

.search-panel button {
    min-height: 48px;
    border: 0;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), var(--brand-strong));
    font-weight: 800;
    cursor: pointer;
}

.index-list {
    columns: 4 240px;
    column-gap: 28px;
}

.index-list a {
    display: block;
    break-inside: avoid;
    padding: 8px 0;
    color: #374151;
    border-bottom: 1px dashed #e5e7eb;
}

.index-list a:hover {
    color: var(--brand);
}

.site-footer {
    color: #d1d5db;
    background: #111827;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 28px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 46px 20px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 850;
}

.footer-col h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 16px;
}

.footer-col a {
    display: block;
    margin: 8px 0;
    color: #d1d5db;
}

.footer-col a:hover {
    color: #fb923c;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 20px 28px;
    color: #9ca3af;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
}

[data-search-card].is-hidden,
.lazy-image.is-hidden {
    display: none;
}

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

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

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

@media (max-width: 860px) {
    .header-inner {
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .main-nav {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        margin-left: 0;
        padding-top: 10px;
    }

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

    .header-search {
        order: 3;
        width: 100%;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 26px;
        padding-top: 58px;
    }

    .hero-poster-card {
        max-width: 280px;
    }

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

    .rank-card {
        grid-template-columns: 46px 72px minmax(0, 1fr);
    }

    .rank-card .btn-secondary {
        grid-column: 2 / -1;
        width: 100%;
    }

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

@media (max-width: 620px) {
    .container {
        padding: 0 14px;
    }

    .hero-carousel,
    .hero-slide,
    .hero-inner {
        min-height: 560px;
    }

    .hero-title {
        font-size: 36px;
    }

    .section-header {
        display: block;
    }

    .feature-grid,
    .category-grid,
    .movie-grid,
    .related-list {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }

    .movie-title {
        font-size: 15px;
    }

    .movie-desc {
        display: none;
    }

    .page-hero .container {
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .info-list {
        grid-template-columns: 1fr;
    }

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

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