/* ===================== */
/* ОСНОВА */
/* ===================== */

body{
background:#000;
color:white;
font-family:'Poppins',sans-serif;
margin:0;
}


/* ===================== */
/* ССЫЛКИ */
/* ===================== */

a{
text-decoration:none;
color:white;
}

.serial-card a:hover{
color:#e50914;
}


/* ===================== */
/* ЛОГО */
/* ===================== */

.logo{
color:red;
font-size:40px;
font-weight:700;
margin:20px;
}


/* ===================== */
/* ПОИСК */
/* ===================== */

#search{
width:300px;
padding:12px;
margin:20px;
background:#111;
border:1px solid #333;
color:white;
border-radius:6px;
}


/* ===================== */
/* ФИЛЬТРЫ */
/* ===================== */

.filters button{
margin-right:10px;
padding:8px 15px;
background:#333;
color:white;
border:none;
cursor:pointer;
border-radius:5px;
}

.filters button:hover{
background:#e50914;
}


/* ===================== */
/* КАРТОЧКИ СЕРИАЛОВ */
/* ===================== */

#serials{
display:grid;
grid-template-columns:repeat(auto-fill,200px);
gap:20px;
margin-top:20px;
padding:20px;
}

.card{
background:#1c1c1c;
border-radius:10px;
overflow:hidden;
transition:0.3s;
}

.card:hover{
transform:scale(1.05);
}

.card img{
width:100%;
height:280px;
object-fit:cover;
}

.card h3{
padding:10px;
font-size:16px;
}

.card p{
padding:0 10px 10px;
color:#aaa;
}


/* ===================== */
/* ГЛАВНАЯ СТРАНИЦА */
/* ===================== */

.home{
display:flex;
height:100vh;
}


/* ===================== */
/* БЛОКИ ВЫБОРА */
/* ===================== */

.block{
flex:1;
display:flex;
align-items:center;
justify-content:center;
font-size:40px;
font-weight:bold;
text-decoration:none;
color:white;

background-size:cover;
background-position:center;

position:relative;

filter:brightness(1.1) contrast(1.05);
transition:0.4s;
}

.block:hover{
transform:scale(1.03);
filter:brightness(1.2);
}


/* затемнение */

.block::before{
content:"";
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.25);
}


/* текст */

.block h2{
position:absolute;
bottom:40px;
left:40px;
font-size:48px;
font-weight:700;
text-shadow:0 5px 20px rgba(0,0,0,0.9);
letter-spacing:1px;
z-index:2;
}


/* фоны */

.turkey{
background-image:url("../images/turkey.jpg");
}

.korea{
background-image:url("../images/korea.jpg");
}


/* ===================== */
/* СЕТКА СЕРИАЛОВ */
/* ===================== */

.serials-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
gap:25px;
padding:40px;
}


/* карточка */

.serial-card{
background:#111;
border-radius:12px;
overflow:hidden;
transition:0.3s;
}

.serial-card:hover{
transform:scale(1.08);
}

.serial-card img{
width:100%;
height:300px;
object-fit:cover;
}

.serial-card h3{
color:white;
padding:10px;
font-size:16px;
}


/* ===================== */
/* СТРАНИЦА СЕРИАЛА */
/* ===================== */

.serial-page{
display:flex;
gap:40px;
padding:40px;
color:white;
flex-wrap:wrap;
}

.serial-banner img{
width:300px;
border-radius:12px;
}

.serial-info{
max-width:700px;
}


/* ===================== */
/* ПЛЕЕР */
/* ===================== */

.player iframe{
width:100%;
height:450px;
border:none;
margin-top:20px;
border-radius:10px;
background:black;
}


/* ===================== */
/* ЧАТ */
/* ===================== */

.chat{
margin-top:30px;
}

.chat textarea{
width:100%;
height:80px;
background:#111;
color:white;
border:1px solid #333;
padding:10px;
border-radius:5px;
}

.chat button{
margin-top:10px;
padding:10px 20px;
background:red;
border:none;
color:white;
cursor:pointer;
border-radius:5px;
}

.chat button:hover{
background:#e50914;
}


/* ===================== */
/* HERO БЛОК */
/* ===================== */

.hero{
height:80vh;
background-size:cover;
background-position:center;
display:flex;
align-items:center;
padding-left:100px;
}

.hero-content{
max-width:600px;
}

.hero h1{
font-size:60px;
margin-bottom:20px;
}

.rating{
font-size:20px;
margin-bottom:20px;
}

.watch-btn{
background:#e50914;
color:white;
border:none;
padding:15px 30px;
font-size:18px;
cursor:pointer;
border-radius:5px;
}

.watch-btn:hover{
background:#ff1e2d;
}


/* ===================== */
/* СЕКЦИЯ ПЛЕЕРА */
/* ===================== */

.player-section{
display:flex;
justify-content:center;
padding:60px;
}

.player-section iframe{
width:1000px;
height:560px;
border:none;
border-radius:10px;
}


/* ===================== */
/* ОБСУЖДЕНИЕ */
/* ===================== */

.discussion{
padding:60px;
max-width:800px;
margin:auto;
}

.discussion textarea{
width:100%;
height:100px;
background:#111;
border:1px solid #333;
color:white;
padding:10px;
border-radius:6px;
}

.discussion button{
margin-top:10px;
background:red;
color:white;
border:none;
padding:10px 20px;
cursor:pointer;
border-radius:5px;
}

.discussion button:hover{
background:#e50914;
}


/* ===================== */
/* АДАПТАЦИЯ ДЛЯ ТЕЛЕФОНА */
/* ===================== */

@media (max-width:768px){

.logo{
font-size:26px;
margin:15px;
}

#search{
width:90%;
}

.home{
flex-direction:column;
}

.block h2{
position:absolute;

top:50%;
left:50%;

transform:translate(-50%, -50%);

font-size:56px;
font-weight:700;

color:white;

text-shadow:
0 6px 30px rgba(0,0,0,0.9),
0 3px 10px rgba(0,0,0,0.8);

letter-spacing:1px;

z-index:2;

text-align:center;
}
.turkey h2{
color:#ffd369;
}

.korea h2{
color:#8ec5ff;
}
.block:hover h2{
transform:translateY(-5px);
transition:0.3s;
}

.serials-grid{
grid-template-columns:repeat(2,1fr);
gap:15px;
padding:20px;
}

.serial-card img{
height:240px;
}

.hero{
padding:20px;
height:60vh;
}

.hero h1{
font-size:32px;
}

.player-section{
padding:20px;
}

.player-section iframe{
width:100%;
height:220px;
}

.serial-page{
flex-direction:column;
padding:20px;
}

.serial-banner img{
width:200px;
}

}