
.item.playlist .img, .list-playlists-2 .img {
    width: 100%;
    border: 1px solid #1f1f21;
    padding-bottom: 56.25%;
    position: relative;
}
.item .img .thumb:first-child, .item .img picture .thumb {
    position: absolute;
    inset: 0px;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    object-fit: cover;
}
.item .img img.video2, .item .img img.video3, .item .img img.video4 {
    border: 1px solid #505050;
    position: absolute;
    width: 80px;
    height: 46px;
    z-index: 1;
}
.item .img img.video2 {
    right: 5px;
    top: 46px;
}
.item .img img.video3 {
    right: 5px;
    top: 98px;
}
.item .img img.video2, .item .img img.video3, .item .img img.video4 {
    border: 1px solid #505050;
    position: absolute;
    width: 80px;
    height: 46px;
    z-index: 1;
}



.overlay-side {
    text-transform: capitalize;
    font-size: 12px;
    width: 90px !important;
    background: rgba(0, 0, 0, 0.8);
    color: #f1f1f1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    text-align: center;
}


.overlay-side span em {
    display: block;
    font: 22px "Roboto Condensed", sans-serif;
}


.playlist-overlay {
    background: rgba(0, 0, 0, 0.7);
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    text-align: center;
}


.item.playlist .img .playlist-overlay a, .list-playlists-2 .img .playlist-overlay a {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
    color: #f1f1f1;
    height: 50%;
    border-top: 1px solid #0d0e12;
    cursor: pointer;
}

.playAll svg, .viewPl svg {
    font-size: 15px !important;
    margin-right: 8px !important;
}

.playAll .pTxt, .viewPl .pTxt {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}



.item .img .no-thumb {
  display: block;
  height: 100%;
  background-size: 6rem;
}
.item .img .no-thumb {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
  font-size: 0;
}
.no-thumb {
background: url("../images/no-thumb.png") no-repeat center;
    background-size: auto;
}

.item.playlist .img .no-thumb, .list-playlists-2 .img .no-thumb {
  position: absolute;
  height: 67px;
  font-size: 0;
  width: 100%;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%,-50%);
  -ms-transform: translate(-50%,-50%);
  transform: translate(-50%,-50%);
  z-index: 5;
      background-size: 10rem;
}

 .item.playlist .info {
    background-color: #000;
}

.ps-user a {
    color: #fff;
}

.item-control {
    background: #111;
    border-top: 1px solid #0d0e12;
    padding: 6px;
    cursor: default;
}


.list-grid-ads {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: minmax(200px,1fr) 5px minmax(200px,1fr) 5px minmax(200px,1fr) 5px minmax(200px,1fr) 5px minmax(200px,1fr);
  grid-template-columns: repeat(5,minmax(200px,1fr));
  -ms-grid-rows: 1fr;
  grid-template-rows: 1fr;
  grid-gap: 10px 5px;
}

.list-grid-ads.list-playlists-2, .list-grid-ads.list-videos-2 {
  -ms-grid-columns: minmax(200px,1fr) 5px minmax(200px,1fr) 5px minmax(200px,1fr) 5px minmax(200px,1fr);
  grid-template-columns: repeat(4,minmax(200px,1fr));
}

.list-grid-ads > :first-child {
  -ms-grid-row: 1;
  -ms-grid-column: 1;
}

.item .img {
  position: relative;
  background: #040404;
  border-bottom: 1px solid #1f1f21;
  overflow: hidden;
}




.items-list.premium-thumbs > .item.playlist:first-child {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
}

.item.playlist {
    display: inline-block;
    vertical-align: top;
    padding: 15px 15px 0px 0px;
    width: 33.33%;
    position: relative;
}

@media screen and (max-width: 1200px) {
.item.playlist {
        width: 50%;
    }
}

	
@media screen and (max-width: 550px) {
.item.playlist {
        width: 100%;
    }
}

@media screen and (max-width: 992px) {
.headline_playlist [data-action="sort_list"] {
        top: 110px;
    }
}	
	
