:root {
    --bg: #f8fafc;
    --text: #111827;
    --muted: #667085;
    --line: #e5e7eb;
    --card: #ffffff;
    --emerald: #059669;
    --emerald-dark: #047857;
    --teal: #0f766e;
    --cyan: #0891b2;
    --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 18px 45px rgba(15, 23, 42, 0.14);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(229, 231, 235, 0.85);
    backdrop-filter: blur(18px);
}

.site-header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #064e3b;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-icon {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(5, 150, 105, 0.25);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: #344054;
    font-size: 15px;
    font-weight: 650;
    transition: 0.2s ease;
}

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

.mobile-nav-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    background: #ecfdf5;
    border: 0;
    border-radius: 12px;
}

.mobile-nav-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--emerald-dark);
    border-radius: 999px;
}

.hero-carousel {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    background: linear-gradient(135deg, #059669, #0f766e 52%, #0891b2);
}

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

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

.hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.46;
    mix-blend-mode: overlay;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 30%, rgba(16, 185, 129, 0.55), transparent 28%),
        linear-gradient(90deg, rgba(2, 44, 34, 0.92) 0%, rgba(6, 78, 59, 0.74) 42%, rgba(2, 44, 34, 0.25) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 16px;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.92);
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.hero-content h1,
.page-hero h1 {
    max-width: 780px;
    margin: 0 0 18px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-summary,
.page-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(17px, 2vw, 21px);
}

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

.hero-tags span,
.tag-row span,
.detail-labels span {
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.96);
    font-size: 13px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

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

.primary-button,
.search-box button {
    color: var(--emerald-dark);
    background: #ffffff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.primary-button:hover,
.search-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.2);
}

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

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

.hero-dots {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 34px;
    display: flex;
    gap: 10px;
}

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

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

.content-section,
.split-section,
.rank-section,
.detail-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

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

.section-heading {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-heading h2 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.section-heading p,
.movie-card-body em,
.compact-card em,
.rank-info em,
.footer-inner p,
.detail-one-line {
    color: var(--muted);
}

.compact-heading {
    margin-left: 0;
    text-align: left;
}

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

.category-tile,
.category-overview-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 118px;
    padding: 20px;
    border: 1px solid rgba(16, 185, 129, 0.16);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.category-overview-card:hover,
.movie-card:hover,
.compact-card:hover,
.rank-row:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.38);
    box-shadow: var(--shadow-md);
}

.category-tile span,
.category-overview-card strong {
    color: #064e3b;
    font-size: 20px;
    font-weight: 850;
}

.category-tile em,
.category-overview-card em {
    color: var(--emerald-dark);
    font-style: normal;
    font-weight: 750;
}

.category-tile-all {
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
}

.category-tile-all span,
.category-tile-all em {
    color: #ffffff;
}

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

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

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

.movie-card {
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: 0.25s ease;
}

.movie-card-link {
    display: flex;
    height: 100%;
    flex-direction: column;
}

.poster-frame {
    position: relative;
    display: block;
    width: 100%;
    min-height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #d1fae5, #ccfbf1, #e0f2fe);
}

.movie-card-feature .poster-frame,
.movie-card-grid .poster-frame {
    aspect-ratio: 16 / 10;
}

.movie-card-wide .poster-frame {
    min-height: 360px;
}

.poster-frame img,
.compact-card img,
.rank-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .poster-frame img,
.compact-card:hover img,
.rank-row:hover img {
    transform: scale(1.06);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.52));
    opacity: 0.72;
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    color: var(--emerald-dark);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: 0.22s ease;
}

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

.poster-label {
    position: absolute;
    right: 14px;
    top: 14px;
    padding: 6px 11px;
    color: var(--emerald-dark);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
}

.movie-card-body strong,
.compact-card strong,
.rank-info strong {
    color: var(--text);
    font-size: 18px;
    line-height: 1.35;
}

.movie-card-body em,
.compact-card em,
.rank-info em {
    display: -webkit-box;
    overflow: hidden;
    font-style: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    color: #667085;
    font-size: 13px;
}

.movie-meta-row span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f2f4f7;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 24px;
    padding: 70px 0;
}

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

.compact-card,
.rank-row {
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    transition: 0.22s ease;
    overflow: hidden;
}

.compact-card a,
.rank-row a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
}

.compact-card img {
    width: 88px;
    height: 88px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: linear-gradient(135deg, #d1fae5, #e0f2fe);
}

.compact-card span,
.rank-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.compact-card small,
.rank-info small {
    color: #667085;
}

.rank-number,
.rank-badge {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--emerald), var(--cyan));
    border-radius: 10px;
    font-weight: 850;
}

