
:root {
    --teal: #0d9488;
    --cyan: #0891b2;
    --emerald: #059669;
    --amber: #f59e0b;
    --orange: #f97316;
    --rose: #e11d48;
    --slate: #0f172a;
    --text: #1f2937;
    --muted: #64748b;
    --line: #e5e7eb;
    --surface: #ffffff;
    --soft: #f8fafc;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
    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(--text);
    background: #f3f6fb;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
    box-shadow: 0 10px 30px rgba(8, 145, 178, 0.2);
}

.header-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.brand-icon {
    color: #fde68a;
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    transition: transform 0.24s ease;
}

.brand:hover .brand-icon {
    transform: rotate(14deg) scale(1.05);
}

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

.nav-link {
    font-weight: 700;
    opacity: 0.94;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fde68a;
    opacity: 1;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: -18px;
    width: 190px;
    display: grid;
    padding: 10px;
    color: var(--text);
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    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 12px;
    border-radius: 10px;
    color: var(--text);
}

.nav-dropdown-panel a:hover {
    color: var(--teal);
    background: #ecfeff;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input {
    width: 220px;
    border: 0;
    outline: 0;
    color: var(--text);
    background: #fff;
    border-radius: 999px;
    padding: 10px 16px;
}

.header-search button,
.mobile-search button,
.filter-panel button {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    color: #fff;
    background: #f59e0b;
    padding: 10px 16px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.filter-panel button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.24);
}

.menu-toggle {
    display: none;
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 0 16px 18px;
}

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

.mobile-search {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

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

.mobile-nav {
    display: grid;
    gap: 8px;
}

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
}

.hero {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(105deg, var(--orange), #ec4899, var(--rose));
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.26), transparent 26%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.38), rgba(15, 23, 42, 0.08));
}

.hero-container {
    position: relative;
    min-height: 520px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 48px;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

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

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

.hero-copy h2 {
    margin: 0 0 14px;
    font-size: clamp(24px, 3vw, 36px);
}

.hero-copy p {
    margin: 0 0 24px;
    max-width: 700px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(16px, 2vw, 21px);
}

.hero-kicker,
.eyebrow {
    color: #fde68a;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-tags,
.detail-tags,
.card-tags,
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.detail-tags span,
.card-tags span,
.tag-cloud a {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

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

.btn,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    min-height: 44px;
    padding: 11px 20px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn.primary {
    color: #fff;
    background: linear-gradient(90deg, var(--teal), var(--cyan));
    box-shadow: 0 14px 30px rgba(13, 148, 136, 0.24);
}

.hero .btn.primary {
    color: var(--rose);
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

.btn.ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.14);
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.42);
    transform: perspective(900px) rotateY(-6deg);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-poster:hover img {
    transform: scale(1.06);
}

.hero-poster-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(15, 23, 42, 0.7));
}

.hero-play,
.play-mark,
.player-button {
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
}

.hero-play {
    position: absolute;
    left: 28px;
    bottom: 28px;
    width: 62px;
    height: 62px;
    color: var(--rose);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.24);
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 32px;
    display: flex;
    gap: 10px;
}

.hero-dots button {
    width: 38px;
    height: 8px;
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
}

.hero-dots button.is-active {
    background: #fff;
}

.quick-channel,
.alt-section {
    background: #ecfeff;
}

.quick-inner {
    display: grid;
    grid-template-columns: minmax(0, 260px) 1fr;
    gap: 28px;
    align-items: center;
    padding: 34px 0;
}

