
:root {
    --primary: #059669;
    --secondary: #0d9488;
    --accent: #f59e0b;
    --cyan: #0891b2;
    --dark: #0f172a;
    --muted: #64748b;
    --soft: #f8fafc;
    --line: #e2e8f0;
    --radius: 24px;
    --shadow: 0 20px 55px rgba(15, 23, 42, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #eefdf7 55%, #f8fafc 100%);
    color: var(--dark);
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #059669, #0d9488, #0891b2);
    box-shadow: 0 12px 32px rgba(8, 145, 178, 0.28);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #fde68a;
    color: #047857;
    font-size: 17px;
    box-shadow: 0 12px 28px rgba(253, 230, 138, 0.35);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
    flex: 1;
}

.main-nav a {
    padding: 8px 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fde68a;
    transform: translateY(-1px);
}

.top-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 4px;
    min-width: 270px;
}

.top-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 9px 12px 9px 18px;
    color: #0f172a;
}

.top-search button,
.wide-search button,
.filter-panel button {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #059669, #0d9488);
    color: #ffffff;
    padding: 9px 18px;
    font-weight: 800;
    cursor: pointer;
}

.menu-button {
    display: none;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 30px;
    cursor: pointer;
}

.hero-slider {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
    background-image: linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.68), rgba(15, 118, 110, 0.35)), var(--hero-image);
    background-size: cover;
    background-position: center;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(20, 184, 166, 0.45), transparent 32%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.18) 55%, rgba(2, 6, 23, 0.82));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    min-height: 650px;
    margin: 0 auto;
    padding: 88px 24px 94px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 410px);
    align-items: center;
    gap: 56px;
}

.hero-copy {
    color: #ffffff;
}

.hero-kicker,
.detail-label,
.page-hero span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.18);
    color: #a7f3d0;
    border: 1px solid rgba(167, 243, 208, 0.28);
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-copy h1 {
    margin: 22px 0 18px;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.04em;
    text-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.hero-copy p {
    max-width: 720px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 20px;
    line-height: 1.85;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags {
    margin: 26px 0 30px;
}

.hero-tags span,
.tag-row span {
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 13px;
    font-weight: 700;
}

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

.primary-button,
.ghost-button,
.section-more a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 13px 26px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(90deg, #10b981, #0d9488);
    box-shadow: 0 16px 36px rgba(16, 185, 129, 0.35);
}

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

.primary-button:hover,
.ghost-button:hover,
.section-more a:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-poster {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.46);
    aspect-ratio: 3 / 4;
    transform: rotate(2deg);
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.35), transparent 45%);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(8px);
    font-size: 34px;
    cursor: pointer;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

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

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

main,
.page-main,
.detail-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.search-band {
    margin: -54px auto 56px;
    position: relative;
    z-index: 8;
    padding: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
    gap: 24px;
    align-items: center;
    border-radius: var(--radius);
    color: #ffffff;
    background: linear-gradient(110deg, #059669, #0d9488, #0891b2);
    box-shadow: var(--shadow);
}

.search-band h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.search-band p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.wide-search {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
}

.wide-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #0f172a;
    padding: 12px 18px;
    border-radius: 999px;
}

.content-section {
    margin: 64px 0;
}

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

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

.section-title p {
    margin: 8px 0 0;
    color: var(--muted);
    max-width: 600px;
}

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

.movie-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #0f172a;
}

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

.movie-card:hover .poster img {
    transform: scale(1.06);
    filter: saturate(1.1);
}

.poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.66), transparent 48%);
    opacity: 0.8;
}

.poster-year,
.rank-badge,
.poster-play {
    position: absolute;
    z-index: 2;
}

.poster-year {
    right: 14px;
    bottom: 14px;
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.72);
    color: #ffffff;
    padding: 6px 10px;
    font-weight: 800;
    font-size: 13px;
}

.rank-badge {
    left: 14px;
    top: 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #f43f5e);
    color: #ffffff;
    min-width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    font-weight: 900;
}

