@font-face {
    font-family: 'OnAddFont1';
    src: url('../fonts/Jost/Jost-VariableFont_wght.ttf') format('truetype'); 
    font-weight: normal;
}

@font-face {
    font-family: 'OnAddFont2';
    src: url('../fonts/Cocogoose.ttf') format('truetype'); 
    font-weight: normal;
}
@font-face {
    font-family: 'OnAddFont3';
    src: url('../fonts/Cocogoose.ttf') format('truetype'); 
    font-weight: normal;
}
@font-face {
    font-family: 'OnAddFont4';
    src: url('../fonts/montserrat/Montserrat-VariableFont_wght.ttf') format('truetype'); 
}
* {
    -webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
body{
  overflow-x: hidden; /* Скрываем горизонтальный scrollbar */
  margin: 0;
  -webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
html {
    height: 100%;
}
body {
    height: 100%;
    background: url("https://cdn.onadd.pro/img/bcg.png");
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

:root {
    --primary: #262626;
    --primary-light: #4e4e4e;
    --primary-dark: #000000;
    --secondary: #ef5350;
    --secondary-light: #ff867c;
    --secondary-dark: #b61827;
    --primary-text: #ffffff;
    --secondary-text: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
#player > pjsdiv {
  border-radius: 10px;
}
*:not(h1) {
    font-family: 'OnAddFont4', sans-serif;
}

h1 {
    font-family: 'OnAddFont2', sans-serif;
}

main {
    flex: 1 1 auto;
}

.main-title-title {
    font-family: 'OnAddFont1', sans-serif;
    font-weight: 700;
    font-size: 3.5em;
}

.cast{
    display: flex;
    align-items: center;
    width: fit-content;
    max-width: 70%;
    margin-top: 20px;
    text-align: left;
    padding: 10px;
     border-radius: 10px;
    /* From https://css.glass */
    background: rgba(224, 49, 49, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(224, 49, 49, 0.4);
}
.cast h5{
    font-family: 'OnAddFont4', sans-serif;
    font-size: 1.2em;
}
.person{
    margin-left: 50px;
}

#navbar {
    display: flex;
    align-items: center;
    /*justify-content: center;*/
    width: 100%;
    height: 3.5em;
    background-color: #ededed;
    color: black;
}

#menuButton {
    margin-left: 0.5em;
    height: 3em;
    cursor: pointer;
}

#menuClose {
    margin-left: 0.5em;
    margin-top: 0.25em;
    height: 3em;
    cursor: pointer;
}

#navbarOverlay {
    display: none;
    z-index: 998;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: rgba(0,0,0,0.5);
    /*background-color: #ededed;*/
}

#navbarPopup {
    display: none;
    z-index: 999;
    background-color: #ededed;
    /* background-color: #fa3c4f; */
    /* background-color: red; */
    width: 20em;
    height: 100%;
    /* color: white; */
}

#navbarPopup a:hover {
    color: #fa3c4f;
}

.navbar-tab {
    display: block;
    margin-top: 1em;
    margin-left: 1em;
    width: 11em;
    font-size: 1.5em;
    text-decoration: none;
    border-bottom: 3px solid #fa3c4f;
    color: black;
}

.navbar-tab-open {
    display: block;
    margin-top: 1em;
    margin-left: 0.8em;
    width: 9.48em;
    font-size: 1.75em;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 5px solid #fa3c4f;
    color: black;
}

#video-showcase {
    /* margin-top: 2em; */
    width: 100%;
    text-align: center;
}

#video-showcase iframe {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2em;
    width: 20em;
    height: 11.25em;
    border: none;
    outline: none;
}

#video-showcase2 iframe {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2em;
    max-width: 80%;
    max-height: 80%;
    border: none;
    outline: none;
}

.main-title {
    display: inline-block;
    max-width: 80%;
    width: 80%;
    word-wrap: break-word;
    font-size: 3em;
    font-weight: 700;
    margin-top: 1em;
}

.small {
    /* font-size: 2em; */
    margin-top: 0.75em;
    margin-bottom: 1em;
}

.main-desc {
    display: inline-block;
    font-size: 1.5em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    max-width: 70%;
    width: 70%;
  color: black;
}

.schedule-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
    background: rgba(224, 49, 49, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(224, 49, 49, 0.4);
}

