* {
    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: #111827;
    background: #f9fafb;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 48%, #0f172a 100%);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.24);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 18px;
    color: #ffffff;
    background: linear-gradient(135deg, #dc2626, #f97316);
    box-shadow: 0 12px 30px rgba(239, 68, 68, 0.36);
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-name {
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #f87171, #fb923c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    font-size: 12px;
    color: #9ca3af;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
    font-size: 15px;
    white-space: nowrap;
}

.desktop-nav a,
.mobile-panel a {
    color: #e5e7eb;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: #f87171;
}

.header-search {
    display: flex;
    align-items: center;
    width: 280px;
    background: rgba(51, 65, 85, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    overflow: hidden;
}

.header-search input {
    width: 100%;
    min-width: 0;
    padding: 10px 14px;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
}


.header-search button {
    padding: 10px 16px;
    color: #ffffff;
    border: 0;
    cursor: pointer;
    background: rgba(239, 68, 68, 0.78);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    cursor: pointer;
    background: rgba(51, 65, 85, 0.9);
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    gap: 12px;
    flex-wrap: wrap;
}

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

.hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 18%, rgba(248, 113, 113, 0.42), transparent 30%),
        radial-gradient(circle at 85% 10%, rgba(251, 146, 60, 0.42), transparent 28%),
        linear-gradient(135deg, #dc2626 0%, #f97316 50%, #f59e0b 100%);
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 90px;
    background: linear-gradient(0deg, #f9fafb, rgba(249, 250, 251, 0));
}

.hero-inner {
    position: relative;
    z-index: 1;
    min-height: 560px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 40px;
    align-items: center;
    padding: 86px 0 108px;
}

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

.hero-copy .eyebrow {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.24);
}

.hero h1 {
    margin: 18px 0 22px;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 670px;
    margin: 0 0 30px;
    font-size: clamp(18px, 2.2vw, 25px);
    color: #fff7ed;
}

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

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

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

.btn-primary {
    color: #dc2626;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(127, 29, 29, 0.24);
}

.btn-primary:hover {
    background: #fff7ed;
}

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

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

.hero-channel-links a {
    padding: 8px 13px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.14);
}

.hero-stage {
    position: relative;
    min-height: 430px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: hidden;
    border-radius: 30px;
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 34px 72px rgba(127, 29, 29, 0.36);
    opacity: 0;
    transform: translateX(18px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    min-height: 265px;
    object-fit: cover;
}

.hero-slide-body {
    position: absolute;
    inset: auto 0 0 0;
    padding: 120px 26px 26px;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0));
}

.hero-slide-body h2 {
    margin: 0 0 10px;
    font-size: 26px;
}

.hero-slide-body p {
    display: -webkit-box;
    margin: 0 0 16px;
    overflow: hidden;
    color: #e5e7eb;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hero-slide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.hero-slide-meta span,
.card-tags span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 12px;
    color: #7f1d1d;
    background: #fee2e2;
}

.hero-dots {
    position: absolute;
    right: 22px;
    bottom: 22px;
    z-index: 3;
    display: flex;
    gap: 8px;
}

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

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

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

.page-hero .site-container {
    padding: 66px 0;
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 54px);
}

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

.main-section {
    padding: 64px 0;
}

.main-section.alt {
    background: linear-gradient(90deg, #fff7ed, #fffbeb);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 30px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border: 1px solid #fecaca;
    border-radius: 999px;
    color: #dc2626;
    background: #fef2f2;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.section-heading h2 {
    margin: 10px 0 0;
    color: #1f2937;
    font-size: clamp(28px, 3vw, 38px);
}

.section-heading p {
    max-width: 650px;
    margin: 10px 0 0;
    color: #6b7280;
}

.section-more {
    flex-shrink: 0;
    padding: 10px 16px;
    border-radius: 999px;
    color: #dc2626;
    background: #fee2e2;
    font-weight: 800;
}

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

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

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

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

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

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #111827;
}

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

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

.poster-shade {
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.76), transparent);
}

.poster-type,
.poster-year,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: #ffffff;
    background: rgba(220, 38, 38, 0.9);
}

.poster-type {
    right: 10px;
    top: 10px;
}

.poster-year {
    left: 10px;
    top: 10px;
    background: rgba(15, 23, 42, 0.72);
}

.rank-badge {
    left: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    justify-content: center;
    padding: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #f97316, #dc2626);
}

.card-body {
    padding: 16px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 11px;
}

.card-body h3 {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 9px;
    overflow: hidden;
    font-size: 18px;
    line-height: 1.35;
    color: #1f2937;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-body h3 a:hover {
    color: #dc2626;
}

