:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --cyan-500: #06b6d4;
    --cyan-600: #0891b2;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 14px 35px rgba(15, 23, 42, 0.12);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-800);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 52%, #f3f4f6 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

img {
    display: block;
    max-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: 60;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(229, 231, 235, 0.78);
    backdrop-filter: blur(18px);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 68px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.brand-text {
    font-size: 22px;
    background: linear-gradient(90deg, var(--teal-600), var(--cyan-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--white);
    border-radius: 12px;
    background: linear-gradient(135deg, var(--teal-500), var(--cyan-600));
    box-shadow: 0 12px 24px rgba(13, 148, 136, 0.24);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    color: var(--gray-700);
    font-weight: 650;
}

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

.desktop-nav a:hover,
.mobile-nav a:hover,
.text-link:hover {
    color: var(--teal-600);
}

.top-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid var(--gray-200);
    border-radius: 999px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.top-search input {
    width: 190px;
    border: 0;
    outline: 0;
    padding: 8px 10px 8px 14px;
    color: var(--gray-800);
    background: transparent;
}

.top-search button,
.hero-search button,
.btn-primary {
    border: 0;
    color: var(--white);
    cursor: pointer;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--teal-600), var(--cyan-600));
    box-shadow: 0 12px 26px rgba(13, 148, 136, 0.22);
}

.top-search button {
    padding: 8px 16px;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: var(--gray-700);
    background: var(--gray-100);
    cursor: pointer;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 14px 24px 20px;
    border-top: 1px solid var(--gray-200);
    background: rgba(255, 255, 255, 0.94);
    font-weight: 650;
}

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

.hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(20, 184, 166, 0.55), transparent 28%), linear-gradient(135deg, #0f766e, #164e63 58%, #0f172a);
}

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

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

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

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

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 660px;
    color: var(--white);
}

.hero-chip,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--teal-700);
    background: var(--teal-100);
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.hero-chip {
    color: var(--white);
    background: rgba(20, 184, 166, 0.92);
}

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

.hero p {
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(18px, 2.2vw, 24px);
}

