* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: #111827;
    background: #f9fafb;
    line-height: 1.6;
}

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

img {
    display: block;
    width: 100%;
    height: auto;
    background: #e5e7eb;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.site-nav {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

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

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

.brand-text {
    font-size: 22px;
    line-height: 1;
    background: linear-gradient(90deg, #2563eb, #0891b2);
    -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 {
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: #2563eb;
    transform: translateY(-1px);
}

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

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: #111827;
    border-radius: 999px;
}

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

.container.narrow {
    width: min(920px, calc(100% - 32px));
}

.hero-slider {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: linear-gradient(135deg, #2563eb, #0891b2);
}

.hero-track,
.hero-slide {
    min-height: 650px;
}

.hero-slide {
    display: none;
    position: relative;
    isolation: isolate;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    transform: scale(1.04);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(34, 211, 238, 0.45), transparent 30%),
        linear-gradient(135deg, rgba(37, 99, 235, 0.92), rgba(8, 145, 178, 0.88)),
        linear-gradient(0deg, rgba(15, 23, 42, 0.5), transparent);
    z-index: -1;
}

.hero-content {
    width: min(1280px, calc(100% - 32px));
    min-height: 650px;
    margin: 0 auto;
    padding: 72px 0;
    display: grid;
    grid-template-columns: 1.05fr 0.78fr;
    gap: 56px;
    align-items: center;
}

.hero-copy {
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #cffafe;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-info p {
    max-width: 760px;
    margin: 0 0 26px;
    color: #ecfeff;
    font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
}

.hero-tags span,
.detail-tags span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(12px);
    font-size: 14px;
}

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

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

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

.btn.primary {
    color: #2563eb;
    background: #ffffff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.16);
}

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

.btn.glass.dark,
.btn.ghost {
    color: #2563eb;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.hero-poster {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.35);
    transform: rotate(1deg);
    transition: transform 0.25s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) translateY(-4px) scale(1.02);
}

.hero-poster img {
    height: 420px;
    object-fit: cover;
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.65), transparent 60%);
}

.hero-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    background: rgba(255, 255, 255, 0.94);
    font-size: 30px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.25);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

.stats-strip {
    margin: -44px 0 48px;
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stats-strip div {
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
    border: 1px solid #eef2ff;
}

.stats-strip strong {
    display: block;
    color: #2563eb;
    font-size: 34px;
    line-height: 1;
}

.stats-strip span {
    color: #6b7280;
    font-weight: 700;
}

.content-section {
    padding: 48px 0;
}

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

.section-title > div {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 12px;
    align-items: center;
}

.section-title .section-icon {
    grid-row: span 2;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    border-radius: 14px;
}

.section-title h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.1;
}

.section-title p {
    margin: 4px 0 0;
    color: #6b7280;
}

.section-link {
    color: #2563eb;
    font-weight: 800;
}

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

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

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 45px rgba(15, 23, 42, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #dbeafe;
}

.poster-link img {
    height: 255px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: #ef4444;
    font-size: 12px;
    font-weight: 900;
}

.rank-badge {
    left: 12px;
    right: auto;
    background: linear-gradient(135deg, #f97316, #ef4444);
}

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

.movie-card h2 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.35;
}

.movie-card h2 a:hover {
    color: #2563eb;
}

.movie-card p {
    min-height: 44px;
    margin: 0 0 12px;
    color: #6b7280;
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #6b7280;
    font-size: 12px;
}

.movie-meta span:last-child {
    padding: 2px 8px;
    border-radius: 999px;
    color: #2563eb;
    background: #dbeafe;
}

.movie-tags-line {
    margin-top: 10px;
    color: #0891b2;
    font-size: 12px;
    font-weight: 700;
}

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

.category-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border-radius: 24px;
    color: #ffffff;
    background: #0f172a;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

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

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

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.9), rgba(37, 99, 235, 0.25));
}

.category-card div {
    position: absolute;
    inset: auto 22px 22px;
    z-index: 1;
}

.category-card span {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-size: 13px;
}

.category-card h2 {
    margin: 0 0 8px;
    font-size: 24px;
}

.category-card p {
    margin: 0;
    color: #dbeafe;
    font-size: 14px;
}

.split-section {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 28px;
    align-items: stretch;
}

