* {
    box-sizing: border-box;
}

:root {
    --emerald: #059669;
    --emerald-dark: #047857;
    --blue: #2563eb;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

body {
    margin: 0;
    background: linear-gradient(180deg, var(--gray-50), #ffffff 34rem);
    color: var(--gray-900);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--gray-900);
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--blue));
    box-shadow: 0 12px 30px rgba(5, 150, 105, 0.3);
}

.brand-name {
    font-size: 21px;
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    color: var(--gray-700);
    font-weight: 600;
}

.nav-link {
    padding: 8px 0;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--emerald);
}

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

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--gray-700);
    border-radius: 2px;
}

.mobile-panel {
    display: none;
    padding: 10px 24px 18px;
    border-top: 1px solid var(--gray-200);
}

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

.mobile-link {
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--gray-700);
    font-weight: 600;
}

.mobile-link:hover,
.mobile-link.active {
    background: var(--gray-100);
    color: var(--emerald);
}

.hero-carousel {
    position: relative;
    height: min(72vh, 760px);
    min-height: 540px;
    overflow: hidden;
    background: #020617;
}

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

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

.hero-bg {
    position: absolute;
    inset: -32px;
    background-position: center;
    background-size: cover;
    filter: blur(20px) brightness(0.44);
    transform: scale(1.08);
}

.hero-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(17, 24, 39, 0.95), rgba(17, 24, 39, 0.48) 48%, rgba(17, 24, 39, 0.2));
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 56px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 360px;
    gap: 56px;
    align-items: center;
}

.hero-copy {
    max-width: 760px;
    color: #ffffff;
}

.hero-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.hero-kicker span,
.hero-kicker strong {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-kicker span {
    background: var(--emerald);
}

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

.hero-copy p {
    margin: 0;
    max-width: 700px;
    color: #e5e7eb;
    font-size: clamp(18px, 2vw, 24px);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-tags span,
.tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: #ecfdf5;
    color: var(--emerald-dark);
    font-size: 13px;
    font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.small-btn {
    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-btn {
    min-height: 52px;
    padding: 0 28px;
    color: #ffffff;
    background: var(--emerald);
    box-shadow: 0 16px 35px rgba(5, 150, 105, 0.36);
}

.primary-btn:hover,
.small-btn:hover {
    transform: translateY(-2px);
    background: var(--emerald-dark);
}

.ghost-btn {
    min-height: 52px;
    padding: 0 24px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.ghost-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.22);
}

.hero-poster {
    display: block;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.35);
    transform: rotate(2deg);
}

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

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 24px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    opacity: 0.65;
    transition: width 0.2s ease, opacity 0.2s ease;
}

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

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

.section-shell.tight {
    padding-top: 40px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.section-title {
    margin: 0;
    font-size: clamp(28px, 3vw, 38px);
    letter-spacing: -0.03em;
}

.section-line {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--emerald), rgba(37, 99, 235, 0));
}

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

.card-grid.six {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(17, 24, 39, 0.14);
    background: var(--gray-100);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.02));
    transition: opacity 0.25s ease;
}

.poster-link:hover .poster-shade {
    opacity: 1;
}

.play-chip {
    position: absolute;
    left: 50%;
    top: 50%;
    opacity: 0;
    transform: translate(-50%, -40%);
    padding: 8px 16px;
    color: #ffffff;
    border-radius: 999px;
    background: var(--emerald);
    font-weight: 800;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.poster-link:hover .play-chip {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 12px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.25);
}

.movie-card-body {
    padding: 14px 2px 0;
}

.movie-card h2,
.wide-card h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h2 a:hover,
.wide-card h2 a:hover {
    color: var(--emerald);
}

.movie-meta {
    margin: 6px 0;
    color: var(--gray-500);
    font-size: 14px;
}

