@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: #0F0F0F;
    color: #fff;
}

.header {
    position: fixed;
    top: 1.5%;
    left: 50%;
    transform: translateX(-50%);
    width: 93%;
    max-width: 1843px;
    height: 92px;
    border-radius: 105px;
    border: 1px solid #313131;
    background-color: rgba(9, 9, 9, 0.5);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    box-sizing: border-box;
    z-index: 1000;
    transition: height 0.3s ease;
}

.header.expanded {
    height: 220px;
    border-radius: 50px;
}

.logo img {
    height: 40px;
}

.nav {
    position: absolute;
    top: 92px;
    left: 50px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.header.expanded .nav {
    opacity: 1;
    pointer-events: auto;
}

.nav a {
    color: #C8C8C8;
    text-decoration: none;
    font-weight: 600;
    font-size: 24px;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1100;
    margin-top: 29px;
}

.search-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 20px;
    display: flex;
    transition: transform 0.2s ease;
}

.search-button svg {
    width: 24px;
    height: 24px;
    stroke: #C8C8C8;
}



@media (min-width: 768px) {
    .nav {
    position: static;
    flex-direction: row;
    gap: 30px;
    opacity: 1 !important;
    pointer-events: auto !important;
    align-items: center;
    height: 92px;
    margin-top: -5px;
    }

    .header {
    align-items: center;
    padding-left: 50px;
    padding-right: 50px;
    justify-content: flex-start;
    gap: 30px;
    }

    .hamburger {
    display: none;
    }

    .logo {
    margin-top: 0px;
    }

    .search-button {
    margin-left: auto;
    }
}

@media (max-width: 768px) {
    .hamburger {
    display: block;
    }

    .search-button {
    margin-top: 32px;
    margin-left: auto;
    margin-right: 7px;
    }
    .logo {
    margin-top: 23px;
    }
}








.channels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 160px 40px 40px;
    box-sizing: border-box;
}

.channel {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.channel:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

.channel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.hero {
    position: relative;
    height: 87vh;
    background-image: url('../img/bg11.png');
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 10%;
    color: #fff;
    margin-top: 0;
    overflow: hidden;
    background-size: cover;
    background-position: bottom;
}

.hero-content {
    margin-top: -30px;
}

.hero h1 {
    font-size: 2.7em;
    margin: 0;
    font-weight: 600;
}

.hero p {
    font-size: 1.6em;
    margin: 20px 0;
    color: #D0D0D0;
    font-weight: 500;
}

.hero button {
    background-color: #D9D9D9;
    color: #000;
    border: none;
    padding: 13px 45px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 500;
    font-size: large;
}

.channels {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 40px;
    box-sizing: border-box;
}



.channel {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.channel:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

.channel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}




@media (min-width: 1920px) and (min-height: 1080px) {
    .hero h1 {
        font-size: 48px;
        font-weight: 600;
        line-height: 1.3;
    }

    .hero h1 br {
        display: none;
    }

    .hero p {
        font-size: 24px;
        color: #D0D0D0;
        font-weight: 500;
        line-height: 1.5;
    }

    .hero button {
        width: 296px;
        height: 65px;
        font-size: 28px;
        border-radius: 10px;
        background-color: #D9D9D9;
        color: #000;
        font-weight: 500;
    }
}

@media (max-width: 768px) {

    .hero {
        background-position: bottom;
    }

    .hero h1 {
        font-size: 2.4em;
        margin: 0;
        font-weight: 600;
    }

    .hero p {
        font-size: 1.4em;
        margin: 20px 0;
        color: #D0D0D0;
        font-weight: 500;
    }

    .hero button {
        background-color: #D9D9D9;
        color: #000;
        border: none;
        padding: 13px 40px;
        font-size: 1em;
        cursor: pointer;
        border-radius: 10px;
        font-weight: 500;
        font-size: large;
    }

    .channels {
        margin-bottom: 30px;
    }


}
@media (orientation: portrait) {
.hero {
    background-position: left;
}
        }
@media (max-width: 1200px) {
    .channels {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .channels {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .channels {
        grid-template-columns: 1fr;
    }
}

@media (max-height: 700px) {
    .hero {
        height: 125vh;
    }
    .hero-content {
        margin-top: 120px;
    }
}

@media (min-height: 701px)  {
    .hero {
        height: 87vh;
    }
   .hero-content {
    margin-top: -30px;
   } 
}

* {
  overflow-y: scroll;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-tap-highlight-color: transparent;
}

*::-webkit-scrollbar {
  display: none;
}

.popup-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(9, 9, 9, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s;
    padding: 15px;
}
.popup-overlay.active {
    visibility: visible;
    opacity: 1;
}

.popup {
    background-color: rgba(9, 9, 9, 0.85);
    border: 1px solid #313131;
    color: #fff;
    border-radius: 14px;
    max-width: 500px;
    width: 100%;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    box-sizing: border-box;
    font-size: 1rem;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.popup-overlay.active .popup {
    transform: scale(1);
    opacity: 1;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.popup-header h2 {
    font-size: 1.5rem;
    margin: 0;
}
.popup-close {
    font-size: 32px;
    cursor: pointer;
    color: #b3b3b3;
}

.popup p {
    font-size: 1rem;
    color: #cacaca;
    margin: 0 0 20px 0;
}

.popup-footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.popup-footer a {
    color: #aaa;
    text-decoration: none;
    font-size: 0.9rem;
    margin-right: 15px;
}
.popup-footer a:hover {
    cursor: pointer;
}

.discord-btn {
    background: #ff2525;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discord-link,
.discord-link:focus,
.discord-link:active,
.discord-link:hover,
.discord-btn,
.discord-btn:focus,
.discord-btn:active,
.discord-btn:focus-visible {
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
}

@media (max-width: 600px) {
    .popup {
        padding: 25px;
        min-height: 230px;
        font-size: 0.9rem;
    }
    .popup-header h2 { font-size: 1.3rem; }
    .popup-close { font-size: 26px; }
    .popup p { font-size: 0.9rem; }
    .popup-footer a { font-size: 0.8rem; margin-right: 10px; }
    .discord-btn { padding: 10px 20px; font-size: 0.85rem; }
}

@media (max-width: 400px) {
    .popup {
        padding: 20px;
        min-height: 175px;
        font-size: 0.8rem;
    }
    .popup-header h2 { font-size: 1.1rem; }
    .popup-close { font-size: 22px; }
    .popup p { font-size: 0.75rem; }
    .popup-footer a { font-size: 0.7rem; margin-right: 8px; }
    .discord-btn { padding: 8px 15px; font-size: 0.75rem; }
}