.schedule-title {
    text-align: center;
    font-family: 'OnAddFont1', sans-serif;
    margin-bottom: 30px;
    color: black;
    font-weight: 800;
    font-size: 1.8em;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    justify-content: center;
}

.episode-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 15px;
    align-items: start;
    padding: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.episode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(224, 49, 49, 0.2);
}

.episode-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: grey 0px 4px 10px -2px;
    grid-row: span 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.episode-thumbnail-hovered {
    box-shadow: red 0px 6px 12px -4px;
}

.episode-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.episode-info h3 {
    font-size: 17px;
    margin: 5px 0;
}

.episode-info p {
    margin: 0;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .episodes-grid {
        grid-template-columns: 1fr;
    }
    
    .episode-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .episode-thumbnail {
        margin: 0 auto;
        max-width: 250px;
        grid-row: auto;
    }
}

#team-showcase {
    text-align: center;
     width: 90%;
    height: auto;
    margin: 0 auto;
}

.team-person {
    display: inline-block;
    /* background-color: #ededed; */
    /* margin-left: 1vw; */
    padding: 1em 1em 1em 1em;
    /* border: 1px solid blue; */
    margin-bottom: 1.5em;
    width: 30em;
    max-width: 90vw;
    /* height: 6.5em; */
}


.team-person img {
    height: 5em;
}

.person-info {
    padding-top: 1em;
    padding-bottom: 1em;
    /* background-color: #ededed; */
    border: 1px solid transparent;
    transition: 200ms;
}

.person-info:hover {
    border: 1px solid #ededed;
}

.person-name {
    display: block;
    font-size: 1.5em;
}

.person-desc {
    margin-top: 1em;
    display: block;
}

#projectMain {
  text-align: center;
}

#projectContainer {
  display: inline-block;
  padding: 1em 1em 1em 1em;

  text-align: center;
}

.project {
    display: inline-block;
    width: 30em;
    max-width: 80vw;
    height: 15em;
    max-height: 30em;
    background-color: #ededed;
    border-radius: 1em;
    box-shadow: red 0px 4px 10px -2px;
}

.pTitle {
    font-size: 2em;
}

.pDesc {
    font-size: 1em;
}

#videoMain {
    margin-top: 2em;
    margin-left: 2em;
}

.video {
    display: inline-block;
    width: 20em;
    height: 11.25em;
    background-color: #ededed;
    border-radius: 1em;
    box-shadow: red 0px 4px 10px -2px;
}

#videoContainer {
    text-align: center;
    margin-top: 2em;
    /* text-align: center; */
}

#video-showcase-text {
    width: 100%;
}

.vidTitle {
    margin-bottom: 0.5em;
    font-size: 3.5em;
}

.vidDesc {
    margin-top: 2em;
    font-size: 1em;
}

@media only screen and (min-width: 768.01px) {
    /* #video-showcase {
        text-align: center;
        width: 100%;
        margin-top: 2em;
        border: 1px solid red;
    } */
    /* #video-showcase-text {
        display: inline-block;
        float: left;
        margin-left: 15em;
        max-width: 50%;
        width: 35%;
        border: 1px solid red;
    } */
    /* .main-title.title{
        font-size: 5em;
        margin-top: 0;
    } */
    /* #video-showcase iframe {
        border: 1px solid red;
        float: left;
        width: 30em;
        height: 16.87500em;
        margin: 0;
    } */
    
    .small {
        margin-bottom: 0.75em;
    }
    
    
    .main-title {
        font-size: 4.5em;
        margin-top: 0.5em;
        /* margin-bottom: 0.5em; */
    }
    
    #video-showcase iframe {
        width: 30em;
        height: 16.87500em;
    }
    
    #video-showcase {
        margin-bottom: 4em;
    }

    .video {
        width: 50em !important;
        height: 28.12500em !important;
    }
    
    #videoContainer {
    }
    
    .vidTitle {
        font-size: 4em;
    }
    
    #player {
        max-width: 70%;
        max-height: 70%;
    }
    
    /* Потом посадить футер на клей.
       Возможно, он будет держаться...
     *//*
    .nails {
        content:url("//onadd.me/img/nails_desktop.png");
    }*/
}
.nails {
    position: absolute; 
    width: -webkit-fill-available; 
    height: inherit;
}
@media only screen and (max-width: 768px) {
    /*
    .nails {
        content:url("//onadd.me/img/nails_mobile.png");
    }
    */
    #logo {
        margin-left: auto;
        margin-right: auto;
    }
    
    #name {
        display: none;
    }
    
    #tele {
        
    }
    
    #player {
        max-width: 100%;
        max-height: 100%;
    }
}