@media screen and (max-width: 440px) {
.headline_playlist .sort-holder .sort:last-of-type {
        width: 100%;
    }
}

	
.item.playlist .img {
    position: relative;
    background: #040404;
    border-bottom: 1px solid #1f1f21;
    overflow: hidden;
    border: 1px solid #1f1f21;
    padding-bottom: 56.25%;
	    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
	
}

.item.playlist .fav-btn {
    left: 40px;
    right: auto;
    top: 40px;
}

.item.playlist .m-num.rate, .list-playlists-2 .item .m-num.rate {
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.item.playlist .row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 13px;
    padding: 0px 4px 2px;
}

.item.playlist .m-num {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  color: #909090;
  font-size: 12px;
  padding: 3px 10px 0 0;
}


.box .headline_playlist{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* важно */
  flex-wrap: nowrap;
  gap: 12px;                  /* расстояние между первыми двумя */
  padding: 0 0 10px;
}


/* Третий элемент уезжает вправо */
.box .headline_playlist > .sort-holder{
  margin-left: auto;
  /* по желанию: выравнивание по вертикали сохраняется через align-items в контейнере */
}


/* контейнер селектора */
.list-selector {
  position: relative;
  overflow: visible;        /* чтобы попап не обрезался родителем */
}

/* readonly-инпут кликабельный */
.list-selector__input {
  cursor: pointer;
}

/* сам попап */
.list-selector-popup {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #0b0b0b;
  border: 1px solid #1f1f21;
  padding: 10px;
  z-index: 99999;           /* поверх модалки и всего остального */
  max-height: 340px;
  overflow: auto;
  display: none;            /* будет включаться JS */
}


.popup-wrap .headline {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-bottom: 10px;
  border-radius: 3px 3px 0 0;
  background: #2d2d2d;
  border-bottom: 1px solid #1d1d1d;
  font-size: 18px;
  color: #f1f1f1;
  font-weight: 500;
  padding: 12px 15px;
}

.popup-holder {
  margin: 0 15px 15px;
}

form .radio:checked+label:after, form .radio:checked+span:after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 6px;
    height: 6px;
    background: #fd7500;
    border-radius: 50%;
}

form .checkbox+label, form .checkbox+span, form .radio+label, form .radio+span {
    position: relative;
    padding-left: 20px !important;
    cursor: pointer;
}
.popup-wrap label {

    margin-bottom: 8px;
	  display: block;
}

.popup-wrap form label {

  position: relative;
  display: block;
  cursor: pointer;
  margin-bottom: 6px;
}

.popup-wrap .icon-svg {
    display: inline-block;
}

svg.icon_svg {
    fill: #5e5e5e;
    width: 23px;
    height: 23px;
    margin: 0;
    transition: all .3s;
    /* display: inline-block; */
}


.tab svg.icon_svg {
    width: 17px;
    height: 17px;
}


form label.field-label::after {
  content: ":";
}


form .list-selector-popup {
    position: absolute;
    width: 100%;
    height: 160px;
    left: 0;
    bottom: 52px;
    border-radius: 5px;
    z-index: 10000;
    background: #101010;
}


form .list-selector-popup:before {
    position: absolute;
    content: "";
    width: 40px;
    height: 7px;
    background: #000;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    bottom: 0;
    z-index: 10001;
}

