/* Static movie website styles generated from the uploaded emerald / teal gradient visual system. */
:root {
    --color-emerald: #059669;
    --color-teal: #0d9488;
    --color-cyan: #0891b2;
    --color-amber: #f59e0b;
    --color-rose: #f43f5e;
    --color-slate-950: #020617;
    --color-slate-900: #0f172a;
    --color-slate-800: #1e293b;
    --color-slate-700: #334155;
    --color-slate-600: #475569;
    --color-slate-500: #64748b;
    --color-slate-200: #e2e8f0;
    --color-slate-100: #f1f5f9;
    --color-white: #ffffff;
    --shadow-soft: 0 16px 50px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-slate-900);
    background: linear-gradient(135deg, #f8fafc 0%, #ecfdf5 44%, #f0fdfa 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 16px;
    z-index: 1000;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--color-white);
    background: var(--color-slate-950);
}

.skip-link:focus {
    left: 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--color-emerald), var(--color-teal), var(--color-cyan));
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.25);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--color-white);
    font-weight: 800;
    letter-spacing: 0.03em;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-title {
    font-size: 20px;
}

.logo-subtitle {
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 500;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--color-white);
    font-weight: 700;
}

.main-nav a {
    padding: 10px 0;
    color: rgba(255, 255, 255, 0.94);
    transition: color 0.2s ease, transform 0.2s ease;
}

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

.nav-dropdown {
    position: relative;
}

.nav-dropdown-panel {
    position: absolute;
    top: 100%;
    right: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    gap: 8px;
    min-width: 330px;
    padding: 14px;
    border-radius: 18px;
    color: var(--color-slate-900);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-panel a {
    padding: 9px 10px;
    border-radius: 12px;
    color: var(--color-slate-700);
    background: #f8fafc;
}

.nav-dropdown-panel a:hover,
.nav-dropdown-panel a:focus {
    color: var(--color-emerald);
    background: #ecfdf5;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-search {
    position: relative;
    min-width: 230px;
}

.header-search input {
    width: 100%;
    padding: 10px 14px 10px 36px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    outline: none;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.header-search input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.85);
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.16);
}

.mobile-nav {
    display: none;
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    padding: 0 0 18px;
}

.mobile-nav a {
    display: block;
    padding: 11px 14px;
    border-radius: 12px;
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.12);
    margin-top: 8px;
}

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

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

.hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    color: var(--color-white);
    background: radial-gradient(circle at 18% 15%, rgba(16, 185, 129, 0.46), transparent 32%),
        radial-gradient(circle at 85% 12%, rgba(6, 182, 212, 0.35), transparent 34%),
        linear-gradient(135deg, #111827 0%, #064e3b 48%, #134e4a 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    pointer-events: none;
}

.hero::before {
    width: 380px;
    height: 380px;
    left: -110px;
    top: 120px;
    background: rgba(16, 185, 129, 0.18);
}

.hero::after {
    width: 280px;
    height: 280px;
    right: -80px;
    bottom: 80px;
    background: rgba(34, 211, 238, 0.16);
}

.hero-slider {
    position: relative;
    z-index: 1;
    min-height: 680px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.20;
    filter: saturate(1.15) contrast(1.05);
}

.hero-bg.cover-fallback {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.35), rgba(8, 145, 178, 0.25));
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.28));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 46px;
    align-items: center;
    padding: 96px 0 128px;
}

.hero-copy {
    max-width: 760px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(250, 204, 21, 0.30);
    border-radius: 999px;
    color: #facc15;
    background: rgba(250, 204, 21, 0.10);
    backdrop-filter: blur(8px);
    font-weight: 700;
}

.hero h1 {
    margin: 24px 0 18px;
    font-size: clamp(40px, 7vw, 70px);
    line-height: 1.08;
    letter-spacing: -0.06em;
}

.hero-desc {
    max-width: 720px;
    margin: 0 0 28px;
    color: #d1d5db;
    font-size: clamp(17px, 2.4vw, 22px);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.hero-meta span,
.movie-tag,
.meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #065f46;
    background: #d1fae5;
    font-size: 13px;
    font-weight: 700;
}

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

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

.btn:hover,
.btn:focus {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--color-white);
    background: linear-gradient(90deg, var(--color-emerald), var(--color-teal));
    box-shadow: 0 12px 26px rgba(5, 150, 105, 0.32);
}

.btn-secondary {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(10px);
}

.hero-poster-card {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    min-height: 500px;
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

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

.hero-poster-card.cover-fallback {
    display: grid;
    place-items: center;
    padding: 36px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.45), rgba(6, 182, 212, 0.28));
}

.cover-fallback-title {
    display: none;
    padding: 16px;
    color: var(--color-white);
    font-size: 22px;
    font-weight: 900;
    text-align: center;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.28);
}

.cover-fallback .cover-fallback-title {
    display: block;
}

.poster-glass {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 16px;
    border-radius: 20px;
    color: var(--color-white);
    background: rgba(2, 6, 23, 0.64);
    backdrop-filter: blur(12px);
}

