:root {
    --emerald: #059669;
    --emerald-dark: #064e3b;
    --teal: #0d9488;
    --cyan: #0891b2;
    --ink: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --paper: #ffffff;
    --soft: #f9fafb;
    --shadow: 0 20px 35px rgba(15, 23, 42, 0.08);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

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

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

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    color: #fff;
    font-size: 14px;
    box-shadow: 0 10px 25px rgba(5, 150, 105, 0.25);
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 12px;
    color: #374151;
    font-weight: 650;
    transition: 0.2s ease;
}

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

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #111827;
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #064e3b, #115e59 48%, #164e63);
}

.hero-track {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

.hero-slide img {
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.hero-copy {
    width: min(650px, 100%);
    color: #fff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.22);
    color: #d1fae5;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(6px);
    margin-bottom: 22px;
}

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

.hero p {
    margin: 0 0 28px;
    max-width: 620px;
    color: #e5e7eb;
    font-size: clamp(17px, 2vw, 22px);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    background: #047857;
    box-shadow: 0 18px 34px rgba(5, 150, 105, 0.36);
}

.btn-ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
}

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

.hero-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    backdrop-filter: blur(8px);
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.28);
}

.hero-prev {
    left: 22px;
}

.hero-next {
    right: 22px;
}

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

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

.hero-dot.active {
    width: 32px;
    background: #fff;
}

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

.main-section.alt {
    background: linear-gradient(135deg, #f9fafb, #f3f4f6);
}

.main-section.featured {
    background: linear-gradient(135deg, var(--emerald), var(--teal));
    color: #fff;
}

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

.section-title {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 14px;
    align-items: center;
    margin-bottom: 28px;
}

.section-title span {
    width: 8px;
    height: 36px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--emerald), var(--teal));
}

.featured .section-title span {
    background: rgba(255, 255, 255, 0.6);
}

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

.section-title p {
    grid-column: 2;
    margin: -5px 0 0;
    color: var(--muted);
}

.featured .section-title p {
    color: rgba(255, 255, 255, 0.82);
}

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

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

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

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

.movie-card {
    background: var(--paper);
    border: 1px solid rgba(229, 231, 235, 0.85);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

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

.poster-link,
.large-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e5e7eb;
}

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

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

.quality,
.rank-badge {
    position: absolute;
    top: 12px;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    color: #fff;
    background: rgba(0, 0, 0, 0.68);
}

.quality {
    right: 12px;
}

.rank-badge {
    left: 12px;
    background: rgba(220, 38, 38, 0.92);
}

.play-hover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--emerald);
    font-size: 24px;
    opacity: 0;
    background: rgba(0, 0, 0, 0.26);
    transition: opacity 0.25s ease;
}

.play-hover::before {
    content: "";
    position: absolute;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.play-hover {
    isolation: isolate;
}

.play-hover {
    text-shadow: 0 0 0 currentColor;
}

.movie-card:hover .play-hover {
    opacity: 1;
}

.card-body {
    padding: 18px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--emerald);
    font-size: 13px;
    font-weight: 850;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

.card-body h3 a:hover {
    color: var(--emerald);
}

.card-meta {
    margin: 0 0 10px;
    color: #6b7280;
    font-size: 13px;
}

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

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.tag-row span {
    padding: 5px 8px;
    border-radius: 999px;
    color: #047857;
    background: #ecfdf5;
    font-size: 12px;
    font-weight: 700;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 220px 1fr;
}

.movie-card-horizontal .poster-link {
    aspect-ratio: auto;
    height: 100%;
    min-height: 170px;
}

.movie-card-large {
    border: 0;
    box-shadow: 0 18px 38px rgba(4, 120, 87, 0.22);
}

.large-poster {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
}

.large-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.08));
}

.large-overlay {
    position: absolute;
    z-index: 2;
    left: 24px;
    right: 24px;
    bottom: 22px;
    color: #fff;
}

.large-overlay h3 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.1;
}

.large-overlay p {
    margin: 0;
    color: #e5e7eb;
}

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

.category-tile {
    position: relative;
    min-height: 165px;
    padding: 24px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, #ffffff, #f0fdfa);
    border: 1px solid #d1fae5;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    transition: 0.25s ease;
}

.category-tile::after {
    content: "";
    position: absolute;
    right: -32px;
    bottom: -32px;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(5, 150, 105, 0.45);
}

.category-tile h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

.category-tile p {
    margin: 0 0 18px;
    color: #4b5563;
}

.category-tile span {
    color: var(--emerald);
    font-weight: 850;
}

