* {
    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: #212529;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 45%, #f8f9fa 100%);
}

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.84);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #e9ecef;
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 800;
    color: #111827;
    letter-spacing: 0.02em;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    box-shadow: 0 14px 30px rgba(2, 132, 199, 0.22);
}

.logo:hover .logo-mark {
    transform: scale(1.08);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15px;
    font-weight: 650;
    color: #495057;
}

.nav-links a {
    transition: color 0.2s ease;
}

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

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    color: #212529;
    background: #f1f3f5;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 8px 24px 18px;
    border-top: 1px solid #e9ecef;
    background: rgba(255, 255, 255, 0.96);
}

.mobile-panel a {
    display: block;
    padding: 12px 0;
    color: #495057;
    font-weight: 650;
    border-bottom: 1px solid #f1f3f5;
}

.mobile-panel a:hover {
    color: #0284c7;
}

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

.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-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
    transition: transform 6s ease;
}

.hero-slide.is-active .hero-bg {
    transform: scale(1.08);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.52) 44%, rgba(0, 0, 0, 0.12) 100%);
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(1280px, 100%);
    transform: translateX(-50%);
    padding: 0 24px 76px;
    color: #ffffff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 12px;
    color: #e0f2fe;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid rgba(224, 242, 254, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(10px);
}

.hero h1 {
    margin: 0 0 18px;
    max-width: 760px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero p {
    margin: 0 0 28px;
    max-width: 760px;
    color: #e9ecef;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.65;
}

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

.hero-dots {
    position: absolute;
    right: max(24px, calc((100% - 1280px) / 2 + 24px));
    bottom: 38px;
    display: flex;
    gap: 8px;
}

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

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 12px 20px;
    border: 0;
    border-radius: 12px;
    font-weight: 750;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
    transform: translateY(-1px) scale(1.02);
}

.button-primary {
    color: #ffffff;
    background: #0284c7;
    box-shadow: 0 12px 24px rgba(2, 132, 199, 0.28);
}

.button-primary:hover {
    background: #0369a1;
}

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

.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px;
}

.section-narrow {
    max-width: 980px;
}

.section-muted {
    max-width: none;
    background: #f1f3f5;
}

.section-muted .section-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 72px 24px;
}

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

.section-title {
    margin: 0;
    color: #111827;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-desc {
    margin: 10px 0 0;
    color: #6c757d;
    line-height: 1.7;
}

.more-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0284c7;
    font-weight: 750;
    white-space: nowrap;
}

.more-link:hover {
    color: #0369a1;
}

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

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

.movie-card {
    display: block;
    min-width: 0;
}

.poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    margin-bottom: 12px;
    border-radius: 16px;
    background: #dee2e6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.poster.wide {
    aspect-ratio: 16 / 9;
}

.poster.square {
    aspect-ratio: 1 / 1;
}

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

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

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.movie-card:hover .poster::after {
    background: rgba(0, 0, 0, 0.40);
}

.play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    transform: translate(-50%, -50%) scale(0.78);
    opacity: 0;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(2, 132, 199, 0.88);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 3;
    padding: 5px 9px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 750;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.60);
    backdrop-filter: blur(8px);
}

.card-title {
    margin: 0;
    color: #212529;
    font-size: 17px;
    font-weight: 750;
    line-height: 1.35;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.movie-card:hover .card-title {
    color: #0284c7;
}

.card-line {
    margin: 6px 0 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.55;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    margin: 8px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: #868e96;
    font-size: 12px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    color: #495057;
    background: #f1f3f5;
}

.tag-blue {
    color: #0369a1;
    background: #e0f2fe;
}

.horizontal-scroll {
    overflow-x: auto;
    scrollbar-width: none;
}

.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

.scroll-row {
    display: flex;
    gap: 18px;
    padding-bottom: 8px;
}

.scroll-card {
    width: 280px;
    flex: 0 0 auto;
}

.feature-row {
    display: grid;
    gap: 32px;
}

.feature-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 36px rgba(15, 23, 42, 0.12);
}

