/* Featured Streamer section */
.streamer__wrapper {
    margin: var(--page-navbar-distance) var(--side-margin) 0;
}

.streamer__list {
    display: grid;
    grid-auto-columns: 350px;
    grid-auto-flow: column;
    align-items: center;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    scrollbar-color: white transparent;
    scrollbar-width: thin;
}

.streamer__list::-webkit-scrollbar {
    height: 5px;
}

.streamer__list::-webkit-scrollbar-thumb {
    background: white;
}

.streamer__list::-webkit-scrollbar-track {
    background: var(--gray-500);
}

.streamer__list::-webkit-scrollbar-button {
    display: none;
}

.streamer {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    cursor: pointer;
    user-select: none;
}

.streamer__preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.streamer__meta {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 10;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.streamer__meta_name {
    font-size: 1.1em;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 0, 0, 1);
}

.streamer__meta_view_count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 1))
}

.streamer__meta_view_count span {
    font-size: 1.1em;
    font-weight: 600;
    color: rgb(255, 130, 128);
}

.streamer__meta_title {
    opacity: 0;
    translate: 0 20%;
    position: absolute;
    bottom: 0.7rem;
    left: 1rem;
    right: 1rem;
    z-index: 10;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.8em;
    font-weight: 500;
    transition-property: opacity, translate;
    transition-duration: 200ms;
    transition-timing-function: ease-in-out;
}

.streamer__hover {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: opacity 200ms ease-in-out;
}

.streamer__hover span {
    font-size: 1.2em;
    font-weight: 600;
}

.streamer:hover .streamer__hover {
    opacity: 1;
}

.streamer:hover .streamer__meta_title {
    opacity: 1;
    translate: 0 0;
}

/* news section */
.news {
    position: relative;
    padding: var(--page-navbar-distance) var(--side-margin);
    padding-bottom: 0;
}

/*header*/
.news > header {
    --section-gap: 3em;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: var(--section-gap);
    height: 83px;
    margin-bottom: var(--section-gap);
}

.news__category {
    position: relative;
    height: 100%;
    display: grid;
    place-items: center;
    border-radius: var(--border-radius-medium);
    overflow: hidden;
}

.news__category[aria-selected="true"]:after {
    content: "";
    z-index: 10;
    position: absolute;
    inset: 0;
    background-color: white;
    cursor: pointer;
}

.news__category[aria-selected="true"] > span {
    position: relative;
    z-index: 20;
    color: black;
}

.news__category > * {
    grid-column: 1;
    grid-row: 1;
    user-select: none;
    cursor: pointer;
}

.news__category > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news__category > span {
    font-size: 1.2em;
    font-weight: 500;
}

.news__category > .overlay {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 200ms;
}

.news__category:hover > .overlay {
    background-color: rgba(0, 0, 0, 0.6);
}

/* news cards */
.news > main {
    display: grid;
    grid-template-rows: repeat(3, 230px);
    gap: 1.75em;
}

.news__card {
    display: grid;
    position: relative;
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    cursor: pointer;
    user-select: none;
    place-items: center;
    justify-items: start;
}

.news__card::before {
    content: "";
    position: absolute;
    z-index: 5;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    transition: background-color 200ms;
}

.news__card:hover::before {
    background-color: rgba(0, 0, 0, 0.1);
}

.news__card:hover {
    text-decoration: none;
}

.news__card__badge {
    position: absolute;
    z-index: 30;
    top: 1.56em;
    right: 1.56em;
    font-size: 1em;
    font-weight: bold;
    padding: 0.3em 1.8em;
    color: black;
    background-color: white;
    text-transform: uppercase;
    border-radius: var(--border-radius-large);
}

.news__card > img {
    position: absolute;
    z-index: 4;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news__card__content {
    position: relative;
    z-index: 15;
    max-width: 100ch;
    margin: 0 3.875em;
}

.news__card__content > * {
    display: block;
}

.card__content__meta {
    color: white;
    font-size: 0.8em;
    font-weight: normal;
    line-height: 0.8;
    margin-bottom: 0.7em;
    opacity: var(--text-opacity-contrast);
}

.card__content__title {
    color: white;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 0.5em;
}

.card__content__description {
    color: white;
    font-size: 1em;
    font-weight: normal;
    line-height: 1.5;
    opacity: var(--text-opacity-convergence);
}

.news__more {
    display: grid;
    place-items: center;
    margin-top: 2em;
}

.news__more a {
    line-height: unset !important;
    color: inherit !important;
}

@media (max-width: 600px) {
    .news__card {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .news__card__badge {
        font-size: 0.8em;
    }

    .news__card__content {
        grid-row: 2;
        margin: 0 1.875em 1em;
    }

    .card__content__meta {
        font-size: 0.7em;
    }

    .card__content__description {
        font-size: 0.9em;
        text-overflow: ellipsis;
        word-wrap: break-word;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }
}

@media (max-width: 400px) {
    .news__card__badge {
        right: unset;
        left: 1.56em;
    }
}

/* play now */
#play-now[data-visible="true"] {
    display: grid;
    place-items: center;
}

#play-now {
    display: none;
    position: absolute;
    z-index: 10000000;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
}

#play-now > main > span {
    font-size: 2em;
    font-weight: 700;
    color: white;
}

#play-now > main {
    background-color: var(--gray-800);
    padding: 3em;
    width: max(400px, 50%);
    border-radius: var(--border-radius-medium);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2em;
}

#play-now > main > video {
    width: 100%;
    height: auto;
}

.play-now__buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2em;
}

.play-now__buttons > button {
    height: 100%;
    border-radius: var(--border-radius-big);
    border: none;
    color: white;
    font-size: 1.175em;
    font-weight: 600;
    padding: 0.5em 1.7em;
    transition: background-color 200ms;
    cursor: pointer;
}

.play-now__buttons > button[data-type="address"] {
    position: relative;
    background-color: var(--green-200);
}

.play-now__buttons > button[data-type="address"]:hover {
    background-color: var(--green-400);
}

.play-now__buttons > button[data-type="close"] {
    background-color: var(--red-200);
}

.play-now__buttons > button[data-type="close"]:hover {
    background-color: var(--red-400);
}

@keyframes animateAddressHint {
    from {
        opacity: 1;
        translate: 0 -50%;
    }

    to {
        opacity: 0;
        translate: 0 -150%;
    }
}

.play-now__address_button_hint {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: animateAddressHint 1s ease-out forwards;
}

@media (max-width: 615px) {
    #play-now > main {
        width: calc(100% - 20px);
        box-sizing: border-box;
        padding: 2em 1.5em;
    }
}