* {
box-sizing: border-box;
}

body {
font-family: Arial, Helvetica, sans-serif;
/*background-image: linear-gradient(to right, #b079b4, #6856a4);*/
}

/* Float four columns side by side */
.column {
float: left;
width: 25%;
padding: 14px;
}

/* Remove extra left and right margins, due to padding .row {margin: 0 -5px;} */
.row {padding:20px;}

/* Clear floats after the columns */
.row:after {
content: "";
display: table;
clear: both;
}

.card {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
padding: 16px;
text-align: center;
background-color: #f1f1f1;
}

.card {
//width: 20%;
border-radius: 20px;
/*background: #1b233d;*/
padding: 2px;
overflow: hidden;
box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 20px 0px;
transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
transform: scale(1.05);
}

.card .top-section {
height: 100%;
border-radius: 15px;
display: flex;
flex-direction: column;
background: linear-gradient(45deg, rgb(4 33 187 / 39%) 0%, rgb(80 255 231) 100%);
/*position: relative;*/
}

.card .top-section .border {
border-bottom-right-radius: 10px;
height: 36px;
width: 150px;
background: white;
/*background: #1b233d;*/
position: relative;
transform: skew(-40deg);
box-shadow: -10px -10px 0 0 #1b233d;
}

.card .top-section .border::before {
content: "";
position: absolute;
width: 15px;
height: 15px;
top: 0;
right: -15px;
background: rgba(255, 255, 255, 0);
border-top-left-radius: 10px;
box-shadow: -5px -5px 0 2px #1b233d;
}

.card .top-section::before {
content: "";
/*position: absolute;
top: 30px;
left: 0;
background: rgba(255, 255, 255, 0);
height: 15px;
width: 15px;*/
border-top-left-radius: 15px;
box-shadow: -5px -5px 0 2px #1b233d;
}

.card .top-section .icons {
position: absolute;
top: 0;
width: 100%;
height: 40px;
display: flex;
justify-content: space-between;
}

.card .top-section .icons .logo {
height: 100%;
aspect-ratio: 1;
padding: 7px 0 7px 15px;
}

.card .top-section .icons .logo .top-section {
height: 100%;
}

.card .top-section .icons .social-media {
height: 100%;
padding: 0 15px 8px 15px;
display: flex;
gap: 7px;
}

.card .top-section .icons .social-media .svg {
height: 100%;
fill: white;

}

.card .top-section .icons .social-media .svg:hover {
fill: red;
cursor: pointer;
}

.card .bottom-section {
margin-top: 15px;
padding: 10px 5px;
}

.card .bottom-section .title {
display: block;
font-size: 15px;
font-weight: bolder;
color: black;
text-align: center;
letter-spacing: 2px;
}

.card .bottom-section .row {
display: flex;
justify-content: space-between;
margin-top: 20px;
}

.card .bottom-section .row .item {
flex: 30%;
text-align: center;
padding: 5px;
/*color: rgba(170, 222, 243, 0.721);*/
}

.card .bottom-section .row .item .big-text {
font-size: 14px;
display: block;
}

.card .bottom-section .row .item .regular-text {
font-size: 12px;
}

.card .bottom-section .row .item:nth-child(2) {
border-left: 1px solid rgba(255, 255, 255, 0.126);
border-right: 1px solid rgba(255, 255, 255, 0.126);
}

.top-section .play-button {
position: absolute;
width: 60px;
height: 60px;
background: rgba(255, 255, 255, 0.2);
border: 3px solid white;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: background 0.3s;
//margin: 30% 0 0 38%;
margin: -130px 0 0 110px;
}

.top-section .play-button::before {
content: "";
border-style: solid;
border-width: 10px 0 10px 16px;
border-color: transparent transparent transparent white;
margin-left: 3px;
}

.top-section .play-button:hover {
background: rgba(252, 174, 26, 1);
}

.top-section video {
width: 100%;
height: 200px;
object-fit: cover;
border-radius:20px 20px 0 0;
}
.video_body {
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.video-container {
max-width: 800px;
width: 100%;
box-shadow: 0 0 20px rgba(0,0,0,0.5);
border-radius: 12px;
overflow: hidden;
}
video {
width: 100%;
height: auto;
display: block;
}

/* Responsive columns */
/*@media screen and (max-width: 992px) {
.column {
width: 100%;
display: block;
margin-bottom: 20px;
}
}*/

.container {
  display: flex;
  flex-direction: row;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  gap: 20px;
}

.main-content {
  flex: 3;
  min-width: 0;
}

.video-section {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  border-radius: 12px;
}

.video-section video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /*border-radius: 12px;*/
  background-color: white;
}

.video-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.video-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /*color: #606060;*/
  font-size: 14px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.like-button {
  background-color: #eee;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.3s;
}
.like-button:hover {
  background-color: #afaaaa;
}
.like-button svg {
  width: 16px;
  height: 16px;
  margin-right: 5px;
  fill: #ff0000;
}

.channel-info {
  display: flex;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #ccc;
  margin-right: 15px;
}

.channel-details {
  font-size: 15px;
}

   .sidebar {
   height:520px;
flex: 1.6;
display: flex;
flex-direction: column;
gap: 15px;
overflow-y:scroll;
overflow-x:hidden;
background-color:white;
padding:8px;
}

.thumbnail-card {
display: flex;
gap: 10px;
cursor: pointer;
}

.thumb-video-wrapper {
position: relative;
width: 160px;
height: 90px;
border-radius: 6px;
overflow: hidden;
flex-shrink: 0;
}

.thumb-video-wrapper video {
width: 100%;
height: 100%;
object-fit: cover;
}

.play-btn-overlay {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(0, 0, 0, 0.5);
border-radius: 50%;
width: 40px;
height: 40px;
display: flex;
justify-content: center;
align-items: center;
}

.play-btn-overlay::before {
content: '▶';
color: white;
font-size: 20px;
padding-left: 2px;
}

.thumb-details {
font-size: 14px;
margin-top:10px;
}

.thumb-title {
font-weight: bold;
margin-bottom: 4px;
}

.thumb-channel {
color: #666;
}

.h_container {
  display: flex;
  flex-wrap: wrap;
  padding: 16px;
  margin-top:6px;
  border-radius:20px;
  background-image: linear-gradient(to right, #b079b4, #6856a4);
}

/* Responsive: Mobile layout with vertical scroll */
@media screen and (max-width: 992px) {

  .column {
    width: 50%;
  }
  .container {
    flex-direction: column;
  }

  .sidebar {
max-height: 300px;
overflow-y: auto;
padding: 10px 10px 0 0;
margin-top: 10px;
border-top: 1px solid #ccc;
background-color:white;
}

.thumbnail-card {
flex-direction: row;
}

.thumb-video-wrapper {
width: 120px;
height: 70px;
}
}

 .banner{
  width: 100%;
  height: 340px;
  background-size: 100% 100%;
  border-radius:0 0 20px 20px;
}

@media screen and (max-width: 600px) {
  .video-title {
    font-size: 18px;
  }

  .column {
    width: 100%;
  }

  .video-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .channel-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .banner{
  height: 140px;
 
}
}

video::-internal-media-controls-download-button {
    display:none;
}

video::-webkit-media-controls-enclosure {
    overflow:hidden;
}

video::-webkit-media-controls-panel {
    width: calc(100% + 30px); /* Adjust as needed */
}
