/* Shared VidLyx / TRBNVD UI Components (Cacheable Static Stylesheet) */

/* ── VIP RUNNING TEXT NOTIFICATION (TICKER MARQUEE) ── */
.v-vip-ticker-wrap {
  width: calc(100% - 32px);
  max-width: 1300px;
  margin: 10px auto 4px;
  background: rgba(251, 93, 128, 0.12);
  border: 1px solid rgba(251, 93, 128, 0.45);
  border-radius: 99px;
  box-shadow: 0 4px 18px rgba(251, 93, 128, 0.2);
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 38px;
  padding: 0 14px;
  box-sizing: border-box;
}
.v-vip-ticker-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary, #fb5d80);
  border: 1px solid var(--primary, #fb5d80);
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  margin-right: 12px;
}
.v-vip-ticker-track {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.v-vip-ticker-text {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #ffccd5;
  animation: vipTickerScroll 24s linear infinite;
}
.v-vip-ticker-text:hover {
  animation-play-state: paused;
}
@keyframes vipTickerScroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ── HEADER USER AVATAR, FRAME & VIP BADGE ── */
* {
  -webkit-tap-highlight-color: transparent !important;
}
.v-btn-profile-hd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.2s ease;
  padding: 4px;
}
@media (hover: hover) and (pointer: fine) {
  .v-btn-profile-hd:hover {
    transform: scale(1.08);
  }
}
.v-hd-avatar-circle {
  position: relative;
  isolation: isolate;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  box-shadow: none;
  background: #181d26;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}
.v-hd-avatar-circle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width='100'%20height='100'%20viewBox='0%200%20100%20100'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.p%7Banimation:stroke%205s%20infinite%20linear%3B%7D%40keyframes%20stroke%7Bto%7Bstroke-dashoffset:452%3B%7D%7D%3C/style%3E%3ClinearGradient%20id='g'%20x1='0%25'%20y1='0%25'%20x2='0%25'%20y2='100%25'%3E%3Cstop%20offset='0%25'%20stop-color='%232d3561'/%3E%3Cstop%20offset='25%25'%20stop-color='%23c05c7e'/%3E%3Cstop%20offset='50%25'%20stop-color='%23f3826f'/%3E%3Cstop%20offset='100%25'%20stop-color='%23ffb961'/%3E%3C/linearGradient%3E%3Cfilter%20id='distortion'%20x='-25%25'%20y='-25%25'%20width='150%25'%20height='150%25'%3E%3CfeTurbulence%20type='turbulence'%20baseFrequency='0.05'%20numOctaves='2'%20result='turbulence'%3E%3Canimate%20attributeName='baseFrequency'%20dur='14s'%20values='.1%3B.2%3B.1'%20repeatCount='indefinite'/%3E%3C/feTurbulence%3E%3CfeDisplacementMap%20in2='turbulence'%20in='SourceGraphic'%20scale='16'%20xChannelSelector='R'%20yChannelSelector='G'/%3E%3C/filter%3E%3Ccircle%20cx='50'%20cy='50'%20r='36'%20filter='url(%23distortion)'%20stroke='url(%23g)'%20stroke-width='4'%20opacity='0.55'/%3E%3Ccircle%20class='p'%20cx='50'%20cy='50'%20r='36'%20filter='url(%23distortion)'%20stroke-linecap='round'%20stroke='url(%23g)'%20stroke-width='9'%20stroke-dasharray='168%2058'/%3E%3C/svg%3E") center/contain no-repeat;
  filter: drop-shadow(0 0 6px rgba(243, 130, 111, 0.55));
  pointer-events: none;
  z-index: -1;
}
.v-hd-avatar-circle > img.v-hd-avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  position: relative;
  z-index: 1;
}
.v-hd-avatar-initial {
  position: relative;
  z-index: 1;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary, #fb5d80), #f43f5e);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.v-hd-avatar-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  max-width: none !important;
  transform: translate(-50%, -50%);
  object-fit: contain;
  pointer-events: none;
  z-index: 3;
  display: block;
  border-radius: 0;
}
.v-hd-avatar-badge {
  position: absolute;
  bottom: -7px;
  right: -7px;
  line-height: 1;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  z-index: 5;
}
.v-hd-avatar-badge img {
  width: 16px;
  height: 16px;
  max-width: none !important;
  object-fit: contain;
  border-radius: 0;
  display: block;
}

