:root {
    --color-primary: #10b981;
    --color-primary-dark: #059669;
    --color-secondary: #14b8a6;
    --color-ink: #111827;
    --color-muted: #6b7280;
    --color-soft: #f0fdf4;
    --color-line: #d1fae5;
    --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.10);
    --shadow-hover: 0 25px 55px rgba(15, 23, 42, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--color-ink);
    background: linear-gradient(135deg, #ffffff 0%, #ecfdf5 48%, #f0fdfa 100%);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(209, 250, 229, 0.72);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #34d399, #14b8a6);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.28);
    transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
    transform: scale(1.08) rotate(-5deg);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}

.brand-title {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #059669, #0f766e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-subtitle {
    margin-top: 4px;
    font-size: 12px;
    color: #6b7280;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.main-nav a,
.mobile-panel a {
    color: #374151;
    font-weight: 650;
    border-radius: 14px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a {
    padding: 10px 14px;
}

.main-nav a:hover,
.main-nav a.is-current,
.mobile-panel a:hover {
    color: #047857;
    background: #ecfdf5;
}

.search-form {
    position: relative;
    width: 250px;
}

.search-form input {
    width: 100%;
    height: 42px;
    padding: 0 42px 0 18px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    outline: none;
    background: #ffffff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-form input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.search-form button {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: #10b981;
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #ecfdf5;
    color: #047857;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 0 20px 18px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
}

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

.mobile-panel a {
    display: block;
    padding: 12px 14px;
    margin-top: 8px;
}

.mobile-panel .search-form {
    width: 100%;
    margin: 14px 0 10px;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.9s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.84) 0%, rgba(15, 23, 42, 0.62) 45%, rgba(15, 23, 42, 0.18) 100%);
}

.hero-glow {
    position: absolute;
    left: 8%;
    bottom: -130px;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.34);
    filter: blur(70px);
}

.hero-content {
    position: relative;
    max-width: 1180px;
    min-height: 620px;
    margin: 0 auto;
    padding: 80px 20px;
    display: flex;
    align-items: center;
}

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

.hero-eyebrow,
.page-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #6ee7b7;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0 0 20px;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.hero-copy p {
    max-width: 660px;
    margin: 0 0 28px;
    color: #e5e7eb;
    font-size: 19px;
    line-height: 1.8;
}

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

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

.button-primary {
    color: #ffffff;
    background: #10b981;
    box-shadow: 0 16px 35px rgba(16, 185, 129, 0.28);
}

.button-primary:hover {
    background: #059669;
    transform: translateY(-2px) scale(1.02);
}

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

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

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

.hero-dots button {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 34px;
    background: #10b981;
}

.main-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 56px 20px 76px;
}

.section {
    margin-bottom: 64px;
}

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

.section-kicker {
    color: #059669;
    font-weight: 850;
    margin-bottom: 8px;
}

.section-title {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.18;
    letter-spacing: -0.025em;
}

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

.section-more {
    color: #047857;
    font-weight: 800;
    white-space: nowrap;
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(209, 250, 229, 0.82);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: var(--shadow-hover);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #d1fae5, #ccfbf1);
}

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

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

.poster-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.72);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 800;
}

.poster-score {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #064e3b;
    background: #d1fae5;
    font-size: 12px;
    font-weight: 900;
}

.card-body {
    padding: 18px;
}

.card-title {
    display: block;
    color: #111827;
    font-size: 18px;
    font-weight: 850;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.card-title:hover {
    color: #059669;
}

.card-meta,
.detail-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    color: #6b7280;
    font-size: 13px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f3f4f6;
}

.card-desc {
    margin: 14px 0 0;
    color: #4b5563;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #047857;
    background: #ecfdf5;
    font-size: 12px;
    font-weight: 750;
}

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 178px;
    padding: 24px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #14b8a6);
    box-shadow: var(--shadow-card);
}

