
* {
    box-sizing: border-box;
}

:root {
    --cyan: #06b6d4;
    --cyan-dark: #0891b2;
    --blue: #2563eb;
    --teal: #0d9488;
    --slate: #0f172a;
    --gray: #64748b;
    --light: #f8fafc;
    --card: #ffffff;
    --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    --soft-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    --radius: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: #1f2937;
    background: linear-gradient(180deg, #f9fafb 0%, #eef2f7 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, var(--cyan-dark), var(--blue), var(--teal));
    box-shadow: 0 8px 25px rgba(14, 116, 144, 0.28);
}

.header-inner {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.brand:hover .brand-mark,
.footer-brand:hover .brand-mark {
    transform: rotate(12deg) scale(1.05);
}

.brand-name {
    font-size: 24px;
    white-space: nowrap;
}

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

.nav-link {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #cffafe;
    transform: translateY(-1px);
}

.top-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input,
.mobile-search input,
.search-line input,
.search-line select {
    border: 1px solid rgba(255, 255, 255, 0.28);
    outline: none;
    border-radius: 999px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    min-width: 240px;
    backdrop-filter: blur(12px);
}

.top-search input::placeholder,
.mobile-search input::placeholder {
    color: #cffafe;
}

.top-search button,
.mobile-search button {
    border: 0;
    border-radius: 999px;
    color: #0f172a;
    background: #ffffff;
    padding: 10px 16px;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 21px;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    padding: 16px 24px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.96), rgba(13, 148, 136, 0.96));
}

.mobile-link {
    display: block;
    color: #ffffff;
    font-weight: 700;
    padding: 10px 0;
}

.mobile-search {
    margin-top: 12px;
}

.mobile-search input {
    flex: 1;
    min-width: 0;
}

.hero {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.48) 45%, rgba(0, 0, 0, 0.16) 100%);
}

.hero-content {
    position: absolute;
    inset: 0;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    color: #ffffff;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: #67e8f9;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1 {
    max-width: 760px;
    margin: 0 0 18px;
    font-size: clamp(42px, 7vw, 76px);
    line-height: 1.04;
    font-weight: 900;
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 24px;
    color: #e5e7eb;
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-tags,
.detail-meta,
.tag-row,
.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
    padding: 8px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    font-weight: 700;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn.primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    box-shadow: 0 15px 28px rgba(37, 99, 235, 0.28);
}

.btn.secondary {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

.btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.32);
}

.hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    font-size: 42px;
    line-height: 1;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-control:hover {
    background: rgba(255, 255, 255, 0.42);
    transform: translateY(-50%) scale(1.06);
}

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

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

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

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

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

