/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

:root {
    --el-cz-color-chzzk: #00ffa3;
    --el-cz-color-chzzk-dark: #1bb373;
}

/* Lives Embed */
.el-chzzk-front .el-lives-embed {
    display: block;
    margin: 1rem 0;
}

.el-chzzk-front .el-embed-video {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 56.25vh;
    max-height: 90vh;
    min-height: 480px;
    overflow-x: clip;
    aspect-ratio: 16/9;
    margin: 0 auto;
}

/* Category Header */
.el-chzzk-front .el-category-header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    margin: 1rem 0;
}

/* Header Title */
.el-chzzk-front .el-title-link {
    display: flex;
}

.el-chzzk-front .el-title-logo {
    width: auto;
    height: 2rem;
    margin: 0 0.5rem;
}

.el-chzzk-front .el-title-name {
    display: flex;
    height: 2rem;
    align-items: center;
    font-weight: 600;
    color: #f0f0f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background-color: var(--el-cz-color-chzzk-dark);
    border-radius: 0.5rem;
    padding: 0 0.5rem;
}

/* Header Button */
.el-chzzk-front .el-header-button{
    color: #f0f0f0;
}
.el-chzzk-front .el-button-reset{
    background-color: var(--el-cz-color-chzzk-dark);
    border-radius: 0.5rem;
    padding: 0.25rem 0.5rem;
    margin: 0 0.5rem;
    cursor: pointer;
}

/* Category Section */
.el-chzzk-front .el-category-section {
    position: relative;
}

/* Section List Grid */
.el-chzzk-front .el-section-list {
    /* position: relative; */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-template-rows: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    overflow: hidden;
    margin: 0.5rem;
}

.el-chzzk-front .el-list-article {
    grid-row: span 1;
    max-width: 100%;
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
}

/* Hidden Article */
.el-chzzk-front .el-article-hidden {
    display: none;
}

/* Animation */
.el-chzzk-front .el-list-article.el-article-expanded {
    animation: elAppearAnimation 0.5s ease-in-out forwards;
}

.el-chzzk-front .el-list-article.el-article-collapsed {
    animation: elDisappearAnimation 0.5s ease-in-out forwards;
}

/* Article Message */
.el-chzzk-front .el-article-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 250px;
    font-size: 0.8rem;
}

.el-chzzk-front .el-article-error {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 250px;
    font-size: 0.8rem;
}

/* Article Thumbnail */
.el-chzzk-front .el-article-thumbnail {
    width: 100%;
    max-width: 100%;
    cursor: pointer;
}

.el-chzzk-front .el-thumbnail-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Article Channel */
.el-chzzk-front .el-article-channel {
    display: flex;
    align-items: flex-start;
    font-size: 0.8rem;
    max-width: 100%;
    margin: 0.5rem 0;
}

/* Channel Status */
.el-chzzk-front .el-channel-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0.25rem 0 0;
}

.el-chzzk-front .el-status-profile {
    width: 2.5rem;
    height: 2.5rem;
    overflow: hidden;
}

.el-chzzk-front .el-profile-img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.el-chzzk-front .el-status-indicator {
    background-color: var(--el-cz-color-chzzk-dark);
    font-weight: 600;
    color: #f0f0f0;
    border-radius: 4px;
    padding: 2px 6px;
    margin: 0.2rem 0;
}

.el-chzzk-front .el-status-count {
    font-size: 0.75rem;
    max-width: 5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.el-chzzk-front .el-status-adult {
    font-size: 0.75rem;
    background-color: red;
    font-weight: 600;
    color: #f0f0f0;
    border-radius: 5px;
    padding: 2px 6px;
    margin: 0.2rem 0;
}

/* Channel Card */
.el-chzzk-front .el-channel-card {
    flex-grow: 1;
    flex-shrink: 1;
    overflow: clip;
    line-height: 1.2rem;
}

.el-chzzk-front .el-card-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    max-height: 2.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 0.2rem 0;
}

.el-chzzk-front .el-card-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 0.2rem 0;
}

.el-chzzk-front .el-name-type {
    width: 20px;
    height: 20px;
}

.el-chzzk-front .el-card-game {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 0.2rem 0;
}

.el-chzzk-front .el-card-tags {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0.2rem 0 0 0;
}

.el-chzzk-front .el-tags-label {
    display: inline-block;
    background-color: #e8e8e8;
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-radius: 4px;
    max-width: 5rem;
    padding: 2px 4px;
    margin: 0 0.2rem 0 0;
}

/* Section Button */
.el-chzzk-front .el-section-button {
    font-size: 0.8rem;
}

.el-chzzk-front .el-button-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: #f0f0f0;
    background-color: #d0d0d0;
    width: 100%;
    height: 1px;
    margin: 2rem 0;
}

.el-chzzk-front .el-footer-collapse {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 2rem;
    background-color: var(--el-cz-color-chzzk-dark);
    border-radius: 0.5rem;
    margin: 0.5rem 1rem;
    cursor: pointer;
}

.el-chzzk-front .el-footer-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 2rem;
    background-color: var(--el-cz-color-chzzk-dark);
    border-radius: 0.5rem;
    margin: 0.5rem 1rem;
    cursor: pointer;
}

.el-chzzk-front .el-button-scroll {
    display: none;
}

.el-chzzk-front .el-button-hidden {
    display: none;
}

/* Animation */
@keyframes elAppearAnimation {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes elDisappearAnimation {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes el {
    
}

/* Mobile Layout */
@media (hover:none) or (max-width: 768px) {
    /* Embed */

    /* Section List */
    .el-chzzk-front .el-section-list {
        grid-auto-columns: 250px;
        grid-auto-flow: column;
        overflow: auto;
    }

    .el-chzzk-front .el-section-button {
        display: flex;
        opacity: 0.5;
        transition: opacity 0.5s ease 0s;
    }

    .el-chzzk-front .el-button-footer {
        display: none;
    }

    .el-chzzk-front .el-button-scroll {
        display: flex;
    }

    .el-chzzk-front .el-scroll-left {
        position: absolute;
        top: 0;
        left: 0;
        display: flex;
        align-items: center;
        -webkit-box-align: center;
        justify-content: center;
        width: 40px;
        height: 100%;
        border: none;
        outline: 0px;
        background-color: transparent;
        border-radius: 10px;
        cursor: pointer;
        transition: visibility 0.5s ease 0s;
    }

    .el-chzzk-front .el-left-svg {
        display: flex;
        align-items: center;
        -webkit-box-align: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        color: #dddddd;
        background-color: rgba(0, 0, 0, 0.4);
        transition: visibility 0.4s ease 0s, opacity 0.4s ease 0s, background-color 0.2s ease 0s color 0.2s ease 0s;
        pointer-events: none;
    }

    .el-chzzk-front .el-scroll-right {
        position: absolute;
        top: 0;
        right: 0;
        display: flex;
        align-items: center;
        -webkit-box-align: center;
        justify-content: center;
        width: 40px;
        height: 100%;
        border: none;
        outline: 0px;
        background-color: transparent;
        border-radius: 10px;
        cursor: pointer;
        transition: visibility 0.5s ease 0s;
    }

    .el-chzzk-front .el-right-svg {
        display: flex;
        align-items: center;
        -webkit-box-align: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        color: #dddddd;
        background-color: rgba(0, 0, 0, 0.4);
        transition: visibility 0.4s ease 0s, opacity 0.4s ease 0s, background-color 0.2s ease 0s, color 0.2s ease 0s;
        pointer-events: none;
    }

    .el-chzzk-front .el-button-hidden {
        display: none;
    }
}