/* ============================================
   WAD VISUALS STREAMING HEADER
   Version: 5.0.0
   Namespaced with wad-stream-* to avoid collisions
   YouTube-style slim search bar
   ============================================ */

/*=========================================================
STREAMING HEADER
=========================================================*/

.wad-stream-header {
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0 22px;
    background: #111;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0 0 28px;
    gap: 18px;
    box-sizing: border-box;
    width: 100%;
}

/*----------------------------------*/

.wad-stream-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 0 0 auto;
}

/*----------------------------------*/

.wad-stream-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.wad-stream-logo img {
    height: 42px;
    width: auto;
    display: block;
}

/*----------------------------------*/

.wad-stream-library {
    color: #f5f5f5;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.25s;
    opacity: 0.85;
}

.wad-stream-library:hover {
    opacity: 1;
    color: #fff;
}

/*----------------------------------*/

.wad-stream-header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 16px;
}

/*=========================================================
SEARCH BAR (YouTube Style)
=========================================================*/

.wad-search-form {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 700px;
}

/*----------------------------------*/

#wad-search-input {
    flex: 1;
    height: 38px;
    min-height: 38px;
    padding: 0 16px;
    background: #121212;
    border: 1px solid #303030;
    border-right: none;
    border-radius: 20px 0 0 20px;
    color: #f1f1f1;
    font-size: 14px;
    font-weight: 400;
    line-height: 38px;
    outline: none;
    box-shadow: none;
    transition: border-color 0.2s ease;
}

#wad-search-input::placeholder {
    color: #8d8d8d;
}

#wad-search-input:focus {
    border-color: #3ea6ff;
}

/*----------------------------------*/

.wad-search-form button {
    width: 52px;
    height: 38px;
    min-height: 38px;
    background: #222;
    border: 1px solid #303030;
    border-left: none;
    border-radius: 0 20px 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    color: #f1f1f1;
    font-size: 16px;
}

.wad-search-form button:hover {
    background: #2c2c2c;
}

/*----------------------------------*/

.wad-stream-header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 0 0 auto;
    min-width: 160px;
}

/*----------------------------------*/

.wad-stream-header-right img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

.wad-stream-header-right a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #ddd;
    font-size: 14px;
    font-weight: 500;
}

.wad-stream-header-right a:hover {
    color: #fff;
}

.wad-stream-account-name {
    white-space: nowrap;
}

/*=========================================================
SEARCH DROPDOWN
=========================================================*/

.wad-search-dropdown {
    display: none;
    position: absolute;
    top: 46px;
    left: 0;
    right: 0;
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    z-index: 99999;
    max-height: 400px;
    overflow-y: auto;
}

/* Dropdown scrollbar */
.wad-search-dropdown::-webkit-scrollbar {
    width: 4px;
}

.wad-search-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.wad-search-dropdown::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 2px;
}

/*----------------------------------*/

.wad-search-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px;
    text-decoration: none;
    color: #fff;
    transition: 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.wad-search-item:last-child {
    border-bottom: none;
}

.wad-search-item:hover {
    background: #252525;
}

/*----------------------------------*/

.wad-search-thumb {
    width: 72px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}

.wad-search-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.wad-search-thumb-placeholder {
    width: 72px;
    aspect-ratio: 16 / 9;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 4px;
}

/*----------------------------------*/

.wad-search-info {
    flex: 1;
    min-width: 0;
}

.wad-search-title {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wad-search-artist {
    font-size: 12px;
    color: #888;
}

/*----------------------------------*/

.wad-search-badge {
    flex-shrink: 0;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wad-search-badge-watch {
    background: #1d72d8;
    color: #fff;
}

.wad-search-badge-buy {
    background: #00a651;
    color: #fff;
}

/*----------------------------------*/

.wad-search-loading {
    padding: 20px;
    text-align: center;
    color: #888;
}

.wad-search-empty {
    padding: 30px 20px;
    text-align: center;
    color: #666;
    font-size: 15px;
}

.wad-search-error {
    padding: 20px;
    text-align: center;
    color: #ff6b6b;
}

/*=========================================================
RESPONSIVE
=========================================================*/

@media (max-width: 1024px) {
    .wad-stream-header {
        flex-wrap: wrap;
        height: auto;
        padding: 14px 18px;
        gap: 14px;
        margin-bottom: 20px;
    }
    
    .wad-stream-header-center {
        order: 3;
        flex-basis: 100%;
        padding: 0;
        margin-top: 4px;
    }
    
    .wad-search-form {
        max-width: 100%;
    }
    
    .wad-stream-header-right {
        min-width: auto;
    }
    
    .wad-stream-account-name {
        display: none;
    }
    
    .wad-stream-header-right img {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 600px) {
    .wad-stream-header {
        padding: 10px 12px;
        gap: 12px;
        margin-bottom: 14px;
    }
    
    .wad-stream-header-left {
        gap: 10px;
    }
    
    .wad-stream-logo img {
        height: 32px;
    }
    
    .wad-stream-library {
        font-size: 14px;
    }
    
    #wad-search-input {
        height: 34px;
        min-height: 34px;
        font-size: 13px;
        padding: 0 12px;
        border-radius: 18px 0 0 18px;
        line-height: 34px;
    }
    
    .wad-search-form button {
        width: 44px;
        height: 34px;
        min-height: 34px;
        font-size: 14px;
        border-radius: 0 18px 18px 0;
    }
    
    .wad-search-dropdown {
        top: 40px;
    }
    
    .wad-search-item {
        padding: 8px 12px;
        gap: 10px;
    }
    
    .wad-search-thumb {
        width: 56px;
    }
    
    .wad-search-thumb-placeholder {
        width: 56px;
        font-size: 18px;
    }
    
    .wad-search-title {
        font-size: 13px;
    }
    
    .wad-search-badge {
        padding: 4px 12px;
        font-size: 10px;
    }
    
    .wad-stream-header-right img {
        width: 28px;
        height: 28px;
    }
    
    .wad-stream-header-right a {
        font-size: 13px;
        gap: 8px;
    }
}