*,
*::before,
*::after {
    box-sizing: border-box;
}
body {
    margin: 0;
    min-height: 100dvh;
    background-color: rgb(38, 39, 39);
    color: rgb(217, 216, 216);
    font-family: system-ui, sans-serif;
}
#page-wrapper {
    min-height: 97dvh;
    display: flex;
    flex-direction: column;
}
#topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgb(61, 70, 70);
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}
#channel-logo {
    height: clamp(3.5rem, 8vh, 5.5rem);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
}
#channel-name {
    font-size: clamp(1.2rem, 1.5vw, 1.6rem);
    margin: 0;
}
.topbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}
#searchbar {
    display: flex;
    overflow: hidden;
    align-items: center;
    gap: 0.5rem;
    background-color: rgb(38, 39, 39);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    width: clamp(14rem, 28vw, 26rem);
    max-width: 30dvw;
}
#search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: inherit;
    font-size: 1rem;
}
#search-button {
    all: unset;
    cursor: pointer;
    width: 1.6rem;
    height: 1.6rem;
}
#aboutme-button {
    all: unset;
    cursor: pointer;
    width: 3rem;
    height: auto;
}
#serviceannouncement {
    display: none;
}
#serviceannouncement[shown] {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #FF2D1A;
    color: rgb(217, 216, 216);
}
#full-description {
    padding: 1.5rem 1rem 0;
    text-align: center;
}
#full-description p {
    margin: 0 auto;
    max-width: 70ch;
    font-size: clamp(1.4rem, 3.5vh, 2.4rem);
}
#bottom-panels-wrapper {
    margin-top: auto;
    padding: 1.5rem;
}
#featured-videos-container {
    display: flex;
    gap: 1.5rem;
    align-items: stretch;
}
.video-section {
    background-color: rgb(61, 70, 70);
    border-radius: 1rem;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
}
#latest-videos {
    flex: 3;
}
#most-popular-video,
#first-video {
    flex: 1;
}
.video-section h2 {
    text-align: center;
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
}
.video-list {
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
}
.video-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.video-card button {
    all: unset;
    cursor: pointer;
    width: 100%;
}
.video-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0.75rem;
    background-color: rgb(61, 70, 70);
}
#aboutme-button:hover, .video-thumbnail:hover {
    opacity: 0.7;
}
.video-card:hover {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 0.75rem;
}
.video-title {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    text-align: center;
}
#developer-credit {
    font-size: 0.65rem;
    padding: 0.4rem 0.8rem;
    opacity: 0.8;
}
@media (max-width: 768px) {
    #featured-videos-container {
        flex-direction: column;
    }

    .video-list {
        justify-content: center;
    }
}