/* внутри попапа */
.list-selector__search { margin: 0 0 8px; }
.terms-list .item { display:flex; align-items:center; gap:8px; padding:4px 0; }
.terms-list .item label { color:#eee; cursor:pointer; }
.hidden { display:none; }

.item.playlist:hover .playlist-overlay {
  display: block;
}
.playlist-overlay a:hover {
  background: rgba(0,0,0,0.8);
}
.playlist-info {
  margin-top: 5px;
  font-size: 0;
}



.playlist_info_user .pls_user {
  margin-left: 3px;
}

.playlist_info_user .ps_update {
  margin-left: 15px;
}

.playlist-info {
  margin-top: 5px;
  font-size: 0;
}




.owl-carousel, .owl-carousel .owl-item {
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.owl-carousel {
  display: none;
  width: 100%;
  z-index: 1;
}

.no-js .owl-carousel, .owl-carousel.owl-loaded {
  display: block;
}

.owl-carousel .owl-stage-outer {
  position: relative;
  overflow: hidden;
  -webkit-transform: translate3d(0,0,0);
}


.owl-carousel .owl-stage {
  position: relative;
  -ms-touch-action: pan-Y;
  touch-action: manipulation;
  -moz-backface-visibility: hidden;
}
.owl-stage {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}


.owl-carousel.owl-drag .owl-item {
  -ms-touch-action: pan-y;
  touch-action: pan-y;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.owl-carousel .owl-item {
  min-height: 1px;
  float: left;
  -webkit-backface-visibility: hidden;
  -webkit-touch-callout: none;
}



.btn-ps-cat {
    font-size: 19px;
    color: #f1f1f1;
    text-transform: inherit;
    min-width: inherit;
    height: inherit;
    line-height: inherit;
    background: #111;
    padding: 6px 7px;
    border: 1px solid #1d1d1d;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    margin: 2px 5px 2px 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    text-transform: capitalize;
    white-space: nowrap;
    color: var(--btn-color-default);
    background: var(--orange-grad);
    min-width: 90px;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 3px;
}

.playlist-details {
  margin: 8px 0 14px 0;
  border-color: #863e00 transparent #1d1d1d;
  border-style: solid none;
  border-width: 1px 0 2px;
}


.playlist-details .btn, .playlist-details .btn:active, .playlist-details .btn:focus, .playlist-details .btn:hover {
    color: #333;
}

.playlist-details-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;

}


.playlist-details-wrap .rating-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding-left: 15px;
}


.playlist-details-wrap .icons-rating {
  margin: 0 6px 0 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}


.model-info .rating-container .rating, .playlist-details-wrap .rating-container .rating {
  width: 100%;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}


.playlist-details-wrap .rating-container .voters {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font: 500 13px "Roboto Condensed",sans-serif;

  padding-bottom: 5px;
}

.btn-other {
    text-transform: capitalize;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-weight: 500;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0 15px;
    line-height: 50px;
    height: 50px;

    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    border-left: 1px solid #373737;
    cursor: pointer;
}


.playlist-details-wrap .rating-container .scale-holder {
  height: 4px;
  width: 100px;
  display: block;
  background: #343434;
  border-radius: 3px;
  position: relative;
}

.model-info .rating-container .scale-holder .scale, .playlist-details-wrap .rating-container .scale-holder .scale, .playlist-title-rating .rating-container .scale-holder .scale {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: #fd7500;
  border-radius: 3px;
}

@media screen and (max-width: 1200px) {
.list-grid-ads.list-playlists-2, .list-grid-ads.list-videos-2 {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: minmax(200px,1fr) 5px minmax(200px,1fr) 5px minmax(200px,1fr) 5px minmax(200px,1fr) 5px minmax(200px,1fr);
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    -ms-grid-rows: 1fr;

}
}

@media (max-width: 600px) {
.list-grid-ads.list-playlists-2, .list-grid-ads.list-videos-2 {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: minmax(200px,1fr) 5px minmax(200px,1fr) 5px minmax(200px,1fr) 5px minmax(200px,1fr) 5px minmax(200px,1fr);
    grid-template-columns: repeat(1, minmax(200px, 1fr));
    -ms-grid-rows: 1fr;

}
}

/* =========================
   Light Theme — Playlist View
   ========================= */
:root {
  --bg: #f7f8fb;
  --card: #ffffff;
  --text: #0f172a;
  --text-soft: #475569;
  --muted: #94a3b8;
  --line: #e5e7eb;
  --line-2: #eef2f7;
  --brand: #2563eb;
  --brand-2: #1d4ed8;
  --accent: #0ea5e9;
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --shadow: 0 10px 30px rgba(2, 6, 23, .06);
  --radius-xl: 18px;
  --radius-lg: 14px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --pad: 18px;
  --pad-lg: 22px;
  --container: 1200px;
  --btn-h: 44px;
  --btn-px: 18px;
}

/* ---------- Base ---------- */
html, body {
  background: var(--bg);
  color: var(--text);
}

.main-holder.blured {
  background: linear-gradient(180deg, #fafbff 0%, #f6f8fd 100%);
  min-height: 100vh;
}



/* ---------- Headline ---------- */
#playlist_view_playlist_view .headline {
  margin-bottom: 16px;
}

#playlist_view_playlist_view .headline-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2vw, 28px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

#playlist_view_playlist_view .headline-box h1 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.btn-wrapper {
  display: flex;
  gap: 10px;
}

