/* Extracted media/detail page styles: video, album view, playlist view */

/* ============================================
   VIDEO PAGE — Action bar, uploader row, comments teaser
   ============================================ */

.vrow {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
}
.vrow-uploader {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.vrow-avatar {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  text-decoration: none;
  overflow: hidden;
}
.vrow-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.vrow-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #2a2a2a;
  border-radius: 50%;
}
.vrow-avatar--placeholder svg {
  width: 20px;
  height: 20px;
  fill: #666;
}
.vrow-info {
  min-width: 0;
}
.vrow-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.vrow-name {
  font-size: 15px;
  font-weight: 600;
  color: #eee;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  transition: color 0.2s;
}
@media (hover: hover) {
  .vrow-name:hover {
    color: #3cbff0;
  }
}
.vrow-follow {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 15px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
  border: 1px solid transparent;
}
.vrow-follow--primary {
  background: #3cbff0;
  color: #000;
  font-weight: 600;
  border-color: #3cbff0;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
@media (hover: hover) {
  .vrow-follow--primary:hover {
    background: #2da8d8;
    border-color: #2da8d8;
    transform: scale(1.04);
  }
}
.vrow-follow--subscribed,
.vrow-follow--primary.done {
  background: transparent;
  border-color: #333;
  color: #aaa;
}
@media (hover: hover) {
  .vrow-follow--subscribed:hover,
  .vrow-follow--primary.done:hover {
    border-color: #555;
    color: #ccc;
  }
}
.vrow-stats {
  font-size: 12px;
  color: #777;
  margin-top: 2px;
}
.vrow-sep {
  height: 1px;
  background: #222;
  margin-bottom: 15px;
}
.vrow .vact-bar {
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}
.vrow .vact-bar:only-child {
  flex: 1;
}

/* ============================================
   VACT-BAR: Redesigned Video Action Bar
   ============================================ */

/* Bar layout */
.vact-bar {
  display: flex;
  align-items: center;
  padding: 10px 0;
  margin-bottom: 15px;
}
.vact-left,
.vact-right {
  display: flex;
  align-items: center;
  gap: 4px;
}
.vact-spacer {
  flex: 1;
}

/* Individual action item */
.vact-item {
  position: relative;
  display: flex;
  align-items: center;
}

/* Action button — pill shape */
.vact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 0 16px;
  border: 1px solid #2a2a2a;
  background: #151515;
  color: var(--btn-tabs-color);
  font-weight: 500;
  font-size: 14px;
  line-height: 44px;
  cursor: pointer;
  border-radius: 24px;
  transition: color 0.3s, background 0.3s, border-color 0.3s;
  text-decoration: none;
  font-family: inherit;
}
.vact-btn i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.vact-btn svg {
  width: 22px;
  height: 22px;
  fill: var(--btn-tabs-color);
  transition: fill 0.3s;
}
.vact-btn .vact-count {
  font-size: 14px;
  font-weight: 500;
}

/* Tooltips for action bar buttons */
.vact-btn[data-tooltip] {
  position: relative;
}
.vact-btn[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 20;
}
.vact-btn[data-tooltip]::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 20;
}
@media (hover: hover) {
  .vact-btn[data-tooltip]:hover::after,
  .vact-btn[data-tooltip]:hover::before {
    opacity: 1;
  }
}

/* Hover */
@media (hover: hover) {
  .vact-btn:hover {
    color: #3cbff0;
    background: rgba(212, 168, 83, 0.08);
  }
  .vact-btn:hover svg {
    fill: #3cbff0;
  }
}

/* Voted/active state (like button after clicking) */
.vact-bar .rate-like.voted,
.vact-bar .rate-like.voted .vact-count {
  color: #e8a020;
}
.vact-bar .rate-like.voted {
  background: rgba(232, 160, 32, 0.10);
  border-color: #e8a020;
}
.vact-bar .rate-like.voted svg {
  fill: #e8a020;
}

/* Disabled state */
.vact-btn.disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* Voters message (success/error feedback) */
.vact-bar .voters {
  position: absolute;
  bottom: calc(100% + 3px);
  left: 0;
  text-align: center;
  color: #3cbff0;
  background-color: var(--thumb-box-bg);
  border-radius: 3px;
  font-size: 12px;
  white-space: nowrap;
  padding: 2px 8px;
}

/* --- Dropdown overrides for vact-bar --- */
.vact-bar .btn-holder {
  position: relative;
  margin-right: 0;
}
.vact-bar .fav-drop {
  left: 0;
  position: absolute;
  top: calc(100% + 6px);
  z-index: 10;
  background: var(--sort-bg);
  border-radius: 10px;
  padding: 8px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.vact-bar .btn-holder.fav-open .fav-drop {
  opacity: 1;
  visibility: visible;
}
.vact-bar .btn-holder.fav-open .vact-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.vact-bar .btn-holder.fav-open .vact-btn svg {
  fill: #fff;
}

/* Right-aligned dropdown (More button) */
.vact-bar .fav-drop--right {
  left: auto;
  right: 0;
  min-width: 230px;
}

/* Dropdown items */
.vact-bar .fav-drop li {
  padding: 0;
}
.vact-bar .fav-drop li a:not(.vact-share-icon) {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  color: #aaa;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}
.vact-bar .fav-drop li a:not(.vact-share-icon) i {
  display: inline-flex;
  flex-shrink: 0;
}
.vact-bar .fav-drop li a:not(.vact-share-icon) svg {
  width: 16px;
  height: 16px;
  fill: #aaa;
}
@media (hover: hover) {
  .vact-bar .fav-drop li a:not(.vact-share-icon):hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
  }
  .vact-bar .fav-drop li a:not(.vact-share-icon):hover svg {
    fill: #fff;
  }
}

/* Dropdown separator */
.vact-bar .fav-drop li.separator {
  height: 1px;
  background: var(--line);
  margin: 4px 12px;
  padding: 0;
}

/* Dropdown: delete link inside span */
.vact-bar .fav-drop li > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.vact-bar .fav-drop li > span a {
  padding: 8px 0;
}
.vact-bar .fav-drop li > span .delete {
  color: #999;
  font-size: 11px;
  margin-left: 10px;
  flex-shrink: 0;
}
@media (hover: hover) {
  .vact-bar .fav-drop li > span .delete:hover {
    color: #ea1818;
  }
}

/* New Playlist accent */
.vact-new-playlist a {
  color: #ccc !important;
  font-style: italic;
}

/* Report link grey -> red on hover */
.vact-report-link {
  color: #888 !important;
}
@media (hover: hover) {
  .vact-report-link:hover,
  .vact-report-link:hover svg {
    color: #ea1818 !important;
    fill: #ea1818 !important;
  }
}

/* --- Description (always visible, no tabs) --- */
.vact-description {
  margin-bottom: 20px;
  background: #141414;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  padding: 14px 16px;
  position: relative;
}
.vact-description .description {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--desc-color);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
}
.vact-description .description:not(.expanded)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(to bottom, transparent, #141414);
  pointer-events: none;
}
.vact-description .description.expanded {
  -webkit-line-clamp: unset;
  display: block;
}
.vact-description .description.expanded::after {
  display: none;
}