/* ── CATEGORY & ACTOR BADGE PILLS ── */
.v-tag-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.v-tag-category {
  background: rgba(251, 93, 128, 0.12);
  border: 1px solid rgba(251, 93, 128, 0.35);
  color: var(--primary, #fb5d80);
}
.v-tag-category:hover {
  background: var(--primary, #fb5d80);
  border-color: var(--primary, #fb5d80);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(251, 93, 128, 0.4);
}
.v-tag-actor {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fbbf24;
}
.v-tag-actor:hover {
  background: rgba(251, 191, 36, 0.22);
  border-color: #fbbf24;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.35);
}

/* ── FLOATING NAVIGATION DRAWER ── */
.v-main-drawer {
  position: fixed;
  top: 14px;
  bottom: 14px;
  left: -320px;
  width: 248px;
  max-width: calc(100vw - 28px);
  background: #14171a;
  border: 1px solid #1f1f20;
  border-radius: 16px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.65);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.v-main-brand {
  height: 62px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1f1f20;
  flex-shrink: 0;
}
.v-main-brand-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.v-main-brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.v-main-brand-name {
  font-size: 19px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 2px;
}
.v-main-brand-name span {
  color: #fb5d80;
}
.v-main-drawer-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 22px;
  cursor: pointer;
  padding: 4px 6px;
  line-height: 1;
  border-radius: 6px;
  transition: all 0.15s;
}
.v-main-drawer-close:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.06);
}
.v-main-nav {
  flex: 1;
  padding: 12px 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: #252b37 transparent;
}
.v-main-nav::-webkit-scrollbar {
  width: 5px;
}
.v-main-nav::-webkit-scrollbar-track {
  background: transparent;
}
.v-main-nav::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
.v-main-nav::-webkit-scrollbar-thumb {
  background: #252b37;
  border-radius: 99px;
}
.v-main-nav::-webkit-scrollbar-thumb:hover {
  background: #fb5d80;
}
.v-main-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  color: #9aa3b0;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}
.v-main-nav-item:hover {
  background: #22252b;
  color: #ffffff;
}
.v-main-nav-item.active {
  background: rgba(251, 93, 128, 0.14);
  color: #fb5d80;
  font-weight: 700;
}
.v-main-nav-item svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  flex-shrink: 0;
}
.v-main-nav-btn {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.v-nav-tree {
  display: none;
  flex-direction: column;
  margin-left: 22px;
  padding-left: 12px;
  border-left: 2px solid #282e3a;
  position: relative;
  gap: 2px;
  margin-top: 3px;
  margin-bottom: 6px;
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #252b37 transparent;
}
.v-nav-tree::-webkit-scrollbar {
  width: 4px;
}
.v-nav-tree::-webkit-scrollbar-thumb {
  background: #252b37;
  border-radius: 99px;
}
.v-nav-tree.active {
  display: flex;
}
.v-nav-tree-item {
  position: relative;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #9aa3b0;
  text-decoration: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  transition: all 0.15s ease;
}
.v-nav-tree-item::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  width: 12px;
  height: 2px;
  background: #282e3a;
  transition: background 0.15s;
}
.v-nav-tree-item:hover {
  color: #ffffff;
  background: #22252b;
}
.v-nav-tree-item:hover::before {
  background: var(--primary, #fb5d80);
}
.v-nav-tree-item.active {
  color: var(--primary, #fb5d80);
  font-weight: 700;
}
.v-nav-tree-item.active::before {
  background: var(--primary, #fb5d80);
}
.v-main-user-box {
  padding: 12px 14px;
  border-top: 1px solid #1f1f20;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #111317;
  flex-shrink: 0;
  margin-top: auto;
}

/* ── WATCH 2-COLUMN LAYOUT & VIDEO RELEVAN CARDS ── */
.x-watch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
  align-items: start;
  width: 100%;
}
.x-watch-main {
  min-width: 0;
  width: 100%;
}
.x-watch-sidebar {
  min-width: 0;
  width: 100%;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.x-watch-sidebar::-webkit-scrollbar {
  width: 4px;
}
.x-watch-sidebar::-webkit-scrollbar-thumb {
  background: #252b37;
  border-radius: 4px;
}
.x-rel-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}
.x-rel-item {
  display: flex;
  gap: 12px;
  background: #14171a;
  border: 1px solid #1f242d;
  border-radius: 12px;
  padding: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  min-width: 0;
  box-sizing: border-box;
}
.x-rel-item:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: #191c22;
  transform: translateY(-1px);
}
.x-rel-thumb {
  position: relative;
  width: 110px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #0c0e12;
}
.x-rel-thumb-blur {
  position: absolute;
  inset: -8px;
  background-size: cover;
  background-position: center;
  filter: blur(10px) brightness(0.32);
  transform: scale(1.2);
  z-index: 1;
}
.x-rel-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
}
.x-rel-dur {
  position: absolute;
  top: 4px;
  left: 4px;
  background: rgba(0, 0, 0, 0.8);
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  padding: 1px 5px;
  border-radius: 4px;
  z-index: 3;
}
.x-rel-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.x-rel-title {
  font-size: 13px;
  font-weight: 700;
  color: #edeff3;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.x-rel-views {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}

@media (max-width: 1023px) {
  .x-watch-grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .x-watch-main,
  .x-watch-sidebar {
    width: 100%;
    position: static;
    max-height: none;
    overflow-y: visible;
  }
}

@media (max-width: 768px) {
  .x-rel-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
  }
  .x-rel-item {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 7px 7px 10px;
  }
  .x-rel-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .x-rel-body {
    width: 100%;
    flex: 0 0 auto;
    justify-content: flex-start;
  }
  .x-rel-title {
    font-size: 12.5px;
  }
}