.hero-controls {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.hero-dot.is-active {
    width: 34px;
    background: var(--color-white);
}

.section {
    padding: 64px 0;
}

.section-tight {
    padding: 40px 0;
}

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

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

.section-title span {
    color: var(--color-emerald);
}

.section-desc {
    max-width: 680px;
    margin: 8px 0 0;
    color: var(--color-slate-600);
}

.view-more {
    color: var(--color-emerald);
    font-weight: 800;
}

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

.movie-grid.compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.movie-card {
    display: block;
    border-radius: var(--radius-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #059669, #0891b2);
}

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

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

.quality-badge,
.rank-badge,
.year-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: var(--color-white);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.quality-badge {
    right: 10px;
    top: 10px;
    padding: 4px 9px;
    background: rgba(5, 150, 105, 0.92);
}

.year-badge {
    left: 10px;
    top: 10px;
    padding: 4px 9px;
    background: rgba(2, 6, 23, 0.66);
}

.rank-badge {
    left: 10px;
    top: 10px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #f43f5e, #f59e0b);
    box-shadow: 0 10px 24px rgba(244, 63, 94, 0.35);
}

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

.movie-title {
    display: -webkit-box;
    min-height: 48px;
    margin: 0 0 8px;
    overflow: hidden;
    color: var(--color-slate-900);
    font-size: 17px;
    font-weight: 900;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--color-slate-500);
    font-size: 13px;
}

.category-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 1fr);
    gap: 18px;
    overflow-x: auto;
    padding: 4px 2px 16px;
    scroll-snap-type: x mandatory;
}

.category-card {
    scroll-snap-align: start;
    display: block;
    min-height: 180px;
    padding: 22px;
    border-radius: var(--radius-lg);
    color: var(--color-slate-900);
    background: linear-gradient(135deg, #d1fae5, #cffafe);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease;
}

.category-card:hover,
.category-card:focus {
    transform: translateY(-4px);
}

.category-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 22px;
}

.category-card span {
    color: var(--color-emerald);
    font-weight: 900;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: var(--radius-lg);
    background: var(--color-white);
    box-shadow: var(--shadow-card);
}

.rank-thumb {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(135deg, #059669, #0891b2);
}

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

.rank-info h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.rank-info p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--color-slate-600);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 170px 170px 150px;
    gap: 12px;
    padding: 18px;
    margin-bottom: 28px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(10px);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #dbe4ed;
    border-radius: 14px;
    outline: none;
    background: var(--color-white);
}

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

.result-count {
    margin: -12px 0 20px;
    color: var(--color-slate-600);
    font-weight: 700;
}

.page-hero {
    padding: 64px 0 44px;
    color: var(--color-white);
    background: radial-gradient(circle at 12% 18%, rgba(250, 204, 21, 0.18), transparent 30%),
        linear-gradient(135deg, #064e3b, #0f766e, #155e75);
}

.page-hero h1 {
    max-width: 860px;
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.15;
    letter-spacing: -0.05em;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.80);
    font-size: 14px;
}

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

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

.player-card,
.detail-card,
.side-card {
    border-radius: var(--radius-xl);
    background: var(--color-white);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.player-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-stage video {
    width: 100%;
    height: 100%;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 30px;
    color: var(--color-white);
    background: radial-gradient(circle, rgba(15, 23, 42, 0.24), rgba(2, 6, 23, 0.82));
    text-align: center;
}

.play-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    color: var(--color-white);
    background: linear-gradient(90deg, var(--color-emerald), var(--color-teal));
    box-shadow: 0 16px 35px rgba(5, 150, 105, 0.35);
    font-weight: 900;
}

.player-status {
    margin-top: 12px;
    color: #d1d5db;
    font-size: 14px;
}

.player-card.is-playing .player-overlay {
    display: none;
}

.detail-card {
    padding: 24px;
}

.detail-card h2,
.side-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.detail-card p {
    margin: 0 0 16px;
    color: var(--color-slate-700);
}

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

.detail-meta-grid div {
    padding: 13px;
    border-radius: 14px;
    background: #f8fafc;
}

.detail-meta-grid strong {
    display: block;
    color: var(--color-slate-500);
    font-size: 12px;
}

.detail-meta-grid span {
    color: var(--color-slate-900);
    font-weight: 800;
}

.side-card {
    padding: 18px;
}

.side-poster {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 3 / 4;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #059669, #0891b2);
}

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

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

.related-item {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: #f8fafc;
}

.related-thumb {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(135deg, #059669, #0891b2);
}

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

.related-title {
    display: block;
    color: var(--color-slate-900);
    font-weight: 900;
}

.related-meta {
    display: block;
    color: var(--color-slate-500);
    font-size: 13px;
}

.sitemap-list {
    columns: 4 220px;
    column-gap: 28px;
}

.sitemap-list a {
    display: block;
    break-inside: avoid;
    padding: 5px 0;
    color: var(--color-slate-700);
}

.sitemap-list a:hover,
.sitemap-list a:focus {
    color: var(--color-emerald);
}

.site-footer {
    margin-top: 68px;
    color: #cbd5e1;
    background: #0f172a;
}

.footer-inner {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    padding: 46px 0;
}

.footer-title {
    color: var(--color-white);
    font-size: 20px;
    font-weight: 900;
}

.footer-inner p {
    margin: 10px 0 0;
}

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

.footer-links a:hover,
.footer-links a:focus {
    color: #34d399;
}

.footer-bottom {
    padding: 18px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

.empty-message {
    display: none;
    padding: 32px;
    border-radius: var(--radius-lg);
    color: var(--color-slate-600);
    background: var(--color-white);
    box-shadow: var(--shadow-card);
    text-align: center;
}

.empty-message.is-visible {
    display: block;
}

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

    .mobile-toggle {
        display: inline-grid;
        place-items: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-poster-card {
        display: none;
    }

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

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

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

@media (max-width: 760px) {
    .header-inner {
        min-height: 64px;
    }

    .logo-title {
        font-size: 17px;
    }

    .logo-subtitle {
        display: none;
    }

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

    .hero-content {
        padding: 72px 0 112px;
    }

    .hero h1 {
        letter-spacing: -0.04em;
    }

    .section {
        padding: 44px 0;
    }

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

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

    .rank-list {
        grid-template-columns: 1fr;
    }

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

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

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

@media (max-width: 440px) {
    .movie-grid,
    .movie-grid.compact {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}