/* ---------- Buttons ---------- */
.rate-like.btn.like, .rate-dislike.btn.dislike {
  --h: var(--btn-h);
  height: var(--h);
  line-height: calc(var(--h) - 2px);
  padding: 0 var(--btn-px);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn.grad {
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, .25);
}

.btn.grad:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(37, 99, 235, .28);
}

.btn.grad:active {
  transform: translateY(0);
}

.btn.other,
.btn-outline {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}

.btn.other:hover,
.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ---------- Playlist top info ---------- */
.playlist-info {
  margin-top: 10px;
}

.playlist-info .playlist_info_user {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 20px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--pad);
  box-shadow: var(--shadow);
}

.playlist_info_user span:first-child {
  color: var(--muted);
}

.playlist_info_user .pls_user a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}

.playlist_info_user .pls_user a:hover {
  text-decoration: underline;
}

.ps_update {
  color: var(--text-soft);
  font-size: 14px;
}

.ps_update .last {
  color: var(--muted);
  margin-right: 6px;
}

/* ---------- Tags / Categories carousel (owl) ---------- */
section.playlist-info.mob-ps {
  margin-top: 14px;
}

.owl-carousel-search {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow);
}

.owl-carousel-search .owl-stage-outer { overflow: hidden; }
.owl-carousel-search .owl-stage { display: flex; gap: 8px; }

.owl-carousel-search .owl-item {
  width: auto !important;
  display: inline-block;
}

.btn-ps-cat,
.btn-ps-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  background: #f3f6fc;
  color: #1f2a44;
  border: 1px solid var(--line);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}

.btn-ps-tag span { opacity: .6; margin-right: 2px; }

.btn-ps-cat:hover,
.btn-ps-tag:hover {
  background: #ecf3ff;
  border-color: #d7e5ff;
  color: var(--brand);
  transform: translateY(-1px);
}

/* Owl arrows (disabled by default in вашем HTML) */
.owl-nav .wrap-grad {
  display: inline-flex;
  width: 36px; height: 36px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #eef3ff 0%, #f0fbff 100%);
  border: 1px solid var(--line);
}
.owl-nav .icon-chevron-left,
.owl-nav .icon-chevron-right { font-size: 16px; }

/* ---------- Rating block ---------- */
.playlist-details { margin-top: 16px; }

.playlist-details-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: var(--pad-lg);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
}

.rating-info .rating-holder {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
}

.rate-like.btn.like,
.rate-dislike.btn.dislike {
    height: auto;
    line-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #f7f9fd;
    color: var(--text);
    gap: 8px;
}

.rate-like .icon-like,
.rate-dislike .icon-dislike {
  font-size: 16px;
}