.poster-play {
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    transform: translate(-50%, -50%) scale(0.86);
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #047857;
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-info {
    padding: 20px;
}

.movie-info h3 {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.35;
}

.movie-info h3 a:hover {
    color: var(--primary);
}

.movie-info p {
    margin: 0;
    color: #475569;
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
    color: #475569;
    font-size: 13px;
}

.movie-meta span:first-child {
    color: #047857;
    background: #d1fae5;
}

.movie-meta span {
    border-radius: 999px;
    background: #f1f5f9;
    padding: 5px 10px;
    font-weight: 700;
}

.tag-row span {
    color: #047857;
    background: #ecfdf5;
    border-color: #d1fae5;
}

.movie-card-compact .poster {
    aspect-ratio: 16 / 9;
}

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

.category-tile {
    min-height: 150px;
    padding: 22px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    background: linear-gradient(135deg, #059669, #0891b2);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.category-tile::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    right: -50px;
    top: -40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.category-tile strong {
    position: relative;
    z-index: 1;
    font-size: 24px;
}

.category-tile span {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.6;
}

.section-more {
    margin-top: 28px;
    text-align: center;
}

.section-more a {
    background: #0f172a;
    color: #ffffff;
}

.page-main {
    padding-top: 36px;
}

.page-hero {
    position: relative;
    margin: 30px 0 46px;
    border-radius: 34px;
    padding: 64px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(120deg, #064e3b, #0d9488, #0891b2);
    box-shadow: var(--shadow);
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.18), transparent 24%),
        radial-gradient(circle at 15% 85%, rgba(253, 230, 138, 0.22), transparent 28%);
}

.page-hero > * {
    position: relative;
    z-index: 1;
}

.page-hero h1 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.1;
}

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

.slim-hero h1 {
    margin-top: 0;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 180px 180px 180px;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.10);
}

.filter-panel input,
.filter-panel select {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 13px 16px;
    outline: 0;
    background: #f8fafc;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 34px 0 22px;
    color: #64748b;
    font-weight: 700;
}

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

.detail-head {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 36px;
    border-radius: 34px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #115e59 50%, #0e7490);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.detail-poster {
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 26px 56px rgba(0, 0, 0, 0.38);
}

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

.detail-copy h1 {
    margin: 22px 0 16px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.08;
}

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

.detail-tags {
    margin: 22px 0 28px;
}

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

.player-frame {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: #020617;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.22);
    aspect-ratio: 16 / 9;
}

.movie-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.play-cover {
    position: absolute;
    inset: 0;
    border: 0;
    cursor: pointer;
    background: #020617;
    color: #ffffff;
    padding: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.play-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.58;
    filter: blur(1px) saturate(1.1);
}

.play-cover span {
    position: relative;
    z-index: 1;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.94);
    color: #047857;
    font-size: 36px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}

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

.detail-section {
    margin: 42px 0;
    padding: 34px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.detail-section h2 {
    margin: 0 0 18px;
    font-size: 30px;
}

.detail-section p {
    margin: 0;
    color: #475569;
    line-height: 2;
    font-size: 17px;
}

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

.site-footer {
    margin-top: 88px;
    background: #0f172a;
    color: #94a3b8;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    display: grid;
    grid-template-columns: minmax(260px, 1.2fr) 0.7fr 1.2fr;
    gap: 36px;
}

.footer-inner h3 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 22px;
}

.footer-inner p {
    margin: 0;
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-content: start;
}

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

.copyright {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px 34px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    text-align: center;
    font-size: 14px;
}

@media (max-width: 1180px) {
    .main-nav {
        gap: 12px;
        font-size: 14px;
    }

    .top-search {
        min-width: 220px;
    }

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

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

@media (max-width: 920px) {
    .header-inner {
        flex-wrap: wrap;
        min-height: 72px;
        padding: 14px 18px;
    }

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

    .top-search {
        order: 3;
        width: 100%;
    }

    .main-nav {
        display: none;
        order: 4;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 0 4px;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        min-height: 720px;
        padding-top: 66px;
    }

    .hero-poster {
        max-width: 320px;
        margin: 0 auto;
        transform: none;
    }

    .search-band,
    .filter-panel,
    .detail-head,
    .footer-inner {
        grid-template-columns: 1fr;
    }

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

    .detail-head {
        padding: 24px;
    }

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

@media (max-width: 640px) {
    main,
    .page-main,
    .detail-main {
        padding: 0 16px;
    }

    .logo {
        font-size: 20px;
    }

    .hero-slider,
    .hero-content {
        min-height: 700px;
    }

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

    .hero-arrow {
        display: none;
    }

    .search-band {
        margin-top: -34px;
        padding: 22px;
    }

    .wide-search {
        flex-direction: column;
        border-radius: 20px;
    }

    .section-title {
        display: block;
    }

    .movie-grid,
    .category-grid,
    .related-section .movie-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 34px 24px;
        border-radius: 24px;
    }

    .player-frame {
        border-radius: 18px;
    }

    .play-cover span {
        width: 74px;
        height: 74px;
        font-size: 28px;
    }

    .detail-section {
        padding: 24px;
    }
}
