* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top left, rgba(8, 145, 178, 0.18), transparent 34%), linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
    color: #e2e8f0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid rgba(51, 65, 85, 0.9);
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(14px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo,
.footer-logo {
    font-size: 25px;
    font-weight: 800;
    white-space: nowrap;
    background: linear-gradient(90deg, #22d3ee, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.04em;
}

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

.desktop-nav a,
.mobile-menu a,
.footer-links a,
.quick-links a {
    color: #cbd5e1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-menu a:hover,
.footer-links a:hover,
.quick-links a:hover {
    color: #22d3ee;
}

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

.top-search input,
.mobile-search input,
.filter-bar input,
.home-search-band input,
.filter-bar select {
    border: 1px solid rgba(71, 85, 105, 0.95);
    background: rgba(30, 41, 59, 0.7);
    color: #f8fafc;
    border-radius: 12px;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search input,
.mobile-search input {
    width: 230px;
    padding: 9px 12px;
}

.top-search input:focus,
.mobile-search input:focus,
.filter-bar input:focus,
.home-search-band input:focus,
.filter-bar select:focus {
    border-color: #06b6d4;
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
    background: rgba(15, 23, 42, 0.92);
}

.top-search button,
.mobile-search button,
.home-search-band button {
    border: none;
    border-radius: 12px;
    padding: 9px 16px;
    color: #ffffff;
    background: #0891b2;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.top-search button:hover,
.mobile-search button:hover,
.home-search-band button:hover {
    background: #06b6d4;
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(71, 85, 105, 0.8);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.85);
    color: #f8fafc;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-menu nav {
    display: grid;
    gap: 12px;
    margin-bottom: 14px;
}

.hero-slider {
    position: relative;
    height: min(72vh, 680px);
    min-height: 520px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 1.1s ease;
    pointer-events: none;
}

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

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.72;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.58), rgba(2, 6, 23, 0.25)), linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.1) 45%, rgba(2, 6, 23, 0.2) 100%);
}

.hero-content {
    position: absolute;
    left: max(32px, calc((100vw - 1180px) / 2));
    bottom: 92px;
    width: min(720px, calc(100% - 64px));
}

.hero-badge,
.section-head span,
.ranking-head span,
.page-hero span {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border-radius: 999px;
    padding: 5px 13px;
    background: rgba(8, 145, 178, 0.9);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.hero-content h1 {
    margin: 18px 0 16px;
    color: #ffffff;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.05em;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 28px;
    color: #cbd5e1;
    font-size: 18px;
}

.hero-actions,
.detail-title-row,
.panel-head,
.section-head,
.ranking-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    padding: 12px 22px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(90deg, #0891b2, #2563eb);
    box-shadow: 0 15px 35px rgba(6, 182, 212, 0.2);
}

.btn-primary:hover {
    box-shadow: 0 18px 42px rgba(6, 182, 212, 0.35);
}

.btn-ghost {
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.25);
    backdrop-filter: blur(8px);
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.62);
    color: #ffffff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-control:hover {
    background: rgba(8, 145, 178, 0.82);
    transform: translateY(-50%) scale(1.05);
}

.hero-prev {
    left: 24px;
    transform: translateY(-50%);
}

.hero-next {
    right: 24px;
    transform: translateY(-50%);
}

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

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

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

.home-search-band {
    width: min(1180px, calc(100% - 32px));
    margin: -40px auto 0;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(8, 145, 178, 0.25);
    border-radius: 22px;
    padding: 18px;
    background: rgba(15, 23, 42, 0.88);
    box-shadow: 0 22px 50px rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(16px);
}

.home-search-band form {
    display: flex;
    gap: 12px;
}

.home-search-band input {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
}

.home-search-band button {
    padding: 12px 24px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.quick-links a {
    border: 1px solid rgba(71, 85, 105, 0.9);
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(30, 41, 59, 0.68);
    font-size: 14px;
}

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

.section {
    padding: 54px 0 0;
}

.section-head {
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-head.compact {
    margin-bottom: 18px;
}

.section-head h2,
.ranking-head h2,
.panel-head h2,
.detail-section h2,
.side-info h2,
.page-hero h1 {
    margin: 7px 0 0;
    color: #ffffff;
    font-size: 28px;
    line-height: 1.2;
}

.section-head a,
.panel-head a,
.ranking-more,
.related-section .section-head a {
    color: #22d3ee;
    font-weight: 700;
}

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.95);
    border-radius: 18px;
    background: rgba(30, 41, 59, 0.58);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.22);
    transition: border 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(6, 182, 212, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 22px 42px rgba(6, 182, 212, 0.13);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.38), transparent 42%), linear-gradient(135deg, #0f172a, #020617);
}

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

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

.card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(8, 145, 178, 0.88);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-duration,
.card-kind {
    position: absolute;
    bottom: 10px;
    border-radius: 8px;
    padding: 4px 8px;
    color: #ffffff;
    background: rgba(2, 6, 23, 0.78);
    font-size: 12px;
}

.card-duration {
    right: 10px;
}

.card-kind {
    left: 10px;
    background: rgba(8, 145, 178, 0.88);
}

.card-body {
    padding: 16px;
}

.card-title {
    display: -webkit-box;
    min-height: 48px;
    color: #ffffff;
    font-weight: 800;
    font-size: 16px;
    line-height: 1.5;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.2s ease;
}

.movie-card:hover .card-title {
    color: #22d3ee;
}

