@charset "utf-8";

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-soft: #eef2ff;
    --accent: #f43f5e;
    --accent-soft: #fff1f2;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --page: #f8fafc;
    --panel: #ffffff;
    --footer: #111827;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.site-nav {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.26);
}

.brand-text {
    font-size: 20px;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    -webkit-background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.desktop-nav a,
.mobile-panel a {
    color: #374151;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: var(--primary-dark);
}

.nav-search {
    width: 300px;
    display: flex;
    align-items: center;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
}

.nav-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 8px 12px;
    color: var(--ink);
}

.nav-search button {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    cursor: pointer;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: #374151;
}

.mobile-panel {
    display: none;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 24px 18px;
    border-top: 1px solid var(--line);
}

.mobile-panel.is-open {
    display: grid;
    gap: 10px;
}

.hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(4, 8, 18, 0.88) 0%, rgba(15, 23, 42, 0.58) 45%, rgba(15, 23, 42, 0.12) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.05) 55%);
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 86px;
    width: min(1180px, calc(100% - 48px));
    transform: translateX(-50%);
    color: #ffffff;
}

.hero-content h1 {
    max-width: 820px;
    margin: 16px 0;
    font-size: clamp(40px, 6vw, 78px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 760px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.7;
}

.hero-tags,
.hero-keywords,
.detail-meta,
.detail-tags,
.rank-meta,
.meta-row,
.card-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hero-tags span,
.detail-meta span,
.meta-row span {
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    backdrop-filter: blur(12px);
}

.meta-row span {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.hero-genre {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.hero-keywords span,
.card-tags span,
.tag-link {
    padding: 6px 10px;
    border-radius: 9px;
    background: rgba(244, 63, 94, 0.14);
    color: #be123c;
    font-size: 12px;
    font-weight: 700;
}

.hero-keywords span {
    color: #ffffff;
    background: rgba(244, 63, 94, 0.42);
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.primary-button,
.outline-button,
.ghost-button,
.section-more,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    min-height: 46px;
    padding: 0 22px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 14px 28px rgba(99, 102, 241, 0.28);
}

.outline-button {
    min-height: 46px;
    padding: 0 22px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.primary-button:hover,
.outline-button:hover,
.ghost-button:hover,
.section-more:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.42);
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

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

.quick-search-wrap,
.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 68px 24px;
}

.quick-search-wrap {
    margin-top: -46px;
    position: relative;
    z-index: 4;
    padding-top: 0;
    padding-bottom: 40px;
}

.quick-search-card,
.filter-panel,
.text-panel,
.overview-card,
.rank-row,
.video-shell {
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: var(--panel);
    box-shadow: var(--soft-shadow);
}

.quick-search-card {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    padding: 28px;
    border-radius: 26px;
}

.kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.quick-search-card h2,
.section-heading h2,
.text-panel h2,
.overview-card h2 {
    margin: 0 0 10px;
    font-size: clamp(26px, 3vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.quick-search-card p,
.section-heading p,
.overview-card p,
.text-panel p {
    color: var(--muted);
    line-height: 1.8;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 170px auto;
    gap: 12px;
    align-items: end;
    padding: 16px;
    border-radius: 20px;
}

.filter-panel label {
    display: grid;
    gap: 6px;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 0 12px;
    outline: 0;
    background: #ffffff;
    color: var(--ink);
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

.ghost-button {
    height: 44px;
    border: 1px solid var(--line);
    padding: 0 16px;
    background: #f9fafb;
    color: #374151;
    cursor: pointer;
}

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

.section-heading p {
    max-width: 720px;
    margin: 0;
}

.section-more,
.text-link {
    color: var(--primary-dark);
    font-weight: 900;
}

.soft-section {
    max-width: none;
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
}

.soft-section > .section-heading,
.soft-section > .movie-grid,
.soft-section > .rank-list,
.soft-section > .filter-panel,
.soft-section > .category-grid {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

.movie-card {
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.86);
    box-shadow: var(--soft-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #e0e7ff, #ffe4e6);
}

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

.movie-card:hover .poster-link img,
.overview-card:hover .overview-cover img,
.rank-row:hover .rank-cover img {
    transform: scale(1.05);
}

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.74);
    backdrop-filter: blur(10px);
}

.play-chip {
    left: 12px;
    bottom: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.rank-badge {
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    font-weight: 900;
}

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

.movie-card h3 {
    margin: 12px 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card h3 a:hover,
.rank-content h3 a:hover,
.overview-card h2 a:hover {
    color: var(--primary-dark);
}

.movie-card p {
    min-height: 50px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.card-tags {
    min-height: 28px;
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.card-foot a {
    color: var(--primary-dark);
}

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

.category-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border-radius: 24px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    color: #ffffff;
    background: #0f172a;
    box-shadow: var(--soft-shadow);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    transition: transform 0.35s ease;
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.08));
}

.category-card:hover img {
    transform: scale(1.06);
}

.category-card h3,
.category-card p,
.category-card span,
.category-card ul {
    position: relative;
    z-index: 1;
}

.category-card h3 {
    margin: 10px 0 8px;
    font-size: 23px;
}

.category-card p,
.category-card li {
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.7;
}

.category-card ul,
.overview-card ul,
.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 88px 56px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.rank-cover {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 16px;
    background: #e0e7ff;
}

.rank-number {
    color: var(--accent);
    font-size: 28px;
    font-weight: 900;
}

.rank-content h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.rank-content p {
    margin: 0 0 8px;
    color: var(--muted);
    line-height: 1.7;
}

.rank-meta span {
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.page-hero {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at 12% 12%, rgba(244, 63, 94, 0.18), transparent 34%),
        radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.22), transparent 32%),
        linear-gradient(135deg, #111827, #312e81);
    color: #ffffff;
}

.page-hero > div {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.page-hero h1 {
    max-width: 820px;
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

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

.small-hero,
.category-hero,
.ranking-hero {
    min-height: 340px;
}

.overview-list {
    display: grid;
    gap: 22px;
}

.overview-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    padding: 18px;
    border-radius: 26px;
}

.overview-cover {
    display: block;
    overflow: hidden;
    min-height: 260px;
    border-radius: 22px;
    background: #e0e7ff;
}

.overview-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.overview-card li a {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-weight: 800;
    font-size: 13px;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    color: #ffffff;
    background: #0f172a;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) saturate(1.1);
    transform: scale(1.08);
    opacity: 0.46;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.72)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.08));
}

.detail-wrap {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 82px 0 70px;
    display: grid;
    grid-template-columns: minmax(260px, 360px) 1fr;
    gap: 44px;
    align-items: end;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 3 / 4;
    background: #e0e7ff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

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

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

.detail-info h1 {
    margin: 18px 0;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.05;
    letter-spacing: -0.06em;
}

.detail-one-line {
    max-width: 800px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
    line-height: 1.8;
}

.detail-tags {
    margin-top: 18px;
}

.detail-meta span {
    background: rgba(255, 255, 255, 0.14);
}

.player-section {
    max-width: 1180px;
    margin: -70px auto 0;
    padding: 0 24px 40px;
    position: relative;
    z-index: 3;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: 0 34px 80px rgba(15, 23, 42, 0.26);
}

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

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(99, 102, 241, 0.16), rgba(2, 6, 23, 0.62));
    cursor: pointer;
}

.play-icon {
    width: 76px;
    height: 76px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 18px 42px rgba(99, 102, 241, 0.36);
}

.video-overlay strong {
    font-size: 24px;
}

.video-shell.is-playing .video-overlay {
    display: none;
}

.player-state {
    display: none;
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.76);
    font-size: 13px;
    font-weight: 800;
}

