/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

:root {
    --el-tw-color-twitch: #5c16c5;
    --el-tw-color-icon: #9147ff;
    --el-tw-color-twitch-purple: rgb(145, 70, 255);
    --el-tw-color-twitch-dragon: rgb(130, 5, 180);
    --el-tw-color-twitch-widow: rgb(190, 170, 255);
}

/* Single Page */
.el-twitch-api .el-twitch-single {
    /* display: flex;
    flex-direction: column; */
}

/* Single Header */
.el-twitch-single .el-channel-header {
    font-size: 0.9rem;
    margin: 0.5rem;
}

.el-twitch-single .el-header-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.el-twitch-single .el-title-link {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.el-twitch-single .el-title-img {
    height: 2rem;
    margin: 0 0.5rem;
}

.el-twitch-single .el-title-profile {
    font-weight: 600;
    color: #f0f0f0;
    background-color: var(--el-tw-color-twitch-purple);
    border-radius: 10px;
    padding: 0.2rem 0.5rem;
    margin: 0 0.5rem
}

.el-twitch-single .el-header-banner {
    max-height: 9rem;
    margin: 0.5rem 0;
}

/* Channel Section */
.el-twitch-single .el-channel-section {
    width: 100%;
    font-size: 0.9rem;
    margin: 0.5rem;
}

/* Section Data */
.el-twitch-single .el-section-data {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: space-around;
    margin: 0.5rem 0;
}

/* Data Table */
.el-twitch-single .el-data-table {
    width: 380px;
    max-width: 100%;
    border: 5px solid transparent;
    border-radius: 5px;
    background-image: linear-gradient(#fff, #fff), linear-gradient(to bottom, var(--el-tw-color-twitch-purple) 0%, var(--el-tw-color-twitch-dragon) 100%);
    background-origin: border-box;
    background-clip: content-box, border-box;
    border-collapse: collapse;
    margin: 0.5rem;
}

.el-twitch-single .el-data-table th {
    font-weight: 600;
    color: #f0f0f0;
    text-align: center;
    vertical-align: middle;
}

.el-twitch-single .el-data-table td {
    vertical-align: middle;
    padding: 0.5rem 1rem;
}

/* Thead */
.el-twitch-single .el-table-thead {
    background-color: var(--el-tw-color-twitch);
    color: #f0f0f0;
}

.el-twitch-single .el-tr-profile {
    width: 30%;
    max-width: 150px;
}

.el-twitch-single .el-profile-img {
    width: 100%;
    border-radius: 10px;
    padding: 0.5rem;
    margin: auto;
}

.el-twitch-single .el-tr-streamer {
    width: 70%;
    word-break: break-word;
    padding: 0.5rem;
}

.el-twitch-single .el-streamer-user {
    display: flex;
    align-items: center;
    justify-content: center;
}

.el-twitch-single .el-user-type {
    width: 20px;
    height: 20px;
    margin: 0 0.1rem;
}

.el-twitch-single .el-user-name {
    font-size: 1.5rem;
}

.el-twitch-single .el-streamer-description {
    max-height: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    transition: max-height 0.3s ease-in-out;
    /* Add a smooth transition effect */
}

.el-twitch-single .el-description-more {
    width: 100%;
    cursor: pointer;
    margin: 0.5rem 0 0 0;
}

/* Tbody */
.el-twitch-single .el-table-tbody tr {
    border: 1px solid #d0d0d0;
}

.el-twitch-single .el-table-tbody th {
    background-color: var(--el-tw-color-twitch-purple);
    padding: 0.7rem;
}

/* Single Section Stream */
.el-twitch-single .el-data-stream {
    width: 380px;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    /* border: 5px solid transparent; */
    /* background-image: linear-gradient(#fff, #fff), linear-gradient(to bottom, var(--el-tw-color-twitch-purple) 0%, var(--el-tw-color-twitch-dragon) 100%); */
    /* background-origin: border-box; */
    /* background-clip: content-box, border-box; */
    /* border-collapse: collapse; */
    border-radius: 5px;
    overflow: hidden;
    margin: 0.5rem;
}

/* Stream Twitch */
.el-twitch-single .el-stream-thumbnail {
    width: 100%;
    cursor: pointer;
}

.el-twitch-single .el-thumbnail-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Stream Card */
.el-twitch-single .el-stream-card {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    background-color: #f0f0f0;
    border-radius: 0 0 10px 10px;
    padding: 0.5rem 0;
}

/* Card Channel */
.el-twitch-single .el-card-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 3rem;
    height: auto;
    font-size: 0.8rem;
    margin: 0 0.5rem;
}

.el-twitch-single .el-status-img {
    border-radius: 10px;
}

.el-twitch-single .el-status-live {
    font-weight: 600;
    color: #f0f0f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: var(--el-tw-color-twitch);
    border-radius: 5px;
    padding: 0.1rem 0.4rem;
    margin: 2px 0;
}

.el-twitch-single .el-status-viewer {
    max-width: 5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: #e0e0e0;
    border-radius: 5px;
    padding: 0.1rem 0.4rem;
    margin: 2px 0;
}

.el-twitch-single .el-status-language {
    max-width: 4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: #e0e0e0;
    border-radius: 5px;
    padding: 0.1rem 0.4rem;
    margin: 2px 0;
}

/* Card Broadcast */
.el-twitch-single .el-card-broadcast {
    flex-grow: 1;
    flex-shrink: 1;
    width: 100%;
    font-size: 0.9rem;
    overflow: hidden;
    margin: 0 0.5rem;
}

.el-twitch-single .el-broadcast-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    max-height: 4rem;
    font-weight: 600;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
}

.el-twitch-single .el-broadcast-channel {
    display: flex;
    align-items: center;
}

.el-twitch-single .el-channel-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.el-twitch-single .el-broadcast-game {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.el-twitch-single .el-data-error {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 10rem;
    font-size: 0.8rem;
    text-align: center;
    background-color: #f0f0f0;
    border-radius: 10px;
}