*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Montserrat',sans-serif;
}

body{

background:#0f0f0f;
color:white;

}

header{

height:80px;

background:#181818;

display:flex;

align-items:center;

justify-content:space-between;

padding:0 40px;

border-bottom:1px solid rgba(255,255,255,.08);

position:sticky;

top:0;

z-index:100;

}

.logo{

font-size:34px;

font-weight:800;

color:#ff2d55;

}

header input{

width:500px;

padding:14px;

border:none;

border-radius:30px;

background:#262626;

color:white;

outline:none;

}

.watch-layout{

display:grid;

grid-template-columns:
2fr
400px;

gap:40px;

padding:40px;

}

.main-video img{

width:100%;

border-radius:20px;

display:block;

}

.main-video h1{

margin-top:25px;

font-size:38px;

}

.main-video p{

margin-top:10px;

opacity:.7;

}

.video-actions{

display:flex;

gap:15px;

margin-top:25px;

}

.video-actions button{

padding:14px 24px;

background:#262626;

border:none;

border-radius:30px;

color:white;

cursor:pointer;

transition:.3s;

}

.video-actions button:hover{

background:#ff2d55;

}

.channel{

margin-top:35px;

padding:25px;

background:#181818;

border-radius:20px;

display:flex;

justify-content:space-between;

align-items:center;

}

.channel h3{

font-size:24px;

}

.channel p{

margin-top:5px;

opacity:.7;

}

.subscribe{

background:#ff2d55;

border:none;

padding:14px 30px;

border-radius:30px;

color:white;

font-weight:700;

cursor:pointer;

}

.description{

margin-top:30px;

background:#181818;

padding:25px;

border-radius:20px;

line-height:1.8;

}

.sidebar{

display:flex;

flex-direction:column;

gap:20px;

}

.related{

display:flex;

gap:15px;

background:#181818;

padding:12px;

border-radius:15px;

cursor:pointer;

transition:.3s;

}

.related:hover{

transform:translateY(-4px);

}

.related img{

width:170px;

height:95px;

object-fit:cover;

border-radius:10px;

}

.related h4{

font-size:18px;

margin-bottom:8px;

}

.related p{

opacity:.7;

font-size:14px;

}

@media(max-width:1200px){

.watch-layout{

grid-template-columns:1fr;

}

.sidebar{

margin-top:30px;

}

}

@media(max-width:768px){

header{

flex-direction:column;

height:auto;

padding:20px;

gap:20px;

}

header input{

width:100%;

}

.watch-layout{

padding:20px;

}

.main-video h1{

font-size:28px;

}

.channel{

flex-direction:column;

gap:20px;

text-align:center;

}

.related{

flex-direction:column;

}

.related img{

width:100%;

height:200px;

}

}