/* Tynwald Live Stream Widget Styles */

/* Inline player widget (Widget A) */
.stream-widget {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 20px;
    margin: 20px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: 2px solid #667eea;
}

.stream-widget-header {
    font-size: 1.1em;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stream-live-indicator {
    background: #f44336;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 700;
    animation: pulse 2s infinite;
}

/* Link-only widget (Widget B) */
.stream-link-widget {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    /* box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); */
    padding: 18px;
    margin: 0px 0;
    /* font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; */
    /* border: 2px solid #26a69a; */
}

.stream-link-widget-header {
    font-size: 1.05em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stream-link-live-indicator {
    background: #F8AC21;
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.stream-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stream-link-stream-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stream-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.stream-link-stream-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    /* border: 1px solid #d2eee9; */
    transition: background 0.2s ease, border-color 0.2s ease;
}

.stream-item:hover {
    background: #ebebeb;
}

.stream-link-stream-item:hover {
    background: #e4e4e4;
    /* border-color: #b8e4db; */
}

.stream-info {
    flex: 1;
    font-weight: 500;
    color: #333;
    font-size: 0.95em;
}

.stream-name {
    font-weight: 600;
    color: #333;
}

.stream-desc {
    font-size: 0.85em;
    color: #888;
    font-style: italic;
    margin-top: 2px;
}

.stream-link-stream-info {
    flex: 1;
    font-weight: 600;
    color: #3A529F;
    font-size: 0.95em;
}

.stream-play-btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    display: inline-block;
}

.stream-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
}

.stream-play-btn.playing {
    background: #f44336;
}

.stream-link-btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: linear-gradient(135deg, #f9c25a 0%, #F8AC21 100%);
    color: #000;
    text-decoration: none;
    display: inline-block;
}

.stream-link-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(38, 166, 154, 0.35);
}

.stream-link-button-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    display: inline-block;
}

.stream-link-button-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.stream-close-btn {
    display: none;
}

@media (max-width: 480px) {
    .stream-item,
    .stream-link-stream-item {
        flex-wrap: wrap;
    }

    .stream-info,
    .stream-link-stream-info {
        flex-basis: 100%;
        margin-bottom: 8px;
    }
}
