.video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  padding: 32px 24px;
  gap: 32px;
  background: var(--color-surface);
}

.video-player {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(180deg, transparent 40%, rgb(0 0 0 / 75%)),
    url("https://images.unsplash.com/photo-1654881005810-bdfcab2ef3aa?auto=format&fit=crop&w=1600&q=85") center / cover;
  place-items: center;
}

.video-player-play {
  z-index: 2;
  display: grid;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 15%);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  place-items: center;
}

.player-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 9px 16px 10px;
  color: #fff;
}

.player-progress {
  position: relative;
  height: 3px;
  margin-bottom: 12px;
  border-radius: 3px;
  background: rgb(255 255 255 / 25%);
  cursor: pointer;
}

.player-progress span {
  display: block;
  width: 35%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff6bae, var(--color-brand));
}

.player-control-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 12px "Inter", sans-serif;
}

.player-control-line .player-spacer {
  margin-left: auto;
}

.video-details {
  display: flex;
  flex-direction: column;
  margin-top: 16px;
  gap: 14px;
}

.video-title {
  margin: 0;
  font: 700 20px/1.3 "Inter", sans-serif;
}

.video-statline {
  color: #888;
  font: 13px "Inter", sans-serif;
}

.video-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.video-action {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  gap: 6px;
  border: 1px solid #e8e8e8;
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-text-soft);
  cursor: pointer;
}

.video-action[aria-pressed="true"] {
  border-color: #f0c0d8;
  background: var(--color-brand-soft);
  color: var(--color-brand);
}

.channel-card {
  display: flex;
  align-items: center;
  height: 60px;
  padding: 0 16px;
  gap: 12px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background: var(--color-surface);
}

.channel-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f0a0c8, var(--color-brand));
}

.channel-info {
  width: 100%;
}

.channel-info strong,
.channel-info small {
  display: block;
  font-family: "Inter", sans-serif;
}

.channel-info strong {
  font-size: 15px;
}

.channel-info small {
  color: #888;
  font-size: 12px;
}

.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.video-description {
  color: var(--color-text-soft);
  font: 14px/1.6 "Inter", sans-serif;
}

.video-description.is-collapsed {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ad-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 90px;
  padding: 18px 24px;
  gap: 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1a0a10, #3d1a28);
  color: #fff;
}

.ad-label {
  color: #ff69aa;
  font: 700 9px "Inter", sans-serif;
  letter-spacing: 1px;
}

.ad-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ad-box {
  display: grid;
  height: 250px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: rgb(255 255 255 / 22%);
  font: 700 20px "Inter", sans-serif;
  place-items: center;
}

.ad-box.is-tall {
  height: 360px;
}

.related-videos {
  padding: 0 24px 48px;
  background: var(--color-surface);
}

@media (max-width: 1179px) {
  .video-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ad-sidebar {
    display: none;
  }
}

@media (max-width: 767px) {
  .video-layout {
    padding: 0 0 22px;
  }

  .video-player {
    border-radius: 0;
  }

  .video-details {
    padding: 0 16px;
  }

  .video-title {
    font-size: 16px;
  }

  .video-actions {
    flex-wrap: nowrap;
    margin-right: -16px;
    padding-right: 16px;
    overflow-x: auto;
  }

  .video-action {
    min-width: max-content;
  }

  .ad-banner {
    min-height: 60px;
    border-radius: 0;
  }

  .ad-label {
    display: none;
  }

  .related-videos {
    padding: 16px 16px 38px;
  }
}