/* --- Report form (inline, hidden by default) --- */
.vact-report-form {
  margin-bottom: 20px;
  padding: 15px;
  background: var(--sort-bg);
  border-radius: 8px;
}

/* --- Model/Sponsor zone --- */
.vact-models-zone {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.vact-model-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #151515;
  border: 1px solid #2a2a2a;
  border-radius: 14px;
  padding: 4px 12px 4px 4px;
  text-decoration: none;
  color: #ccc;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  transition: border-color 0.3s, color 0.3s;
}
.vact-model-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #2a2a32 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M12 12c2.7 0 4.8-2.1 4.8-4.8S14.7 2.4 12 2.4 7.2 4.5 7.2 7.2 9.3 12 12 12zm0 2.4c-3.2 0-9.6 1.6-9.6 4.8v2.4h19.2v-2.4c0-3.2-6.4-4.8-9.6-4.8z'/%3E%3C/svg%3E") center/60% no-repeat;
}
html.light .vact-model-thumb {
  background-color: #e0e0e0;
}
.vact-model-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vact-model-thumb img.fallback-icon {
  display: none;
}
.vact-model-name {
  white-space: nowrap;
}
@media (hover: hover) {
  .vact-model-card:hover {
    border-color: #3cbff0;
    color: #3cbff0;
  }
}

/* --- Categories + Tags zone --- */
.vact-tags-zone {
  margin-bottom: 15px;
}
.vact-tags-zone .buttons-row {
  height: 36px;
  gap: 6px;
  flex-wrap: wrap;
}
.vact-tags-zone .buttons-row.open {
  height: auto;
}
.vact-tags-zone .js_show-button {
  padding: 7px 10px !important;
  font-size: 13px !important;
  border-radius: 18px !important;
  height: auto !important;
  border-width: 1px !important;
  flex-shrink: 0;
}

/* Category pills (filled) */
.vact-cat {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  background: #151515;
  border: 1px solid #2a2a2a;
  color: #aaa;
  border-radius: 18px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.3s, color 0.3s;
}
@media (hover: hover) {
  .vact-cat:hover {
    border-color: #3cbff0;
    color: #3cbff0;
  }
}

/* Tag pills (outline only) */
.vact-tag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid #333;
  color: #999;
  border-radius: 18px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.3s, color 0.3s;
}
@media (hover: hover) {
  .vact-tag:hover {
    border-color: #aaa;
    color: #ccc;
  }
}

/* =============================================
   VIDEO COMMENTS TEASER (.vct)
   ============================================= */
.vct {
background: #151515;
border: 1px solid #2a2a2a;
border-radius: 18px;
padding: 6px 16px;
margin: 12px 0;
cursor: pointer;
transition: border-color 0.2s, background 0.2s;
}
.vct:hover {
  border-color: #3cbff0;
  background: #1a1a1a;
}
.vct__header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}
.vct__icon {
  width: 16px;
  height: 16px;
  fill: #888;
  flex-shrink: 0;
}
.vct__label {
  font-size: 14px;
  font-weight: 600;
  color: #ccc;
  flex-shrink: 0;
}
.vct__count {
  font-size: 14px;
  color: #666;
  flex-shrink: 0;
}
.vct__body {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
  height: 1.4em;
}
.vct__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.vct__slide--active {
  opacity: 1;
}
.vct__slide img {
  display: inline;
  height: 1em;
  width: auto;
  vertical-align: -0.1em;
  margin: 0 1px;
}
.vct__empty {
  font-size: 13px;
  color: #666;
  font-style: italic;
}
.vct__cta {
  font-size: 13px;
  color: #666;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Light theme */
html.light .vct {
  background: #f5f5f5;
  border-color: #d9d9d9;
}
html.light .vct:hover {
  border-color: #0098c8;
  background: #f0ece3;
}
html.light .vct__icon {
  fill: #999;
}
html.light .vct__label {
  color: #333;
}
html.light .vct__count {
  color: #999;
}
html.light .vct__slide {
  color: #666;
}
html.light .vct__empty {
  color: #999;
}
html.light .vct__cta {
  color: #999;
}

/* Responsive */
@media (max-width: 575px) {
  .vct { padding: 10px 16px; }
  .vct__header {
    flex-wrap: wrap;
  }
  .vct__body {
    flex-basis: 100%;
    order: 10;
    height: 2.4em;
    margin-bottom: -4px;
  }
  .vct__slide {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .vct__cta {
    margin-left: auto;
  }
}

/* --- Playlists mini-cards --- */
.vact-playlists-minicards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
  overflow: hidden;
}
.vact-minicards-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 0;
}
.vact-minicards-scroll::-webkit-scrollbar {
  display: none;
}
.vact-minicard {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 220px;
  min-width: 220px;
  background: #151515;
  border: 1px solid #1e1e1e;
  border-radius: 10px;
  padding: 8px;
  text-decoration: none;
  color: #ccc;
  transition: border-color 0.3s, color 0.3s;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.vact-minicard-thumb {
  position: relative;
  width: 60px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0a0a0a;
}
.vact-minicard-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vact-minicard-nothumb {
  display: block;
  width: 100%;
  height: 100%;
  background: #1a1a1a;
}
.vact-minicard-count {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.75);
  color: #ddd;
  font-size: 9px;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1.2;
}
.vact-minicard-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.vact-minicard-title {
  font-size: 12px;
  font-weight: 700;
  color: #ccc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vact-minicard-meta {
  font-size: 11px;
  color: #666;
}
.vact-minicard-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #3cbff0 0%, rgba(212, 168, 83, 0.2) 100%);
  opacity: 0;
  transition: opacity 0.3s;
}
@media (hover: hover) {
  .vact-minicard:hover {
    border-color: #3cbff0;
  }
  .vact-minicard:hover .vact-minicard-title {
    color: #3cbff0;
  }
  .vact-minicard:hover .vact-minicard-bar {
    opacity: 1;
  }
}

/* =============================================
   VIDEO COMMENTS SECTION REDESIGN
   ============================================= */
.vact-comments-section {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #1a1a1a;
  scroll-margin-top: 20px;
}

