:root {
    --teal: #0d9488;
    --teal-dark: #0f766e;
    --cyan: #0891b2;
    --blue: #2563eb;
    --amber: #f59e0b;
    --rose: #f43f5e;
    --slate: #0f172a;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #f8fafc;
    --line: #e5e7eb;
    --shadow: 0 20px 35px rgba(15, 23, 42, 0.12);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background: linear-gradient(180deg, #f9fafb 0%, #eef2f7 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #ffffff;
    background: linear-gradient(90deg, var(--teal-dark), var(--cyan), var(--blue));
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    height: 64px;
    margin: 0 auto;
    padding: 0 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: var(--teal-dark);
    background: #ffffff;
    box-shadow: inset 0 0 0 4px rgba(13, 148, 136, 0.12);
}

.brand-text {
    font-size: 20px;
}

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

.nav-link {
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: #ffffff;
    border-radius: 999px;
}

.category-strip {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(15, 23, 42, 0.12);
}

.category-strip-inner {
    display: flex;
    gap: 18px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 9px 24px;
    overflow-x: auto;
    white-space: nowrap;
}

.category-strip a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.86);
}

.category-strip a:hover {
    color: #ffffff;
}

.hero-carousel {
    position: relative;
    height: 560px;
    overflow: hidden;
    background: #111827;
}

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

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.hero-slide.is-active .hero-image {
    animation: heroZoom 6s ease both;
}

@keyframes heroZoom {
    from {
        transform: scale(1.02);
    }
    to {
        transform: scale(1.08);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.44) 48%, rgba(0, 0, 0, 0.12) 100%);
}

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

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    padding: 7px 13px;
    border-radius: 999px;
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 700;
}

.hero-title {
    max-width: 820px;
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.08;
    font-weight: 900;
    text-shadow: 0 12px 32px rgba(0, 0, 0, 0.36);
}

.hero-desc {
    max-width: 720px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

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

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.secondary-button {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
}

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

.hero-tags span {
    padding: 6px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    font-size: 13px;
}

.hero-control {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.hero-control:hover {
    background: rgba(0, 0, 0, 0.64);
}

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

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

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

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

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

.page-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 72px;
}

.content-section {
    margin-bottom: 64px;
}

.content-section.soft-panel {
    padding: 30px;
    border-radius: 28px;
    background: linear-gradient(90deg, #f0fdfa, #ecfeff);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

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

.section-kicker {
    margin: 0 0 4px;
    color: var(--teal);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.section-heading h1,
.section-heading h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
}

.section-more {
    color: var(--teal-dark);
    font-weight: 800;
}

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

.movie-card {
    min-width: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.09);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card-link {
    display: block;
    height: 100%;
}

.poster-wrap {
    position: relative;
    height: 230px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #155e75);
}

.movie-card-large .poster-wrap {
    height: 330px;
}

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

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

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-wrap::after {
    opacity: 1;
}

.duration-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 800;
}

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

.movie-card h3 {
    margin: 0 0 9px;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.movie-card:hover h3 {
    color: var(--teal-dark);
}

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

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: #6b7280;
    font-size: 13px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-row span,
.meta-chip,
.info-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border-radius: 999px;
    color: #0f766e;
    background: #ccfbf1;
    font-size: 12px;
    font-weight: 700;
}

.page-hero {
    overflow: hidden;
    margin-bottom: 38px;
    border-radius: 26px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--teal-dark), var(--cyan), var(--blue));
    box-shadow: var(--shadow);
}

.page-hero-inner {
    padding: 48px;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.22), transparent 32%);
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.12;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}

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

.category-card {
    position: relative;
    min-height: 220px;
    padding: 24px;
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.category-card::before {
    content: "";
    position: absolute;
    top: -42px;
    right: -42px;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.18), rgba(37, 99, 235, 0.16));
}

.category-card h2 {
    position: relative;
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p {
    position: relative;
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.7;
}

.category-card ul {
    position: relative;
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--teal-dark);
    font-size: 14px;
    font-weight: 700;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
    margin: 0 0 28px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    outline: none;
    background: #ffffff;
}

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

