@charset "utf-8";

/* ==========================================================================
   m1938 主题覆盖层 —— 深空紫青（Deep Space Violet / Cyan）
   加载顺序必须位于 style.css / styles.css / overwrite.css 之后
   ========================================================================== */

:root {
    --m-primary: #7C5CFF;
    --m-primary-dark: #6344e6;
    --m-accent: #22D3EE;
    --m-bg: #0E0B1A;
    --m-panel: #151226;
    --m-panel-2: #1B1730;
    --m-border: #2A2444;
    --m-text: #EDEBFF;
    --m-text-dim: #9A93B8;
}

/* ---------- 基础 ---------- */

body {
    background-color: var(--m-bg) !important;
    color: var(--m-text-dim) !important;
}

a {
    color: var(--m-text);
}

a:hover,
a:focus {
    color: var(--m-primary);
}

::selection {
    background: var(--m-primary);
    color: #fff;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0814;
}

::-webkit-scrollbar-thumb {
    background: #322a52;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--m-primary);
}

.container {
    max-width: 1080px;
    margin: 0 auto;
}

/* ---------- 顶部 LOGO + 搜索 ---------- */

.site-logo {
    display: inline-block;
    vertical-align: middle;
}

.site-logo img {
    display: block;
    height: 55px;
    width: auto;
    /* style.css 的 .header img 把图片限宽 75% 并浮动，会压扁 logo */
    max-width: none;
    float: none;
}

.site-logo-text {
    display: inline-block;
    float: left;
    max-width: 300px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 8px 0;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 39px;
    color: var(--m-text);
    background: linear-gradient(90deg, var(--m-primary) 0%, var(--m-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.site-logo-text:hover {
    color: var(--m-accent);
    -webkit-text-fill-color: var(--m-accent);
}

/* logo 与搜索框之间留出间距 */
@media (min-width: 768px) {
    .dingbu .header {
        padding-right: 1rem;
    }

    /* 搜索框相对 55px 高的 logo 垂直居中：(55 - 31) / 2 */
    .dingbu .search {
        margin-top: 12px;
    }
}

#edtSearch {
    border-color: var(--m-border) !important;
    background-color: var(--m-panel-2) !important;
    color: var(--m-text) !important;
}

#edtSearch::placeholder {
    color: #6f6890;
}

#edtSearch:focus {
    border-color: var(--m-primary) !important;
    box-shadow: 0 0 0 2px rgba(124, 92, 255, .22);
}

#searchbtn {
    border-color: var(--m-primary) !important;
    color: #fff !important;
    background-color: var(--m-primary) !important;
}

#searchbtn:hover {
    border-color: var(--m-accent) !important;
    background-color: var(--m-accent) !important;
    color: #0E0B1A !important;
}

/* ---------- 分类导航色块 ---------- */

.dingbu {
    margin: .25rem 0;
}

.nav {
    margin-bottom: .375rem;
}

.nav ul {
    padding: 3px 0 0 3px;
}

.nav li {
    margin: 0 4px 4px 0;
    height: 24px;
    line-height: 24px;
    background-color: var(--m-primary);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 60%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
    transition: transform .18s ease, filter .18s ease;
}

.nav li:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
}

.nav li:nth-child(1),
.nav li:nth-child(2),
.nav li:nth-child(3),
.nav li:nth-child(4),
.nav li:nth-child(5) {
    background-color: #7C5CFF;
}

.nav li:nth-child(6),
.nav li:nth-child(7),
.nav li:nth-child(8),
.nav li:nth-child(9),
.nav li:nth-child(10) {
    background-color: #22D3EE;
}

.nav li:nth-child(11),
.nav li:nth-child(12),
.nav li:nth-child(13),
.nav li:nth-child(14),
.nav li:nth-child(15) {
    background-color: #A855F7;
}

.nav li:nth-child(16),
.nav li:nth-child(17),
.nav li:nth-child(18),
.nav li:nth-child(19),
.nav li:nth-child(20) {
    background-color: #14B8A6;
}

