@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

:root {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;

    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;

    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;

    --primary: 210 40% 98%;
    --primary-foreground: 222.2 47.4% 11.2%;

    --secondary: 225 73% 53%;

    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;

    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;

    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;

    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 212.7 26.8% 83.9%;
    --sidebar-background: 240 5.9% 10%;
    --sidebar-foreground: 240 4.8% 95.9%;
    --sidebar-primary: 224.3 76.3% 48%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 240 3.7% 15.9%;
    --sidebar-accent-foreground: 240 4.8% 95.9%;
    --sidebar-border: 240 3.7% 15.9%;
    --sidebar-ring: 217.2 91.2% 59.8%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: hsl(var(--background));
    width: 100%;
    height: 100vh;
}

nav {
    position: fixed;
    z-index: 999;
    top: 0;
    width: 100%;

    backdrop-filter: blur(10px);
}

#mobile-menu {
    display: none !important;
}

#menu {
    display: flex;
    justify-content: center;
    align-items: center;
    
    width: 100%;
    height: 80px;

    backdrop-filter: blur(10px);
    background-color: hsla(var(--background)/ 0.8);

    border-bottom: 1px solid hsl(var(--sidebar-border));
}

li {
    list-style: none;
    display: flex;
    gap: 50px;
}

li > a{
    display: flex;
    list-style: none;
    text-decoration: none;
    color: white;
    font-family: "Inter", sans-serif;
    font-size: 20px;
    font-weight: 600;

    transition: all 0.3s ease;
    font-size: 20px;
    gap: 10px;
}

li > a:hover{
    opacity: 0.5;
}

#hero {
    margin-top: 5px;
    width: 100%;
    height: 100%;
}

#main-img {
    position: absolute;
    inset: 40px 0 0 0;
    z-index: auto;  
    max-height: 100%;
    overflow: hidden;
}

#main-img::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, hsl(var(--background)) 100%);
    z-index: auto;
}

#main-img > img {
    width: 100%;
    height: 100%;

    filter: brightness(0.6);

    background-repeat: no-repeat;
    object-fit: cover;
    object-position: top;
}

#main-img-desc {
    position:relative; display: flex; justify-content: center; left:220px; width:40%; height: 80vh;
    display: flex; flex-direction:column; gap:25px;
    color: white;

    text-overflow: ellipsis;
    overflow: hidden;
}

#main-img-desc > h1 {
    display: flex;
    flex-direction: column;
    gap: 5px;

    font-size: 67px;
    font-family: "Inter", sans-serif;
    font-weight: 800;
}

.itemized-info{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;

    border: 1px solid transparent;
    padding: 6px 12px;
    max-width: fit-content;
    border-radius: 2rem;
    background-color: hsl(var(--primary-foreground));

    font-size: 12px;
    font-family: "Inter", sans-serif;
    font-weight: 800;
}

.itemized-info > i, .itemized-info-invert > i {
    color: #efb100;
}

.itemized-info-invert{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;

    border: 1px solid transparent;
    padding: 6px 12px;
    max-width: fit-content;
    border-radius: 2rem;
    background-color: hsl(var(--secondary));
    color: white;

    font-size: 12px;
    font-family: "Inter", sans-serif;
    font-weight: 800;
}

#main-img-desc > p{
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
    font-size: 21px;
    line-height: 1.35;
}

.arrows {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 20px 20px;
    z-index: 10;
}

.arrows > .arrow {
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.arrows > .arrow:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dots > .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dots > .dot.active {
    width: 40px;
    height: 12px;
    border-radius: 50px;
    background-color: hsl(var(--accent));
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

#featured {
    padding: 10px;
    display: flex;
    flex-direction: column;
}

#featured-header > h1 {
    color: white;
    font-family: "Inter", sans-serif;
    font-weight: 800;
    font-size: 36px;
    margin-bottom: 20px;
    padding-left: 20px;
}

.slider-item {
    position: relative;
}

.slider-item:hover {
    opacity: 0.5;
    transition: all 0.3s ease;
    cursor: pointer;
}

.slider-item > img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover;
    object-position: top;
    filter: brightness(80%);
}

