:root {
    --page-bg: #f8fafc;
    --panel-bg: #ffffff;
    --text: #111827;
    --muted: #64748b;
    --line: #e2e8f0;
    --cyan: #06b6d4;
    --teal: #14b8a6;
    --cyan-dark: #0e7490;
    --slate: #0f172a;
    --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: linear-gradient(135deg, #f8fafc 0%, #ffffff 48%, rgba(207, 250, 254, 0.42) 100%);
    -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    color: #ffffff;
    background: linear-gradient(90deg, #115e59 0%, #164e63 48%, #1e293b 100%);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.24);
}

.nav-wrap {
    max-width: 1280px;
    height: 64px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22d3ee, #14b8a6);
    box-shadow: 0 10px 30px rgba(20, 184, 166, 0.38);
}

.brand-text {
    font-size: 20px;
    background: linear-gradient(90deg, #a5f3fc, #99f6e4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

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

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

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

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

.nav-search input,
.mobile-search input,
.search-large input,
.filter-bar input,
.filter-bar select {
    min-width: 0;
    border: 1px solid rgba(103, 232, 249, 0.38);
    outline: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 10px 14px;
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(207, 250, 254, 0.72);
}

.nav-search button,
.mobile-search button,
.search-large button,
.primary-btn,
.secondary-btn,
.play-overlay {
    border: none;
    color: #ffffff;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--cyan), var(--teal));
    box-shadow: 0 12px 28px rgba(6, 182, 212, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.nav-search button,
.mobile-search button,
.search-large button {
    padding: 10px 16px;
    font-weight: 700;
}

.nav-search button:hover,
.mobile-search button:hover,
.search-large button:hover,
.primary-btn:hover,
.secondary-btn:hover,
.play-overlay:hover {
    transform: translateY(-2px) scale(1.02);
    filter: brightness(1.03);
    box-shadow: 0 18px 36px rgba(6, 182, 212, 0.34);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: none;
    color: #ffffff;
    background: transparent;
    font-size: 26px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 0 24px 20px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(16px);
}

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

.mobile-panel nav,
.mobile-cats,
.footer-links {
    display: grid;
    gap: 10px;
}

.hero-slider {
    position: relative;
    min-height: 70vh;
    margin: 24px clamp(16px, 3vw, 36px) 0;
    overflow: hidden;
    border-radius: 28px;
    background: #020617;
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 900ms ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.38) 54%, rgba(2, 6, 23, 0.08) 100%);
}

.hero-copy {
    position: absolute;
    z-index: 2;
    left: clamp(24px, 6vw, 72px);
    right: clamp(24px, 8vw, 96px);
    bottom: clamp(28px, 7vw, 76px);
    color: #ffffff;
    max-width: 820px;
}

.hero-kicker,
.badge-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.hero-kicker span,
.badge,
.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(8, 145, 178, 0.9);
    color: #ffffff;
}

.hero-copy h1,
.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-copy p {
    max-width: 760px;
    margin: 0 0 28px;
    color: #e2e8f0;
    font-size: clamp(16px, 2vw, 21px);
    line-height: 1.75;
}

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

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    font-weight: 800;
}

.secondary-btn {
    background: rgba(15, 23, 42, 0.56);
    border: 1px solid rgba(207, 250, 254, 0.34);
    backdrop-filter: blur(12px);
}

.hero-control {
    position: absolute;
    z-index: 4;
    top: 50%;
    width: 46px;
    height: 46px;
    transform: translateY(-50%);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.52);
    backdrop-filter: blur(12px);
    cursor: pointer;
    font-size: 26px;
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dots button.active {
    width: 32px;
    background: #ffffff;
}

.content-section,
.page-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px 0;
}

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

.section-head h1,
.section-head h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
    font-weight: 900;
    color: #1f2937;
}

.section-head h1::before,
.section-head h2::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 32px;
    margin-right: 12px;
    vertical-align: -6px;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--cyan), var(--teal));
}

.section-intro,
.page-intro {
    margin: -8px 0 26px;
    color: var(--muted);
    line-height: 1.8;
    max-width: 860px;
}

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: var(--panel-bg);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.16);
}

.movie-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0f172a;
}

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

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

.movie-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.78), rgba(2, 6, 23, 0.06));
    transition: opacity 0.25s ease;
}

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

.type-badge,
.rank-badge,
.play-float,
.thumb-copy {
    position: absolute;
    z-index: 2;
}

.type-badge {
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 8px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.72);
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(10px);
}

.rank-badge {
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #f97316, #ef4444);
}

