* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #000;
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

#container {
    display: grid;
    width: 100%;
    height: 100vh;
    grid-gap: 0;
    padding: 0;
}

.stream-container {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #000;
    overflow: hidden;
    z-index: 10;
}

.stream-iframe {
    width: 100%;
    height: 100%;
    border: none;
    overflow: hidden;
}

.stream-highlighted {
    z-index: 0;
}

.stream-highlighted::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 16px solid #32C3FF;
  pointer-events: none; /* allows clicks to go through */
  z-index: 1;
  box-sizing: border-box;
}
/*border: 16px solid #32C3FF;*/

/* Stream info and status elements are now hidden */
.stream-info, .stream-status {
    display: none;
}

/* Auto-hiding taskbar styles */
#taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(33, 33, 42, 0.85);
    backdrop-filter: blur(5px);
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#taskbar.visible {
    height: 56px; /* Fixed height for the taskbar */
}

#container {
    height: calc(100vh - 56px); /* Adjust container height when taskbar is visible */
    transition: height 0.3s ease;
}

#container.full-height {
    height: 100vh;
}

.taskbar-items {
    display: flex;
    padding: 10px 20px;
    align-items: center;
    overflow-x: auto;
    flex: 1;
    min-width: 0;
}

.taskbar-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 20px;
    flex-shrink: 0;
}

.taskbar-items::-webkit-scrollbar {
    height: 4px;
}

.taskbar-items::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.taskbar-items::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

#stream-tasks {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.stream-task {
    display: flex;
    align-items: center;
    background-color: rgba(45, 45, 55, 0.6);
    margin-left: 10px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stream-task:hover {
    background-color: rgba(60, 60, 70, 0.8);
}

.stream-task.active {
    background-color: rgba(76, 217, 100, 0.2);
    border-color: rgba(76, 217, 100, 0.4);
}

.task-platform-icon {
    margin-right: 6px;
}

.stream-task-name {
    flex: 1;
}

.stream-task-mute,
.stream-task-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 2px 4px;
    margin-left: 4px;
    font-size: 11px;
    border-radius: 3px;
    transition: color 0.2s ease, background-color 0.2s ease;
    line-height: 1;
    visibility: hidden;
}

.stream-task:hover .stream-task-mute,
.stream-task:hover .stream-task-close {
    visibility: visible;
}

.stream-task-mute:hover,
.stream-task-close:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.15);
}

.stream-task-close:hover {
    color: #ff4d4d;
    background-color: rgba(255, 77, 77, 0.15);
}

#view-all-btn {
    background-color: rgba(55, 55, 65, 0.8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

#view-all-btn:hover {
    background-color: rgba(70, 70, 80, 0.9);
}

#view-all-btn.active {
    background-color: rgba(76, 217, 100, 0.2);
    border-color: rgba(76, 217, 100, 0.4);
}

.platform-icon {
    margin-right: 4px;
    vertical-align: middle;
}

.platform-twitch {
    color: #9146FF;
}

.platform-kick {
    color: #53FC18;
}

#loader-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    transition: opacity 0.5s ease;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: #4cd964;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loader-title {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    letter-spacing: 0.5px;
}

.hidden {
    display: none !important;
}

.fade-out {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; transform: translate(-50%, -60%); }
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(45, 45, 55, 0.5);
}

/* Auto-Tune checkbox styles */
.auto-tune-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s ease;
}

.auto-tune-label:hover {
    color: #fff;
}

#auto-tune-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #4cd964;
}

#auto-tune-checkbox:checked + span {
    color: #4cd964;
}

/* Fullscreen button styles */
#fullscreen-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
    height: auto;
    min-width: 0;
    line-height: 1;
}

#fullscreen-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}