.card-desc {
    display: -webkit-box;
    margin: 8px 0 12px;
    min-height: 44px;
    color: #94a3b8;
    font-size: 14px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #94a3b8;
    font-size: 13px;
}

.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.card-tags span,
.detail-tags a {
    border-radius: 999px;
    padding: 4px 9px;
    background: rgba(51, 65, 85, 0.82);
    color: #67e8f9;
    font-size: 12px;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    align-items: start;
}

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

.ranking-card,
.channel-card,
.category-panel,
.detail-card,
.player-card,
.side-info {
    border: 1px solid rgba(51, 65, 85, 0.94);
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.5);
    box-shadow: 0 16px 40px rgba(2, 6, 23, 0.22);
}

.ranking-card {
    padding: 22px;
    position: sticky;
    top: 92px;
}

.ranking-head {
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ranking-head h2 {
    font-size: 24px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 42px;
    gap: 10px;
    align-items: center;
    border-radius: 13px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.55);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: rgba(8, 145, 178, 0.18);
    transform: translateX(3px);
}

.rank-num {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient(135deg, #0891b2, #2563eb);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
}

.rank-title {
    overflow: hidden;
    color: #ffffff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-meta {
    color: #facc15;
    font-size: 13px;
    text-align: right;
}

.ranking-more {
    display: block;
    margin-top: 16px;
    text-align: right;
}

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

.category-panel,
.channel-card {
    padding: 22px;
}

.panel-head {
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.panel-head p,
.channel-card p,
.page-hero p,
.footer-grid p,
.detail-one-line,
.detail-section p {
    color: #94a3b8;
}

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

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

.compact-card .card-title {
    min-height: 42px;
    font-size: 14px;
}

.compact-card .card-desc,
.compact-card .card-tags {
    display: none;
}

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

.page-hero {
    margin: 34px 0 10px;
    border: 1px solid rgba(8, 145, 178, 0.24);
    border-radius: 24px;
    padding: 42px;
    background: radial-gradient(circle at top right, rgba(8, 145, 178, 0.28), transparent 42%), rgba(15, 23, 42, 0.72);
}

.page-hero h1 {
    font-size: clamp(32px, 5vw, 52px);
}

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

.channel-title {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
}

.channel-sample {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.channel-sample a {
    color: #67e8f9;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(4, minmax(132px, 170px));
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid rgba(51, 65, 85, 0.9);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.62);
}

.filter-bar input,
.filter-bar select {
    min-width: 0;
    padding: 12px 13px;
}

.empty-state {
    margin: 16px 0;
    border: 1px solid rgba(51, 65, 85, 0.95);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    color: #94a3b8;
    background: rgba(30, 41, 59, 0.48);
}

.detail-main {
    padding: 26px 0 48px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 22px;
    color: #94a3b8;
    font-size: 14px;
}

.breadcrumb a:hover {
    color: #22d3ee;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
    align-items: start;
}

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

.hls-video {
    display: block;
    width: 100%;
    height: 100%;
    background: #000000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: none;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.08), rgba(2, 6, 23, 0.42));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 999px;
    background: rgba(8, 145, 178, 0.92);
    box-shadow: 0 18px 42px rgba(8, 145, 178, 0.38);
    font-size: 34px;
    transform: translateX(3px);
}

.play-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.detail-card {
    margin-top: 20px;
    padding: 26px;
}

.detail-title-row {
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.detail-title-row h1 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
}

.detail-watch {
    white-space: nowrap;
}

.detail-meta {
    margin-top: 16px;
}

.detail-section {
    margin-top: 26px;
}

.detail-section h2,
.side-info h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.detail-section p {
    margin: 0;
    font-size: 16px;
    line-height: 1.9;
}

.detail-side {
    position: sticky;
    top: 92px;
    display: grid;
    gap: 18px;
}

.side-cover {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(51, 65, 85, 0.94);
    border-radius: 20px;
    background: radial-gradient(circle at top left, rgba(6, 182, 212, 0.35), transparent 44%), #0f172a;
}

.side-info {
    padding: 20px;
}

.side-info dl {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 10px 12px;
    margin: 0;
    color: #cbd5e1;
}

.side-info dt {
    color: #94a3b8;
}

.side-info dd {
    margin: 0;
}

.related-section {
    width: 100%;
    margin-top: 10px;
}

.site-footer {
    margin-top: 60px;
    border-top: 1px solid rgba(51, 65, 85, 0.95);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), #020617);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: 1.1fr 1fr 0.8fr;
    gap: 34px;
}

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

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    border-top: 1px solid rgba(51, 65, 85, 0.75);
    padding: 18px 0 28px;
    color: #64748b;
    text-align: center;
    font-size: 13px;
}

[hidden] {
    display: none !important;
}

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

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

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

    .split-section,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .ranking-card,
    .detail-side {
        position: static;
    }

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

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

@media (max-width: 760px) {
    .header-inner {
        height: 62px;
    }

    .site-logo {
        font-size: 21px;
    }

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

    .hero-content {
        left: 20px;
        bottom: 86px;
        width: calc(100% - 40px);
    }

    .hero-actions,
    .home-search-band form,
    .detail-title-row {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-control {
        width: 40px;
        height: 40px;
        font-size: 28px;
    }

    .movie-grid,
    .two-row,
    .category-panels,
    .channel-grid,
    .mini-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding-top: 38px;
    }

    .section-head,
    .panel-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .page-hero {
        padding: 28px 20px;
    }

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

    .detail-card {
        padding: 20px;
    }

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