:root {
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-soft: #f0fdfa;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --primary: #0d9488;
    --primary-dark: #0f766e;
    --cyan: #06b6d4;
    --blue: #2563eb;
    --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
    --radius: 22px;
}

* {
    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: var(--bg);
    line-height: 1.6;
}

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

img {
    display: block;
    width: 100%;
    height: auto;
}

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    font-size: 22px;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    box-shadow: 0 12px 30px rgba(13, 148, 136, 0.28);
}

.brand-text strong,
.footer-brand strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.brand-text em {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: #334155;
    font-weight: 700;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-dark);
    background: #ecfeff;
    border-color: #a5f3fc;
}

.nav-dropdown {
    position: relative;
}

.nav-more {
    cursor: default;
}

.dropdown-panel {
    position: absolute;
    top: 48px;
    right: 0;
    display: none;
    width: 190px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.nav-dropdown:hover .dropdown-panel {
    display: grid;
    gap: 4px;
}

.dropdown-panel a {
    padding: 9px 10px;
    border-radius: 10px;
    color: #475569;
}

.dropdown-panel a:hover {
    background: #f0fdfa;
    color: var(--primary-dark);
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #f1f5f9;
    padding: 11px;
}

.mobile-menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: #0f172a;
}

.mobile-nav {
    display: none;
    padding: 8px 16px 18px;
    border-top: 1px solid var(--line);
    background: #ffffff;
}

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

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    color: #334155;
    background: #f8fafc;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 76px 0 54px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 45%, #eff6ff 100%);
}

.hero-bg {
    position: absolute;
    border-radius: 999px;
    filter: blur(28px);
    opacity: 0.35;
    pointer-events: none;
}

.hero-bg-a {
    width: 340px;
    height: 340px;
    left: 4%;
    top: 12%;
    background: #2dd4bf;
}

.hero-bg-b {
    width: 430px;
    height: 430px;
    right: 2%;
    bottom: -80px;
    background: #22d3ee;
}

.hero-inner {
    position: relative;
    z-index: 2;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
    gap: 48px;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-copy h1 {
    margin: 18px 0 10px;
    font-size: clamp(42px, 6vw, 74px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-copy h2 {
    margin: 0 0 18px;
    color: var(--primary-dark);
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.15;
}

.hero-copy p {
    max-width: 680px;
    margin: 0 0 24px;
    color: #475569;
    font-size: 18px;
}

.hero-badge,
.section-kicker,
.detail-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    color: #0f766e;
    background: #ccfbf1;
    font-size: 13px;
    font-weight: 800;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 22px;
}

.primary-button,
.ghost-button,
.search-row button,
.video-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 0;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button,
.search-row button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    box-shadow: 0 16px 30px rgba(13, 148, 136, 0.24);
}

.primary-button:hover,
.search-row button:hover,
.video-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(13, 148, 136, 0.32);
}

.ghost-button {
    color: #0f766e;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(20, 184, 166, 0.25);
}

.ghost-button.dark {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.detail-tags span {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.28);
    font-size: 13px;
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 32px 70px rgba(15, 23, 42, 0.26);
    transform: rotate(1.5deg);
}

.hero-poster img {
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #0f766e, #0891b2);
}

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

.hero-thumbs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.hero-thumb {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    color: #475569;
    cursor: pointer;
}

.hero-thumb.active {
    color: #0f766e;
    border-color: #5eead4;
    background: #ffffff;
    box-shadow: 0 12px 25px rgba(13, 148, 136, 0.15);
}

.hero-thumb img {
    width: 46px;
    height: 58px;
    border-radius: 12px;
    object-fit: cover;
    background: #ccfbf1;
}

.hero-thumb span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
}

.quick-search {
    margin-top: -28px;
    position: relative;
    z-index: 4;
}

.search-panel {
    padding: 24px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.search-panel.wide {
    margin-bottom: 24px;
}

.search-panel label {
    display: block;
    margin-bottom: 10px;
    font-weight: 900;
}

.search-row {
    display: flex;
    gap: 12px;
}

.search-row input,
.filter-bar input,
.filter-bar select {
    min-height: 48px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0 15px;
    background: #ffffff;
    color: var(--text);
    outline: none;
}

.search-row input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #2dd4bf;
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.16);
}

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

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

.section-heading h2 {
    margin: 10px 0 4px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}

.section-more {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--primary-dark);
    background: #ccfbf1;
    font-weight: 900;
}

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

.movie-card {
    min-width: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 42px rgba(15, 23, 42, 0.12);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #0f766e, #06b6d4);
}

.poster-wrap img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

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

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

.rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #f97316, #ef4444);
    font-size: 12px;
    font-weight: 900;
}