.nav li:nth-child(21),
.nav li:nth-child(22),
.nav li:nth-child(23),
.nav li:nth-child(24),
.nav li:nth-child(25) {
    background-color: #6366F1;
}

.nav li:nth-child(26),
.nav li:nth-child(27),
.nav li:nth-child(28),
.nav li:nth-child(29),
.nav li:nth-child(30) {
    background-color: #06B6D4;
}

.nav li:nth-child(31),
.nav li:nth-child(32),
.nav li:nth-child(33),
.nav li:nth-child(34),
.nav li:nth-child(35) {
    background-color: #8B5CF6;
}

.nav li:nth-child(6) a,
.nav li:nth-child(16) a,
.nav li:nth-child(26) a {
    color: #06212b;
}

.nav a {
    color: #ffffff;
}

/* 首页（导航第一个）更醒目 */
.nav ul>li:first-child {
    background-color: #7C5CFF;
    background-image: linear-gradient(135deg, #7C5CFF 0%, #22D3EE 100%);
    box-shadow: 0 0 12px rgba(124, 92, 255, .65), 0 2px 6px rgba(0, 0, 0, .35);
}

.nav ul>li:first-child a {
    color: #fff;
    font-weight: 700;
    letter-spacing: .5px;
}

.nav ul>li:first-child:hover {
    filter: brightness(1.15);
    box-shadow: 0 0 16px rgba(34, 211, 238, .7), 0 2px 6px rgba(0, 0, 0, .35);
}

/* ---------- 区块容器 ---------- */

.box-container {
    margin-bottom: .875rem;
}

.box-container .inner-box-container {
    padding: 0;
    background-color: var(--m-panel);
    border: 1px solid var(--m-border);
    border-radius: .5rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}

.box-container .inner-box-container header,
.box-container .inner-box-container header.row {
    padding: .5rem 0;
    margin-top: 0;
    margin-bottom: .625rem;
    background-color: var(--m-panel-2);
    border-radius: .5rem .5rem 0 0;
    border-bottom: 1px solid var(--m-border);
}

.inner-box-container header h1,
.title-col--normal h1 {
    color: var(--m-text);
}

/* 播放页标题：分类 > 片名 */
.title-cate {
    color: var(--m-accent);
    text-decoration: none;
}

.title-cate:hover {
    color: var(--m-primary);
}

.title-arrow {
    color: #6f6890;
    margin: 0 .375rem;
}

/* 标题始终居左（styles.css 在窄屏会把 header h1 强制居中） */
.box-container .inner-box-container header .title-inner-col h1 {
    text-align: left;
}

.dimmed-desc {
    color: var(--m-text-dim);
    font-size: .813rem;
    font-weight: 400;
}

.btn-header,
.btn.btn-header {
    color: var(--m-accent);
    border: 1px solid var(--m-accent);
    background-color: transparent;
    border-radius: 999px;
    padding: .125rem .75rem;
    font-size: .75rem;
    line-height: 1.5;
    float: right;
    margin: .25rem .75rem 0 0;
    text-decoration: none;
}

.btn-header:hover {
    background-color: var(--m-accent);
    color: #06212b;
}

/* ---------- 首页 grid 卡片 ---------- */

ul.video-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    padding: 0 8px 8px;
    margin: 0;
    list-style: none;
}