/* --- Header --- */
.vact-comments-header {
  margin-bottom: 20px;
}
.vact-comments-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #eee;
  display: flex;
  align-items: center;
  gap: 10px;
}
.vact-comments-header h3 svg {
  width: 20px;
  height: 20px;
  fill: #888;
}
.vact-comments-count {
  color: #666;
  font-weight: 400;
  font-size: 15px;
}

/* --- Form --- */
.vact-comments-section .block-new-comment {
  margin-bottom: 28px;
}
.vact-comments-section .block-new-comment .row {
  margin-bottom: 10px;
}
.vact-comments-section .block-new-comment label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,.25);
  margin-bottom: 6px;
}

/* Expandable textarea */
.vact-expandable {
  min-height: 44px !important;
  height: 44px;
  resize: none;
  transition: height 0.3s ease, min-height 0.3s ease;
  line-height: 22px;
}
.vact-expandable:focus,
.vact-expandable.expanded {
  min-height: 88px !important;
  height: 88px;
}
.vact-comments-section .comment-holder textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 16px;
  color: #ddd;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s;
}
.vact-comments-section .comment-holder textarea:focus {
  border-color: #3cbff0;
  outline: none;
}
.vact-comments-section .comment-holder textarea::placeholder {
  color: #555;
}
.vact-comments-section .comment-holder input[type="text"] {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 10px 16px;
  color: #ddd;
  font-size: 14px;
}
.vact-comments-section .comment-holder input[type="text"]:focus {
  border-color: #3cbff0;
  outline: none;
}

/* Comment submit actions (shown on textarea focus via JS) */
.vact-comment-actions {
  margin-top: 10px;
  display: none;
}
.comment-holder:focus-within .vact-comment-actions,
.vact-comment-actions.visible {
  display: block;
}
.vact-comment-actions .bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.vact-comment-actions .submit,
.vact-comment-actions input[type="submit"] {
  width: auto !important;
  display: inline-block !important;
}
.vact-comments-section .comment-holder .bottom input[type="submit"],
.vact-comments-section .comment-holder input[type="submit"] {
  background: linear-gradient(135deg, #3cbff0, #0098c8);
  color: #000;
  border: none;
  border-radius: 20px;
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.2s;
  max-width: none;
  height: auto;
}
.vact-comments-section .comment-holder .bottom input[type="submit"]:hover,
.vact-comments-section .comment-holder input[type="submit"]:hover {
  filter: brightness(1.1);
}

/* Success / notice */
.vact-comments-section .success:not(.hidden) {
  color: #4caf50;
  font-size: 14px;
  padding: 12px 0;
}

/* --- Comment items --- */
.vact-comments-section .list-comments .item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.5;
}
.vact-comments-section .list-comments .item:last-child {
  border-bottom: none;
}

/* Avatar */
.vact-comments-section .list-comments .image {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #1a1a1a;
  margin-right: 0;
}
.vact-comments-section .list-comments .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vact-comments-section .list-comments .image .no-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0;
  color: transparent;
}
.vact-comments-section .list-comments .image .no-thumb .svg-icon {
  width: 18px;
  height: 18px;
  fill: #555;
}
.vact-comments-section .list-comments .image .icon-user {
  font-size: 0;
}

/* Text block */
.vact-comments-section .list-comments .text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

/* Username + date row */
.vact-comments-section .list-comments .comment-info {
  display: flex;
  align-items: center;
  flex: 1 1;
  font-size: 13px;
  color: #666;
  order: 1;
  gap: 0;
}
.vact-comments-section .list-comments .comment-info .username {
  font-size: 14px;
  font-weight: 600;
  color: #ccc;
  margin-right: 10px;
  transition: color 0.2s;
}
.vact-comments-section .list-comments .comment-info .username:hover {
  color: #3cbff0;
}
.vact-comments-section .list-comments .date-holder {
  font-size: 12px;
  color: #555;
}
.vact-comments-section .list-comments .date-holder i {
  display: none;
}

/* Comment text */
.vact-comments-section .list-comments .comment-text {
  flex: 1 1 100%;
  order: 3;
  font-size: 14px;
  line-height: 1.6;
  color: #bbb;
  padding: 6px 0 0;
}
.vact-comments-section .list-comments .comment-text img {
  height: 1.2em;
  width: auto;
  vertical-align: -0.15em;
}

/* Rating + like/dislike */
.vact-comments-section .list-comments .comment-options {
  order: 2;
  display: flex;
  align-items: center;
  gap: 2px;
}
.vact-comments-section .list-comments .comment-options span {
  background: none;
  padding: 4px 8px;
  font-size: 12px;
  color: #555;
  border-radius: 0;
  margin: 0;
}
.vact-comments-section .list-comments .comment-options span.positive {
  background: none;
  color: #4caf50;
}
.vact-comments-section .list-comments .comment-options span.negative {
  background: none;
  color: #e53935;
}
.vact-comments-section .list-comments .comment-options .comment-like,
.vact-comments-section .list-comments .comment-options .comment-dislike {
  background: none;
  border: none;
  min-width: 28px;
  height: 28px;
  border-radius: 6px;
  transition: background 0.2s;
}
.vact-comments-section .list-comments .comment-options .comment-like:hover,
.vact-comments-section .list-comments .comment-options .comment-dislike:hover {
  background: rgba(255,255,255,0.06);
}
.vact-comments-section .list-comments .comment-options .comment-like svg,
.vact-comments-section .list-comments .comment-options .comment-dislike svg {
  fill: #555;
  width: 14px;
  height: 14px;
}
.vact-comments-section .list-comments .comment-options .comment-like:hover svg {
  fill: #4caf50;
}
.vact-comments-section .list-comments .comment-options .comment-dislike:hover svg {
  fill: #e53935;
}
.vact-comments-section .list-comments .comment-options .comment-edit {
  font-size: 12px;
  color: #555;
  background: none;
  min-width: auto;
  height: auto;
  padding: 4px 8px;
  border-radius: 6px;
}
.vact-comments-section .list-comments .comment-options .comment-edit:hover {
  color: #3cbff0;
  background: rgba(60,191,240,0.1);
}

/* Dimmed low-rated comment */
.vact-comments-section .list-comments .dim-comment {
  opacity: 0.4;
  transition: opacity 0.3s;
}
.vact-comments-section .list-comments .dim-comment:hover {
  opacity: 0.8;
}

/* Pagination / load more */
.vact-comments-section .list-comments + .pagination,
.vact-comments-section .load-more {
  padding-top: 8px;
}
.vact-comments-section .load-more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #3cbff0;
  font-size: 14px;
  font-weight: 600;
}
.vact-comments-section .load-more a:hover {
  text-decoration: underline;
}

