/* 节目管理 - 老式电视机卡片（整体等比缩小为原尺寸约 2/3） */
.program-tv {
    position: relative;
    padding-top: 12px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.program-tv-antenna {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 11px;
    background: linear-gradient(180deg, #888 0%, #555 100%);
    z-index: 2;
}

.program-tv-antenna::before,
.program-tv-antenna::after {
    content: "";
    position: absolute;
    bottom: 100%;
    width: 2px;
    height: 9px;
    background: inherit;
    transform-origin: bottom center;
}

.program-tv-antenna::before {
    left: 0;
    transform: rotate(-28deg);
}

.program-tv-antenna::after {
    right: 0;
    transform: rotate(28deg);
}

.program-tv-cabinet {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: linear-gradient(165deg, #6b5644 0%, #4a3c31 45%, #3d3229 100%);
    border: 2px solid #2a221c;
    border-radius: 9px 9px 7px 7px;
    padding: 7px 7px 5px;
    box-shadow:
        0 4px 11px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -2px 4px rgba(0, 0, 0, 0.25);
    height: auto;
    display: flex;
    flex-direction: column;
}

.program-tv-cabinet.is-menu {
    background: linear-gradient(165deg, #5a6b5e 0%, #3f4d42 45%, #354038 100%);
    border-color: #243028;
}

.program-tv-screen-bezel {
    background: linear-gradient(180deg, #1f1f1f 0%, #0f0f0f 100%);
    border-radius: 7px;
    padding: 7px;
    box-shadow:
        inset 0 2px 6px rgba(0, 0, 0, 0.65),
        inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.program-tv-screen {
    position: relative;
    /* 原 168 × 2/3，与宽度 2/3 同步等比 */
    height: 112px;
    border-radius: 4px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at center, rgba(120, 220, 180, 0.07) 0%, transparent 65%),
        linear-gradient(180deg, #142018 0%, #080c0a 100%);
    box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.55);
    cursor: pointer;
}

.program-tv-screen::after {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.08) 0,
        rgba(0, 0, 0, 0.08) 1px,
        transparent 1px,
        transparent 3px
    );
    opacity: 0.35;
    z-index: 1;
}

.program-tv-screen .program-type-badge,
.program-tv-screen .program-status-badge {
    z-index: 3;
    font-size: 0.65rem;
}

.program-tv-screen-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 1.2rem 0.45rem 0.35rem;
    text-align: left;
    font-family: "Consolas", "Courier New", monospace;
}

.program-tv-screen-title {
    color: #8ef0c6;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.28rem;
    text-shadow: 0 0 8px rgba(100, 240, 180, 0.35);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.program-tv-screen-title-icon {
    font-size: 0.68rem;
    margin-right: 0.2rem;
    opacity: 0.85;
}

.program-tv-screen-line {
    color: rgba(180, 230, 200, 0.88);
    font-size: 0.62rem;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.program-tv-screen-label {
    display: inline-block;
    min-width: 2.8em;
    color: rgba(120, 180, 150, 0.75);
    margin-right: 0.25rem;
}

.program-tv-screen-auto-badge {
    align-self: flex-start;
    margin-top: 0.25rem;
    font-size: 0.62rem;
    font-family: system-ui, -apple-system, sans-serif;
}

.program-tv-screen .program-hover-actions {
    z-index: 4;
    display: none;
    gap: 0.3rem;
}

.program-tv-screen .program-hover-actions .btn {
    --bs-btn-padding-y: 0.15rem;
    --bs-btn-padding-x: 0.35rem;
    --bs-btn-font-size: 0.7rem;
}

.program-tv-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 3px 1px;
    gap: 6px;
}

.program-tv-knobs {
    display: flex;
    gap: 5px;
    align-items: center;
}

.program-tv-knob {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ddd 0%, #888 55%, #555 100%);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.45),
        inset 0 -1px 2px rgba(0, 0, 0, 0.3);
}

.program-tv-knob-lg {
    width: 12px;
    height: 12px;
}

.program-tv-speaker {
    flex: 1;
    max-width: 48px;
    height: 7px;
    margin-left: auto;
    border-radius: 2px;
    background: repeating-linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.35) 0,
        rgba(0, 0, 0, 0.35) 2px,
        transparent 2px,
        transparent 5px
    );
    opacity: 0.55;
}

.program-tv-info {
    display: none;
}

.program-tv-footer {
    padding: 4px 1px 1px;
    margin-top: auto;
}

.program-tv-footer .btn {
    --bs-btn-padding-y: 0.12rem;
    --bs-btn-padding-x: 0.32rem;
    --bs-btn-font-size: 0.68rem;
    border-color: rgba(255, 255, 255, 0.22);
    color: #f0ebe3;
}

.program-tv-footer .btn-outline-secondary,
.program-tv-footer .btn-outline-primary {
    background: rgba(0, 0, 0, 0.15);
}

.program-tv-footer .btn-outline-primary {
    color: #9fd4ff;
    border-color: rgba(159, 212, 255, 0.45);
}

.program-tv-footer .btn-outline-danger {
    color: #ffb3b3;
    border-color: rgba(255, 120, 120, 0.45);
    background: rgba(0, 0, 0, 0.12);
}

.program-tv-footer .btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.program-tv-footer .form-check-input {
    border-color: rgba(255, 255, 255, 0.35);
    background-color: rgba(0, 0, 0, 0.2);
    width: 0.9em;
    height: 0.9em;
}

.program-tv:hover .program-tv-cabinet {
    box-shadow:
        0 6px 14px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -2px 4px rgba(0, 0, 0, 0.25);
}

.program-tv-feet {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 12px;
    margin-top: -1px;
}

.program-tv-foot {
    width: 19px;
    height: 4px;
    background: linear-gradient(180deg, #2a221c 0%, #1a1512 100%);
    border-radius: 0 0 3px 3px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.25);
}

@media (max-width: 991.98px) {
    .program-tv-screen {
        height: 120px;
    }
}

@media (max-width: 767.98px) {
    .program-tv-screen {
        height: 110px;
    }

    .program-tv-screen-title {
        font-size: 0.68rem;
    }

    .program-tv-screen-line {
        font-size: 0.58rem;
    }
}
