/* VEYAPLAY V2 — Collection players */

body.collection-watch-v2 .home-side-rail,
body.collection-watch-v2 .home-right-rail,
body.collection-watch-v2 .subnav {
  display: none !important;
}

body.collection-watch-v2 main.grid {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 12px 16px 24px !important;
  box-sizing: border-box;
}

body.collection-watch-v2 .detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  grid-template-rows: auto;
  align-items: start;
  gap: 16px;
  width: min(1400px, 100%);
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box;
}

body.collection-watch-v2 .detail-main,
body.collection-watch-v2 .vp-watch {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
}

body.collection-watch-v2 .detail-side {
  display: block !important;
  grid-column: 2;
  grid-row: 1;
  width: 100% !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}

body.collection-watch-v2 .vp-watch .video-wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border: 1px solid #343943 !important;
  border-radius: 0 !important;
  background: #000;
  box-sizing: border-box;
}

body.collection-watch-v2 .vp-watch .vp-video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 75dvh;
  object-fit: contain;
  background: #000;
}

body.collection-watch-v2 .vp-info {
  margin: 0 !important;
  width: 100% !important;
}

body.collection-watch-v2 .vp-title {
  font-size: 22px;
}

body.collection-watch-v2 .detail-side .block {
  position: static;
  background: #1a1d24 !important;
  border: 1px solid rgba(128,128,128,.18) !important;
  border-radius: 6px;
  box-shadow: none !important;
  overflow: hidden;
}

body.collection-watch-v2 .comments-body {
  display: block !important;
  max-height: 68dvh;
  overflow-y: auto;
}

body.collection-watch-v2 .comment {
  padding: 9px;
  border-radius: 0;
}

body.collection-watch-v2 .c-avatar {
  width: 88px;
  min-width: 88px;
  height: 50px;
  border-radius: 4px;
  overflow: hidden;
}

body.collection-watch-v2 .c-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.collection-watch-v2 .c-user {
  font-size: 13px;
}

body.collection-watch-v2 .c-body {
  font-size: 12px;
  opacity: .7;
}

body.collection-watch-v2 .is-active-playlist-item {
  background: rgba(255,122,24,.12);
  border-left: 3px solid #ff7a18;
}

body.collection-watch-v2 .album-nav-btn {
  min-width: 90px;
  border-radius: 5px !important;
}

html.theme-light body.collection-watch-v2 .detail-side .block {
  background: #fff !important;
}

@media (max-width: 980px) {
  body.collection-watch-v2 .detail {
    grid-template-columns: minmax(0, 1fr);
  }

  body.collection-watch-v2 .detail-side {
    grid-column: 1;
    grid-row: auto;
  }

  body.collection-watch-v2 .comments-body {
    max-height: none;
  }

  body.collection-watch-v2 .album-nav-btn .label {
    display: inline !important;
  }
}

@media (max-width: 600px) {
  body.collection-watch-v2 main.grid {
    padding: 8px 8px 20px !important;
  }
}

/* Restore collection queue */

body.yt-watch.collection-watch-v2 .detail-side {
  display: block !important;
  visibility: visible !important;
}

body.yt-watch.collection-watch-v2 .detail-side .comments-body {
  display: block !important;
}

body.collection-watch-v2 .vp-info {
  border-radius: 6px;
}

body.collection-watch-v2 .site-footer {
  position: relative !important;
  bottom: auto !important;
}

/* VEYAPLAY V2 — Collection queue polish */

body.collection-watch-v2 .detail-side .block > .pad {
  padding: 14px;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.collection-watch-v2 .detail-side h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #ff7a18;
}

body.collection-watch-v2 .detail-side .pad p {
  margin: 6px 0;
  font-size: 14px;
}

body.collection-watch-v2 .c-avatar img {
  border-radius: 4px !important;
}

body.collection-watch-v2 .album-nav-btn {
  color: #ff7a18 !important;
  border: 1px solid rgba(128,128,128,.25) !important;
}

body.collection-watch-v2 .album-nav-btn.is-disabled {
  opacity: .35;
}

/* VEYAPLAY V2 — Larger collection thumbnails */

body.collection-watch-v2 .c-avatar {
  display: block;
  width: 120px;
  min-width: 120px;
  height: 68px;
  flex: 0 0 120px;
  border-radius: 4px !important;
  overflow: hidden;
  clip-path: none !important;
}

body.collection-watch-v2 .c-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
  clip-path: none !important;
}

@media (min-width: 981px) {
  body.collection-watch-v2 .detail {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}

@media (max-width: 600px) {
  body.collection-watch-v2 .c-avatar {
    width: 96px;
    min-width: 96px;
    height: 54px;
    flex-basis: 96px;
  }
}

/* VEYAPLAY V2 — Wide collection players */

@media (min-width: 1201px) {
  body.collection-watch-v2 .detail {
    width: 100%;
    max-width: none !important;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 16px;
  }

  body.collection-watch-v2 .vp-watch {
    max-width: none;
    margin: 0;
  }
}

/* VEYAPLAY V2 — Fill collection player */

@media (min-width: 901px) {
  body.collection-watch-v2 .vp-watch .vp-video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: 75dvh;
    object-fit: cover !important;
  }
}