/* --- Light theme --- */
html.light .vact-comments-section {
  border-top-color: #e5e5e5;
}
html.light .vact-comments-header h3 {
  color: #222;
}
html.light .vact-comments-header h3 svg {
  fill: #999;
}
html.light .vact-comments-count {
  color: #999;
}
html.light .vact-comments-section .block-new-comment label {
  color: rgba(0,0,0,.35);
}
html.light .vact-comments-section .comment-holder textarea {
  background: #fff;
  border-color: #ddd;
  color: #333;
}
html.light .vact-comments-section .comment-holder textarea::placeholder {
  color: #aaa;
}
html.light .vact-comments-section .comment-holder textarea:focus {
  border-color: #0098c8;
}
html.light .vact-comments-section .comment-holder input[type="text"] {
  background: #fff;
  border-color: #ddd;
  color: #333;
}
html.light .vact-comments-section .comment-holder input[type="text"]:focus {
  border-color: #0098c8;
}
html.light .vact-comments-section .comment-holder .bottom input[type="submit"],
html.light .vact-comments-section .comment-holder input[type="submit"] {
  background: linear-gradient(135deg, #0098c8, #9a7209);
}
html.light .vact-comments-section .list-comments .item {
  border-bottom-color: rgba(0,0,0,0.06);
}
html.light .vact-comments-section .list-comments .image {
  background: #f0f0f0;
}
html.light .vact-comments-section .list-comments .image .no-thumb .svg-icon {
  fill: #bbb;
}
html.light .vact-comments-section .list-comments .comment-info .username {
  color: #333;
}
html.light .vact-comments-section .list-comments .comment-info .username:hover {
  color: #0098c8;
}
html.light .vact-comments-section .list-comments .date-holder {
  color: #aaa;
}
html.light .vact-comments-section .list-comments .comment-text {
  color: #444;
}
html.light .vact-comments-section .list-comments .comment-options span {
  color: #aaa;
}
html.light .vact-comments-section .list-comments .comment-options span.positive {
  color: #388e3c;
}
html.light .vact-comments-section .list-comments .comment-options span.negative {
  color: #d32f2f;
}
html.light .vact-comments-section .list-comments .comment-options .comment-like svg,
html.light .vact-comments-section .list-comments .comment-options .comment-dislike svg {
  fill: #bbb;
}
html.light .vact-comments-section .list-comments .comment-options .comment-like:hover svg {
  fill: #388e3c;
}
html.light .vact-comments-section .list-comments .comment-options .comment-dislike:hover svg {
  fill: #d32f2f;
}
html.light .vact-comments-section .list-comments .comment-options .comment-like:hover,
html.light .vact-comments-section .list-comments .comment-options .comment-dislike:hover {
  background: rgba(0,0,0,0.04);
}
html.light .vact-comments-section .list-comments .comment-options .comment-edit:hover {
  color: #0098c8;
  background: rgba(0,152,200,0.08);
}

/* --- Responsive --- */
@media (max-width: 575px) {
  .vact-comments-section .list-comments .image {
    width: 32px;
    height: 32px;
  }
  .vact-comments-section .list-comments .item {
    gap: 10px;
    padding: 12px 0;
  }
  .vact-comments-section .list-comments .comment-info {
    flex-wrap: wrap;
    gap: 4px;
  }
  .vact-comments-section .list-comments .comment-info .username {
    font-size: 13px;
  }
  .vact-comments-section .list-comments .comment-text {
    font-size: 13px;
  }
  .vact-comments-section .list-comments .comment-options .comment-like,
  .vact-comments-section .list-comments .comment-options .comment-dislike {
    min-width: 24px;
    height: 24px;
  }
}

/* Share panel inside More dropdown */
.vact-share-panel {
  padding: 12px 16px !important;
}
.vact-share-icons {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.vact-share-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #333;
  transition: opacity 0.2s;
}
.vact-share-icon svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}
.vact-share-icon:hover {
  opacity: 0.8;
}
.vact-si-x { background: #000; }
.vact-si-tg { background: #0088cc; }
.vact-si-wa { background: #25D366; }
.vact-si-rd { background: #FF4500; }
.vact-share-url {
  display: flex;
  gap: 6px;
}
.vact-share-input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  color: #aaa;
  font-size: 12px;
  padding: 6px 8px;
  outline: none;
}
.vact-share-input:focus {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.vact-share-copy {
  background: #555;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.vact-share-copy:hover {
  background: #777;
}
.vact-share-copy.copied {
  background: #25D366;
}

/* --- Light theme overrides --- */
html.light .vact-bar .fav-drop {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}
html.light .vact-bar .fav-drop li a:not(.vact-share-icon) {
  color: #666;
}
html.light .vact-bar .fav-drop li a:not(.vact-share-icon) svg {
  fill: #666;
}
html.light .vact-bar .fav-drop li a:not(.vact-share-icon):hover {
  color: #222;
  background: rgba(0, 0, 0, 0.05);
}
html.light .vact-bar .fav-drop li a:not(.vact-share-icon):hover svg {
  fill: #222;
}
html.light .vact-share-icon { background: #e0e0e0; }
html.light .vact-share-icon svg { fill: #333; }
html.light .vact-si-x { background: #000; }
html.light .vact-si-x svg { fill: #fff; }
html.light .vact-si-tg { background: #0088cc; }
html.light .vact-si-tg svg { fill: #fff; }
html.light .vact-si-wa { background: #25D366; }
html.light .vact-si-wa svg { fill: #fff; }
html.light .vact-si-rd { background: #FF4500; }
html.light .vact-si-rd svg { fill: #fff; }
html.light .vact-share-input {
  background: #f5f5f5;
  border-color: #ddd;
  color: #666;
}
html.light .vact-share-copy {
  background: #ddd;
  color: #333;
}
html.light .vact-share-copy:hover { background: #ccc; }
html.light .vact-bar .btn-holder.fav-open .vact-btn {
  color: #333;
  background: rgba(0, 0, 0, 0.06);
}

/* Light theme: pills */
html.light .vact-btn {
  background: #f5f5f5;
  border-color: #d9d9d9;
}
html.light .vact-bar .rate-like.voted {
  background: rgba(184, 134, 11, 0.10);
  border-color: #0098c8;
  color: #0098c8;
}
html.light .vact-bar .rate-like.voted svg {
  fill: #0098c8;
}

/* Light theme: vrow uploader */
html.light .vrow-avatar--placeholder {
  background: #e0e0e0;
}
html.light .vrow-avatar--placeholder svg {
  fill: #999;
}
html.light .vrow-name {
  color: #222;
}
@media (hover: hover) {
  html.light .vrow-name:hover {
    color: #0098c8;
  }
}
html.light .vrow-follow--primary {
  background: #3cbff0;
  border-color: #3cbff0;
  color: #000;
}
html.light .vrow-follow--subscribed,
html.light .vrow-follow--primary.done {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,152,200,0.3);
  color: #0098c8;
}
html.light .vrow-stats {
  color: #999;
}
html.light .vrow-sep {
  background: #ddd;
}
@media (max-width: 767px) {
  html.light .vrow-uploader {
    background: #f0f0f0;
    border-color: #ddd;
  }
}

/* Shorts overlay (desktop iframe) */
.shorts-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.shorts-overlay.visible { opacity: 1; }
.shorts-overlay-close {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  transition: background 0.2s;
}
.shorts-overlay-close:hover { background: rgba(255,255,255,0.2); }
.shorts-overlay-close svg { width: 24px; height: 24px; fill: #fff; }
.shorts-overlay iframe {
  width: 100%;
  max-width: 420px;
  height: 100vh;
  height: 100dvh;
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

/* Light theme: description block */
html.light .vact-description {
  background: #f7f7f7;
  border-color: #e5e5e5;
}
html.light .vact-description .description:not(.expanded)::after {
  background: linear-gradient(to bottom, transparent, #f7f7f7);
}

/* Light theme: model cards */
html.light .vact-model-card {
  background: #f5f5f5;
  border-color: #d9d9d9;
  color: #555;
}
html.light .vact-model-card:hover {
  border-color: #0098c8;
  color: #0098c8;
}

/* Light theme: categories + tags */
html.light .vact-cat {
  background: #f5f5f5;
  border-color: #d9d9d9;
  color: #666;
}
html.light .vact-cat:hover {
  border-color: #0098c8;
  color: #0098c8;
}
html.light .vact-tag {
  border-color: #e0e0e0;
  color: #999;
}
html.light .vact-tag:hover {
  border-color: #666;
  color: #666;
}

/* Light theme: mini-cards */
html.light .vact-minicard {
  background: #f5f5f5;
  border-color: #e0e0e0;
}
html.light .vact-minicard-title {
  color: #333;
}
html.light .vact-minicard-meta {
  color: #999;
}
html.light .vact-minicard-count {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
}
html.light .vact-minicard-thumb {
  background: #e0e0e0;
}
html.light .vact-minicard-nothumb {
  background: #d0d0d0;
}
@media (hover: hover) {
  html.light .vact-minicard:hover {
    border-color: #0098c8;
  }
  html.light .vact-minicard:hover .vact-minicard-title {
    color: #0098c8;
  }
}

/* --- Mobile responsive --- */
@media (max-width: 767px) {
  .vact-bar {
    flex-wrap: nowrap;
    padding: 8px 0;
    margin-bottom: 10px;
  }
  .vact-btn {
    height: 40px;
    padding: 0 13px;
    font-size: 13px;
  }
  .vact-btn svg {
    width: 20px;
    height: 20px;
  }
  .vact-left,
  .vact-right {
    gap: 3px;
  }
  .vact-btn .vact-count {
    font-size: 13px;
  }
  .vact-bar .fav-drop {
    min-width: 180px;
  }
  .vact-comments-header h3 {
    font-size: 18px;
  }
  /* vrow: uploader left + actions right on a single mobile row */
  .vrow {
    gap: 8px;
    padding: 8px 0;
    flex-wrap: nowrap;
    align-items: center;
    min-width: 0;
  }
  .vrow-uploader {
    flex: 0 1 46%;
    width: auto;
    max-width: 46%;
    min-width: 0;
    box-sizing: border-box;
    gap: 8px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 22px;
    padding: 5px 12px 5px 5px;
  }
  .vrow-info {
    flex: 1 1 auto;
    min-width: 0;
  }
  .vrow-top {
    min-width: 0;
  }
  .vrow .vact-bar {
        flex: 1 1 0;
        width: auto;
        max-width: none;
        min-width: 0;
        margin-left: auto;
        scrollbar-width: none;
        justify-content: flex-end;
  }
  .vrow .vact-bar::-webkit-scrollbar {
    display: none;
  }
  .vrow .vact-bar .vact-left,
  .vrow .vact-bar .vact-right {
    flex-shrink: 0;
  }
  .vrow-uploader ~ .vact-bar .vact-spacer {
    display: none;
  }
  .vrow-avatar {
    width: 32px;
    height: 32px;
  }
  .vrow-name {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    font-size: 13px;
  }
  .vrow-follow {
    flex-shrink: 0;
    height: 26px;
    padding: 0 10px;
    font-size: 12px;
    border-radius: 13px;
  }
  .vrow-stats {
    display: none;
  }
  /* Tags zone: horizontal scroll on mobile */
  .vact-tags-zone {
    position: relative;
  }
  .vact-tags-zone .buttons-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    height: auto;
    padding-right: 30px;
  }
  .vact-tags-zone .buttons-row::-webkit-scrollbar {
    display: none;
  }
  .vact-tags-zone .buttons-row .js_show-button {
    display: none !important;
  }
  .vact-tags-zone::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, var(--main-background));
    pointer-events: none;
    z-index: 1;
  }
}

@media (max-width: 425px) {
  .vact-btn {
    height: 38px;
    padding: 0 11px;
  }
  .vact-btn svg {
    width: 18px;
    height: 18px;
  }
  .vact-left,
  .vact-right {
    gap: 2px;
  }
  .vrow {
    gap: 6px;
  }
  .vrow-uploader {
    flex-basis: 44%;
    max-width: 44%;
    gap: 6px;
    padding: 4px 10px 4px 4px;
    border-radius: 20px;
  }
  .vrow-avatar {
    width: 26px;
    height: 26px;
  }
  .vrow-name {
    max-width: none;
    font-size: 12px;
  }
  .vrow-follow {
    height: 24px;
    padding: 0 8px;
    font-size: 11px;
    border-radius: 12px;
  }
  .vact-minicard {
    width: 190px;
    min-width: 190px;
    padding: 6px;
  }
  .vact-minicard-thumb {
    width: 50px;
    height: 34px;
  }
}


/* ============================================================
   ALBUM VIEW PAGE — REDESIGN
   ============================================================ */

/* --- Full-width layout (remove 2-column) --- */
.album-view-page {
  max-width: 100%;
}
.album-view-page .video-inner,
.album-view-page .video-cols,
.album-view-page .col-video,
.album-view-page .col-asside {
  display: block;
  width: 100%;
}

/* --- Header --- */
.album-header {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 15px;
}
.album-avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: #24242a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.album-avatar a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.album-avatar a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.album-avatar a .svg-icon {
  width: 24px;
  height: 24px;
  fill: #3cbff0;
}
html.light .album-avatar {
  background: #e8e8e8;
}

.album-header-right {
  flex: 1;
  min-width: 0;
}
.album-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 6px;
  color: #fff;
}
html.light .album-title {
  color: #1a1a1a;
}

/* --- Username --- */
.album-username {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #3cbff0;
  text-decoration: none;
  margin-bottom: 3px;
  transition: color 0.2s;
}
.album-username:hover {
  color: #5dd0ff;
  text-decoration: underline;
}
html.light .album-username {
  color: #0098c8;
}
html.light .album-username:hover {
  color: #9a7209;
}

/* --- Stats row --- */
.album-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #999;
  font-size: 13px;
  flex-wrap: wrap;
}
.album-stats .stat-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.album-stats .stat-item .svg-icon {
  width: 14px;
  height: 14px;
  fill: #666;
}
.album-stats .meta-dot {
  color: #555;
}

/* --- Album actions bar now uses .vact-bar (shared with video page) --- */

/* Section titles (description, comments) */
.album-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #2a2a2a;
}
.album-section-title .svg-icon {
  width: 18px;
  height: 18px;
  fill: #3cbff0;
  flex-shrink: 0;
}
html.light .album-section-title {
  color: #1a1a1a;
  border-bottom-color: #e0e0e0;
}

/* Description text (simple, no card) */
.album-description-text {
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.7;
  color: #999;
}
.album-description-text a {
  color: #3cbff0;
}
html.light .album-description-text {
  color: #666;
}

/* Report section */
.album-report-section {
  margin-top: 20px;
  padding: 20px;
  background: #1a1a1f;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
}
.album-report-section.hidden {
  display: none;
}
.album-report-section .block-flagging {
  max-width: 600px;
}
.album-report-section .block-radios .row {
  margin-bottom: 8px;
}
.album-report-section .block-textarea {
  margin-top: 12px;
}
.album-report-section .submit {
  margin-top: 12px;
}
html.light .album-report-section {
  background: #f8f8f8;
  border-color: #e0e0e0;
}

/* --- Toolbar (view modes + tags) --- */
.album-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
.album-view-modes {
  display: flex;
  gap: 4px;
}
.album-view-modes .mode-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #333;
  background: transparent;
  color: #888;
  cursor: pointer;
  transition: all 0.2s;
}
.album-view-modes .mode-btn:hover {
  border-color: #555;
  color: #ccc;
}
.album-view-modes .mode-btn.active {
  border-color: #3cbff0;
  color: #3cbff0;
  background: rgba(212, 168, 83, 0.1);
}
html.light .album-view-modes .mode-btn {
  border-color: #ccc;
  color: #999;
}
html.light .album-view-modes .mode-btn:hover {
  border-color: #999;
  color: #555;
}
html.light .album-view-modes .mode-btn.active {
  border-color: #3cbff0;
  color: #3cbff0;
  background: rgba(212, 168, 83, 0.08);
}

/* Tags */
.album-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.album-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 16px;
  background: #24242a;
  color: #ccc;
  font-size: 12px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.album-tag .svg-icon {
  width: 12px;
  height: 12px;
  fill: currentColor;
}
.album-tag:hover {
  background: #333;
  color: #fff;
}
.album-tag.gold {
  background: rgba(212, 168, 83, 0.15);
  color: #3cbff0;
}
.album-tag.gold:hover {
  background: rgba(212, 168, 83, 0.25);
}
html.light .album-tag {
  background: #eee;
  color: #555;
}
html.light .album-tag:hover {
  background: #ddd;
  color: #333;
}
html.light .album-tag.gold {
  background: rgba(212, 168, 83, 0.12);
  color: #0098c8;
}

/* --- Masonry Photo Grid --- */
.album-masonry {
  position: relative;
}
.album-masonry[data-mode="masonry"] {
  display: block !important;
  columns: 5;
  column-gap: 6px;
}
.album-masonry[data-mode="masonry"] .masonry-item {
  display: block !important;
  break-inside: avoid;
  margin-bottom: 6px;
  border-radius: 6px;
  overflow: hidden;
  position: relative !important;
  width: auto !important;
  height: auto !important;
  aspect-ratio: auto !important;
  float: none !important;
}
.album-masonry[data-mode="masonry"] .masonry-item img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  position: static !important;
  object-fit: initial !important;
  aspect-ratio: auto !important;
  max-height: none !important;
  transition: transform 0.3s ease;
}
@media (hover: hover) {
  .album-masonry[data-mode="masonry"] .masonry-item:hover img {
    transform: scale(1.03);
  }
}

/* Grid uniform mode */
.album-masonry[data-mode="grid"] {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.album-masonry[data-mode="grid"] .masonry-item {
  width: calc(20% - 5px);
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  display: block;
}
.album-masonry[data-mode="grid"] .masonry-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
@media (hover: hover) {
  .album-masonry[data-mode="grid"] .masonry-item:hover img {
    transform: scale(1.05);
  }
}

/* Large mode */
.album-masonry[data-mode="large"] {
  columns: 2;
  column-gap: 8px;
}
.album-masonry[data-mode="large"] .masonry-item {
  display: block;
  break-inside: avoid;
  margin-bottom: 8px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.album-masonry[data-mode="large"] .masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}
@media (hover: hover) {
  .album-masonry[data-mode="large"] .masonry-item:hover img {
    transform: scale(1.02);
  }
}

/* Private/restricted overlay */
.album-masonry:has(.message) {
  position: relative;
}
.album-masonry:has(.message)::after {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.76);
  z-index: 1;
  pointer-events: none;
}
.album-masonry .message {
  position: absolute;
  top: 50%;
  left: 50%;
  text-align: center;
  width: 90%;
  max-width: 500px;
  font-size: 16px;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: #fff;
}
.album-masonry .message a {
  color: #3cbff0;
}
.album-masonry .message a:hover {
  text-decoration: underline;
}
html.light .album-masonry .message a {
  color: #0098c8;
}

/* --- (Load More + Tabs removed — flat layout) --- */

/* --- Related albums section --- */
.album-related-section {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #2a2a2a;
}
html.light .album-related-section {
  border-top-color: #e0e0e0;
}
.album-related-section .ralated-holder {
  width: 100%;
}
.album-related-section .ralated-holder .thumbs.albums-thumbs .thumb {
  width: 16.66%;
}

/* --- Video related block mobile polish --- */
#list_videos_related_videos_items,
#list_videos_related_videos_items .thumbs,
#list_videos_related_videos_items .grid-temp {
  max-width: 100%;
  min-width: 0;
}

#list_videos_related_videos_items {
  overflow-x: clip;
}

@media (max-width: 767px) {
  #list_videos_related_videos_filter_list {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
    padding-bottom: 8px;
    margin-bottom: -8px;
  }

  #list_videos_related_videos_filter_list::-webkit-scrollbar {
    display: none;
  }

  #list_videos_related_videos_filter_list > * {
    flex: 0 0 auto;
  }

  #list_videos_related_videos_items {
    overflow-x: hidden;
  }

  #list_videos_related_videos_items .grid-temp {
    width: 100%;
    margin: 0;
  }

  #list_videos_related_videos_items .grid-temp > li {
    min-width: 0;
  }

  #list_videos_related_videos_items .thumb,
  #list_videos_related_videos_items .thumb-box,
  #list_videos_related_videos_items .img-holder,
  #list_videos_related_videos_items .title-row,
  #list_videos_related_videos_items .thumb-bottom {
    min-width: 0;
    max-width: 100%;
  }

  #list_videos_related_videos_items li.duboi,
  #list_videos_related_videos_items li.duboi2 {
    margin-left: 0;
    margin-right: 0;
  }
}