.category-card:nth-child(2n) {
    background: linear-gradient(135deg, #0f766e, #22c55e);
}

.category-card:nth-child(3n) {
    background: linear-gradient(135deg, #047857, #06b6d4);
}

.category-card::after {
    content: "";
    position: absolute;
    right: -54px;
    bottom: -54px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.category-card h3 {
    position: relative;
    margin: 0 0 12px;
    font-size: 25px;
}

.category-card p {
    position: relative;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}

.category-card span {
    position: relative;
    display: inline-flex;
    margin-top: 18px;
    font-weight: 850;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 64px 140px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid rgba(209, 250, 229, 0.78);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.rank-number {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #14b8a6);
    font-weight: 900;
}

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

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

.rank-title {
    margin: 0;
    font-size: 19px;
    line-height: 1.35;
}

.rank-title a:hover {
    color: #059669;
}

.rank-desc {
    margin: 7px 0 0;
    color: #6b7280;
    line-height: 1.65;
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(135deg, #10b981, #0f766e 55%, #14b8a6);
}

.page-hero-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 68px 20px;
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -0.035em;
}

.page-hero p {
    max-width: 780px;
    margin: 16px 0 0;
    color: #ecfdf5;
    font-size: 18px;
    line-height: 1.8;
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 42px;
}

.pagination a,
.pagination span {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 12px;
    background: #ffffff;
    color: #374151;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    font-weight: 800;
}

.pagination a:hover,
.pagination .is-current {
    color: #ffffff;
    background: #10b981;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb a {
    color: #047857;
    font-weight: 750;
}

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

.detail-card,
.side-card,
.text-panel {
    border: 1px solid rgba(209, 250, 229, 0.82);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-card);
}

.detail-card {
    overflow: hidden;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.player-shell video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
    object-fit: contain;
    cursor: pointer;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, rgba(2, 6, 23, 0.2) 45%, rgba(2, 6, 23, 0.52) 100%);
    cursor: pointer;
    transition: opacity 0.22s ease;
}

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

.player-start span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #10b981;
    box-shadow: 0 18px 45px rgba(16, 185, 129, 0.38);
    font-size: 34px;
    transform: translateX(3px);
}

.player-state {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 2;
    padding: 7px 12px;
    border-radius: 999px;
    color: #d1fae5;
    background: rgba(2, 6, 23, 0.62);
    font-size: 12px;
    font-weight: 750;
}

.detail-main {
    padding: 28px;
}

.detail-main h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

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

.text-panel {
    padding: 28px;
    margin-top: 24px;
}

.text-panel h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.text-panel p {
    margin: 0;
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
    white-space: pre-line;
}

.side-card {
    padding: 22px;
    margin-bottom: 24px;
}

.side-card h2,
.side-card h3 {
    margin: 0 0 16px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 16 / 10;
    background: #d1fae5;
    margin-bottom: 18px;
}

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

.info-line {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eef2f7;
}

.info-line:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.info-label {
    color: #6b7280;
}

.info-value {
    font-weight: 800;
    text-align: right;
}

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

.related-link {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 12px;
    padding: 8px;
    margin: -8px;
    border-radius: 16px;
    transition: background 0.2s ease;
}

.related-link:hover {
    background: #f9fafb;
}

.related-cover {
    overflow: hidden;
    border-radius: 14px;
    aspect-ratio: 16 / 10;
    background: #d1fae5;
}

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

.related-title {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.42;
}

.related-link:hover .related-title {
    color: #059669;
}

.related-small {
    color: #6b7280;
    font-size: 12px;
}

.search-empty {
    padding: 60px 20px;
    text-align: center;
    color: #6b7280;
}

.site-footer {
    border-top: 1px solid rgba(209, 250, 229, 0.8);
    background: linear-gradient(135deg, #f9fafb, #ecfdf5);
}

.footer-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 42px 20px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 30px;
}

.footer-title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 850;
    color: #047857;
}

.footer-inner p {
    margin: 0;
    color: #6b7280;
    line-height: 1.8;
}

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

.footer-links h3 {
    margin: 0 0 4px;
}

.footer-links a {
    color: #4b5563;
}

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

.footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 20px 30px;
    color: #6b7280;
    font-size: 14px;
    border-top: 1px solid rgba(209, 250, 229, 0.8);
}

@media (max-width: 1040px) {
    .main-nav,
    .header-inner > .search-form {
        display: none;
    }

    .menu-toggle {
        display: inline-grid;
        place-items: center;
        margin-left: auto;
    }

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

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

    .rank-item {
        grid-template-columns: 48px 120px 1fr;
    }

    .rank-views {
        grid-column: 3;
    }
}

@media (max-width: 760px) {
    .header-inner {
        min-height: 66px;
        padding: 0 16px;
    }

    .brand {
        min-width: 0;
    }

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

    .brand-subtitle {
        display: none;
    }

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

    .hero-content {
        padding: 76px 18px;
        align-items: flex-end;
    }

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

    .section-head {
        display: block;
    }

    .section-more {
        display: inline-flex;
        margin-top: 14px;
    }

    .grid,
    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5 {
        grid-template-columns: 1fr;
    }

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

    .rank-cover {
        grid-column: 1 / -1;
    }

    .rank-views {
        grid-column: 2;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

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