.rate-like:hover { border-color: rgba(16,185,129,.35); background: #f1fdf7; }
.rate-dislike:hover { border-color: rgba(239,68,68,.35); background: #fff5f5; }

.quantity {

    color: rgb(255, 255, 255);
}
.rating-holder .error,
.rating-holder .success {
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid;
  display: none;
}

.rating-holder .error {
  color: #b91c1c;
  background: #fff5f5;
  border-color: #fecaca;
}

.rating-holder .success {
  color: #065f46;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.voters {
  margin-left: 6px;
  color: var(--text-soft);
  font-weight: 700;
}

.scale-holder {
  width: 180px;
  height: 10px;
  background: #eef2f7;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}

.scale-holder .scale {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, #34d399 0%, #22c55e 100%);
  transition: width .25s ease;
}

/* ---------- Comments / buttons row ---------- */
.ps-btn-list {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.ps-btn-list .js-scroll-to {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}

.ps-btn-list .js-scroll-to:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.icon-svg {
  width: 18px; height: 18px;
  display: inline-block;
  fill: currentColor;
}

/* ---------- Stats ---------- */
.ps-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

.ps-stats .stats-cont {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  min-width: 120px;
  text-align: center;
}

.ps-stats .stats-cont em {
  font-style: normal;
  font-weight: 900;
  font-size: 18px;
  color: var(--text);
}

.ps-stats .stats-cont .ic-txt {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Play All button (below details) ---------- */
.btn-wrapper + .roomlist_container {
  margin-top: 16px;
}

.btn-wrapper .pls-desk { /* уже есть .btn.grad у вас */
  min-width: 160px;
  justify-content: center;
}

/* ---------- Videos list grid ---------- */
.roomlist_container {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: var(--pad-lg);
}

.roomlist_container ul.list {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.roomlist_container ul.list > li {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .2s ease;
}

.roomlist_container ul.list > li:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(2, 6, 23, .08);
  border-color: #dfe7f3;
}

/* Если карточки рисуются через get_template_part('card/card-video'),
   можно задать базовые плейсхолдеры: */
.roomlist_container .thumb,
.roomlist_container .poster,
.roomlist_container img {
  display: block;
  width: 100%;
  height: auto;
  background: #f2f4f9;
}

/* ---------- Pagination (navigation.php) ---------- */
.pagination, .nav-links, .wp-pagenavi {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}

.pagination a, .pagination span,
.nav-links a, .nav-links span,
.wp-pagenavi a, .wp-pagenavi span {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}

.pagination a:hover, .nav-links a:hover, .wp-pagenavi a:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}

.pagination .current, .nav-links .current, .wp-pagenavi .current {
  background: #ecf3ff;
  border-color: #d7e5ff;
  color: var(--brand-2);
}

/* ---------- Comments box ---------- */
.comments-box {
  margin-top: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: var(--pad-lg);
}

/* ---------- Utilities ---------- */
.hidden { display: none !important; }

.playlist-details-wrap .rating-container .voters {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font: 500 13px "Roboto Condensed",sans-serif;
  color: #f1f1f1;
  padding-bottom: 5px;
}


.playlist-details-wrap .rating-container .scale-holder {
  height: 4px;
  width: 100px;
  display: block;
  background: #343434;
  border-radius: 3px;
  position: relative;
}


.scale-holder .scale {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: #fd7500;
    border-radius: 3px;
}

span.scale-holder {
    height: 4px;
    width: 100px;
    display: block;
    background: #343434;
    border-radius: 3px;
    position: relative;
}

.rating .voters {
    margin-left: 6px;
    color: var(--text-soft);
    font-weight: 700;
    margin-top: -10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    /* font: 500 13px "Roboto Condensed", sans-serif; */
    /* color: #f1f1f1; */
    padding-bottom: 15px;
}


/* toggle switch */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
  margin-left: 10px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}



.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(230, 24, 78);
    transition: .3s;
    border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px; width: 20px;
  left: 3px; bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #10b981; /* зелёный */
}

input:focus + .slider {
  box-shadow: 0 0 1px #10b981;
}

input:checked + .slider:before {
  transform: translateX(24px);
}


/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .roomlist_container ul.list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  #playlist_view_playlist_view .headline-box {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .playlist-info .playlist_info_user {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .playlist-details-wrap {
    grid-template-columns: 1fr;
  }
  .ps-btn-list { justify-content: flex-start; }
  .roomlist_container ul.list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {

  .btn { --h: 40px; }
  .btn-wrapper { flex-wrap: wrap; }
  .roomlist_container ul.list { grid-template-columns: 1fr; }
  .scale-holder { width: 140px; }
}


