/* 详情页 — 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;
}

.star-vod-lists .tab-content > .tab-pane.active.star-pane-pan:has(.star-pan-recommend) {
    max-height: 500px;
}

@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: nowrap;
    flex-shrink: 0;
    gap: 6px;
    margin-bottom: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.star-pan-type-tabs::-webkit-scrollbar {
    height: 4px;
}

.star-pan-type-tabs::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, .35);
    border-radius: 4px;
}

.star-pan-tab {
    flex: 0 0 auto;
    white-space: nowrap;
    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.is-cached {
    box-shadow: inset 3px 0 0 var(--theme-color, #2563eb);
}

.star-pan-recommend {
    flex-shrink: 0;
    margin: 0 0 14px;
}

.star-pan-recommend-title,
.star-pan-all-title {
    flex-shrink: 0;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.star-pan-all-empty {
    margin: 0 0 12px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.55;
    color: #94a3b8;
    border: 1px dashed #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
}

.star-pan-recommend-tip {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 400;
    color: #94a3b8;
}

[data-theme=dark] .star-pan-recommend-title,
[data-theme=dark] .star-pan-all-title {
    color: rgba(255, 255, 255, .85);
}

[data-theme=dark] .star-pan-all-empty {
    color: rgba(255, 255, 255, .45);
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .03);
}

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

.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-pan-dot.is-uncertain {
    background: #94a3b8;
    box-shadow: 0 0 4px 2px rgba(148, 163, 184, .5);
}

.star-pan-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(2px);
}

.star-pan-modal {
    position: relative;
    width: min(100%, 420px);
    max-height: calc(100vh - 32px);
    overflow: auto;
    border-radius: 12px;
    background: #fff;
    color: #334155;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .22);
}

[data-theme=dark] .star-pan-modal {
    background: #1e293b;
    color: rgba(255, 255, 255, .88);
}

.star-pan-modal-x {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.star-pan-modal-x:hover {
    background: rgba(148, 163, 184, .15);
    color: #64748b;
}

.star-pan-modal-title {
    padding: 18px 20px 0;
    font-size: 16px;
    font-weight: 600;
}

.star-pan-modal-body {
    padding: 14px 20px 8px;
}

.star-pan-modal-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 88px;
    color: #64748b;
    font-size: 14px;
}

.star-pan-modal-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.star-pan-modal-row .k {
    flex: 0 0 52px;
    color: #94a3b8;
}

.star-pan-modal-row .v {
    flex: 1;
    min-width: 0;
    word-break: break-all;
}

.star-pan-modal-state.is-ok {
    color: #16a34a;
    font-weight: 600;
}

.star-pan-modal-state.is-bad {
    color: #dc2626;
    font-weight: 600;
}

.star-pan-modal-link {
    color: var(--theme-color, #2563eb) !important;
    text-decoration: none !important;
}

.star-pan-modal-link:hover {
    text-decoration: underline !important;
}

.star-pan-modal-qr-wrap {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px dashed #e2e8f0;
    text-align: center;
}

[data-theme=dark] .star-pan-modal-qr-wrap {
    border-top-color: rgba(255, 255, 255, .12);
}

.star-pan-modal-qr-tip {
    margin: 0 0 8px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.5;
}

[data-theme=dark] .star-pan-modal-qr-tip {
    color: rgba(255, 255, 255, .55);
}

.star-pan-modal-qr {
    display: inline-block;
    padding: 8px;
    background: #fff;
    border-radius: 8px;
    line-height: 0;
}

.star-pan-modal-qr canvas,
.star-pan-modal-qr img {
    display: block;
    width: 128px;
    height: 128px;
}

.star-pan-modal-hint {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.star-pan-modal-hint-icon {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    margin-top: 2px;
    fill: currentColor;
    opacity: .85;
}

[data-theme=dark] .star-pan-modal-hint {
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .55);
}

.star-pan-modal-msg {
    margin: 8px 0 0;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}

.star-pan-modal-actions {
    display: flex;
    gap: 10px;
    padding: 8px 20px 18px;
}

.star-pan-modal-actions .star-pan-modal-go,
.star-pan-modal-actions .star-pan-fb-submit {
    flex: 1;
}

.star-pan-modal-cancel {
    flex: 0 0 auto;
    min-width: 72px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
}

[data-theme=dark] .star-pan-modal-cancel {
    border-color: rgba(255, 255, 255, .12);
    background: transparent;
    color: rgba(255, 255, 255, .65);
}

.star-pan-modal-cancel:hover {
    background: #f8fafc;
}

.star-pan-modal-feedback-btn {
    flex: 0 0 auto;
    min-width: 72px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
}

[data-theme=dark] .star-pan-modal-feedback-btn {
    border-color: rgba(255, 255, 255, .12);
    background: transparent;
    color: rgba(255, 255, 255, .65);
}

.star-pan-modal-feedback-btn:hover {
    border-color: var(--theme-color, #4e6ef2);
    color: var(--theme-color, #4e6ef2);
}

.star-pan-modal-feedback-btn:disabled {
    opacity: .55;
    cursor: default;
}

.star-pan-modal-feedback {
    width: 100%;
    text-align: left;
}

.star-pan-modal-qr-wrap.is-feedback {
    align-items: stretch;
    text-align: left;
}

.star-pan-fb-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--font-color, #333);
}

.star-pan-fb-reason {
    display: block;
    width: 100%;
    box-sizing: border-box;
    height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(120, 130, 150, .3);
    border-radius: 10px;
    background: rgba(116, 130, 155, .1);
    color: var(--font-color, #333);
    font-size: 13px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.2 1.2L6 6l4.8-4.8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

[data-theme=dark] .star-pan-fb-reason {
    border-color: rgba(255, 255, 255, .16);
    background-color: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .9);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2399a3b0' d='M1.2 1.2L6 6l4.8-4.8'/%3E%3C/svg%3E");
}

.star-pan-fb-reason:focus {
    border-color: var(--theme-color, #4e6ef2);
}

.star-pan-fb-text {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 10px 0 0;
    padding: 8px 10px;
    border: 1px solid rgba(120, 130, 150, .3);
    border-radius: 8px;
    background: transparent;
    color: var(--font-color, #333);
    font-size: 13px;
    resize: vertical;
    min-height: 52px;
}

[data-theme=dark] .star-pan-fb-text {
    border-color: rgba(255, 255, 255, .16);
    color: rgba(255, 255, 255, .9);
}

.star-pan-item.is-busy {
    opacity: .65;
    pointer-events: none;
}

.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;
}

/* 在途检索：同款 listitem + star-ext-link，仅禁交互与悬停变色 */
.star-vod-lists .listitem.star-search-progress {
    margin: 0;
    pointer-events: none;
    cursor: default;
    color: #94a3b8;
}

[data-theme=dark] .star-vod-lists .listitem.star-search-progress {
    color: rgba(255, 255, 255, .45);
}

.star-vod-lists .listitem.star-search-progress:hover {
    background: #e9edf4;
    border-color: transparent;
    color: #94a3b8;
}

[data-theme=dark] .star-vod-lists .listitem.star-search-progress:hover {
    background: rgba(255, 255, 255, .05);
    border-color: transparent;
    color: rgba(255, 255, 255, .45);
}

/* 与 a.star-ext-link 同布局（gap:6px）；去掉 loading 自带 margin，避免间距翻倍 */
.star-vod-lists .listitem.star-search-progress > .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;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

.star-vod-lists .listitem.star-search-progress .star-play-loading {
    margin-right: 0;
    vertical-align: middle;
}

.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: 0 12px;
        margin: 12px 0;
        gap: 12px;
    }

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