:root {
    --emerald: #059669;
    --emerald-dark: #065f46;
    --teal: #0f766e;
    --stone: #fafaf9;
    --slate: #1f2937;
    --muted: #6b7280;
    --soft: #f5f5f4;
    --line: #e7e5e4;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    color: #1f2937;
    background: var(--stone);
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, #065f46, #0f766e);
    box-shadow: 0 12px 30px rgba(6, 95, 70, 0.25);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    color: #064e3b;
    background: #ecfdf5;
    font-size: 18px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.desktop-nav a,
.mobile-panel a {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-panel a:hover,
.mobile-panel a.active {
    color: #d1fae5;
}

.search-form,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-form input,
.mobile-search input {
    width: 220px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    padding: 0 16px;
    color: #fff;
    outline: none;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.search-form input::placeholder,
.mobile-search input::placeholder {
    color: #d1fae5;
}

.search-form button,
.mobile-search button {
    height: 38px;
    border: 0;
    border-radius: 999px;
    color: #065f46;
    background: #ecfdf5;
    padding: 0 16px;
    font-weight: 700;
    cursor: pointer;
}

.mobile-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: #fff;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding: 16px 24px 22px;
}

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

.mobile-panel nav,
.mobile-cats {
    display: grid;
    gap: 14px;
}

.mobile-cats {
    margin-top: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero {
    position: relative;
    height: 600px;
    background: #000;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: absolute;
    left: 50%;
    bottom: 70px;
    width: min(1180px, calc(100% - 48px));
    transform: translateX(-50%);
    color: #fff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    margin: 0 0 16px;
    padding: 7px 14px;
    border-radius: 999px;
    color: #d1fae5;
    background: rgba(5, 150, 105, 0.75);
    font-weight: 700;
}

.hero-content h1 {
    margin: 0 0 18px;
    max-width: 860px;
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.08;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

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

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 26px;
    font-weight: 800;
    transition: transform 0.2s ease, background 0.2s ease;
}

.primary-btn {
    color: #fff;
    background: var(--emerald);
    box-shadow: 0 16px 34px rgba(5, 150, 105, 0.32);
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

.ghost-btn {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(12px);
}

.hero-control {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.48);
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.hero-control.prev {
    left: 22px;
}

.hero-control.next {
    right: 22px;
}

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

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

.hero-dots button.active {
    width: 34px;
    background: #fff;
}

.content-section {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 56px 0;
}

.inner-only {
    padding-left: 0;
    padding-right: 0;
}

.soft-section {
    background: linear-gradient(135deg, #f1f5f9, #f5f5f4);
}

.mint-section {
    background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 28px;
}

.section-title span {
    width: 8px;
    height: 34px;
    border-radius: 99px;
    background: var(--emerald);
}

.section-title-teal span {
    background: #0f766e;
}

.section-title-amber span {
    background: #d97706;
}

.section-title-rose span {
    background: #e11d48;
}

.section-title-sky span {
    background: #0284c7;
}

.section-title h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.2;
}

.section-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.section-headline > a {
    color: var(--emerald);
    font-weight: 800;
}

.scroll-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 320px;
    gap: 24px;
    overflow-x: auto;
    padding: 4px 2px 18px;
    scroll-snap-type: x proximity;
}

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

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(231, 229, 228, 0.9);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #111827;
}

.scroll-row .movie-poster,
.latest-item img {
    aspect-ratio: 16 / 9;
}

.movie-poster img,
.latest-item img,
.mini-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(5, 150, 105, 0.86);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.75);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.rank-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-weight: 900;
}

.movie-card-body {
    padding: 16px;
}