/* --- Comments section (always visible) --- */
.album-comments-section {
  margin-top: 28px;
  padding-top: 0;
}
.album-comments-section .comment-holder {
  margin-top: 0;
}
.album-comments-section .block-new-comment {
  margin-bottom: 20px;
}
.album-comments-section .textarea {
  border-radius: 8px;
  min-height: 80px;
}
.album-comments-section .submit {
  margin-top: 10px;
  padding: 10px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

/* --- Responsive --- */

/* Masonry: 4 columns at <= 1200px */
@media (max-width: 1200px) {
  .album-masonry[data-mode="masonry"] {
    columns: 4;
  }
  .album-masonry[data-mode="grid"] .masonry-item {
    width: calc(25% - 5px);
  }
  .album-related-section .ralated-holder .thumbs.albums-thumbs .thumb {
    width: 20%;
  }
}

/* 3 columns at <= 900px */
@media (max-width: 900px) {
  .album-masonry[data-mode="masonry"] {
    columns: 3;
  }
  .album-masonry[data-mode="grid"] .masonry-item {
    width: calc(33.33% - 4px);
  }
  .album-masonry[data-mode="large"] {
    columns: 2;
  }
  .album-related-section .ralated-holder .thumbs.albums-thumbs .thumb {
    width: 25%;
  }
}

/* Mobile <= 640px */
@media (max-width: 640px) {
  .album-header {
    gap: 10px;
  }
  .album-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }
  .album-avatar .svg-icon {
    width: 20px;
    height: 20px;
  }
  .album-title {
    font-size: 17px;
  }
  .album-stats {
    font-size: 12px;
  }
  .album-action-btn {
    padding: 5px 8px;
    font-size: 12px;
  }

  .album-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .album-masonry[data-mode="masonry"] {
    columns: 2;
  }
  .album-masonry[data-mode="grid"] .masonry-item {
    width: calc(50% - 3px);
  }
  .album-masonry[data-mode="large"] {
    columns: 1;
  }

  .album-related-section .ralated-holder .thumbs.albums-thumbs .thumb {
    width: 50%;
  }

  .album-actions-bar {
    gap: 6px;
    padding: 12px 0;
  }
  .album-action-btn {
    padding: 8px 12px;
    font-size: 13px;
    gap: 5px;
  }
  .album-action-btn .svg-icon {
    width: 16px;
    height: 16px;
  }
  .album-action-btn .action-label {
    display: none;
  }
  .action-divider {
    height: 20px;
    margin: 0 2px;
  }
  .album-report-section {
    padding: 14px;
  }
  .album-section-title {
    font-size: 15px;
  }
}