/* Отображение слайдера или сетки */

@media only screen and (min-width: 1280.01px) {
	.posters-mobile {
		display: none;
	}
	
	.slick-slider {
		width: 900px;
		margin-left: auto;
		margin-right: auto;
		display: block;
	}
}

@media only screen and (max-width: 1280px) {
	.posters-mobile {
		display: block;
	}
	
	.slick-slider {
		display: none;
	}
}

/*
    W: 640
    H: 360
    360:640 = 0.5625
*/

#logo {
    height: 5em;
    cursor: pointer;
}

#name {
    position: relative;
    height: 1.5em;
    float: left;
    margin-top: 5px;
    margin-right: auto;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 2em;
    font-weight: 100;
    letter-spacing: -0.05em;
}

#nav-tele, #tele {
    height: 3em;
    margin-right: 0.75em;
    cursor: pointer;
}

#tele {
    margin-left: 5.35px;
}

#nav-tele-text {
    float: right;
    margin-top: 1.25em;
    cursor: pointer;
}

#navbarAd {
    position: absolute;
    bottom: 0;
    margin-left: 1em;
    margin-bottom: 0.5em;
}

.hasClicked {
  color: red;
}/*   padding: 4px;
} */

.poster {
   background-color: #FF0033;
    width: 250px;
    height: 350px;
    border-radius: 1em;
    box-shadow: red 2px 10px 18px -8px;
    /* border: 2px solid #FF0033; */
    margin: 0 15px 30px 15px;
}

.lazy button::before {
    color: #fa3c4f;
    opacity: 1;
    line-height: 0;
}

.slick-list {
    margin: 0 2em;
}

.mainPageVid {
    max-width: 80%;
    max-height: 80%;
    justify-content: center;
    border-radius: 1em;
}

.img {
  max-width: 60%;
  max-height: 60%;
   border-radius: 1em;
    box-shadow: red 0px 6px 15px -4px;
    /* border: 2px solid #FF0033; */
    margin: 0 15px 30px 15px;
}

.serialTitle {
    font-weight: bold;
    color: #f1f1f1;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
    max-height: 44px;
    line-height: 30px;
    overflow: hidden;
    font-size: 19px;
    padding: 0;
    box-sizing: border-box;
    margin: 0 10px;
}

.player {
        margin-top: 3em;
        margin-bottom: 4em;
    }

.player-teaser {
        margin-top: 3em;
        margin-bottom: 3em;
    }

#player {
    border-radius: 1em; /* Remove border-radius if you do not want the "rounding"*/ 
    box-shadow: red 0px 6px 14px -4px;
    margin-top: 1em;
    margin-bottom: 1em;
}

#email {
    cursor: pointer;
}

.for-footer {
    width: 100%;
    height: 100%;
    float: left;
    vertical-align: bottom;
}

.footer {
    width: 100%;
    height: 100%;
    box-shadow: #990000 14px 0px 0px 0px;
    background: #a80000;
    margin-top: auto;
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
}

.footer-icon {
    width: 50px;
    height: 50px;
}

.wm {
  height: 60px;
  width: 243px;
}

a:link {
    text-decoration: none;
}

a, img {
    user-select: none;
}
.episode-playlist {
    margin-top: 20px;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px;
    border-radius: 12px;
     /* From https://css.glass */
  background: rgba(224, 49, 49, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(224, 49, 49, 0.42);
    justify-content: center;
}

.ep {
    background: linear-gradient(135deg, rgba(224, 49, 49, 0.6), rgba(255, 90, 90, 0.6));
    border: 1px solid rgba(255, 0, 0, 0.9);
    color: white;
    font-weight: bold;
    font-size: 18px;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-align: center;
    min-width: 100px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(0.3px);
   -webkit-backdrop-filter: blur(0.3px);
}

.ep:hover {
    transform: scale(1.1);
    box-shadow: red 0px 4px 10px -2px;
    background: linear-gradient(135deg, rgba(255, 50, 50, 0.9), rgba(255, 120, 120, 0.9));
}

.ep:active {
    transform: scale(1);
    box-shadow: none;
}