/* ==========================================================================
   7CUTS REUSABLE UI COMPONENTS & INTERACTION STYLES
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO SHOWCASE COMPONENT
   -------------------------------------------------------------------------- */
.hero-showcase {
  position: relative;
  width: 100%;
  height: 520px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}

.hero-media-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media-container {
  width: 100%;
  height: 100%;
}

.hero-backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  filter: brightness(0.85);
  transform: scale(1.02);
  transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-showcase:hover .hero-backdrop-img {
  transform: scale(1.06);
}

.hero-backdrop-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 11, 14, 0.1) 0%,
    rgba(10, 11, 14, 0.4) 40%,
    rgba(10, 11, 14, 0.95) 90%,
    var(--bg-primary) 100%
  ),
  linear-gradient(
    90deg,
    rgba(10, 11, 14, 0.9) 0%,
    rgba(10, 11, 14, 0.6) 45%,
    transparent 100%
  );
  z-index: 1;
}

.hero-details-container {
  position: absolute;
  bottom: 44px;
  left: 44px;
  max-width: 52%;
  z-index: 2;
}

.hero-badge-tag {
  display: inline-block;
  background: var(--accent-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 12px;
  box-shadow: var(--shadow-glow);
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 12px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}

.hero-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.hero-meta-row .rating {
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.hero-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-action-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-play-btn .play-icon {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   2. VIDEO CARDS & GRIDS
   -------------------------------------------------------------------------- */
.video-grid-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.video-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: transform var(--trans-fast), background var(--trans-fast), border-color var(--trans-fast), box-shadow var(--trans-fast);
  cursor: pointer;
  position: relative;
}

.video-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.video-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-surface);
  overflow: hidden;
}

.video-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trans-smooth);
}

.video-card:hover .video-card-thumb {
  transform: scale(1.05);
}

.video-card-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.video-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent-red);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.video-card-body {
  padding: 14px;
  display: flex;
  gap: 12px;
  flex: 1;
}

.video-card-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--border-radius-full);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.video-card-meta-wrap {
  flex: 1;
  min-width: 0;
}

.video-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-creator {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-card-creator:hover {
  color: var(--accent-red);
}

.video-card-stats {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.video-card-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  opacity: 0;
  transition: opacity var(--trans-fast);
  display: flex;
  gap: 4px;
  z-index: 2;
}

.video-card:hover .video-card-actions {
  opacity: 1;
}

.card-action-btn {
  background: rgba(10, 11, 14, 0.85);
  color: #fff;
  border: 1px solid var(--border-subtle);
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  transition: background var(--trans-fast), color var(--trans-fast);
}

.card-action-btn:hover {
  background: var(--accent-red);
  color: #fff;
}

/* --------------------------------------------------------------------------
   3. HORIZONTAL SHELVES (CONTINUE WATCHING, CREATORS, SHORTS)
   -------------------------------------------------------------------------- */
.horizontal-scroll-container,
.shorts-horizontal-shelf,
.creators-horizontal-shelf {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-surface) transparent;
}

.horizontal-scroll-container::-webkit-scrollbar,
.shorts-horizontal-shelf::-webkit-scrollbar,
.creators-horizontal-shelf::-webkit-scrollbar {
  height: 6px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb,
.shorts-horizontal-shelf::-webkit-scrollbar-thumb,
.creators-horizontal-shelf::-webkit-scrollbar-thumb {
  background: var(--bg-surface);
  border-radius: var(--border-radius-full);
}

/* Continue Watching Card */
.continue-card {
  min-width: 280px;
  max-width: 280px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  position: relative;
}

.continue-card-progress {
  height: 4px;
  background: var(--bg-surface);
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
}

.continue-card-progress-bar {
  height: 100%;
  background: var(--accent-red);
  box-shadow: var(--shadow-glow);
}

/* Short Shelf Card */
.short-card-preview {
  min-width: 190px;
  max-width: 190px;
  aspect-ratio: 9 / 16;
  flex-shrink: 0;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: transform var(--trans-fast), box-shadow var(--trans-fast);
  cursor: pointer;
}

.short-card-preview:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.short-preview-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.short-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 11, 14, 0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}

