* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #111827;
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 42%, #f8fafc 100%);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(16px);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    font-weight: 800;
    color: #0284c7;
}

.brand-icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    border-radius: 12px;
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.28);
}

.brand-text {
    font-size: 21px;
    line-height: 1;
    background: linear-gradient(90deg, #0284c7, #2563eb);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

.nav-links a::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 2px;
    content: "";
    background: #0ea5e9;
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #0284c7;
}

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

.header-search {
    display: flex;
    align-items: center;
    width: 270px;
    padding: 4px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
}

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

.header-search button,
.search-form-large button {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    border-radius: 999px;
    font-weight: 750;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button {
    padding: 8px 14px;
}

.header-search button:hover,
.search-form-large button:hover,
.primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.25);
}

.mobile-menu-button {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.mobile-menu-button span {
    width: 20px;
    height: 2px;
    background: #0f172a;
    border-radius: 999px;
}

.mobile-menu {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.mobile-menu.is-open {
    display: grid;
    gap: 8px;
}

.mobile-menu a {
    padding: 10px 12px;
    border-radius: 12px;
    font-weight: 650;
}

.mobile-menu a:hover {
    color: #0284c7;
    background: #f0f9ff;
}

.mobile-category-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.hero-slider {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.54) 48%, rgba(2, 6, 23, 0.16) 100%);
}

.hero-copy {
    position: absolute;
    bottom: clamp(42px, 10vh, 96px);
    left: 50%;
    width: min(1180px, calc(100% - 32px));
    color: #ffffff;
    transform: translateX(-50%);
}

.hero-copy h1,
.hero-copy h2 {
    max-width: 760px;
    margin: 16px 0 14px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 26px;
    color: rgba(226, 232, 240, 0.95);
    font-size: 18px;
    line-height: 1.8;
}

.hero-label {
    display: inline-flex;
    max-width: 100%;
    padding: 8px 14px;
    color: #e0f2fe;
    background: rgba(14, 165, 233, 0.3);
    border: 1px solid rgba(186, 230, 253, 0.35);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    font-weight: 700;
}

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

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 800;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
}

.ghost-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
}

.ghost-button:hover {
    background: rgba(255, 255, 255, 0.22);
}

.hero-dots {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 36px;
    display: flex;
    gap: 8px;
}

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

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

.search-panel {
    width: min(1180px, calc(100% - 32px));
    margin: -42px auto 0;
    position: relative;
    z-index: 3;
}

.search-panel-inner {
    padding: 28px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.13);
    backdrop-filter: blur(18px);
}

.search-panel h2 {
    margin: 0 0 18px;
    font-size: 28px;
    line-height: 1.2;
}

.search-form-large {
    display: flex;
    gap: 12px;
}

.search-form-large input {
    flex: 1;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    outline: 0;
    font-size: 16px;
}

.search-form-large input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.search-form-large button {
    min-width: 128px;
    padding: 0 22px;
    font-size: 16px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.quick-links a,
.tag-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    color: #0369a1;
    background: #e0f2fe;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.quick-links a:hover,
.tag-chip:hover {
    color: #ffffff;
    background: #0ea5e9;
}

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

.soft-section {
    width: 100%;
    max-width: none;
    padding-right: max(16px, calc((100vw - 1180px) / 2));
    padding-left: max(16px, calc((100vw - 1180px) / 2));
    background: linear-gradient(90deg, #f0f9ff, #eff6ff);
}

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

.section-head h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.15;
    font-weight: 900;
}

.section-head p {
    margin: 8px 0 0;
    color: #64748b;
    font-size: 16px;
}

.section-more {
    color: #0284c7;
    font-weight: 800;
}

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

.movie-card {
    display: block;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.86);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
    transform: translateY(-6px);
}

.card-poster {
    position: relative;
    height: 270px;
    overflow: hidden;
    background: linear-gradient(135deg, #e0f2fe, #dbeafe);
}

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

.movie-card:hover .card-poster img,
.wide-item:hover img,
.category-card:hover img,
.category-overview-card:hover img {
    transform: scale(1.1);
}

.card-mask {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.08));
    transition: opacity 0.25s ease;
}

.movie-card:hover .card-mask {
    opacity: 1;
}

.play-mark {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    color: #0284c7;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    font-size: 22px;
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    min-height: 52px;
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.45;
    font-weight: 850;
}

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

.card-meta,
.wide-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.card-meta span,
.wide-meta span,
.detail-meta span {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    color: #0369a1;
    background: #e0f2fe;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
}

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

.category-card,
.category-overview-card {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 230px;
    color: #ffffff;
    background: #0f172a;
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.category-card img,
.category-overview-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.62;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.category-card:hover img,
.category-overview-card:hover img {
    opacity: 0.76;
}

.category-card::after,
.category-overview-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), rgba(2, 6, 23, 0.15));
}

.category-card > div,
.category-overview-body {
    position: absolute;
    right: 22px;
    bottom: 22px;
    left: 22px;
    z-index: 2;
}

.category-card h3,
.category-overview-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 900;
}

.category-card p,
.category-overview-card p {
    margin: 0;
    color: rgba(226, 232, 240, 0.95);
    line-height: 1.65;
}

.sample-titles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.sample-titles span {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-size: 12px;
}

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

.wide-item {
    display: flex;
    gap: 18px;
    overflow: hidden;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.wide-item:hover {
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.14);
    transform: translateY(-3px);
}