.page-hero {
    padding: 70px 0;
    background: linear-gradient(135deg, #064e3b, #115e59 55%, #164e63);
    color: #fff;
}

.page-hero h1 {
    margin: 0 0 18px;
    max-width: 850px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.page-hero p {
    margin: 0;
    max-width: 780px;
    color: #d1d5db;
    font-size: 18px;
}

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

.breadcrumb a:hover {
    color: #fff;
}

.filter-panel {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box span {
    color: var(--emerald);
    font-weight: 850;
}

.search-box input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    padding: 12px 14px;
    outline: none;
    transition: 0.2s ease;
}

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

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 13px;
    background: #f3f4f6;
    color: #374151;
    font-weight: 800;
    cursor: pointer;
}

.filter-button:hover,
.filter-button.active {
    background: #ecfdf5;
    color: var(--emerald);
}

.no-results {
    display: none;
    padding: 40px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed #d1d5db;
    border-radius: var(--radius);
    background: #fff;
}

.player-band {
    background: #000;
}

.player-wrap {
    width: min(1180px, 100%);
    margin: 0 auto;
}

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

.player-shell video {
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    border: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.32);
    cursor: pointer;
}

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

.player-poster {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.player-poster img {
    height: 100%;
    object-fit: cover;
    opacity: 0.74;
    filter: blur(1px) saturate(1.1);
}

.player-play {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--emerald);
    font-size: 32px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
    transition: 0.25s ease;
}

.player-overlay:hover .player-play {
    transform: scale(1.08);
}

.player-message {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    display: none;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(220, 38, 38, 0.92);
    color: #fff;
    font-weight: 700;
}

.player-shell.is-error .player-message {
    display: block;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 28px;
    align-items: start;
}

.detail-card,
.side-card {
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.detail-card {
    padding: 30px;
}

.detail-card h1 {
    margin: 0 0 16px;
    font-size: clamp(30px, 4vw, 46px);
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.detail-meta span {
    padding: 7px 10px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 13px;
    font-weight: 800;
}

.content-block {
    margin-top: 26px;
}

.content-block h2 {
    margin: 0 0 12px;
    font-size: 25px;
}

.content-block p {
    margin: 0;
    color: #374151;
    font-size: 16px;
    line-height: 1.85;
}

.review-box {
    padding: 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
    border: 1px solid #d1fae5;
}

.side-card {
    padding: 22px;
    position: sticky;
    top: 92px;
}

.side-card h2 {
    margin: 0 0 18px;
    font-size: 22px;
}

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

.side-item {
    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 12px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    transition: 0.2s ease;
}

.side-item:hover {
    background: #f9fafb;
}

.side-item img {
    height: 68px;
    object-fit: cover;
    border-radius: 12px;
}

.side-item h3 {
    margin: 0 0 5px;
    font-size: 15px;
    line-height: 1.35;
}

.side-item p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 52px 0;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
}

.footer-logo {
    color: #fff;
    margin-bottom: 14px;
}

.footer-brand p {
    margin: 0;
    max-width: 420px;
    color: #9ca3af;
}

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

.footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.footer-column a {
    color: #9ca3af;
}

.footer-column a:hover {
    color: #34d399;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 24px;
    border-top: 1px solid rgba(75, 85, 99, 0.75);
    color: #6b7280;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .grid-cards,
    .category-tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .side-card {
        position: static;
    }
}

@media (max-width: 820px) {
    .menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: #fff;
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        padding: 13px 14px;
    }

    .hero {
        height: 540px;
    }

    .hero-arrow {
        display: none;
    }

    .grid-cards,
    .grid-three,
    .grid-two,
    .category-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .movie-card-horizontal {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        align-items: stretch;
        flex-direction: column;
    }

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

@media (max-width: 560px) {
    .site-nav,
    .container,
    .hero-content,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 22px, 1180px);
    }

    .hero {
        height: 520px;
    }

    .hero h1 {
        font-size: 38px;
    }

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

    .main-section,
    .page-hero {
        padding: 48px 0;
    }

    .grid-cards,
    .grid-three,
    .grid-two,
    .category-tiles {
        grid-template-columns: 1fr;
    }

    .detail-card {
        padding: 22px;
    }

    .side-item {
        grid-template-columns: 96px 1fr;
    }
}

.mini-links {
    display: grid;
    gap: 6px;
    margin: 14px 0 18px;
    position: relative;
    z-index: 1;
}

.mini-links a {
    color: #047857;
    font-size: 14px;
    font-weight: 700;
}

.mini-links a:hover {
    color: #064e3b;
}