.short-preview-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.short-preview-views {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Category Pill Shelf */
.category-pills-shelf {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.category-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 10px 18px;
  border-radius: var(--border-radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--trans-fast);
}

.category-pill:hover {
  background: var(--bg-surface);
  border-color: var(--accent-red);
  color: var(--accent-red);
  transform: translateY(-2px);
}

/* Creator Card */
.creator-card-item {
  min-width: 170px;
  max-width: 170px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
  transition: all var(--trans-fast);
}

.creator-card-item:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.creator-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--border-radius-full);
  background: linear-gradient(135deg, var(--accent-red), var(--accent-violet));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.creator-card-name {
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.creator-card-subs {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.creator-card-btn {
  width: 100%;
  padding: 6px 0;
  font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   4. SHORTS FEED FULLSCREEN COMPONENT
   -------------------------------------------------------------------------- */
.shorts-page-body {
  overflow: hidden;
  height: 100vh;
}

.shorts-header {
  position: absolute;
  background: linear-gradient(180deg, rgba(10, 11, 14, 0.9) 0%, transparent 100%);
  border-bottom: none;
}

.shorts-title-badge {
  background: var(--accent-red);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-glow);
}

.shorts-viewport {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #000;
  outline: none;
}

.shorts-feed {
  width: 100%;
  max-width: 480px;
  height: 100%;
  position: relative;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  scrollbar-width: none;
}

.shorts-feed::-webkit-scrollbar {
  display: none;
}

.short-feed-item {
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050608;
}

.short-video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.short-content-overlay {
  position: absolute;
  bottom: 32px;
  left: 20px;
  right: 84px;
  z-index: 10;
  pointer-events: none;
}

.short-creator-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  pointer-events: auto;
}

.short-creator-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--border-radius-full);
  background: var(--accent-red);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.short-creator-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.short-follow-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--border-radius-full);
  backdrop-filter: blur(8px);
}

.short-follow-btn.following {
  background: transparent;
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.short-title-text {
  font-size: 0.92rem;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 8px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  pointer-events: auto;
}

.short-tags-row {
  font-size: 0.82rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.short-action-sidebar {
  position: absolute;
  right: 16px;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 10;
}

.action-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-full);
  background: rgba(20, 22, 28, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform var(--trans-fast), background var(--trans-fast), color var(--trans-fast);
}

.action-icon-circle:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.2);
}

.action-icon-circle.active {
  color: var(--accent-red);
  background: rgba(255, 42, 85, 0.2);
  border-color: var(--accent-red);
}

.action-item-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.action-label {
  font-size: 0.75rem;
  color: #fff;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.shorts-desktop-nav {
  position: absolute;
  right: calc(50% - 320px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nav-arrow-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  width: 48px;
  height: 48px;
  border-radius: var(--border-radius-full);
  color: #fff;
}

.nav-arrow-btn:hover {
  background: var(--accent-red);
}

/* --------------------------------------------------------------------------
   5. PROFESSIONAL CUSTOM VIDEO PLAYER
   -------------------------------------------------------------------------- */
.watch-layout-container {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
}

.player-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-element {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-controls-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 11, 14, 0.6) 0%, transparent 25%, transparent 70%, rgba(10, 11, 14, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transition: opacity var(--trans-fast);
  padding: 18px 24px;
}

.player-container:hover .player-controls-overlay,
.player-container.paused .player-controls-overlay {
  opacity: 1;
}

.player-floating-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.center-playback-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 72px;
  height: 72px;
  border-radius: var(--border-radius-full);
  background: rgba(255, 42, 85, 0.85);
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: all var(--trans-smooth);
}

.center-playback-indicator.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.progress-bar-container {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-full);
  cursor: pointer;
  margin-bottom: 14px;
  transition: height var(--trans-fast);
}

.progress-bar-container:hover {
  height: 9px;
}

.progress-buffered {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.35);
  border-radius: var(--border-radius-full);
  width: 0%;
}

.progress-played {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--accent-red);
  box-shadow: var(--shadow-glow);
  border-radius: var(--border-radius-full);
  width: 0%;
}

.scrubber-handle {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 14px;
  height: 14px;
  border-radius: var(--border-radius-full);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform var(--trans-fast);
}