.hero-meta,
.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span {
    padding: 7px 12px;
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

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

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

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

.btn-ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-dots {
    position: absolute;
    right: max(28px, calc((100% - 1180px) / 2));
    bottom: 38px;
    display: flex;
    gap: 10px;
    z-index: 4;
}

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

.hero-dot.active {
    width: 34px;
    background: var(--white);
}

.hero-search {
    position: absolute;
    left: 50%;
    bottom: 34px;
    z-index: 5;
    display: flex;
    width: min(640px, calc(100% - 32px));
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.28);
    transform: translateX(-50%);
    backdrop-filter: blur(18px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 13px 18px;
    color: var(--white);
    background: transparent;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.hero-search button {
    padding: 0 24px;
    font-weight: 800;
}

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

.no-top {
    padding-top: 24px;
}

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

.section-title-row h2,
.list-hero h1,
.detail-content-card h1 {
    margin: 10px 0 0;
    color: var(--gray-900);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.section-title-row.narrow {
    margin-bottom: 18px;
}

.text-link {
    color: var(--teal-700);
    font-weight: 800;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    border-color: rgba(20, 184, 166, 0.42);
    box-shadow: var(--shadow-md);
    transform: translateY(-6px);
}

.movie-cover {
    position: relative;
    display: block;
    height: 270px;
    overflow: hidden;
    background: linear-gradient(135deg, #d1faf0, #e0f2fe);
}

.compact-grid .movie-cover,
.feature-grid .movie-cover {
    height: 230px;
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.72));
    opacity: 0.9;
}

.movie-year,
.rank-badge {
    position: absolute;
    top: 12px;
    z-index: 2;
    padding: 5px 10px;
    color: var(--white);
    border-radius: 999px;
    background: rgba(13, 148, 136, 0.88);
    font-size: 12px;
    font-weight: 800;
}

.movie-year {
    right: 12px;
}

.rank-badge {
    left: 12px;
    background: rgba(8, 145, 178, 0.9);
}

.movie-play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    color: var(--white);
    border-radius: 999px;
    background: rgba(13, 148, 136, 0.88);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .movie-play-mark {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

.movie-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--gray-900);
    font-size: 18px;
    font-weight: 850;
    line-height: 1.35;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.movie-title:hover {
    color: var(--teal-700);
}

.movie-line {
    display: -webkit-box;
    min-height: 48px;
    margin: 10px 0 12px;
    overflow: hidden;
    color: var(--gray-600);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta span {
    color: var(--gray-600);
    font-size: 13px;
}

.tag-list,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag-list span,
.detail-tags span {
    color: var(--gray-700);
    border-radius: 999px;
    background: var(--gray-100);
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
}

.category-band {
    background: linear-gradient(135deg, var(--gray-50), var(--gray-100));
}

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

.category-card,
.category-overview-card,
.detail-content-card,
.info-card,
.poster-card,
.rank-panel,
.filter-panel,
.list-hero {
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
}

.category-card {
    display: block;
    padding: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    color: var(--teal-700);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.category-card span {
    display: block;
    margin-bottom: 8px;
    color: var(--gray-900);
    font-size: 20px;
    font-weight: 850;
}

.category-card p {
    margin: 0;
    color: var(--gray-600);
    font-size: 14px;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    padding: 58px 0;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 32px 58px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    background: var(--gray-50);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: var(--teal-50);
    transform: translateX(3px);
}

.rank-num {
    color: var(--teal-700);
    font-size: 20px;
    font-weight: 900;
    text-align: center;
}

.rank-row img {
    width: 58px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    background: linear-gradient(135deg, #d1faf0, #e0f2fe);
}

.rank-info {
    min-width: 0;
}

.rank-info strong,
.rank-info em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-info strong {
    color: var(--gray-900);
    font-size: 15px;
}

.rank-info em {
    color: var(--gray-500);
    font-size: 12px;
    font-style: normal;
}

.page-main {
    padding-top: 32px;
    padding-bottom: 64px;
}

.soft-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 28px;
    padding: 32px;
    background: radial-gradient(circle at 90% 15%, rgba(20, 184, 166, 0.18), transparent 26%), var(--white);
}

.list-hero p {
    max-width: 760px;
    margin: 14px 0 0;
    color: var(--gray-600);
    font-size: 17px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 14px;
    padding: 18px;
}

.filter-panel label {
    display: grid;
    gap: 7px;
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    outline: 0;
    padding: 12px 13px;
    color: var(--gray-800);
    background: var(--white);
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.12);
}

.empty-state {
    display: none;
    margin-top: 20px;
    padding: 30px;
    color: var(--gray-600);
    text-align: center;
    border-radius: var(--radius-md);
    background: var(--white);
}

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

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

.category-overview-card {
    padding: 24px;
}

.category-overview-head h2 {
    margin: 10px 0 8px;
    color: var(--gray-900);
    font-size: 28px;
}

.category-overview-head p {
    margin: 0;
    color: var(--gray-600);
}

.mini-poster-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0;
}

.mini-poster-row a {
    display: grid;
    gap: 8px;
    color: var(--gray-700);
    font-size: 12px;
    font-weight: 750;
}

.mini-poster-row img {
    width: 100%;
    height: 124px;
    object-fit: cover;
    border-radius: 12px;
    background: linear-gradient(135deg, #d1faf0, #e0f2fe);
}

.full {
    width: 100%;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 22px;
    color: var(--gray-600);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--teal-700);
}

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

.player-shell {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000000;
    box-shadow: var(--shadow-md);
}

.video-player {
    position: relative;
    overflow: hidden;
    background: #000000;
}

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

.video-start {
    position: absolute;
    left: 50%;
    top: 50%;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 0;
    border-radius: 999px;
    padding: 14px 24px;
    color: var(--white);
    background: rgba(13, 148, 136, 0.92);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.video-start:hover {
    transform: translate(-50%, -50%) scale(1.04);
}

.video-player.is-playing .video-start {
    opacity: 0;
    pointer-events: none;
}

.play-circle {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.video-status {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: none;
    padding: 12px 14px;
    color: var(--white);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.78);
}

.video-status.is-visible {
    display: block;
}

.detail-content-card {
    margin-top: 24px;
    padding: 28px;
}

.detail-one-line {
    margin: 14px 0 18px;
    color: var(--gray-600);
    font-size: 18px;
}

.detail-text-grid {
    display: grid;
    gap: 22px;
    margin-top: 26px;
}

.detail-text-grid h2 {
    margin: 0 0 10px;
    color: var(--gray-900);
    font-size: 22px;
}

.detail-text-grid p {
    margin: 0;
    color: var(--gray-700);
    font-size: 16px;
}

.detail-side {
    display: grid;
    align-content: start;
    gap: 20px;
}

.poster-card {
    overflow: hidden;
}

.poster-card img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    background: linear-gradient(135deg, #d1faf0, #e0f2fe);
}

.poster-card div,
.info-card {
    padding: 20px;
}

.poster-card h2 {
    margin: 0 0 6px;
    color: var(--gray-900);
}

.poster-card p {
    margin: 0;
    color: var(--gray-600);
}

.info-card h3 {
    margin: 0 0 16px;
    color: var(--gray-900);
    font-size: 20px;
}

.info-card dl {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px 16px;
    margin: 0;
}

.info-card dt {
    color: var(--gray-500);
}

.info-card dd {
    margin: 0;
    color: var(--gray-800);
    font-weight: 700;
}

.info-card a {
    color: var(--teal-700);
}

.related-block {
    padding-bottom: 0;
}

.site-footer {
    margin-top: 28px;
    color: #cbd5e1;
    background: #111827;
}

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

.footer-brand {
    color: var(--white);
    font-size: 22px;
}

.site-footer p {
    max-width: 560px;
    color: #9ca3af;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: var(--white);
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a:hover {
    color: #5eead4;
}

.footer-bottom {
    padding: 18px 0;
    color: #6b7280;
    border-top: 1px solid #1f2937;
    text-align: center;
}

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

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

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

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

    .rank-panel {
        position: static;
    }
}

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

    .mobile-toggle {
        display: inline-grid;
        place-items: center;
    }

    .hero {
        min-height: 600px;
    }

    .hero-content {
        align-items: flex-start;
        padding-top: 78px;
    }

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

    .hero-search {
        flex-direction: column;
        align-items: stretch;
        border-radius: 24px;
    }

    .hero-search button {
        min-height: 44px;
    }

    .hero-dots {
        right: 24px;
        bottom: 132px;
    }

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

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

    .movie-cover,
    .compact-grid .movie-cover,
    .feature-grid .movie-cover {
        height: 220px;
    }

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

    .soft-hero {
        padding: 24px;
    }

    .poster-card img {
        height: 360px;
    }
}

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

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

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

    .hero p {
        font-size: 17px;
    }

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

    .movie-cover,
    .compact-grid .movie-cover,
    .feature-grid .movie-cover {
        height: 320px;
    }

    .mini-poster-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-content-card,
    .info-card,
    .poster-card div {
        padding: 20px;
    }
}