.slider-item > div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.slider-item > div > div:first-child {
    display: flex;
    gap: 10px;
    padding: 10px;
}

.a {
    padding: 10px;
}

.a > h1 {    
    font-size: 25px;
    color: white;
    font-family: "Inter", sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px;
}

.iframe {
    border-radius: 10px;
    height: 60vh;
}
 
.servers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    margin-bottom: 40px;
}

.servers > button {
    flex: 1 0 auto;
}

.season-picker {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
}

.season-picker > h1 {
    color: white;
    font-family: "Inter", sans-serif;
    font-weight: 800;
    font-size: 36px;
}

.season-picker > select {
    padding: 8px 12px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    background-color: hsl(var(--background));  
    border: 1px solid hsl(var(--sidebar-border));  
    color: white;
    outline: none;
}

.season-episodes {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.episode {
    height:100%;display:flex;gap:12px;align-items:center;margin:10px 0;cursor:pointer;border-radius: 10px; background-color: hsla(var(--foreground)/0.01);
    overflow: hidden;position: relative;
}

.episode:hover {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.episode.active {
    border: 2px solid hsl(var(--secondary));
}

.episode > span {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: hsla(var(--background)/0.95);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-family: "Inter", sans-serif;
    font-weight: 600;
}

.episode > img {
    width: auto;
    height: max-content;
    border-radius: 10px 0px 0px 10px;
    object-fit: cover;
    object-position: top;
}

.episode-info > h3 {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 6px;
    color: white;
}

.episode-info > p {
    font-family: "Open Sans", sans-serif;
    font-weight: 300;
    font-size: 16px;
    line-height: 1.4;
    color: hsla(var(--foreground)/0.8);
}

.search-bar {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 20px;
    padding: 10px;
    width: 80%;
    height: 50px;
    background-color: hsl(var(--foreground));  
    border-radius: 10px;
}

.search-bar > input {
    width: 100%;
    height: 100%;
    background-color: transparent;
    border: none;
    font-size: 16px;
    font-family: "Inter", sans-serif;
    color: black;
    outline: none;  
}

.search-bar > button {
    background-color: hsl(var(--secondary));
    border: none;
    color: white;
    padding: 10px 20px;
    margin-left: 10px;
    border-radius: 10px;
    font-size: 16px;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar > button:hover {
    background-color: hsl(var(--secondary) / 0.8);
}

.results {
    padding: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    grid-column-gap: 25px;
    grid-row-gap: 25px;
}

.results > div {
    cursor: pointer;
    position: relative;
}

.results > div:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.results > div > img {
    border-radius: 10px;
    width: 100%;
    filter: brightness(80%);
}   

div.y {
    position: absolute;
    top: 0;
    padding: 10px;
}

div.k {
    position: absolute;
    bottom: 0;
    padding: 15px;
    width: 100%;
}

div.k > h1 {
    color: white;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 18px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    width: 100%;
    height: 100%;
    text-align: center;
    padding: 20px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: hsla(var(--foreground)/0.6);
    gap: 20px;
}

.language-selector {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.language-selector > select {
    background-color: hsl(var(--background));  
    border: 1px solid hsl(var(--sidebar-border));  
    color: white;
    outline: none;
    padding: 5px;
    border-radius: 5px;
    font-family: "Inter", sans-serif;
    cursor: pointer;
    width: 90%;
}

.details > img {
    position:absolute;left:0;width:100%; height: 50%;
    object-fit: cover;filter: brightness(0.3);
}

.description {
    padding: 20px;
    position: relative;
}

.description > img {
    width: 30%;
    height: 30%;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.description > h1 {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 6px;
    color: white;
    	
    text-shadow: 0px 1px 2px rgb(0 0 0 / 0.1), 0px 3px 2px rgb(0 0 0 / 0.1), 0px 4px 8px rgb(0 0 0 / 0.1); /* 0px 1px 2px rgb(0 0 0 / 0.1), 0px 3px 2px rgb(0 0 0 / 0.1), 0px 4px 8px rgb(0 0 0 / 0.1) */
}