.progress-bar-container:hover .scrubber-handle {
  transform: translateY(-50%) scale(1);
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.controls-left, .controls-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.player-ctrl-btn {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px;
  border-radius: var(--border-radius-sm);
  transition: color var(--trans-fast), transform var(--trans-fast);
}

.player-ctrl-btn:hover {
  color: var(--accent-red);
  transform: scale(1.1);
}

.volume-control-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  border-radius: var(--border-radius-full);
  background: rgba(255, 255, 255, 0.3);
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: var(--border-radius-full);
  background: #fff;
  cursor: pointer;
}

.time-display {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.player-menu-dropdown-wrapper {
  position: relative;
}

.player-dropdown-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-bottom: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 6px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  min-width: 120px;
  z-index: 20;
}

.player-menu-item {
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--border-radius-sm);
  text-align: left;
  transition: all var(--trans-fast);
}

.player-menu-item:hover, .player-menu-item.active {
  background: var(--bg-elevated);
  color: var(--accent-red);
}

/* --------------------------------------------------------------------------
   6. WATCH METADATA, ACTIONS & COMMENTS
   -------------------------------------------------------------------------- */
.watch-video-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin-top: 18px;
  margin-bottom: 14px;
}

.watch-meta-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.creator-badge-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.creator-info {
  display: flex;
  flex-direction: column;
}

.creator-name-link {
  font-weight: 700;
  font-size: 0.95rem;
}

.creator-sub-count {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.watch-action-pills {
  display: flex;
  gap: 10px;
}

.action-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: var(--border-radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: all var(--trans-fast);
}

.action-pill-btn:hover {
  background: var(--bg-surface);
  border-color: var(--border-strong);
}

.action-pill-btn.active {
  color: var(--accent-red);
  border-color: var(--accent-red);
  background: rgba(255, 42, 85, 0.1);
}

.video-description-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  padding: 16px 20px;
  margin-bottom: 32px;
}

.desc-stats-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.desc-tag {
  color: var(--accent-red);
}

.desc-content-text {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Comments Section */
.watch-comments-section {
  margin-top: 24px;
}

.comments-count-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.new-comment-box {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
}

.comment-input-wrap {
  flex: 1;
}

.comment-auto-textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-strong);
  color: var(--text-primary);
  padding: 8px 0;
  outline: none;
  resize: none;
  font-size: 0.92rem;
  transition: border-color var(--trans-fast);
}

.comment-auto-textarea:focus {
  border-color: var(--accent-red);
}

.comment-btn-bar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.comment-item {
  display: flex;
  gap: 14px;
  margin-bottom: 22px;
}

.comment-body {
  flex: 1;
}

.comment-author-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.comment-author {
  font-weight: 700;
  font-size: 0.88rem;
}

.comment-time {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.comment-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* Related Video Stack */
.related-videos-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.related-video-card {
  display: flex;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  padding: 8px;
  transition: all var(--trans-fast);
  cursor: pointer;
}

.related-video-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateX(4px);
}

.related-thumb-wrap {
  position: relative;
  width: 124px;
  height: 70px;
  flex-shrink: 0;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.related-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-meta {
  flex: 1;
  min-width: 0;
}

.related-title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-creator {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   7. POPOVERS, MODALS & TOASTS
   -------------------------------------------------------------------------- */
.notification-popover,
.user-menu-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 320px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  z-index: 1020;
  overflow: hidden;
}

.popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.popover-list {
  max-height: 320px;
  overflow-y: auto;
}

.popover-item {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  gap: 12px;
  transition: background var(--trans-fast);
}

.popover-item:hover {
  background: var(--bg-elevated);
}

.popover-footer-link {
  display: block;
  text-align: center;
  padding: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-red);
  background: var(--bg-elevated);
}

.menu-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.menu-divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
}

.user-links-nav {
  padding: 8px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--border-radius-md);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--trans-fast);
}

.menu-item:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.vendor-link {
  color: var(--accent-cyan);
}

.modal-backdrop, .shorts-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.share-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-surface);
  border: 1px solid var(--accent-red);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  box-shadow: var(--shadow-glow);
  z-index: 3000;
  animation: slideToast 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideToast {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* --------------------------------------------------------------------------
   8. MOBILE BOTTOM NAVIGATION DOCK
   -------------------------------------------------------------------------- */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-nav-height);
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  display: none;
  align-items: center;
  justify-content: space-around;
  z-index: 1000;
  padding: 0 10px;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color var(--trans-fast);
}

.bottom-nav-item.active {
  color: var(--accent-red);
}