.card-body p {
    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-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #6b7280;
    font-size: 13px;
}

.movie-card.large .poster-link {
    aspect-ratio: 16 / 10;
}

.movie-card.large .card-body h3 {
    min-height: auto;
    font-size: 22px;
}

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

.movie-card.horizontal .poster-link {
    aspect-ratio: auto;
    min-height: 235px;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 190px;
    padding: 24px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #334155);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #dc2626, #f97316);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #1d4ed8, #06b6d4);
}

.category-card h2,
.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-size: 25px;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.7;
}

.filter-box {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 170px 170px 150px;
    gap: 12px;
    padding: 18px;
    margin-bottom: 30px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.filter-box input,
.filter-box select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    outline: 0;
    background: #f9fafb;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 28px 0;
    color: #6b7280;
    font-size: 14px;
}

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) 360px;
    gap: 30px;
    align-items: start;
    padding-bottom: 64px;
}

.detail-main,
.detail-side,
.info-panel {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.detail-main {
    overflow: hidden;
}

.player-frame {
    position: relative;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
    background: #020617;
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.45), rgba(15, 23, 42, 0.18));
}

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

.play-cover span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 34px;
    padding-left: 6px;
    background: linear-gradient(135deg, #dc2626, #f97316);
    box-shadow: 0 20px 50px rgba(220, 38, 38, 0.36);
}

.detail-content {
    padding: 28px;
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.detail-content h1 {
    margin: 0 0 16px;
    color: #111827;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 22px;
    color: #4b5563;
    border-bottom: 1px solid #e5e7eb;
}

.detail-meta span {
    padding: 8px 11px;
    border-radius: 12px;
    background: #f3f4f6;
}

.prose-block h2 {
    margin: 24px 0 10px;
    color: #1f2937;
    font-size: 24px;
}

.prose-block p {
    margin: 0 0 16px;
    color: #374151;
    line-height: 1.9;
    font-size: 16px;
}

.review-box {
    margin-top: 12px;
    padding: 20px;
    border-radius: 18px;
    color: #374151;
    background: linear-gradient(90deg, #fef2f2, #fff7ed);
}

.detail-side {
    position: sticky;
    top: 100px;
    padding: 20px;
}

.detail-side h2 {
    margin: 0 0 18px;
    font-size: 22px;
}

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

.related-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.related-item img {
    width: 92px;
    height: 116px;
    object-fit: cover;
    border-radius: 14px;
}

.related-item h3 {
    display: -webkit-box;
    margin: 0 0 8px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.related-item p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

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

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

.rank-num {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #dc2626, #f97316);
}

.rank-row img {
    width: 78px;
    height: 104px;
    object-fit: cover;
    border-radius: 14px;
}

.rank-row h2,
.rank-row h3 {
    margin: 0 0 8px;
    font-size: 19px;
}

.rank-row p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #6b7280;
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-action {
    padding: 10px 14px;
    border-radius: 999px;
    color: #dc2626;
    background: #fee2e2;
    font-weight: 800;
}

.empty-state {
    display: none;
    padding: 48px 20px;
    text-align: center;
    color: #6b7280;
    border-radius: 22px;
    background: #ffffff;
}

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

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.7fr 0.8fr;
    gap: 34px;
    padding: 46px 0;
}

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

.site-footer p {
    max-width: 560px;
    margin: 0;
    line-height: 1.8;
    color: #9ca3af;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

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

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

.footer-bottom {
    padding: 18px 16px;
    text-align: center;
    color: #9ca3af;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

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

    .menu-button {
        display: block;
    }

    .header-search {
        margin-left: auto;
    }

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

    .detail-side {
        position: static;
    }

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

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

@media (max-width: 820px) {
    .header-inner {
        min-height: 68px;
    }

    .brand-subtitle,
    .header-search {
        display: none;
    }

    .hero-inner {
        min-height: auto;
        padding: 56px 0 92px;
    }

    .hero-stage {
        min-height: 380px;
    }

    .movie-grid,
    .movie-grid.compact,
    .movie-grid.wide,
    .movie-list,
    .category-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .rank-row {
        grid-template-columns: 38px 70px minmax(0, 1fr);
    }

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

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

    .brand-name {
        font-size: 18px;
    }

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

    .hero-actions,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .movie-grid,
    .movie-grid.compact,
    .movie-grid.wide,
    .movie-list,
    .category-grid,
    .footer-grid,
    .filter-box {
        grid-template-columns: 1fr;
    }

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

    .movie-card.horizontal .poster-link {
        min-height: 170px;
    }

    .card-body {
        padding: 14px;
    }

    .detail-content {
        padding: 20px;
    }
}
