:root {
    --bg: #f7fbfd;
    --surface: #ffffff;
    --surface-soft: #ecfeff;
    --line: rgba(15, 118, 110, 0.14);
    --text: #172033;
    --muted: #667085;
    --cyan: #0891b2;
    --cyan-deep: #0e7490;
    --teal: #0d9488;
    --blue: #2563eb;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
    --shadow-soft: 0 10px 25px rgba(15, 118, 110, 0.12);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.22), transparent 32rem),
        linear-gradient(135deg, #f8fdff 0%, #effcff 42%, #f7fbfd 100%);
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(240, 253, 255, 0.88);
    border-bottom: 1px solid rgba(8, 145, 178, 0.14);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
}

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

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: white;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    box-shadow: 0 10px 24px rgba(8, 145, 178, 0.32);
}

.brand-name {
    font-size: 1.45rem;
    background: linear-gradient(90deg, var(--cyan-deep), var(--teal));
    -webkit-background-clip: text;
    color: transparent;
    white-space: nowrap;
}

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

.nav-link {
    position: relative;
    color: #334155;
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan), var(--teal));
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--cyan-deep);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
}

.search-box,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border: 1px solid rgba(8, 145, 178, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.search-box input,
.mobile-search input {
    width: 190px;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
    padding: 8px 10px;
}

.search-box button,
.mobile-search button,
.primary-button,
.secondary-button,
.play-button {
    border: 0;
    cursor: pointer;
    color: white;
    font-weight: 800;
    border-radius: 999px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--cyan), var(--teal));
    box-shadow: 0 12px 24px rgba(8, 145, 178, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-box button:hover,
.mobile-search button:hover,
.primary-button:hover,
.secondary-button:hover,
.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(8, 145, 178, 0.35);
}

.secondary-button {
    color: var(--cyan-deep);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 0 0 1px rgba(8, 145, 178, 0.16), 0 12px 24px rgba(8, 145, 178, 0.16);
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: white;
    box-shadow: var(--shadow-soft);
}

.menu-button span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px auto;
    border-radius: 99px;
    background: var(--cyan-deep);
}

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

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

.mobile-nav {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.mobile-nav .nav-link {
    padding: 12px 14px;
    border-radius: 14px;
    background: white;
}

.hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 64px;
}

.hero-shell {
    position: relative;
    min-height: 580px;
    border-radius: 0 0 44px 44px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    transform: scale(1.02);
    background-size: cover;
    background-position: center;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4, 47, 46, 0.88), rgba(8, 145, 178, 0.54), rgba(15, 23, 42, 0.25)),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.28), transparent 22rem);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    color: white;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    padding: 8px 14px;
    color: #cffafe;
    font-weight: 800;
    letter-spacing: 0.08em;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(8px);
}

.hero h1,
.hero h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    letter-spacing: -0.05em;
    line-height: 1.06;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 5.8rem);
}

.hero h2 {
    margin-top: 18px;
    font-size: clamp(1.5rem, 3vw, 2.7rem);
}

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

.hero-actions,
.page-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}

.hero-tags,
.tag-row,
.detail-tags,
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.tag-row span,
.filter-chips a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.hero-tags span {
    color: #ecfeff;
    background: rgba(255, 255, 255, 0.16);
}

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

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

.hero-dot.is-active {
    width: 34px;
    background: white;
}

.main-section {
    margin: 0 0 64px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.section-title > span {
    width: 6px;
    height: 42px;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--cyan), var(--teal));
    box-shadow: 0 10px 22px rgba(8, 145, 178, 0.22);
}

.section-title h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.section-title p {
    margin: 6px 0 0;
    color: var(--muted);
}

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

.movie-card {
    display: grid;
    overflow: hidden;
    min-width: 0;
    color: var(--text);
    border: 1px solid rgba(8, 145, 178, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(8, 145, 178, 0.35);
    box-shadow: 0 24px 45px rgba(15, 118, 110, 0.18);
}

.movie-poster {
    position: relative;
    display: block;
    min-height: 236px;
    background-color: #0f766e;
    background-size: cover;
    background-position: center;
    transition: transform 0.35s ease;
}

.movie-card:hover .movie-poster {
    transform: scale(1.02);
}

.poster-badge,
.poster-score {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    color: white;
    font-size: 0.78rem;
    font-weight: 900;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.poster-badge {
    left: 12px;
    top: 12px;
    background: rgba(8, 145, 178, 0.82);
}

.poster-score {
    right: 12px;
    bottom: 12px;
    background: rgba(15, 23, 42, 0.72);
}

.movie-card-body {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.movie-card-body strong {
    overflow: hidden;
    font-size: 1.08rem;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-card-body em {
    display: -webkit-box;
    overflow: hidden;
    min-height: 3.2em;
    color: var(--muted);
    font-size: 0.92rem;
    font-style: normal;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    color: #475569;
    font-size: 0.86rem;
    line-height: 1.5;
}

.tag-row span {
    color: var(--cyan-deep);
    background: #ecfeff;
}

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

.movie-card-horizontal .movie-poster {
    min-height: 150px;
}

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

.category-card {
    position: relative;
    display: grid;
    min-height: 148px;
    overflow: hidden;
    align-items: end;
    padding: 18px;
    color: white;
    border-radius: 22px;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 145, 178, 0.2), rgba(15, 23, 42, 0.78));
}

.category-card strong,
.category-card span {
    position: relative;
    z-index: 1;
}

.category-card strong {
    font-size: 1.4rem;
}

.category-card span {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.6;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 46px rgba(15, 118, 110, 0.2);
}

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

.rank-row {
    display: grid;
    grid-template-columns: 54px 74px minmax(0, 1fr) 180px 64px;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid rgba(8, 145, 178, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 22px rgba(15, 118, 110, 0.08);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
    transform: translateX(5px);
    border-color: rgba(8, 145, 178, 0.34);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: white;
    border-radius: 15px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan), var(--teal));
}

.rank-cover {
    display: block;
    height: 56px;
    border-radius: 14px;
    background-color: #0f766e;
    background-size: cover;
    background-position: center;
}

.rank-main {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.rank-main strong,
.rank-main em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-main em,
.rank-meta {
    color: var(--muted);
    font-size: 0.9rem;
    font-style: normal;
}

.rank-score {
    color: var(--cyan-deep);
    font-weight: 900;
    text-align: right;
}

.page-hero,
.detail-hero {
    margin: 34px auto 44px;
    padding: 46px;
    overflow: hidden;
    border: 1px solid rgba(8, 145, 178, 0.14);
    border-radius: 32px;
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.2), transparent 25rem),
        rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
}

