/* 详情页 — star 外站播放区（对齐 shoutu45 功能，适配 mizhiady 主题） */
.star-copyright-tip {
    margin-bottom: 48px;
    padding: 28px 16px;
    text-align: center;
    border: 1px dashed #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #64748b;
}
[data-theme=dark] .star-copyright-tip {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .55);
}
.star-copyright-tip-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.star-play-box {
    margin-top: 4px;
}

.star-vod-lists.play-box {
    overflow: hidden;
}

/* 模式 Tab：不换行，超出横向滚动 */
.star-vod-lists .star-mode-bar {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.star-vod-lists .star-mode-tabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin: 0;
    list-style: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #e9edf4;
    padding: 6px;
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}

.star-vod-lists .star-mode-tabs::-webkit-scrollbar {
    display: none;
    height: 0;
}

/* clearfix 伪元素会变成 flex 子项，去掉以免挤乱布局 */
.star-vod-lists .star-mode-tabs:before,
.star-vod-lists .star-mode-tabs:after {
    display: none;
    content: none;
}

[data-theme=dark] .star-vod-lists .star-mode-tabs {
    color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .05);
}

.star-vod-lists .star-mode-tabs .player_name {
    float: none;
    flex: 0 0 auto;
    width: auto;
    margin: 0 8px 0 0;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    color: inherit !important;
}

.star-vod-lists .star-mode-tabs .player_name:last-child {
    margin-right: 0;
}

.star-vod-lists .star-mode-tabs .player_name a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 32px;
    padding: 0 14px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1;
    color: #64748b;
    text-decoration: none;
    white-space: nowrap;
}

.star-vod-lists .star-mode-tabs .player_name a .iconfont {
    font-size: 14px;
    line-height: 1;
}

[data-theme=dark] .star-vod-lists .star-mode-tabs .player_name a {
    color: rgba(255, 255, 255, .55);
}

.star-vod-lists .star-mode-tabs .player_name.active a {
    background: var(--theme-color);
    color: #fff !important;
}

.star-vod-lists .star-mode-tabs .player_name.active {
    color: inherit !important;
}

.star-vod-lists .tab-content {
    position: relative;
}

.star-vod-lists .tab-content > .tab-pane {
    display: none !important;
}

.star-vod-lists .tab-content > .tab-pane.active {
    display: block !important;
}

.star-vod-lists .tab-content > .tab-pane.active.star-pane-links {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 25px;
    text-align: center;
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
}

.star-vod-lists .tab-content > .tab-pane.active.star-pane-state {
    padding: 25px;
}

.star-vod-lists .tab-content > .tab-pane.active.star-pane-pan {
    display: flex !important;
    flex-direction: column;
    padding: 12px 15px 15px;
    max-height: 360px;
    overflow: hidden;
    text-align: left;
}

@media (min-width: 768px) {
    .star-vod-lists .tab-content > .tab-pane.active.star-pane-pan {
        padding: 16px 25px 20px;
    }
}

.star-pan-head {
    flex-shrink: 0;
}

.star-pan-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #64748b;
}

[data-theme=dark] .star-pan-toolbar {
    color: rgba(255, 255, 255, .45);
}

.star-pan-toolbar .star-btn-pan-refresh {
    min-width: 0;
    padding: 5px 12px;
    font-size: 12px;
    margin-left: auto;
}

.star-pan-type-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.star-pan-tab {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.3;
    cursor: pointer;
}

.star-pan-tab .n {
    margin-left: 4px;
    opacity: .7;
}

.star-pan-tab.active {
    background: var(--theme-color, #2563eb);
    border-color: transparent;
    color: #fff;
}

[data-theme=dark] .star-pan-tab {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .55);
}