.wide-poster {
    position: relative;
    flex: 0 0 210px;
    height: 128px;
    overflow: hidden;
    background: #dbeafe;
    border-radius: 14px;
}

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

.wide-content {
    min-width: 0;
    flex: 1;
}

.wide-content h3 {
    margin: 5px 0 8px;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 850;
}

.wide-content p {
    display: -webkit-box;
    margin: 0 0 13px;
    overflow: hidden;
    color: #64748b;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.list-rank {
    position: absolute;
    top: 10px;
    left: 10px;
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 32px;
    color: #ffffff;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    border-radius: 10px;
    font-weight: 900;
}

.page-hero {
    color: #ffffff;
}

.blue-hero {
    background: radial-gradient(circle at top left, rgba(186, 230, 253, 0.35), transparent 28%), linear-gradient(135deg, #0ea5e9, #2563eb 62%, #1e40af);
}

.page-hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 58px 0 64px;
}

.page-hero h1 {
    margin: 14px 0 12px;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 1.1;
    font-weight: 900;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(224, 242, 254, 0.96);
    font-size: 18px;
    line-height: 1.75;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14px;
    font-weight: 700;
}

.detail-main .breadcrumb {
    color: #64748b;
    margin-bottom: 18px;
}

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

.detail-main .breadcrumb a:hover {
    color: #0284c7;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px;
    margin-bottom: 28px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.filter-input,
.filter-select {
    min-height: 46px;
    padding: 0 14px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    outline: 0;
}

.filter-input {
    flex: 1 1 280px;
}

.filter-select {
    flex: 0 1 180px;
}

.filter-sort {
    min-height: 46px;
    padding: 0 16px;
    cursor: pointer;
    color: #0369a1;
    background: #e0f2fe;
    border: 0;
    border-radius: 14px;
    font-weight: 800;
}

.filter-sort:hover {
    color: #ffffff;
    background: #0ea5e9;
}

.search-item.is-hidden {
    display: none;
}

.player-stage {
    background: #020617;
}

.player-wrap {
    position: relative;
    width: min(1180px, 100%);
    margin: 0 auto;
    background: #000000;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.18));
}

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

.big-play-button {
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    padding-left: 6px;
    color: #0284c7;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.95);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
    font-size: 34px;
    transition: transform 0.2s ease;
}

.big-play-button:hover {
    transform: scale(1.06);
}

.player-title {
    position: absolute;
    right: 28px;
    bottom: 24px;
    left: 28px;
    display: grid;
    gap: 8px;
}

.player-title span {
    color: #bae6fd;
    font-weight: 800;
}

.player-title strong {
    font-size: clamp(24px, 4vw, 44px);
    line-height: 1.15;
}

.detail-section {
    background: #f8fafc;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 28px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 34px 0 72px;
}

.detail-card,
.related-panel {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.detail-card {
    padding: 30px;
}

.detail-card h1 {
    margin: 0 0 16px;
    color: #0f172a;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.16;
    font-weight: 900;
}

.detail-card section {
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.detail-card h2,
.related-panel h2 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 900;
}

.detail-card p {
    margin: 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.9;
}

.lead-text {
    color: #334155 !important;
    font-weight: 700;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.related-panel {
    position: sticky;
    top: 92px;
    align-self: start;
    padding: 22px;
}

.related-list .wide-item {
    gap: 12px;
    padding: 10px;
    box-shadow: none;
}

.related-list .wide-poster {
    flex-basis: 116px;
    height: 76px;
}

.related-list .wide-content h3 {
    margin-top: 0;
    font-size: 15px;
}

.related-list .wide-content p {
    display: none;
}

.related-list .wide-meta span:nth-child(n+3) {
    display: none;
}

.site-footer {
    background: linear-gradient(180deg, #f8fafc, #eef2f7);
    border-top: 1px solid #e2e8f0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 34px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
}

.footer-brand p {
    max-width: 360px;
    color: #64748b;
    line-height: 1.8;
}

.footer-column {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-column h2 {
    margin: 0 0 6px;
    color: #0f172a;
    font-size: 16px;
}

.footer-column a {
    color: #64748b;
    font-size: 14px;
}

.footer-column a:hover {
    color: #0284c7;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .header-search {
        display: none;
    }

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

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

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

    .related-panel {
        position: static;
    }
}

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

    .mobile-menu-button {
        display: flex;
    }

    .hero-slider {
        height: 76vh;
        min-height: 560px;
    }

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

    .hero-dots {
        right: 16px;
        bottom: 22px;
    }

    .search-form-large,
    .wide-item {
        flex-direction: column;
    }

    .wide-poster {
        flex-basis: auto;
        width: 100%;
        height: 190px;
    }

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

    .card-poster {
        height: 230px;
    }

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

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

    .detail-card {
        padding: 22px;
    }

    .player-title {
        right: 16px;
        bottom: 16px;
        left: 16px;
    }

    .big-play-button {
        width: 72px;
        height: 72px;
        font-size: 28px;
    }
}

@media (max-width: 520px) {
    .brand-text {
        font-size: 18px;
    }

    .hero-copy p {
        font-size: 16px;
    }

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

    .card-poster {
        height: 280px;
    }

    .search-panel-inner,
    .filter-bar {
        padding: 16px;
    }
}