.feature-media {
    min-height: 310px;
    background-size: cover;
    background-position: center;
}

.feature-body {
    padding: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-body h3 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 28px;
    line-height: 1.2;
}

.feature-body p {
    margin: 0 0 14px;
    color: #495057;
    line-height: 1.8;
}

.masonry {
    columns: 3 260px;
    column-gap: 18px;
}

.masonry .movie-card {
    break-inside: avoid;
    margin-bottom: 18px;
}

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

.category-card {
    min-height: 180px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.92), rgba(56, 189, 248, 0.75)), #0284c7;
    box-shadow: 0 18px 32px rgba(2, 132, 199, 0.20);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 42px rgba(2, 132, 199, 0.30);
}

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

.category-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.6;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 56px 112px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.10);
}

.rank-num {
    color: #0284c7;
    font-size: 28px;
    font-weight: 850;
    text-align: center;
}

.rank-cover {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: #dee2e6;
}

.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-title {
    margin: 0 0 6px;
    color: #111827;
    font-size: 18px;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(140px, 0.6fr));
    gap: 12px;
    margin: 28px 0 34px;
    padding: 16px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    color: #212529;
    background: #ffffff;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.10);
}

.empty-state {
    display: none;
    padding: 42px 18px;
    text-align: center;
    color: #6c757d;
    border-radius: 18px;
    background: #ffffff;
}

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

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

.breadcrumb a {
    color: #0284c7;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    gap: 34px;
    align-items: end;
    margin-bottom: 38px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    background: #dee2e6;
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.16);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.detail-info h1 {
    margin: 0 0 16px;
    color: #111827;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.detail-line {
    margin: 0 0 20px;
    color: #495057;
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.player-card {
    overflow: hidden;
    margin: 42px 0;
    border-radius: 24px;
    background: #0f172a;
    box-shadow: 0 24px 46px rgba(15, 23, 42, 0.18);
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-shell video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #000000;
}

.video-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at center, rgba(2, 132, 199, 0.22), rgba(0, 0, 0, 0.56));
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-card.is-playing .video-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-button {
    width: 92px;
    height: 92px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: #0284c7;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 20px 38px rgba(2, 132, 199, 0.42);
    transition: transform 0.25s ease, background 0.25s ease;
}

.player-button:hover {
    transform: scale(1.08);
    background: #0369a1;
}

.player-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    color: #e9ecef;
    background: #111827;
}

.player-caption strong {
    color: #ffffff;
}

.content-card {
    margin: 28px 0;
    padding: 28px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.content-card h2 {
    margin: 0 0 16px;
    color: #111827;
    font-size: 26px;
}

.content-card p {
    margin: 0 0 14px;
    color: #495057;
    line-height: 1.9;
}

.footer {
    margin-top: 42px;
    color: #ced4da;
    background: #212529;
}

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

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

.footer p,
.footer a {
    color: #adb5bd;
    line-height: 1.8;
}

.footer a:hover {
    color: #38bdf8;
}

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

.copyright {
    padding: 18px 24px;
    text-align: center;
    color: #868e96;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

@media (max-width: 760px) {
    .navbar {
        padding: 0 18px;
    }

    .nav-links {
        display: none;
    }

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

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

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

    .hero-content {
        padding: 0 18px 86px;
    }

    .hero-dots {
        left: 18px;
        right: auto;
        bottom: 34px;
    }

    .section,
    .section-muted .section-inner {
        padding: 52px 18px;
    }

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

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

    .feature-card,
    .detail-hero,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .feature-media {
        min-height: 220px;
    }

    .rank-item {
        grid-template-columns: 44px 88px 1fr;
    }

    .rank-item .button {
        display: none;
    }

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

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

@media (max-width: 460px) {
    .movie-grid,
    .movie-grid.compact,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .scroll-card {
        width: 240px;
    }
}