[data-theme=dark] .star-pan-tab.active {
    background: var(--theme-color, #2563eb);
    color: #fff;
}

.star-pan-type-panes {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.star-pan-type-pane {
    display: none;
}

.star-pan-type-pane.active {
    display: block;
}

.star-pan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

@media (min-width: 768px) {
    .star-pan-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

@media (min-width: 1024px) {
    .star-pan-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1440px) {
    .star-pan-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

.star-pan-item {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-height: 52px;
    padding: 8px 14px 8px 10px;
    border-radius: 8px;
    background: #e9edf4;
    color: #475569;
    text-decoration: none !important;
    transition: background .15s, color .15s;
    overflow: hidden;
}

.star-pan-item:hover {
    background: var(--theme-color, #2563eb);
    color: #fff;
}

[data-theme=dark] .star-pan-item {
    background: rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .65);
}

.star-pan-note {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.star-pan-meta {
    font-size: 11px;
    opacity: .75;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.star-pan-dot {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    pointer-events: none;
}

.star-pan-dot.is-checking {
    background: #f59e0b;
    box-shadow: 0 0 4px 2px rgba(245, 158, 11, .55);
}

.star-pan-dot.is-ok {
    background: #22c55e;
    box-shadow: 0 0 4px 2px rgba(34, 197, 94, .55);
}

.star-pan-dot.is-bad {
    background: #ef4444;
    box-shadow: 0 0 4px 2px rgba(239, 68, 68, .55);
}

.star-vod-lists .listitem {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    min-width: 0;
    border-radius: 8px;
    font-size: 14px;
    overflow: hidden;
    background: #e9edf4;
    color: #74829b;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: background .2s, color .2s, border-color .2s;
}

[data-theme=dark] .star-vod-lists .listitem {
    color: rgba(255, 255, 255, .5);
    background: rgba(255, 255, 255, .05);
}

.star-vod-lists .listitem a.star-ext-link {
    position: relative;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 0 10px;
    color: inherit !important;
    text-decoration: none;
    font-weight: 600;
    text-overflow: clip;
    overflow: visible;
    line-height: 1;
}

.star-vod-lists .listitem a.star-ext-link:hover,
.star-vod-lists .listitem:hover a.star-ext-link {
    color: #fff !important;
}

.star-vod-lists .star-ext-icon {
    display: inline-block !important;
    width: 22px !important;
    height: 22px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain;
    flex-shrink: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    vertical-align: middle;
    pointer-events: none;
}

.star-vod-lists .listitem.star-has-rec a.star-ext-link {
    padding-right: 16px;
}

.star-vod-lists .listitem:hover {
    background: var(--theme-color);
    border-color: var(--theme-color);
    color: #fff;
}

.star-vod-lists .star-ext-label {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1;
}

.star-vod-lists .star-rec-badge {
    position: absolute;
    right: 0;
    top: 0;
    transform: translate(28%, 24%) rotate(45deg);
    transform-origin: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 18px;
    font-size: 10px;
    line-height: 1.8;
    white-space: nowrap;
    text-align: center;
    color: #fff;
    background: var(--theme-color);
    border: none !important;
    border-radius: 0;
    pointer-events: none;
    z-index: 2;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

.star-vod-lists .listitem:hover .star-rec-badge {
    background: #fff;
    color: var(--theme-color);
}

.star-pane-soon,
.star-play-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    min-height: 120px;
    padding: 32px 16px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    border: 1px dashed #e2e8f0;
    border-radius: 8px;
    background: #fafbfc;
}

[data-theme=dark] .star-pane-soon,
[data-theme=dark] .star-play-status {
    color: rgba(255, 255, 255, .45);
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .03);
}

.star-play-status.is-error {
    color: #dc2626;
    border-color: #fecaca;
    background: #fef2f2;
}

[data-theme=dark] .star-play-status.is-error {
    color: #f87171;
    border-color: rgba(248, 113, 113, .25);
    background: rgba(248, 113, 113, .08);
}

.star-play-status.is-ok {
    color: #16a34a;
    border-color: #bbf7d0;
    background: #f0fdf4;
}

[data-theme=dark] .star-play-status.is-ok {
    color: #4ade80;
    border-color: rgba(74, 222, 128, .25);
    background: rgba(74, 222, 128, .08);
}

.star-play-status-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

.star-btn-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    background: var(--theme-color, #2563eb);
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    transition: background .15s, opacity .15s;
}

.star-btn-search:hover {
    filter: brightness(.92);
}

.star-btn-search:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.star-play-loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #cbd5e1;
    border-top-color: var(--theme-color, #2563eb);
    border-radius: 50%;
    animation: starSpin .8s linear infinite;
    vertical-align: -2px;
    margin-right: 6px;
}

[data-theme=dark] .star-play-loading {
    border-color: rgba(255, 255, 255, .2);
    border-top-color: var(--theme-color, #60a5fa);
}

@keyframes starSpin {
    to {
        transform: rotate(360deg);
    }
}

/* 详情页顶栏分享按钮（detail_data.html） */
.other-box .top .share-btn .share-icon {
    font-size: 28px;
    line-height: 1;
    width: auto;
    height: auto;
    background: none;
    color: #b6bfce;
}

.other-box .top .share-btn:hover .share-icon {
    color: #fff;
}

.other-box .top .js-star-action .play-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

@media screen and (max-width: 767px) {
    .other-box .top .share-btn .share-icon {
        font-size: 24px;
    }

    .star-vod-lists .tab-content > .tab-pane.active.star-pane-links {
        padding: 12px;
        gap: 12px;
    }

    .star-vod-lists .tab-content > .tab-pane.active.star-pane-state {
        padding: 15px;
    }
}