.ranking-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.ranking-list li {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

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

.ranking-list a {
    font-weight: 800;
}

.ranking-list a:hover {
    color: #2563eb;
}

.ranking-list small {
    color: #6b7280;
}

.feature-panel,
.plain-card,
.filter-panel {
    padding: 30px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid #eef2ff;
}

.feature-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

.feature-panel h2,
.plain-card h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.feature-panel p,
.plain-card p {
    color: #4b5563;
}

.filter-panel {
    margin: 18px 0 28px;
}

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

.filter-heading h2 {
    margin: 0;
    font-size: 28px;
}

.filter-heading p {
    margin: 0;
    color: #6b7280;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr) auto;
    gap: 14px;
    align-items: end;
}

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

.filter-grid input,
.filter-grid select {
    width: 100%;
    height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 0 14px;
    background: #ffffff;
    color: #111827;
    outline: none;
}

.filter-grid input:focus,
.filter-grid select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.page-hero {
    padding: 92px 0;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #0891b2);
}

.page-hero.soft-hero {
    background:
        radial-gradient(circle at 12% 20%, rgba(34, 211, 238, 0.32), transparent 30%),
        linear-gradient(135deg, #1d4ed8, #0891b2);
}

.category-hero {
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.24), transparent 28%),
        linear-gradient(135deg, #2563eb, #0e7490);
}

.rank-hero {
    background: linear-gradient(135deg, #f97316, #2563eb);
}

.search-hero {
    background: linear-gradient(135deg, #0f172a, #2563eb 56%, #0891b2);
}

.small-actions {
    margin-top: 24px;
}

.detail-hero {
    padding: 54px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 10% 10%, rgba(34, 211, 238, 0.35), transparent 34%),
        linear-gradient(135deg, #0f172a, #1d4ed8 58%, #0891b2);
}

.detail-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 26px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.32);
}

.detail-poster img {
    height: 500px;
    object-fit: cover;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    color: #bfdbfe;
    font-weight: 700;
}

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

.player-section {
    margin: 42px 0;
}

.player-section h2 {
    margin: 0 0 8px;
    font-size: 32px;
}

.player-section p {
    margin: 0 0 18px;
    color: #4b5563;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #020617;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
}

.player-box video {
    display: block;
    width: 100%;
    min-height: 460px;
    max-height: 76vh;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #2563eb;
    background: rgba(2, 6, 23, 0.36);
    cursor: pointer;
}

.player-cover span {
    width: 92px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    font-size: 40px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    transition: transform 0.2s ease;
}

.player-cover:hover span {
    transform: scale(1.08);
}

.player-cover.is-hidden {
    display: none;
}

.player-message {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 4;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.78);
    border-radius: 999px;
    padding: 8px 16px;
    display: none;
}

.player-message.active {
    display: block;
}

.detail-content {
    margin: 34px 0;
}

.genre-tags span {
    color: #2563eb;
    background: #eff6ff;
    border-color: #bfdbfe;
}

.site-footer {
    margin-top: 72px;
    color: #ffffff;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 32px;
}

.footer-col h2 {
    margin: 0 0 16px;
    font-size: 18px;
}

.footer-col p,
.footer-col a,
.footer-bottom {
    color: #cbd5e1;
}

.footer-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.footer-col a:hover,
.footer-bottom a:hover {
    color: #ffffff;
}

.footer-bottom {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.footer-bottom div {
    display: flex;
    gap: 18px;
}

.movie-card.is-hidden {
    display: none;
}

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

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

    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 68px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        border-radius: 18px;
        background: #ffffff;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.15);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .nav-links a:hover {
        background: #eff6ff;
    }

    .hero-content {
        grid-template-columns: 1fr;
        min-height: 640px;
        padding: 58px 0 88px;
    }

    .hero-poster {
        display: none;
    }

    .hero-arrow {
        display: none;
    }

    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .poster-link img {
        height: 220px;
    }

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

    .detail-poster img {
        height: 420px;
    }

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

    .section-title,
    .filter-heading,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .player-box video {
        min-height: 260px;
    }
}

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

    .hero-slider,
    .hero-track,
    .hero-slide,
    .hero-content {
        min-height: 590px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 36px;
    }

    .stats-strip,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .movie-grid {
        gap: 12px;
    }

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

    .poster-link img {
        height: 190px;
    }

    .ranking-list li {
        grid-template-columns: 42px 1fr;
    }

    .ranking-list small {
        grid-column: 2;
    }

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