.filter-empty {
    display: none;
    margin: 16px 0 0;
    padding: 22px;
    border-radius: 16px;
    color: var(--muted);
    background: #ffffff;
    text-align: center;
}

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

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

.ranking-item {
    display: grid;
    grid-template-columns: 62px 92px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 7px 18px rgba(15, 23, 42, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-number {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--rose));
    font-weight: 900;
}

.ranking-cover {
    width: 92px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
}

.ranking-info h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.ranking-info p {
    margin: 0 0 10px;
    color: var(--muted);
    line-height: 1.6;
}

.rank-heat {
    color: var(--rose);
    font-size: 13px;
    font-weight: 900;
}

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

.detail-hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.35;
}

.detail-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px);
    transform: scale(1.08);
}

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

.detail-inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 38px 24px 52px;
}

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

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

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) 360px;
    gap: 30px;
    align-items: start;
}

.player-shell {
    border-radius: 24px;
    overflow: hidden;
    background: #020617;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
}

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

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    color: #ffffff;
    background: #000000;
    cursor: pointer;
    z-index: 3;
}

.player-overlay img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.66;
}

.play-circle {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--teal), var(--cyan));
    box-shadow: 0 18px 42px rgba(8, 145, 178, 0.35);
    font-size: 34px;
}

.player-shell.is-playing .player-overlay,
.player-shell.is-ready .player-overlay {
    display: none;
}

.detail-title-card {
    padding: 22px;
    border-radius: 0 0 24px 24px;
    background: linear-gradient(90deg, rgba(13, 148, 136, 0.22), rgba(37, 99, 235, 0.18));
}

.detail-title-card h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
}

.detail-title-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
}

.detail-side {
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.detail-poster {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.detail-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 24px 76px;
}

.article-card {
    margin-bottom: 32px;
    padding: 30px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.article-card h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.article-card p {
    margin: 0 0 16px;
    color: #374151;
    font-size: 17px;
    line-height: 1.9;
}

.article-card p:last-child {
    margin-bottom: 0;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(180deg, #1e293b, #0f172a);
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 24px 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.footer-grid p {
    margin: 0;
    line-height: 1.8;
    color: #cbd5e1;
}

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

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 24px;
}

.footer-bottom p {
    margin: 0;
}

.back-top {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #ffffff;
    background: var(--teal);
    cursor: pointer;
}

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

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

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

    .detail-side {
        max-width: 420px;
    }
}

@media (max-width: 820px) {
    .mobile-menu-button {
        display: block;
    }

    .main-nav {
        padding: 0 16px;
    }

    .nav-links {
        position: absolute;
        top: 64px;
        right: 16px;
        display: none;
        width: min(260px, calc(100vw - 32px));
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 12px;
        border-radius: 16px;
        background: rgba(15, 23, 42, 0.94);
        box-shadow: var(--shadow);
    }

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

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

    .hero-carousel {
        height: 520px;
    }

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

    .hero-desc {
        font-size: 16px;
    }

    .hero-control {
        display: none;
    }

    .page-shell {
        padding: 34px 16px 58px;
    }

    .page-hero-inner {
        padding: 34px 24px;
    }

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

    .poster-wrap {
        height: 210px;
    }

    .movie-card-large .poster-wrap {
        height: 260px;
    }

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

    .ranking-item {
        grid-template-columns: 44px 74px 1fr;
    }

    .ranking-cover {
        width: 74px;
        height: 98px;
    }

    .ranking-item .primary-button {
        grid-column: 1 / -1;
    }

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

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 540px) {
    .brand-text {
        font-size: 18px;
    }

    .category-strip-inner {
        padding: 8px 16px;
    }

    .hero-carousel {
        height: 500px;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        max-width: 260px;
    }

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

    .content-section.soft-panel {
        padding: 20px;
    }

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

    .poster-wrap,
    .movie-card-large .poster-wrap {
        height: 300px;
    }

    .detail-inner,
    .detail-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .article-card {
        padding: 22px;
    }
}