.video-shell.is-loading .player-state,
.video-shell.player-error .player-state {
    display: block;
}

.detail-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.text-panel {
    padding: 28px;
    border-radius: 26px;
}

.text-panel p {
    margin: 0;
    color: #374151;
    font-size: 17px;
}

.site-footer {
    background: var(--footer);
    color: #cbd5e1;
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 54px 24px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
}

.footer-brand {
    color: #ffffff;
    margin-bottom: 16px;
}

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

.site-footer p,
.site-footer li {
    color: #94a3b8;
    line-height: 1.8;
}

.site-footer li + li {
    margin-top: 8px;
}

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

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    padding: 22px 24px;
    text-align: center;
    color: #94a3b8;
}

.is-hidden {
    display: none !important;
}

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

    .mobile-menu-button {
        display: block;
        margin-left: auto;
    }

    .nav-search {
        width: 260px;
    }

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

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

    .quick-search-card,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .site-nav {
        padding: 0 16px;
    }

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

    .nav-search {
        display: none;
    }

    .hero {
        min-height: 600px;
    }

    .hero-content {
        bottom: 76px;
    }

    .hero-arrow {
        display: none;
    }

    .quick-search-card,
    .filter-panel,
    .detail-wrap,
    .overview-card,
    .footer-grid,
    .rank-row {
        grid-template-columns: 1fr;
    }

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

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

    .rank-row {
        align-items: start;
    }

    .rank-cover {
        width: 120px;
    }

    .detail-wrap {
        padding-top: 56px;
    }

    .detail-poster {
        max-width: 280px;
    }
}

@media (max-width: 560px) {
    .hero-content,
    .page-hero > div,
    .detail-wrap {
        width: calc(100% - 32px);
    }

    .hero-content h1,
    .detail-info h1,
    .page-hero h1 {
        letter-spacing: -0.04em;
    }

    .quick-search-wrap,
    .content-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .featured-rank-grid {
        grid-template-columns: 1fr;
    }

    .movie-card p {
        min-height: auto;
    }

    .player-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .video-overlay strong {
        font-size: 18px;
    }
}
