
.yla-widget,
.yla-widget * {
    box-sizing: border-box;
}

.yla-widget {
    padding: 16px;
    color: #f5f5f5;
    background: #050505;
    border: 1px solid #292929;
    border-radius: 16px;
    font-family: inherit;
}

.yla-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 18px;
}

.yla-header h2 {
    margin: 0;
    color: #fff;
    font-size: 23px;
    line-height: 1.3;
}

.yla-header-badge,
.yla-stream-live {
    display: inline-block;
    color: #ff6262;
    background: #321212;
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
}

.yla-player {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(270px, 1fr);
    align-items: start;
    gap: 16px;
    padding: 16px;
    color: #f5f5f5;
    background: #171717;
    border-radius: 12px;
}

.yla-current,
.yla-sidebar {
    min-width: 0;
}

.yla-cover {
    position: relative;
    background: #181818;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: solid 1px #7e7e7e59;
    border-radius: 7px;
    margin-bottom: 1rem;
}

.yla-thumbnail {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yla-default-cover {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    background: #181818;
    color: #ff0033;
}

.yla-default-cover span {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.yla-current-info h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 19px;
    line-height: 1.4;
}

.yla-current-channel,
.yla-player-message,
.yla-list-status {
    color: #bdbdbd;
    font-size: 14px;
}

.yla-current-channel {
    margin: 0 0 12px;
}

.yla-video-player {
    width: 100%;
    max-width: 480px;
    margin: 14px 0;
    display: none;
}

.yla-youtube-frame {
    width: 100%;
    min-width: 200px;
    aspect-ratio: 16 / 9;
    background: #000;
}

.yla-youtube-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.yla-audio-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.yla-audio-controls button {
    padding: 9px 14px;
    color: #fff;
    background: #333;
    border: 1px solid #555;
    border-radius: 7px;
    cursor: pointer;
}

.yla-audio-controls button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.yla-audio-controls label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ddd;
    font-size: 13px;
}

.yla-pause {
    display: none;
}

.yla-play,
.yla-pause {
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.yla-play:not([disabled]),
.yla-pause:not([disabled]) {
    display: inline-flex;
}

.yla-volume {
    width: 100px;
}

.yla-sidebar h3 {
    margin: 2px 0 10px;
    color: #fff;
    font-size: 17px;
}

.yla-list-status {
    margin: 0 0 10px;
    font-size: 12px;
}

.yla-stream-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 3px;
}

.yla-stream-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px;
    color: #fff;
    text-align: left;
    background: #303030;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
}

.yla-stream-item:hover,
.yla-stream-item:focus-visible {
    background: #3a3a3a;
}

.yla-stream-item.is-active {
    border-color: #666;
    background: #383838;
}

.yla-stream-item img {
    flex: 0 0 64px;
    width: 64px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
}

.yla-stream-details {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    min-width: 0;
}

.yla-stream-title {
    display: -webkit-box;
    overflow: hidden;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.yla-stream-live {
    padding: 2px 0;
    color: #ff7777;
    background: transparent;
    font-size: 12px;
}

@media (max-width: 767px) {
    .yla-widget {
        padding: 12px;
    }

    .yla-player {
        grid-template-columns: minmax(0, 1fr);
        padding: 12px;
    }

    .yla-header h2 {
        font-size: 20px;
    }

    .yla-sidebar {
        margin-top: 8px;
    }

    .yla-stream-list {
        max-height: 360px;
    }
}
