.hidden {
    display: none !important;
}

.img-loading-container {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f4f6f9;
    border-radius: 4px;
}

.channel-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-working {
    background-color: #d4edda;
    color: #155724;
}

.status-not-working {
    background-color: #f8d7da;
    color: #721c24;
}

.status-untested {
    background-color: #e2e3e5;
    color: #383d41;
}

.status-testing {
    background-color: #cce5ff;
    color: #004085;
}

.actions .btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin: 0 2px;
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.actions .btn-icon:hover {
    transform: scale(1.2);
}

.player-container {
    position: relative;
    background: #000;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-loading, .player-error {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.8);
    color: white;
    z-index: 10;
}

.player-error {
    background: rgba(50,0,0,0.9);
}

.spinner {
    border: 4px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top: 4px solid #fff;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.player-info {
    padding: 15px;
    background: #f8f9fa;
}

.info-row {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

.info-row strong {
    width: 100px;
    flex-shrink: 0;
}

.url-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: inline-block;
}

.channel-detail-grid-modal {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px;
    align-items: start;
}

.detail-item {
    display: contents;
}

.detail-item strong {
    text-align: right;
    padding-right: 10px;
    color: #6c757d;
}

.detail-logo {
    max-width: 100px;
    max-height: 60px;
    object-fit: contain;
    border: 1px solid #dee2e6;
    padding: 2px;
    border-radius: 4px;
}

.detail-item.full-width {
    grid-column: 1 / -1;
    display: block;
    margin-top: 10px;
    border-top: 1px solid #dee2e6;
    padding-top: 10px;
}

.detail-item.full-width strong {
    display: block;
    text-align: left;
    margin-bottom: 5px;
}

.url-text {
    word-break: break-all;
    font-family: monospace;
    background: #f8f9fa;
    padding: 5px;
    border-radius: 4px;
    display: block;
}

/* Card styling enhancements */
.card {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border: none;
    border-radius: 8px;
}

.card-header {
    border-bottom: 1px solid #f0f2f5;
    background-color: #fff;
    border-radius: 8px 8px 0 0 !important;
    padding: 1rem 1.25rem;
}

.card-footer {
    background-color: #fff;
    border-top: 1px solid #f0f2f5;
    border-radius: 0 0 8px 8px !important;
}

.table-placeholder {
    padding: 40px;
    text-align: center;
    color: #6c757d;
}

.table-placeholder p {
    margin: 0;
    font-size: 1.1rem;
}

/* Playlists Grid Layout */
.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    padding: 0;
}

.playlist-card {
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #007bff;
    border-radius: 6px;
    background: #fff;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.playlist-card:hover {
    background: #007bff;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.playlist-card span {
    font-size: 0.95rem;
    line-height: 1.3;
}

.playlist-card strong {
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .playlists-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .playlist-card {
        padding: 12px 8px;
        font-size: 0.85rem;
    }
}

/* End removal */