/* Very small screens */
@media (max-width: 400px) {
  .album-related-section .ralated-holder .thumbs.albums-thumbs .thumb {
    width: 100%;
  }
}
/* ============================================
   PLAYLIST PAGE — YouTube-style layout
   ============================================ */

.pl-container {
  max-width: 1400px;
}

/* Page grid: player-area + sidebar + content-area */
.pl-page {
  display: grid;
  grid-template-columns: 1fr 380px;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "player sidebar"
    "content sidebar";
  gap: 24px;
  align-items: start;
}

.pl-player-area {
  grid-area: player;
  min-width: 0;
  overflow: hidden;
}

.pl-content-area {
  grid-area: content;
  min-width: 0;
}

/* Player container */
.pl-player-area .player.video {
  max-width: 100%;
  overflow: hidden;
}

/* ── Now Playing Bar ── */
.pl-now-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgb(60, 191, 240);
  color: #000;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  margin-bottom: 20px;
}

.pl-now-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.pl-now-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3cbff0;
  flex-shrink: 0;
  animation: plPulse 1.5s ease-in-out infinite;
}

@keyframes plPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.pl-now-label {
  flex-shrink: 0;
}

.pl-now-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.pl-now-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 12px;
}

.pl-now-pos {
  flex-shrink: 0;
  opacity: 0.7;
  font-size: 13px;
}