li.video-item {
    background-color: var(--m-panel-2);
    border: 1px solid var(--m-border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

li.video-item:hover {
    transform: translateY(-3px);
    border-color: var(--m-primary);
    box-shadow: 0 8px 22px rgba(124, 92, 255, .28);
}

li.video-item .thumbnail {
    display: block;
    position: relative;
    padding-top: 61.176%;
    background-color: #000;
    overflow: hidden;
}

li.video-item .thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: .375rem .5rem .5rem;
}

.video-info h5 {
    margin: 0;
    font-size: .813rem;
    font-weight: 500;
    line-height: 1.3;
}

/* item-col 网格：缩小卡片之间的间距 */
.box-container .inner-box-container>div.row {
    margin-left: 0;
    margin-right: 0;
    padding: 0 !important;
}

.box-container .inner-box-container>.row>.item-col {
    padding-left: 4px;
    padding-right: 4px;
    margin-bottom: 8px;
}

/* 搜索无结果空状态 */
.search-empty {
    padding: 2rem .5rem;
    text-align: center;
    font-size: .875rem;
    line-height: 1.8;
    color: var(--m-text-dim);
}

.search-empty-title {
    display: block;
    margin-bottom: .25rem;
    font-size: 1rem;
    color: var(--m-text);
}

.video-info h5 a.title,
.video-info .title {
    color: var(--m-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.video-info h5 a.title:hover {
    color: var(--m-primary);
}

.video-grade {
    position: absolute;
    top: .375rem;
    right: .375rem;
    padding: 0 .375rem;
    border-radius: 3px;
    font-size: .688rem;
    line-height: 1.4;
    color: #06212b;
    background-color: var(--m-accent);
}

/* ---------- item-col 卡片 ---------- */

.item-col>.inner-col,
.item-inner-col {
    background-color: var(--m-panel-2);
    border: 1px solid var(--m-border);
    border-radius: .375rem;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.item-col>.inner-col:hover,
.item-inner-col:hover {
    transform: translateY(-3px);
    border-color: var(--m-primary);
    box-shadow: 0 8px 22px rgba(124, 92, 255, .26);
}

.item-col span.image {
    background-color: #000;
}

.item-col .title,
.item-col span.title {
    color: var(--m-text);
}

.item-col .time {
    background-color: rgba(14, 11, 26, .82);
    color: #fff;
    border-radius: 3px;
    padding: 0 .25rem;
}

.item-col .quality .quality-icon,
.q-hd {
    background-color: var(--m-accent);
    color: #06212b;
    border-radius: 3px;
}

.item-col .add-to-fav {
    color: var(--m-accent);
}

.item-col .s-elem .sub-desc,
.item-col .item-stats {
    color: var(--m-text-dim);
}

.item-col .item-info,
.item-col span.item-info {
    padding: .375rem .5rem;
}

.i-thumbs-up:before {
    color: var(--m-primary);
}

/* ---------- 分页 ---------- */

.pagination-col {
    margin: .5rem 0 .75rem;
    width: 100%;
}

.pagination-col .pagination-inner-col,
.pagination {
    background-color: var(--m-panel);
    border: 1px solid var(--m-border);
    border-radius: .375rem;
    padding: .375rem .5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .375rem;
}

.pagination-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
}

.pagination-col li a,
.pagination-col li span {
    display: inline-block;
    padding: .125rem .5rem;
    border-radius: .25rem;
    border: 1px solid var(--m-border);
    font-size: .813rem;
}

.pagination a,
.pagination span,
.pagination li a {
    color: var(--m-text-dim);
    background-color: transparent;
    border-color: var(--m-border);
}

.pagination a:hover,
.pagination li a:hover {
    color: #fff;
    background-color: var(--m-primary);
    border-color: var(--m-primary);
}

.pagination .current,
.pagination span.current,
.pagination li.active a {
    color: #06212b;
    background-color: var(--m-accent);
    border-color: var(--m-accent);
}

/* ---------- 热门搜索标签（对应对方 .hot-tags） ---------- */

.hot-tags {
    margin-bottom: .875rem;
    padding: .625rem .75rem;
    background-color: var(--m-panel);
    border: 1px solid var(--m-border);
    border-radius: .5rem;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
    text-align: center;
}

.hot-tags .tag-head {
    margin-bottom: .375rem;
}

.hot-tags .tag-badge {
    display: inline-flex;
    align-items: center;
    padding: .125rem .625rem;
    font-size: .75rem;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, var(--m-primary), var(--m-accent));
    border-radius: 6px;
}

.hot-tags .tag-body {
    font-size: .75rem;
    line-height: 1.6;
    color: var(--m-text-dim);
}

.hot-tags a {
    display: inline-block;
    padding: .0625rem .25rem;
    margin: 0 0 .125rem;
    color: var(--m-text-dim);
    font-size: .75rem;
    text-decoration: none;
}

.hot-tags a:hover {
    color: var(--m-accent);
    text-decoration: underline;
}

/* ---------- 热门搜索按钮块（对应对方 .btn-sort-wrapper） ---------- */

.btn-sort-wrapper {
    /* 区块标题已有下边距，这里不再留白 */
    padding: 0 .375rem .625rem;
    text-align: center;
    line-height: 1;
}

.btn-sort-wrapper a {
    display: inline-block;
    padding: .3125rem .625rem;
    margin: .125rem;
    font-size: .75rem;
    color: var(--m-text-dim);
    background-color: var(--m-panel-2);
    border: 1px solid var(--m-border);
    border-radius: 5px;
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.btn-sort-wrapper a:hover {
    color: #06212b;
    background-color: var(--m-accent);
    border-color: var(--m-accent);
}

/* ---------- 友情链接 ---------- */

.site-links {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    list-style: none;
    margin: 0;
    padding: 0 .5rem .625rem;
}

.site-links li {
    margin: 0;
}

.site-links a {
    display: block;
    padding: .125rem .5rem;
    font-size: .75rem;
    line-height: 1.5;
    color: #fff;
    background: linear-gradient(135deg, var(--m-primary), #5B3FE0);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 4px;
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.site-links a:hover {
    color: #06212b;
    background: var(--m-accent);
    border-color: var(--m-accent);
}

/* ---------- 页脚 ---------- */

footer {
    background-color: var(--m-panel);
    border-top: 1px solid var(--m-border);
    color: var(--m-text-dim);
    margin-top: .875rem;
    padding: .875rem 0;
}

footer a {
    color: var(--m-text-dim);
}

footer a:hover {
    color: var(--m-accent);
}

/* ---------- 通用按钮 / 强调色（覆盖 #ffc200） ---------- */

.btn-link,
.bg-c1,
.mct {
    color: var(--m-primary) !important;
}

.bg-c1 {
    background-color: var(--m-primary) !important;
    color: #fff !important;
}

.text-c1,
.color-c1 {
    color: var(--m-primary) !important;
}

/* ---------- 详情页 ---------- */

.vod-detail .detail-info,
.detail-info {
    color: var(--m-text-dim);
}

.detail-box {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    padding: .75rem;
}

.detail-poster {
    width: 220px;
    flex: 0 0 220px;
}

.detail-poster img {
    display: block;
    width: 100%;
    border-radius: .375rem;
    background-color: #000;
}

.detail-info {
    flex: 1 1 320px;
    min-width: 0;
    line-height: 1.9;
    font-size: .875rem;
}

.detail-info h1 {
    margin: 0 0 .5rem;
    font-size: 1.375rem;
    color: var(--m-text);
}

.detail-info p {
    margin: 0;
}

.detail-info p>span:first-child {
    color: #6f6890;
}

.detail-info a {
    color: var(--m-primary);
}

.detail-plot {
    margin-top: .5rem !important;
    color: var(--m-text-dim);
    max-height: 6.5rem;
    overflow: auto;
}

.btn-play {
    display: inline-block;
    margin-top: .625rem;
    padding: .375rem 1rem;
    border-radius: 999px;
    font-size: .875rem;
    color: #fff;
    background: linear-gradient(90deg, var(--m-primary) 0%, var(--m-accent) 100%);
    text-decoration: none;
}

.btn-play:hover {
    color: #0E0B1A;
}

.play-wrap {
    padding: .75rem;
}

.play-source h3 {
    margin: .5rem 0;
    font-size: .938rem;
    color: var(--m-accent);
}

.play-list {
    list-style: none;
    margin: 0 0 .75rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
}

.play-list li {
    margin: 0;
}

.detail-info .vod-name,
.vod-name {
    color: var(--m-text);
}

.play-list a,
.vod-play-list a {
    display: inline-block;
    padding: .25rem .75rem;
    color: var(--m-text-dim);
    background-color: var(--m-panel-2);
    border: 1px solid var(--m-border);
    border-radius: .25rem;
    font-size: .813rem;
    text-decoration: none;
}

.play-list a:hover,
.vod-play-list a:hover {
    color: #06212b;
    background-color: var(--m-accent);
    border-color: var(--m-accent);
}

.play-list a.active,
.vod-play-list a.active {
    color: #fff;
    background-color: var(--m-primary);
    border-color: var(--m-primary);
}

.player-wrap {
    padding: 0;
    border-radius: .5rem;
    overflow: hidden;
}

/* 播放线路切换（只显示线路名，不含集数） */
.play-lines {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .375rem;
    padding: .75rem .625rem .75rem;
}

.play-lines-label {
    font-size: .813rem;
    color: #6f6890;
}

.play-lines .play-list {
    margin: 0;
}

.player-wrap .embed-responsive,
.player-wrap>div,
.player-wrap>iframe {
    width: 100%;
    max-width: 100%;
}

/* 播放器固定 16:9 比例，避免 MacPlayer 塌陷成细条 */
.player-wrap .MacPlayer {
    height: auto !important;
    aspect-ratio: 16 / 9;
    background-color: #000;
}

.player-wrap .MacPlayer>table {
    width: 100%;
    height: 100%;
}

.player-wrap .MacPlayer td#playleft {
    height: 100%;
    padding: 0;
}

.player-wrap .MacPlayer td#playleft>iframe {
    display: block;
    width: 100%;
    height: 100%;
}

/* ---------- 文章 ---------- */

.art-list {
    list-style: none;
    margin: 0;
    padding: .5rem .75rem .75rem;
}

.art-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .4375rem 0;
    border-bottom: 1px dashed var(--m-border);
    font-size: .875rem;
}

.art-list li:last-child {
    border-bottom: 0;
}

.art-list-title {
    color: var(--m-text);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding-right: 1rem;
}

.art-list-title:hover {
    color: var(--m-primary);
}

.art-list-date {
    color: #6f6890;
    font-size: .75rem;
    flex: 0 0 auto;
}

.art-meta {
    padding: .5rem .75rem;
    color: var(--m-text-dim);
    font-size: .813rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    border-bottom: 1px solid var(--m-border);
}

.art-meta a {
    color: var(--m-primary);
}

.art-content {
    padding: .75rem;
    line-height: 1.9;
    color: var(--m-text-dim);
    font-size: .875rem;
    word-break: break-word;
}

.art-content img {
    max-width: 100%;
    height: auto;
}

/* ---------- 响应式 ---------- */

@media (max-width: 1120px) {
    .container {
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 767px) {
    .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    /* style.css 在移动端把 .dingbu 设为 flex，导致 logo 与搜索框挤在一行 */
    .dingbu {
        display: block;
    }

    /* 移动端隐藏 LOGO，只保留搜索框（与对方移动端一致） */
    .dingbu .header {
        display: none;
    }

    .dingbu .search {
        display: block;
        width: 100%;
        max-width: 100%;
        float: none;
        margin-top: .125rem;
    }

    /* 输入框带 size 属性时有最小宽度，flex 下会撑破右侧按钮 */
    .dingbu .search .form-control {
        min-width: 0;
    }

    .dingbu .search #searchbtn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    ul.video-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    /* 移动端导航：每行 5 个，整行居中 */
    .nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        padding: 3px;
    }

    .nav li {
        width: calc(20% - 3.2px);
        margin: 0;
    }

    /* 一排 5 个时字号略放大，避免过小 */
    .nav a {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    ul.video-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav li {
        width: calc(20% - 3.2px);
    }
}