.movie-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.movie-line {
    min-height: 42px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta {
    margin: 0;
    color: #78716c;
    font-size: 13px;
}

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

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

.category-tile {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid rgba(16, 185, 129, 0.16);
    border-radius: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #fff, #ecfdf5);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-tile strong {
    color: #065f46;
    font-size: 23px;
}

.category-tile span {
    color: #57534e;
    line-height: 1.65;
}

.category-tile em {
    color: var(--emerald);
    font-style: normal;
    font-weight: 800;
}

.latest-list {
    display: grid;
    gap: 16px;
}

.latest-item {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    align-items: center;
    gap: 20px;
    border-radius: 18px;
    padding: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.latest-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.latest-item img {
    border-radius: 14px;
}

.latest-item strong,
.latest-item em {
    display: block;
}

.latest-item strong {
    margin-bottom: 8px;
    font-size: 20px;
}

.latest-item em {
    color: var(--muted);
    font-style: normal;
    line-height: 1.55;
}

.latest-item b {
    color: var(--emerald);
}

.page-main {
    min-height: 70vh;
}

.page-hero {
    background: radial-gradient(circle at 20% 10%, rgba(16, 185, 129, 0.26), transparent 35%), linear-gradient(135deg, #064e3b, #0f766e);
    color: #fff;
}

.page-hero.compact {
    padding: 72px 24px;
    text-align: center;
}

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

.page-hero p {
    max-width: 820px;
    margin: 0 auto;
    color: #d1fae5;
    font-size: 18px;
    line-height: 1.8;
}

.breadcrumb {
    width: min(1280px, calc(100% - 32px));
    margin: 24px auto 0;
    color: #78716c;
    font-size: 14px;
}

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

.breadcrumb span {
    margin: 0 8px;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 170px 170px 170px;
    gap: 12px;
    margin-bottom: 28px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.filter-panel input,
.filter-panel select {
    height: 44px;
    border: 1px solid #d6d3d1;
    border-radius: 12px;
    padding: 0 14px;
    color: #292524;
    background: #fff;
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--emerald);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

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

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

.player-section {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto 0;
}

.player-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: #000;
    transition: opacity 0.25s ease;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.player-cover span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(5, 150, 105, 0.9);
    font-size: 34px;
    transform: translate(-50%, -50%);
    box-shadow: 0 14px 38px rgba(5, 150, 105, 0.35);
}

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

.detail-hero,
.detail-content {
    width: min(1180px, calc(100% - 32px));
    margin: 30px auto 0;
}

.detail-hero {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
    padding: 28px;
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    border-radius: 18px;
    aspect-ratio: 2 / 3;
    background: #111827;
}

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

.detail-info h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.15;
}

.detail-one-line {
    margin: 0 0 18px;
    color: #57534e;
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.detail-meta span,
.tag-chip {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    border-radius: 999px;
    padding: 0 13px;
    font-weight: 700;
}

.detail-meta span {
    color: #065f46;
    background: #d1fae5;
}

.tag-row {
    margin-top: 16px;
}

.tag-chip {
    color: #57534e;
    background: #f5f5f4;
}

.detail-content {
    padding: 34px;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.detail-content h2 {
    margin: 0 0 18px;
    font-size: 26px;
}

.detail-content h2:not(:first-child) {
    margin-top: 28px;
}

.detail-content p {
    margin: 0 0 16px;
    color: #44403c;
    line-height: 1.9;
    font-size: 17px;
}

.related-section {
    padding-top: 36px;
}

.site-footer {
    margin-top: 30px;
    color: #d1d5db;
    background: linear-gradient(135deg, #1f2937, #111827);
}

.footer-grid {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
    gap: 34px;
}

.footer-grid h2 {
    margin: 0 0 16px;
    color: #fff;
    font-size: 18px;
}

.footer-grid p {
    margin: 14px 0 0;
    line-height: 1.75;
}

.footer-grid a:not(.mini-card):not(.footer-brand) {
    display: block;
    margin-bottom: 9px;
    color: #d1d5db;
}

.footer-grid a:hover {
    color: #6ee7b7;
}

.mini-card {
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.mini-card img {
    width: 58px;
    height: 58px;
    border-radius: 12px;
}

.mini-card span {
    color: #fff;
    font-weight: 700;
    line-height: 1.35;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px;
    text-align: center;
    color: #9ca3af;
}

.movie-card.is-hidden {
    display: none;
}

@media (max-width: 1100px) {
    .search-form {
        display: none;
    }

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

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

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

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

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

    .desktop-nav,
    .search-form {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .mobile-search input {
        width: 100%;
    }

    .hero {
        height: 520px;
    }

    .hero-content {
        bottom: 64px;
        width: calc(100% - 32px);
    }

    .hero-control {
        display: none;
    }

    .content-section {
        width: min(100% - 24px, 1280px);
        padding: 38px 0;
    }

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

    .scroll-row {
        grid-auto-columns: 82%;
    }

    .movie-grid.four,
    .movie-grid.five,
    .movie-grid.six,
    .ranking-list,
    .ranking-list.full {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .movie-card-body {
        padding: 12px;
    }

    .movie-card h3 {
        font-size: 16px;
    }

    .movie-line {
        min-height: auto;
        font-size: 13px;
    }

    .category-grid,
    .category-grid.large {
        grid-template-columns: 1fr;
    }

    .latest-item {
        grid-template-columns: 116px 1fr;
        align-items: start;
    }

    .latest-item b {
        display: none;
    }

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

    .player-section,
    .detail-hero,
    .detail-content {
        width: min(100% - 24px, 1180px);
    }

    .player-wrap {
        border-radius: 16px;
    }

    .detail-hero {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .detail-poster {
        width: 210px;
        max-width: 70%;
    }

    .detail-content {
        padding: 22px;
    }

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