.play-dot {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #0f766e;
    background: #ffffff;
    font-size: 14px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

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

.movie-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 42px;
    color: #0f172a;
    font-weight: 900;
    line-height: 1.3;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta,
.movie-tags,
.movie-one-line {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.movie-tags {
    color: var(--primary-dark);
    font-weight: 700;
}

.movie-one-line {
    display: -webkit-box;
    overflow: hidden;
    min-height: 40px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.category-tile,
.category-large-card {
    position: relative;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    border-radius: 24px;
    padding: 18px;
    color: #ffffff;
    background: #0f766e;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.12);
}

.category-large-card {
    min-height: 260px;
}

.category-tile img,
.category-large-card img {
    position: absolute;
    inset: 0;
    height: 100%;
    object-fit: cover;
    opacity: 0.68;
    transition: transform 0.25s ease;
}

.category-tile:hover img,
.category-large-card:hover img {
    transform: scale(1.05);
}

.category-overlay,
.category-large-card span {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.84));
}

.category-tile strong,
.category-tile em,
.category-tile p,
.category-large-card div {
    position: relative;
    z-index: 2;
}

.category-tile strong,
.category-large-card strong {
    font-size: 22px;
    font-weight: 900;
}

.category-tile em,
.category-large-card em {
    display: block;
    margin-top: 4px;
    font-style: normal;
    color: #ccfbf1;
}

.category-tile p {
    margin: 8px 0 0;
    color: #e0f2fe;
    font-size: 13px;
}

.sub-hero {
    padding: 70px 0;
    color: #ffffff;
    background:
        radial-gradient(circle at 20% 10%, rgba(45, 212, 191, 0.46), transparent 34%),
        linear-gradient(135deg, #0f172a, #0f766e 52%, #0891b2);
}

.sub-hero.compact {
    padding: 48px 0;
}

.sub-hero span {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #ccfbf1;
    font-weight: 900;
}

.sub-hero h1 {
    margin: 14px 0 8px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

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

.filter-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px 170px;
    gap: 12px;
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
}

.rank-table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
}

.rank-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.rank-table th,
.rank-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.rank-table th {
    color: #475569;
    background: #f8fafc;
    font-size: 13px;
}

.rank-table a {
    color: var(--primary-dark);
    font-weight: 900;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 30px 0 58px;
    color: #ffffff;
    background: #0f172a;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.34;
    filter: blur(8px);
    transform: scale(1.06);
    background-size: cover;
    background-position: center;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.64));
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 26px;
    color: #cbd5e1;
    font-size: 14px;
}

.breadcrumb a {
    color: #ccfbf1;
}

.breadcrumb em {
    font-style: normal;
}

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

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.4);
}

.detail-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
}

.detail-info h1 {
    margin: 16px 0 12px;
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 800px;
    color: #e0f2fe;
    font-size: 19px;
}

.detail-meta,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

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

.detail-content {
    margin-top: 36px;
}

.player-card,
.text-card {
    padding: 24px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

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

.player-heading h2,
.text-card h2 {
    margin: 8px 0 0;
    font-size: 28px;
    letter-spacing: -0.03em;
}

.video-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: #000000;
}

.site-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.video-start {
    position: absolute;
    left: 50%;
    top: 50%;
    gap: 10px;
    transform: translate(-50%, -50%);
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
}

.video-start:hover {
    transform: translate(-50%, calc(-50% - 2px));
}

.video-start span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--primary-dark);
    background: #ffffff;
}

.video-start.hidden {
    display: none;
}

.video-message {
    position: absolute;
    left: 16px;
    bottom: 14px;
    margin: 0;
    color: #ffffff;
    font-size: 14px;
}

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

.text-card p {
    margin: 12px 0 0;
    color: #475569;
    white-space: pre-line;
}

.wide-card {
    grid-column: 1 / -1;
}

.info-list {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 10px 18px;
    margin: 14px 0 0;
}

.info-list dt {
    color: var(--muted);
}

.info-list dd {
    margin: 0;
    color: #0f172a;
    font-weight: 800;
}

.info-list a {
    color: var(--primary-dark);
}

.search-summary {
    margin-bottom: 18px;
    color: var(--muted);
    font-weight: 800;
}

.site-footer {
    margin-top: 76px;
    color: #cbd5e1;
    background: linear-gradient(135deg, #111827, #0f172a);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(180px, 0.5fr));
    gap: 34px;
    padding: 48px 0;
}

.footer-brand p {
    max-width: 440px;
    margin: 7px 0 0;
    color: #94a3b8;
}

.site-footer h3 {
    margin: 0 0 14px;
    color: #ffffff;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer li + li {
    margin-top: 8px;
}

.site-footer a:hover {
    color: #5eead4;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 18px;
    padding: 18px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    color: #94a3b8;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .hero-slide {
        grid-template-columns: 1fr 320px;
    }
}

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

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

    .hero-section {
        padding-top: 46px;
    }

    .hero-slider {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-poster {
        width: min(360px, 100%);
        margin: 0 auto;
    }

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

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

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

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

    .detail-poster {
        max-width: 280px;
    }

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

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

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

    .brand-text em {
        display: none;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .hero-slider {
        min-height: 750px;
    }

    .hero-copy p,
    .sub-hero p,
    .detail-one-line {
        font-size: 16px;
    }

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

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

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

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

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

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }
}