.movie-line {
    margin: 0;
    color: var(--gray-700);
    font-size: 14px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.soft-panel {
    border-radius: 32px;
    padding: 42px;
    background: linear-gradient(135deg, #ecfdf5, #eff6ff);
    box-shadow: inset 0 0 60px rgba(255, 255, 255, 0.7);
}

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

.wide-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.wide-poster {
    overflow: hidden;
    border-radius: 14px;
}

.wide-poster img {
    width: 100%;
    height: 132px;
    object-fit: cover;
}

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

.category-tile {
    position: relative;
    overflow: hidden;
    min-height: 180px;
    padding: 26px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--blue));
    box-shadow: 0 18px 45px rgba(37, 99, 235, 0.16);
}

.category-tile h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.category-tile p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.category-tile span {
    position: absolute;
    right: -16px;
    bottom: -22px;
    color: rgba(255, 255, 255, 0.16);
    font-size: 92px;
    font-weight: 900;
}

.page-hero {
    background: linear-gradient(135deg, var(--emerald), var(--blue));
    color: #ffffff;
}

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

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(17, 24, 39, 0.08);
    margin-bottom: 30px;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    height: 46px;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--gray-900);
    background: #ffffff;
    font: inherit;
    outline: none;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

.no-result {
    display: none;
    padding: 40px;
    text-align: center;
    border-radius: 24px;
    background: var(--gray-100);
    color: var(--gray-500);
}

.no-result.show {
    display: block;
}

.detail-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 24px 72px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--gray-500);
    font-size: 14px;
    margin-bottom: 20px;
}

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

.player-card,
.detail-card {
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

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

.player-frame video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.64));
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--emerald);
    font-size: 34px;
    box-shadow: 0 22px 52px rgba(5, 150, 105, 0.4);
}

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

.player-error {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    max-width: 90%;
    padding: 10px 16px;
    border-radius: 14px;
    color: #ffffff;
    background: rgba(220, 38, 38, 0.88);
}

.player-error[hidden] {
    display: none;
}

.detail-body {
    padding: 34px;
}

.detail-title {
    margin: 0 0 14px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.12;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta span {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 14px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 30px;
    margin-top: 28px;
}

.detail-cover {
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.15);
}

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

.detail-text h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.detail-text p {
    margin: 0 0 18px;
    color: var(--gray-700);
}

.related-section {
    margin-top: 44px;
}

.related-section h2 {
    margin: 0 0 22px;
    font-size: 28px;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 58px 118px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
}

.ranking-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    font-size: 22px;
    font-weight: 900;
}

.ranking-row img {
    width: 118px;
    height: 88px;
    border-radius: 14px;
    object-fit: cover;
}

.ranking-row h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.ranking-row p {
    margin: 0;
    color: var(--gray-500);
}

.small-btn {
    min-height: 42px;
    padding: 0 18px;
    color: #ffffff;
    background: var(--emerald);
}

@media (max-width: 1100px) {
    .card-grid,
    .card-grid.six {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .hero-inner {
        grid-template-columns: 1fr 280px;
    }
}

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

    .mobile-toggle {
        display: block;
    }

    .hero-carousel {
        min-height: 680px;
        height: auto;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        align-content: center;
    }

    .hero-poster {
        width: min(260px, 70vw);
        transform: none;
    }

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

    .section-line {
        width: 100%;
        flex: none;
    }

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

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

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

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

    .ranking-row {
        grid-template-columns: 48px 92px minmax(0, 1fr);
    }

    .ranking-row .small-btn {
        grid-column: 2 / -1;
    }

    .ranking-row img {
        width: 92px;
        height: 76px;
    }
}

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

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

    .hero-copy h1 {
        font-size: 40px;
    }

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

    .hero-actions,
    .hero-kicker {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-btn,
    .ghost-btn {
        width: 100%;
    }

    .card-grid,
    .card-grid.six,
    .wide-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .soft-panel,
    .detail-body {
        padding: 24px;
    }

    .wide-card {
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .wide-poster img {
        height: 118px;
    }
}