.pl-now-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: #000;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s;
  padding: 0;
}

.pl-now-nav-btn:hover:not(:disabled) {
  background: rgba(0, 0, 0, 0.4);
}

.pl-now-nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

/* ── Playlist Info Section ── */
.pl-info {
  margin-bottom: 24px;
}

.pl-main-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.3;
}

.pl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  color: #888;
  margin-bottom: 16px;
}

.pl-meta span:not(:last-child)::after {
  content: '';
}

/* Actions row */
.pl-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  margin-bottom: 16px;
}

.pl-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pl-act-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  background: #272727;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

.pl-act-btn:hover {
  background: #3a3a3a;
}

.pl-act-btn .svg-icon {
  width: 18px;
  height: 18px;
}

.pl-sub-btn.active {
  background: rgb(60, 191, 240);
  color: #000;
}

.pl-creator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ccc;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.pl-creator:hover {
  color: #fff;
}

.pl-creator-av {
  border-radius: 50%;
  object-fit: cover;
}

/* Share panel */
.pl-share-panel {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 12px;
}

.pl-share-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pl-share-row label {
  font-size: 13px;
  color: #888;
  flex-shrink: 0;
}

.pl-share-input {
  flex: 1;
  background: #272727;
  border: 1px solid #444;
  border-radius: 6px;
  color: #fff;
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
}

.pl-share-input:focus {
  border-color: rgb(60, 191, 240);
}

/* Description */
.pl-desc {
  font-size: 14px;
  line-height: 1.5;
  color: #aaa;
  margin-bottom: 12px;
}