.page-hero {
    color: #ffffff;
    background: linear-gradient(135deg, #047857, #0f766e 56%, #0891b2);
}

.small-hero,
.search-hero {
    padding: 74px max(16px, calc((100vw - 1180px) / 2));
}

.small-hero h1,
.search-hero h1 {
    margin: 0 0 14px;
}

.category-overview-card span {
    min-height: 52px;
    color: var(--muted);
}

.category-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 28px;
}

.category-filter-row a {
    padding: 9px 14px;
    color: var(--emerald-dark);
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #ecfdf5;
    font-weight: 750;
}

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

.pagination a,
.pagination span {
    min-width: 42px;
    padding: 9px 12px;
    text-align: center;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    color: #344054;
    font-weight: 750;
}

.pagination a.active,
.pagination a:hover {
    color: #ffffff;
    background: var(--emerald);
}

.rank-section {
    display: grid;
    gap: 14px;
    padding: 56px 0;
}

.rank-row img {
    width: 110px;
    height: 78px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: linear-gradient(135deg, #d1fae5, #e0f2fe);
}

.rank-info {
    flex: 1;
}

.rank-action {
    padding: 8px 14px;
    color: var(--emerald-dark);
    background: #ecfdf5;
    border-radius: 999px;
    font-weight: 800;
}

.detail-main {
    padding: 30px 0 70px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    color: #667085;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--emerald-dark);
    font-weight: 750;
}

.detail-panel {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.player-frame {
    position: relative;
    overflow: hidden;
    background: #000000;
}

.player-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #ffffff;
    border: 0;
    background: radial-gradient(circle at center, rgba(5, 150, 105, 0.35), rgba(0, 0, 0, 0.72));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-play-icon {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    color: var(--emerald-dark);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 50%;
    font-size: 30px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
}

.detail-content {
    padding: clamp(24px, 5vw, 44px);
}

.detail-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.detail-labels span,
.tag-row span {
    color: var(--emerald-dark);
    background: #ecfdf5;
}

.detail-content h1 {
    margin: 0 0 14px;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.detail-one-line {
    margin: 0;
    padding-left: 18px;
    border-left: 4px solid var(--emerald);
    font-size: 19px;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 30px 0;
}

.detail-meta div {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f9fafb;
}

.detail-meta dt {
    margin: 0 0 4px;
    color: #667085;
    font-size: 13px;
}

.detail-meta dd {
    margin: 0;
    color: var(--text);
    font-weight: 750;
}

.article-block {
    margin: 28px 0 0;
}

.article-block h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.article-block p {
    margin: 0;
    color: #344054;
    font-size: 17px;
}

.related-section {
    width: 100%;
}

.search-box {
    display: flex;
    width: min(720px, 100%);
    gap: 12px;
    margin-top: 30px;
}

.search-box input {
    flex: 1;
    min-width: 0;
    min-height: 52px;
    padding: 0 18px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    outline: none;
    backdrop-filter: blur(14px);
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.empty-note {
    padding: 28px;
    color: #667085;
    border-radius: 16px;
    background: #ffffff;
}

.site-footer {
    padding: 48px 0 26px;
    color: #d1fae5;
    background: #052e25;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

.footer-logo {
    color: #ffffff;
}

.footer-inner p {
    max-width: 560px;
    color: rgba(209, 250, 229, 0.82);
}

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

.footer-links a {
    padding: 8px 12px;
    color: #d1fae5;
    border: 1px solid rgba(209, 250, 229, 0.18);
    border-radius: 999px;
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 30px auto 0;
    color: rgba(209, 250, 229, 0.68);
    font-size: 13px;
}

.site-image.is-missing {
    opacity: 0;
}

@media (max-width: 980px) {
    .movie-grid-feature,
    .movie-grid-grid,
    .category-grid,
    .category-overview-grid,
    .compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split-section {
        grid-template-columns: 1fr;
    }

    .site-nav {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 78px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid rgba(229, 231, 235, 0.92);
        border-radius: 16px;
        background: #ffffff;
        box-shadow: var(--shadow-md);
    }

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

    .mobile-nav-button {
        display: block;
    }
}

@media (max-width: 640px) {
    .site-header-inner,
    .content-section,
    .split-section,
    .rank-section,
    .detail-main,
    .footer-inner,
    .copyright {
        width: min(100% - 24px, 1180px);
    }

    .hero-carousel {
        min-height: 620px;
    }

    .hero-content {
        width: min(100% - 28px, 1180px);
    }

    .hero-actions,
    .search-box,
    .footer-inner {
        flex-direction: column;
    }

    .primary-button,
    .ghost-button,
    .search-box button {
        width: 100%;
    }

    .movie-grid-feature,
    .movie-grid-grid,
    .category-grid,
    .category-overview-grid,
    .compact-grid,
    .detail-meta {
        grid-template-columns: 1fr;
    }

    .compact-card a,
    .rank-row a {
        align-items: flex-start;
    }

    .rank-action {
        display: none;
    }

    .footer-links {
        justify-content: flex-start;
    }
}