.play-float {
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--cyan);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-float {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.thumb-copy {
    left: 16px;
    right: 16px;
    bottom: 14px;
    color: #ffffff;
    opacity: 0;
    line-height: 1.5;
    font-size: 13px;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .thumb-copy {
    opacity: 1;
    transform: translateY(0);
}

.movie-info {
    padding: 18px;
}

.movie-info h2,
.movie-info h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 800;
}

.movie-info h2 a:hover,
.movie-info h3 a:hover {
    color: var(--cyan-dark);
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
}

.movie-info p {
    margin: 0 0 12px;
    min-height: 44px;
    color: #475569;
    line-height: 1.6;
    font-size: 14px;
}

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

.tag {
    padding: 5px 9px;
    color: #0f766e;
    background: #ccfbf1;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    padding: 22px;
    border-radius: 22px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e, #0891b2 54%, #1e293b);
    box-shadow: var(--shadow);
}

.category-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -26px;
    bottom: -34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.category-card h2,
.category-card h3 {
    position: relative;
    z-index: 2;
    margin: 0 0 12px;
    font-size: 23px;
}

.category-card p {
    position: relative;
    z-index: 2;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.rank-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.rank-item {
    display: grid;
    grid-template-columns: 48px 120px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.rank-num {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #06b6d4, #14b8a6);
}

.rank-item img {
    width: 120px;
    height: 76px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-item h2,
.rank-item h3 {
    margin: 0 0 6px;
    font-size: 17px;
}

.rank-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
}

.filter-bar,
.search-large {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.filter-bar input,
.filter-bar select,
.search-large input {
    color: var(--text);
    background: #ffffff;
    border-color: var(--line);
}

.filter-bar input {
    flex: 1 1 260px;
}

.filter-bar select {
    flex: 0 0 180px;
    border-radius: 14px;
}

.search-large input {
    flex: 1 1 280px;
    border-radius: 999px;
}

.detail-hero {
    max-width: 1280px;
    margin: 32px auto 0;
    padding: 0 24px;
}

.detail-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
    gap: 28px;
    align-items: stretch;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #020617;
    box-shadow: var(--shadow);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.play-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    transform: translate(-50%, -50%);
}

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

.detail-side {
    padding: 28px;
    border-radius: 24px;
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e, #164e63 56%, #0f172a);
    box-shadow: var(--shadow);
}

.detail-side h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.18;
    font-weight: 900;
}

.detail-side p {
    color: #dbeafe;
    line-height: 1.78;
}

.breadcrumb {
    margin-bottom: 14px;
    color: #67e8f9;
    font-size: 14px;
}

.detail-body {
    max-width: 1280px;
    margin: 0 auto;
    padding: 42px 24px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
}

.article-box,
.aside-box {
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.article-box {
    padding: 30px;
}

.article-box h2,
.aside-box h2 {
    margin: 0 0 18px;
    font-size: 24px;
}

.article-box p {
    color: #334155;
    line-height: 1.95;
    font-size: 16px;
}

.aside-box {
    padding: 20px;
}

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

.related-item {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 12px;
    align-items: center;
}

.related-item img {
    width: 112px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
}

.related-item h3 {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.45;
}

.related-item span {
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    margin-top: 72px;
    color: #94a3b8;
    background: #0f172a;
}

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

.footer-brand {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 22px;
}

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

.site-footer p {
    margin: 0;
    max-width: 420px;
    line-height: 1.8;
}

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

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 24px 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #64748b;
}

.empty-state {
    padding: 28px;
    border-radius: 18px;
    color: var(--muted);
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

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

    .menu-toggle {
        display: block;
    }

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

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

@media (max-width: 760px) {
    .nav-wrap {
        padding: 0 16px;
    }

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

    .hero-slider {
        min-height: 560px;
        margin: 16px 12px 0;
        border-radius: 22px;
    }

    .hero-copy {
        left: 22px;
        right: 22px;
        bottom: 56px;
    }

    .hero-control {
        display: none;
    }

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

    .rank-item {
        grid-template-columns: 42px 100px 1fr;
    }

    .rank-item img {
        width: 100px;
        height: 66px;
    }

    .content-section,
    .page-shell,
    .detail-hero,
    .detail-body {
        padding-left: 16px;
        padding-right: 16px;
    }

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

@media (max-width: 460px) {
    .movie-grid {
        gap: 18px;
    }

    .related-item {
        grid-template-columns: 92px 1fr;
    }

    .related-item img {
        width: 92px;
        height: 60px;
    }
}