.intro-strip,
.section-block,
.page-main,
.detail-content {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.intro-strip {
    margin-top: -36px;
    position: relative;
    z-index: 5;
    padding: 22px 28px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.intro-strip span {
    display: block;
    color: var(--cyan-dark);
    font-weight: 800;
    margin-bottom: 4px;
}

.intro-strip strong {
    font-size: 22px;
}

.intro-strip a,
.section-more {
    color: var(--cyan-dark);
    font-weight: 800;
}

.section-block {
    padding: 70px 24px 0;
}

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

.section-head h2 {
    margin: 0;
    color: #1e293b;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.15;
    font-weight: 900;
}

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

.category-card {
    min-height: 210px;
    padding: 20px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-preview {
    height: 84px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 18px;
}

.category-preview img {
    width: 100%;
    height: 84px;
    object-fit: cover;
    border-radius: 14px;
    background: #e2e8f0;
}

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

.category-card em {
    color: var(--gray);
    font-style: normal;
    line-height: 1.65;
}

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

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

.movie-card {
    display: block;
}

.movie-card[hidden] {
    display: none;
}

.card-link {
    display: block;
    height: 100%;
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--soft-shadow);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.card-poster {
    position: relative;
    height: 280px;
    margin: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0, #f8fafc);
}

.compact-card .card-poster {
    height: 230px;
}

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

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

.card-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 68%);
    transition: opacity 0.3s ease;
}

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

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

.card-body {
    padding: 18px;
}

.card-body h3 {
    margin: 0 0 10px;
    color: #1e293b;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.card-link:hover .card-body h3 {
    color: var(--cyan-dark);
}

.card-body p {
    margin: 0 0 14px;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
}

.card-meta span:first-child {
    color: #0e7490;
    background: #cffafe;
    border-radius: 999px;
    padding: 4px 8px;
    font-weight: 800;
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 52px 72px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.rank-number {
    color: var(--cyan-dark);
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.rank-row img {
    width: 72px;
    height: 92px;
    object-fit: cover;
    border-radius: 14px;
    background: #e2e8f0;
}

.rank-copy strong,
.rank-copy em {
    display: block;
}

.rank-copy strong {
    color: #1e293b;
    font-size: 18px;
    margin-bottom: 6px;
}

.rank-copy em {
    color: var(--gray);
    font-style: normal;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rank-pill {
    padding: 7px 12px;
    border-radius: 999px;
    color: #0e7490;
    background: #cffafe;
    font-weight: 800;
}

.search-panel {
    margin-bottom: 28px;
    padding: 18px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

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

.search-line input,
.search-line select {
    color: #1e293b;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    min-width: 0;
}

.search-line input {
    flex: 1;
}

.search-line select {
    min-width: 180px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip {
    border: 0;
    border-radius: 999px;
    padding: 9px 15px;
    color: #0e7490;
    background: #ecfeff;
    font-weight: 800;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    transform: translateY(-1px);
}

.empty-state {
    display: none;
    padding: 28px;
    text-align: center;
    color: var(--gray);
    background: #ffffff;
    border-radius: var(--radius);
    box-shadow: var(--soft-shadow);
}

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

.load-area {
    text-align: center;
    margin-top: 32px;
}

.load-more[hidden] {
    display: none;
}

.page-main {
    padding-bottom: 70px;
}

.page-hero {
    margin: 32px auto 0;
    min-height: 320px;
    padding: 60px;
    border-radius: 28px;
    color: #ffffff;
    background: radial-gradient(circle at top left, rgba(103, 232, 249, 0.36), transparent 32%), linear-gradient(135deg, #0f172a 0%, #1d4ed8 48%, #0f766e 100%);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
}

.page-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
    font-weight: 900;
}

.page-hero p {
    max-width: 780px;
    margin: 0;
    color: #dbeafe;
    font-size: 19px;
    line-height: 1.75;
}

.inline-links {
    margin-top: 24px;
}

.inline-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.watch-section {
    background: linear-gradient(180deg, #020617 0%, #0f172a 100%);
    color: #ffffff;
    padding: 36px 24px 58px;
}

.watch-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 36px;
    align-items: center;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    aspect-ratio: 16 / 9;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    color: #ffffff;
    background: #000000;
    cursor: pointer;
}

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

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

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.12));
}

.play-ring {
    position: relative;
    z-index: 2;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: linear-gradient(90deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 45px rgba(6, 182, 212, 0.42);
    font-size: 34px;
    padding-left: 4px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: #93c5fd;
    font-weight: 700;
    margin-bottom: 18px;
}

.breadcrumb strong {
    color: #ffffff;
}

.watch-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.08;
    font-weight: 900;
}

.detail-one-line {
    color: #d1d5db;
    font-size: 18px;
    line-height: 1.8;
    margin: 0 0 22px;
}

.detail-meta span,
.tag-row span {
    margin-bottom: 0;
}

.detail-meta {
    margin-bottom: 18px;
}

.tag-row span {
    color: #67e8f9;
    background: rgba(8, 145, 178, 0.18);
    border-color: rgba(103, 232, 249, 0.24);
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.story-card {
    padding: 30px;
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.story-card h2 {
    margin: 0 0 16px;
    color: #1e293b;
    font-size: 28px;
}

.story-card p {
    margin: 0;
    color: #475569;
    font-size: 17px;
    line-height: 1.95;
}

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

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
}

.footer-main p {
    max-width: 640px;
    margin: 18px 0 0;
    color: #94a3b8;
    line-height: 1.8;
}

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

.footer-links a {
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #67e8f9;
}

.footer-bottom {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding: 20px 24px;
    text-align: center;
    color: #94a3b8;
}

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

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

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

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

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

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

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

    .header-inner {
        padding: 0 16px;
    }

    .hero {
        height: 76vh;
        min-height: 560px;
    }

    .hero-content {
        padding: 0 24px 36px;
        justify-content: flex-end;
    }

    .hero-control {
        display: none;
    }

    .intro-strip,
    .section-head,
    .search-line,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .intro-strip {
        margin: -28px 16px 0;
    }

    .section-block {
        padding: 54px 16px 0;
    }

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

    .card-poster {
        height: 236px;
    }

    .page-hero {
        margin: 20px 16px 0;
        padding: 38px 24px;
    }

    .rank-row {
        grid-template-columns: 42px 62px 1fr;
    }

    .rank-pill {
        display: none;
    }

    .footer-inner {
        display: block;
    }

    .footer-links {
        margin-top: 28px;
    }
}

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

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content p {
        font-size: 16px;
    }

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

    .card-poster,
    .compact-card .card-poster {
        height: 310px;
    }

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

    .rank-row {
        grid-template-columns: 38px 58px 1fr;
        gap: 12px;
    }

    .watch-section {
        padding: 24px 16px 42px;
    }

    .player-shell {
        border-radius: 16px;
    }

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