.quick-inner h2 {
    margin: 4px 0 0;
    font-size: 28px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.quick-links a {
    padding: 10px 15px;
    border-radius: 999px;
    color: var(--teal);
    font-weight: 900;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

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

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

.section-head h2,
.feature-text h2,
.page-hero h1,
.detail-article h2,
.detail-side h2,
.detail-info h2 {
    margin: 0;
    color: #0f172a;
    line-height: 1.22;
}

.section-head h2,
.feature-text h2 {
    font-size: clamp(26px, 3vw, 38px);
}

.section-more {
    color: var(--teal);
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

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

.movie-card {
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

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

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

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

.card-cover-shade {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0);
    transition: background 0.25s ease;
}

.movie-card:hover .card-cover-shade {
    background: rgba(15, 23, 42, 0.26);
}

.play-mark {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 52px;
    height: 52px;
    color: var(--teal);
    background: rgba(255, 255, 255, 0.92);
    opacity: 0;
    transform: scale(0.82);
    transition: all 0.22s ease;
}

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

.year-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.year-badge {
    right: 10px;
    bottom: 10px;
    background: rgba(15, 23, 42, 0.72);
}

.rank-badge {
    top: 10px;
    left: 10px;
    background: linear-gradient(90deg, var(--orange), var(--rose));
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 18px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
    color: #475569;
    font-size: 13px;
}

.card-meta span,
.card-meta a {
    border-radius: 7px;
    padding: 3px 7px;
    background: #f1f5f9;
}

.card-meta a {
    color: var(--teal);
    font-weight: 800;
}

.card-tags span,
.detail-tags span,
.tag-cloud a {
    color: #0f766e;
    background: #ccfbf1;
}

.movie-card.is-compact .card-line {
    min-height: auto;
}

.feature-strip {
    padding: 58px 0;
    background: linear-gradient(90deg, #f0fdfa, #ecfeff);
}

.feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
    gap: 36px;
    align-items: center;
}

.feature-text p {
    color: var(--muted);
}

.feature-list,
.side-list,
.category-preview {
    display: grid;
    gap: 14px;
}

.line-card {
    display: grid;
    grid-template-columns: 128px 1fr;
    gap: 14px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.line-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow);
}

.line-card img {
    width: 128px;
    height: 78px;
    object-fit: cover;
    border-radius: 12px;
    background: #ccfbf1;
}

.line-card strong,
.line-card em {
    display: block;
}

.line-card strong {
    color: #0f172a;
}

.line-card em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

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

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

.ranking-item {
    display: grid;
    grid-template-columns: 44px 96px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.ranking-number {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(90deg, var(--orange), var(--rose));
}

.ranking-item img {
    width: 96px;
    height: 60px;
    border-radius: 12px;
    object-fit: cover;
    background: #cffafe;
}

.ranking-text strong,
.ranking-text em {
    display: block;
}

.ranking-text strong {
    color: #0f172a;
}

.ranking-text em {
    color: var(--muted);
    font-style: normal;
    font-size: 13px;
}

.page-hero {
    padding: 70px 0;
    color: #fff;
}

.page-hero h1 {
    color: #fff;
    font-size: clamp(34px, 5vw, 54px);
}

.page-hero p {
    max-width: 820px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.teal-hero {
    background: linear-gradient(100deg, var(--emerald), var(--teal), var(--cyan));
}

.cyan-hero {
    background: linear-gradient(100deg, var(--cyan), var(--teal), var(--emerald));
}

.blue-hero {
    background: linear-gradient(100deg, #2563eb, var(--cyan), var(--teal));
}

.category-panels {
    display: grid;
    gap: 26px;
}

.category-panel {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(260px, 1fr);
    gap: 26px;
    align-items: center;
    padding: 26px;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.category-panel h2 {
    margin: 0;
    color: #0f172a;
    font-size: 30px;
}

.category-panel p {
    color: var(--muted);
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) repeat(3, minmax(140px, 0.8fr)) auto;
    gap: 14px;
    align-items: end;
    margin-bottom: 26px;
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
}

.filter-panel label {
    display: grid;
    gap: 6px;
    color: #475569;
    font-size: 14px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    min-height: 44px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    background: #fff;
    padding: 8px 12px;
    outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.detail-hero {
    padding: 34px 0 42px;
    color: #fff;
    background: linear-gradient(135deg, #0f172a, #134e4a, #0e7490);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
}

.player-card h1 {
    margin: 22px 0 12px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.2;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #020617;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    cursor: pointer;
    background: #020617;
}

.player-overlay.is-hidden {
    display: none;
}

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

.player-dim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.62));
}

.player-button {
    position: absolute;
    inset: 0;
    width: 82px;
    height: 82px;
    margin: auto;
    color: var(--teal);
    background: rgba(255, 255, 255, 0.94);
    font-size: 34px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

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

.detail-meta a,
.detail-meta span {
    border-radius: 999px;
    padding: 6px 12px;
    color: #e0f2fe;
    background: rgba(255, 255, 255, 0.12);
}

.detail-meta a {
    color: #fde68a;
    font-weight: 900;
}

.detail-side {
    align-self: start;
    padding: 22px;
    border-radius: 24px;
    color: var(--text);
    background: #fff;
    box-shadow: var(--shadow);
}

.detail-side h2 {
    margin-bottom: 16px;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
}

.detail-article,
.detail-info {
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.detail-article {
    padding: 28px;
}

.detail-article p {
    color: #334155;
    font-size: 17px;
}

.detail-one-line {
    padding: 18px 20px;
    border-left: 5px solid var(--teal);
    border-radius: 16px;
    background: #f0fdfa;
    font-weight: 800;
}

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

.breadcrumb a {
    color: var(--teal);
    font-weight: 800;
}

.detail-tags {
    margin-top: 20px;
}

.detail-info {
    align-self: start;
    padding: 24px;
    position: sticky;
    top: 92px;
}

.detail-info dl {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 10px 12px;
    margin: 18px 0 0;
}

.detail-info dt {
    color: var(--muted);
    font-weight: 800;
}

.detail-info dd {
    margin: 0;
    color: #0f172a;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(180deg, #1f2937, #0f172a);
    padding-top: 44px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 34px;
}

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

.site-footer p {
    color: #cbd5e1;
}

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

.footer-links a:hover,
.tag-cloud a:hover {
    color: #fde68a;
}

.footer-bottom {
    margin-top: 34px;
    padding: 18px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
}

[hidden] {
    display: none !important;
}

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

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

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

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

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

    .detail-info {
        position: static;
    }
}

@media (max-width: 820px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .header-inner {
        min-height: 62px;
    }

    .brand {
        font-size: 20px;
    }

    .hero,
    .hero-container {
        min-height: 720px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 26px;
        align-content: center;
        padding: 30px 0 76px;
    }

    .hero-poster {
        transform: none;
        border-radius: 22px;
    }

    .hero-dots {
        left: 0;
        bottom: 28px;
    }

    .quick-inner,
    .feature-grid,
    .category-panel,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

    .ranking-grid,
    .ranking-grid.wide {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 560px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .hero,
    .hero-container {
        min-height: 760px;
    }

    .hero-copy h1 {
        font-size: 34px;
    }

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

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

    .line-card,
    .ranking-item {
        grid-template-columns: 96px 1fr;
    }

    .ranking-number {
        position: absolute;
        margin: 8px;
    }

    .ranking-item {
        position: relative;
    }

    .ranking-item img,
    .line-card img {
        width: 96px;
        height: 62px;
    }

    .detail-article,
    .detail-info,
    .detail-side {
        padding: 20px;
    }
}