/* Tags */
.pl-tags, .pl-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pl-tag {
  display: inline-block;
  padding: 4px 12px;
  background: #272727;
  color: #ccc;
  font-size: 12px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.pl-tag:hover {
  background: #3a3a3a;
  color: #fff;
}

/* Comments */
.pl-comments {
  margin-top: 24px;
}

/* ── Playlist Sidebar ── */
.pl-sidebar {
  grid-area: sidebar;
  border-radius: 12px;
  background: #181818;
  border: 1px solid #272727;
  overflow: hidden;
  position: sticky;
  top: 80px;
}

/* Sidebar header */
.pl-sb-head {
  padding: 16px;
  border-bottom: 1px solid #272727;
}

.pl-sb-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.pl-sb-icon {
  flex-shrink: 0;
  color: rgb(60, 191, 240);
}

.pl-sb-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pl-sb-meta {
  font-size: 12px;
  color: #888;
  margin-bottom: 10px;
}

/* Progress bar */
.pl-sb-progress {
  height: 3px;
  background: #333;
  border-radius: 2px;
  overflow: hidden;
}

.pl-sb-progress-fill {
  height: 100%;
  background: rgb(60, 191, 240);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* Sidebar video list */
.pl-sb-list {
  max-height: 540px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #444 transparent;
}

.pl-sb-list::-webkit-scrollbar {
  width: 4px;
}

.pl-sb-list::-webkit-scrollbar-track {
  background: transparent;
}

.pl-sb-list::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 2px;
}

/* Sidebar items wrapper */
.pl-sb-items-wrap {
  display: contents;
}

/* Sidebar item (is an <a> tag) */
a.pl-sb-item,
a.pl-sb-item:hover,
a.pl-sb-item:visited {
  text-decoration: none;
  color: inherit;
}

.pl-sb-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.15s;
  border-left: 3px solid transparent;
}

.pl-sb-item:hover {
  background: #222;
}

/* Active item */
.pl-sb-item.active {
  border-left-color: rgb(60, 191, 240);
  background: rgba(232, 160, 32, 0.06);
}

.pl-sb-item.active .pl-sb-item-title {
  color: rgb(60, 191, 240);
}

/* Number column */
.pl-sb-item-num {
  width: 24px;
  flex-shrink: 0;
  text-align: center;
}

.pl-sb-num {
  font-size: 13px;
  color: #666;
}

.pl-sb-item.active .pl-sb-num {
  display: none;
}

/* Equalizer animation */
.pl-sb-eq {
  display: none;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  height: 14px;
}

.pl-sb-item.active .pl-sb-eq {
  display: flex;
}

.pl-sb-eq span {
  display: block;
  width: 3px;
  background: rgb(60, 191, 240);
  border-radius: 1px;
  animation: plEq 0.8s ease-in-out infinite alternate;
}

.pl-sb-eq span:nth-child(1) {
  height: 40%;
  animation-delay: 0s;
}

.pl-sb-eq span:nth-child(2) {
  height: 70%;
  animation-delay: 0.2s;
}

.pl-sb-eq span:nth-child(3) {
  height: 50%;
  animation-delay: 0.4s;
}

@keyframes plEq {
  0% { height: 20%; }
  100% { height: 100%; }
}

/* Thumbnail */
.pl-sb-item-thumb {
  width: 120px;
  flex-shrink: 0;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #111;
}

.pl-sb-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pl-sb-item-dur {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1.4;
}

/* Item info */
.pl-sb-item-info {
  flex: 1;
  min-width: 0;
}

.pl-sb-item-title {
  font-size: 13px;
  font-weight: 500;
  color: #ddd;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 2px;
  transition: color 0.15s;
}

.pl-sb-item:hover .pl-sb-item-title {
  color: #fff;
}

.pl-sb-item-views {
  font-size: 11px;
  color: #666;
}

/* Sidebar ad */
.pl-sb-ad {
  padding: 12px;
  border-top: 1px solid #272727;
}

.pl-sb-ad:empty {
  display: none;
}

/* Sidebar pagination */
.pl-sb-pagination {
  padding: 10px 12px;
  border-top: 1px solid #272727;
}

.pl-sb-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.pl-sb-pagination .pagination a {
  min-width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  font-size: 12px;
  border-radius: 4px;
  background: #272727;
  color: #ccc;
  text-decoration: none;
  transition: background 0.15s;
}

.pl-sb-pagination .pagination a:hover {
  background: #3a3a3a;
  color: #fff;
}

.pl-sb-pagination .pagination a.active {
  background: rgb(60, 191, 240);
  color: #000;
  font-weight: 600;
}

.pl-sb-pagination .pagination .prev,
.pl-sb-pagination .pagination .next {
  font-size: 11px;
  gap: 4px;
}

.pl-sb-pagination .pagination .prev svg,
.pl-sb-pagination .pagination .next svg {
  width: 12px;
  height: 12px;
}

/* ── MOBILE: < 1024px ── */
@media (max-width: 1023px) {
  .pl-page {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .pl-player-area {
    order: 1;
    width: 100%;
    overflow: hidden;
  }

  .pl-sidebar {
    order: 2;
    width: calc(100% + 30px);
    position: static;
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin: 0 -15px;
  }

  .pl-content-area {
    order: 3;
    width: 100%;
  }

  .pl-sb-list {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding: 12px 12px 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .pl-sb-list::-webkit-scrollbar {
    display: none;
  }

  /* Mobile item: vertical card */
  .pl-sb-item {
    position: relative;
    flex: 0 0 180px;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    border-left: none;
    border-top: 3px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: #222;
    scroll-snap-align: start;
    gap: 0;
  }

  .pl-sb-item:hover {
    background: #2a2a2a;
  }

  .pl-sb-item.active {
    border-left-color: transparent;
    border-top-color: rgb(60, 191, 240);
    background: rgba(232, 160, 32, 0.08);
  }

  /* Number badge on mobile */
  .pl-sb-item-num {
    position: absolute;
    top: 6px;
    left: 6px;
    width: auto;
    z-index: 2;
    background: rgba(0, 0, 0, 0.75);
    padding: 2px 6px;
    border-radius: 4px;
  }

  .pl-sb-num {
    font-size: 11px;
    color: #fff;
  }

  .pl-sb-item.active .pl-sb-num {
    display: none;
  }

  .pl-sb-item.active .pl-sb-eq {
    display: flex;
  }

  /* Thumbnail full width */
  .pl-sb-item-thumb {
    width: 100%;
    position: relative;
    border-radius: 0;
    aspect-ratio: 16/9;
  }

  .pl-sb-item-info {
    padding: 8px 10px 10px;
  }

  .pl-sb-item-title {
    font-size: 12px;
    -webkit-line-clamp: 2;
  }

  .pl-sb-ad {
    margin: 0 15px;
  }

  .pl-sb-pagination {
    padding: 10px 12px;
  }
}

/* ── Small phones ── */
@media (max-width: 480px) {
  .pl-now-bar {
    font-size: 12px;
    padding: 8px 12px;
  }

  .pl-now-nav-btn {
    width: 24px;
    height: 24px;
    font-size: 16px;
  }

  .pl-now-nav {
    gap: 5px;
  }

  .pl-main-title {
    font-size: 18px;
  }

  .pl-actions {
    gap: 8px;
  }

  .pl-act-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
}