/* ── VIP EXCLUSIVE PLAYER WALL (SAME 16:9 BOX SIZE AS EMBED IFRAME) ── */
.v-vip-lock-wall {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #14171a;
  border: 1px solid rgba(251, 93, 128, 0.35) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55) !important;
}
.v-vip-lock-bg {
  position: absolute;
  inset: -12px;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  object-fit: cover;
  filter: blur(20px) brightness(0.24);
  z-index: 0;
  pointer-events: none;
}
.v-vip-lock-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(20, 23, 26, 0.65) 0%, rgba(9, 11, 16, 0.92) 100%);
  z-index: 1;
  pointer-events: none;
}
.v-vip-lock-card {
  position: relative;
  z-index: 2;
  max-width: 440px;
  width: 100%;
  background: rgba(20, 23, 26, 0.88);
  border: 1px solid rgba(251, 93, 128, 0.32) !important;
  border-radius: 16px;
  padding: 20px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.v-vip-lock-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.38) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2px;
}
.v-vip-lock-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
}
.v-vip-lock-desc {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.9;
  font-weight: 500;
}
.v-vip-lock-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 15px;
  margin: 0 4px;
  border-radius: 99px;
  background: var(--primary, #fb5d80);
  color: #ffffff !important;
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none !important;
  vertical-align: middle;
  box-shadow: 0 5px 16px rgba(251, 93, 128, 0.44);
  transition: transform 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
}
.v-vip-lock-cta:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}
@media (max-width: 640px) {
  .v-vip-lock-wall {
    padding: 12px;
  }
  .v-vip-lock-card {
    padding: 12px 14px;
    border-radius: 12px;
    gap: 6px;
  }
  .v-vip-lock-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    margin-bottom: 0;
  }
  .v-vip-lock-icon svg {
    width: 17px;
    height: 17px;
  }
  .v-vip-lock-title {
    font-size: 13.5px;
  }
  .v-vip-lock-desc {
    font-size: 12px;
    line-height: 1.85;
  }
  .v-vip-lock-cta {
    height: 27px;
    padding: 0 12px;
    font-size: 11.5px;
  }
}
