/* ============================================
   Page-Specific Styles — clips.html
   ============================================ */

/* ---- Hero purple gradient variant ---- */
.hero.hero-clips .hero-title .grad {
  background: linear-gradient(135deg, #8b5cf6 0%, #c084fc 40%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero.hero-clips .hero-tag {
  background: rgba(139, 92, 246, .1);
  color: var(--purple);
  border-color: rgba(139, 92, 246, .25);
}
.hero.hero-clips .hero-tag .dot {
  background: var(--purple);
  box-shadow: 0 0 8px var(--purple);
}
.hero.hero-clips .hero-stat .num {
  color: var(--purple);
}
.hero.hero-clips::before {
  background: radial-gradient(circle, rgba(139, 92, 246, .1) 0%, transparent 60%);
}
.hero.hero-clips::after {
  background: radial-gradient(circle, rgba(244, 114, 182, .08) 0%, transparent 60%);
}

/* ---- Clip Card ---- */
.clip-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.clip-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow), 0 0 20px rgba(0, 217, 255, .08);
  background: var(--card-hover);
}
.clip-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.clip-thumb .bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  transition: transform .3s;
}
.clip-card:hover .clip-thumb .bg {
  transform: scale(1.06);
}
.clip-thumb .ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 26, .6) 0%, transparent 45%);
  pointer-events: none;
}
.clip-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  background: rgba(10, 14, 26, .75);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  gap: 4px;
}
.clip-duration::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 0 4px 6px;
  border-color: transparent transparent transparent var(--cyan);
}
.clip-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.8);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 217, 255, .15);
  border: 1.5px solid var(--cyan);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all .25s;
}
.clip-play::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent var(--cyan);
  margin-left: 3px;
}
.clip-card:hover .clip-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.clip-info {
  padding: 12px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.clip-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.clip-card:hover .clip-title {
  color: var(--cyan);
}
.clip-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.clip-league {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(0, 217, 255, .1);
  color: var(--cyan);
  border: 1px solid rgba(0, 217, 255, .2);
}
.clip-league.purple {
  background: rgba(139, 92, 246, .1);
  color: var(--purple);
  border-color: rgba(139, 92, 246, .2);
}
.clip-league.pink {
  background: rgba(244, 114, 182, .1);
  color: var(--pink);
  border-color: rgba(244, 114, 182, .2);
}
.clip-league.green {
  background: rgba(0, 255, 136, .1);
  color: var(--green);
  border-color: rgba(0, 255, 136, .2);
}
.clip-stats {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.clip-stats .sep {
  opacity: .4;
}

/* ---- Rank List with Thumbnails ---- */
.rank-item-clip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  transition: background .2s;
  cursor: pointer;
}
.rank-item-clip:hover {
  background: var(--card-hover);
}
.rank-num-clip {
  width: 22px;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  flex-shrink: 0;
  color: var(--text-dim);
  font-style: italic;
}
.rank-num-clip.top {
  background: linear-gradient(135deg, #fb923c 0%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 17px;
}
.rank-thumb {
  width: 64px;
  height: 36px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  position: relative;
}
.rank-thumb .ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 14, 26, .5), transparent);
}
.rank-body {
  flex: 1;
  min-width: 0;
}
.rank-title-clip {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.rank-views {
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---- Anchor Item ---- */
.anchor-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  transition: background .2s;
  cursor: pointer;
}
.anchor-item:hover {
  background: var(--card-hover);
}
.anchor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  border: 2px solid var(--border);
  transition: border-color .2s;
}
.anchor-item:hover .anchor-avatar {
  border-color: var(--cyan);
}
.anchor-body {
  flex: 1;
  min-width: 0;
}
.anchor-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}
.anchor-game {
  font-size: 12px;
  color: var(--text-dim);
}
.anchor-viewers {
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.anchor-viewers::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 1.5s infinite;
}

/* ---- Filter bar sort right align ---- */
.filter-bar .sort-wrap {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-bar .sort-label {
  font-size: 12px;
  color: var(--text-dim);
}

@media (max-width: 600px) {
  .clip-thumb .bg { font-size: 40px; }
  .rank-thumb { width: 56px; height: 32px; font-size: 18px; }
}