.page-hero p,
.detail-title p {
    max-width: 820px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.filter-chips {
    margin-top: 24px;
}

.filter-chips a {
    color: var(--cyan-deep);
    background: white;
    border: 1px solid rgba(8, 145, 178, 0.16);
}

.no-results {
    display: none;
    padding: 36px;
    color: var(--muted);
    text-align: center;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
}

.no-results.is-visible {
    display: block;
}

.detail-hero {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 34px;
    align-items: stretch;
}

.detail-cover {
    min-height: 520px;
    border-radius: 28px;
    background-color: #0f766e;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.detail-title h1 {
    font-size: clamp(2rem, 4vw, 4rem);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 18px;
}

.detail-meta span {
    padding: 8px 12px;
    color: #0f766e;
    font-weight: 800;
    border-radius: 999px;
    background: #ccfbf1;
}

.detail-tags span {
    color: var(--cyan-deep);
    background: white;
    border: 1px solid rgba(8, 145, 178, 0.16);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    margin-bottom: 64px;
}

.article-card,
.sidebar-card,
.player-section {
    border: 1px solid rgba(8, 145, 178, 0.12);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.article-card {
    padding: 30px;
}

.article-card h2,
.sidebar-card h2,
.player-section h2 {
    margin: 0 0 16px;
    font-size: 1.5rem;
}

.article-card p {
    color: #334155;
    font-size: 1rem;
    line-height: 2;
}

.sidebar-card {
    padding: 22px;
}

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

.side-link {
    display: grid;
    gap: 5px;
    padding: 12px;
    border-radius: 16px;
    background: #f0fdfa;
    transition: transform 0.2s ease, background 0.2s ease;
}

.side-link:hover {
    transform: translateX(4px);
    background: #ccfbf1;
}

.side-link strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.side-link span {
    color: var(--muted);
    font-size: 0.86rem;
}

.player-section {
    padding: 28px;
    margin-bottom: 36px;
}

.player-frame {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 24px;
    background: #020617;
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow);
}

.player-frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #020617;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    background-color: #0f766e;
    background-size: cover;
    background-position: center;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.72), rgba(8, 145, 178, 0.42));
}

.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-button {
    position: relative;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    font-size: 1.08rem;
}

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

.site-footer {
    color: #dbeafe;
    background: linear-gradient(135deg, #042f2e, #0f172a);
    margin-top: 72px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 32px;
    padding: 46px 0;
}

.footer-brand {
    color: white;
    font-size: 1.35rem;
}

.site-footer p {
    max-width: 520px;
    color: rgba(219, 234, 254, 0.78);
    line-height: 1.8;
}

.site-footer h3 {
    margin: 0 0 12px;
    color: #67e8f9;
}

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

.footer-links a {
    color: rgba(219, 234, 254, 0.82);
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-bottom {
    padding: 18px 16px;
    color: rgba(219, 234, 254, 0.7);
    text-align: center;
    border-top: 1px solid rgba(219, 234, 254, 0.12);
}

@media (max-width: 1080px) {
    .desktop-nav,
    .search-box {
        display: none;
    }

    .menu-button {
        display: block;
        margin-left: auto;
    }

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

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

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

    .detail-cover {
        min-height: 420px;
    }
}

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

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

    .brand-name {
        font-size: 1.18rem;
    }

    .hero-shell {
        min-height: 640px;
        border-radius: 0 0 28px 28px;
    }

    .hero h1 {
        font-size: 2.55rem;
    }

    .hero h2 {
        font-size: 1.55rem;
    }

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

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

    .rank-row {
        grid-template-columns: 48px 62px minmax(0, 1fr) 50px;
    }

    .rank-meta {
        display: none;
    }

    .page-hero,
    .detail-hero,
    .article-card,
    .player-section {
        padding: 22px;
        border-radius: 24px;
    }

    .detail-cover {
        min-height: 360px;
    }

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