/* =========================================================
   VIDEO SECTION - COMPLETE MODERN REDESIGN
   ========================================================= */

/* =========================================================
   GENERIC SKELETON
   ========================================================= */
.skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #e5e7eb 0%, #f3f4f6 100%);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* =========================================================
   VIDEO LIST (SECTION: .pwa-video)
   ========================================================= */

/* Topbar */
.pwa-video .pv-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: .5rem;
  background: linear-gradient(135deg, rgba(255,255,255,.95) 0%, rgba(248,250,252,.9) 100%);
  backdrop-filter: blur(10px);
  border-radius: 1.2rem;
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
}

.pwa-video .pv-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 4px 12px rgba(15,23,42,.12);
  color: var(--color-primary);
  cursor: pointer;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(148,163,184,.12);
}

.pwa-video .pv-back-btn:hover {
  transform: translateX(-3px);
  box-shadow: 0 8px 20px rgba(15,23,42,.18);
  background: linear-gradient(135deg, var(--color-primary), #0d9488);
  color: white;
}

.pwa-video .pv-back-btn:active {
  transform: translateX(-1px);
}

.pwa-video .pv-back-btn i {
  font-size: 1rem;
  transition: transform .3s ease;
}

.pwa-video .pv-back-btn:hover i {
  transform: translateX(-2px);
}

.pwa-video .pv-topbar-text {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  flex: 1;
}

.pwa-video .pv-title {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-text);
  letter-spacing: -.02em;
}

.pwa-video .pv-subtitle {
  font-size: .75rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* Playlist Strip */
.video-playlist-strip {
  margin-bottom: 1rem;
  overflow-x: auto;
  padding-bottom: .3rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(148,163,184,.3) transparent;
}

.video-playlist-strip::-webkit-scrollbar {
  height: 6px;
}

.video-playlist-strip::-webkit-scrollbar-thumb {
  background: rgba(148,163,184,.3);
  border-radius: 10px;
}

.vps-inner {
  display: flex;
  gap: .6rem;
}

.vps-item {
  border: 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 999px;
  padding: .25rem .95rem .25rem .3rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  white-space: nowrap;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(15,23,42,.06);
  position: relative;
  overflow: hidden;
}

.vps-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary), #22c55e);
  opacity: 0;
  transition: opacity .3s ease;
}

.vps-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15,23,42,.12);
  border-color: rgba(11,122,117,.25);
}

.vps-item:hover::before {
  opacity: .1;
}

.vps-item.active {
  background: linear-gradient(135deg, var(--color-primary), #0d9488);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 6px 16px rgba(11,122,117,.35);
  transform: translateY(-1px);
}

.vps-item.active::before {
  opacity: 0;
}

.vps-item .vps-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  display: grid;
  place-items: center;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.08);
  position: relative;
  z-index: 1;
}

.vps-thumb-all {
  background: linear-gradient(135deg, var(--color-primary), #22c55e) !important;
  color: white;
  font-size: .85rem;
}

.vps-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vps-item span {
  max-width: 120px;
  text-overflow: ellipsis;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* Skeleton untuk playlist */
.vps-item.skeleton {
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  pointer-events: none;
}

.vps-item.skeleton .vps-thumb {
  background: #cbd5e1;
}

.vps-item.skeleton span {
  width: 70px;
  height: .6rem;
  border-radius: 999px;
  background: #cbd5e1;
}

/* Video Grid */
.pwa-video .video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

@media (min-width: 640px) {
  .pwa-video .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (min-width: 1024px) {
  .pwa-video .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

.pwa-video .video-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 1.2rem;
  padding: .65rem;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  animation: fadeInUp .5s ease backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pwa-video .video-card:nth-child(1) { animation-delay: 0.05s; }
.pwa-video .video-card:nth-child(2) { animation-delay: 0.1s; }
.pwa-video .video-card:nth-child(3) { animation-delay: 0.15s; }
.pwa-video .video-card:nth-child(4) { animation-delay: 0.2s; }
.pwa-video .video-card:nth-child(5) { animation-delay: 0.25s; }
.pwa-video .video-card:nth-child(6) { animation-delay: 0.3s; }
.pwa-video .video-card:nth-child(n+7) { animation-delay: 0.35s; }

.pwa-video .video-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), #22c55e);
  opacity: 0;
  transition: opacity .3s ease;
}

.pwa-video .video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15,23,42,.15);
  border-color: rgba(11,122,117,.25);
}

.pwa-video .video-card:hover::before {
  opacity: 1;
}

.pwa-video .video-thumb {
  position: relative;
  width: 100%;
  border-radius: .9rem;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.pwa-video .video-thumb::before {
  content: "";
  display: block;
  padding-bottom: 56.25%; /* 16:9 */
}

.pwa-video .video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .3s ease;
}

.pwa-video .video-card:hover .video-thumb img {
  transform: scale(1.05);
}

.pwa-video .video-thumb .badge-play {
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: .75rem;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(239,68,68,.4);
  transition: all .3s ease;
}

.pwa-video .video-card:hover .badge-play {
  transform: scale(1.15);
  box-shadow: 0 6px 16px rgba(239,68,68,.5);
}

.pwa-video .video-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.pwa-video .video-title {
  font-size: .82rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -.01em;
}

.pwa-video .video-sub {
  font-size: .68rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Skeleton untuk card */
.pwa-video .video-card.skeleton {
  pointer-events: none;
  animation: none;
}

.pwa-video .video-card.skeleton .video-thumb {
  background: #e5e7eb;
}

.pwa-video .video-card.skeleton .video-meta .line {
  height: .6rem;
  border-radius: 999px;
  background: #e5e7eb;
  margin-bottom: .3rem;
}

.pwa-video .video-card.skeleton .video-meta .line.w-80 {
  width: 80%;
}

.pwa-video .video-card.skeleton .video-meta .line.w-40 {
  width: 40%;
}

/* Dark Mode - Video List */
body.dark-mode .pwa-video .pv-topbar {
  background: linear-gradient(135deg, rgba(15,23,42,.95) 0%, rgba(30,41,59,.9) 100%);
}

body.dark-mode .pwa-video .pv-back-btn {
  background: linear-gradient(135deg, rgba(30,41,59,.8), rgba(15,23,42,.7));
  color: #5eead4;
  border-color: rgba(148,163,184,.15);
}

body.dark-mode .pwa-video .pv-back-btn:hover {
  background: linear-gradient(135deg, var(--color-primary), #0d9488);
  color: white;
}

body.dark-mode .pwa-video .pv-title {
  color: #f1f5f9;
}

body.dark-mode .vps-item {
  background: linear-gradient(135deg, rgba(30,41,59,.6), rgba(15,23,42,.5));
  border-color: rgba(148,163,184,.15);
  color: #e2e8f0;
}

body.dark-mode .vps-item.active {
  background: linear-gradient(135deg, var(--color-primary), #0d9488);
  color: white;
}

body.dark-mode .pwa-video .video-card {
  background: linear-gradient(135deg, rgba(30,41,59,.6), rgba(15,23,42,.5));
  border-color: rgba(148,163,184,.15);
}

body.dark-mode .pwa-video .video-title {
  color: #f1f5f9;
}

/* =========================================================
   VIDEO DETAIL (SECTION: .pwa-video-detail)
   ========================================================= */

.pwa-video-detail {
  padding-bottom: 2rem;
}

.pwa-video-detail .vd-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,250,252,.95));
  backdrop-filter: blur(12px);
  border-radius: 1.2rem;
  margin-bottom: .75rem;
  box-shadow: 0 8px 24px rgba(15,23,42,.08);
}

.pwa-video-detail .pv-back-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(15,23,42,.12);
  color: var(--color-primary);
  cursor: pointer;
  transition: all .3s ease;
  border: 1px solid rgba(148,163,184,.12);
}

.pwa-video-detail .pv-back-btn:hover {
  transform: translateX(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(15,23,42,.18);
  background: linear-gradient(135deg, var(--color-primary), #0d9488);
  color: white;
}

.vd-share-top {
  border: 0;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  font-size: .9rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all .3s ease;
  box-shadow: 0 4px 12px rgba(15,23,42,.08);
  border: 1px solid rgba(148,163,184,.12);
  color: var(--color-text);
}

.vd-share-top:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(15,23,42,.12);
  background: linear-gradient(135deg, var(--color-primary), #0d9488);
  color: white;
}

/* Player */
.pwa-video-detail .vd-player {
  margin-top: .5rem;
  display: flex;
  justify-content: center;
}

.pwa-video-detail .vd-player-inner {
  width: 100%;
  max-width: 800px;
}

.pwa-video-detail .vd-player-16x9 {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.25), 0 8px 20px rgba(0,0,0,.15);
}

.pwa-video-detail .vd-player-16x9 iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Info */
.pwa-video-detail .vd-info {
  margin-top: 1.2rem;
  max-width: 800px;
  margin-inline: auto;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 1.2rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
}

.pwa-video-detail .vd-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0 0 .5rem;
  letter-spacing: -.02em;
  line-height: 1.35;
  color: var(--color-text);
}

.pwa-video-detail .vd-meta {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .72rem;
  color: var(--color-text-muted);
  margin-bottom: .85rem;
}

.pwa-video-detail .vd-chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .2rem .65rem .2rem .2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(11,122,117,.08), rgba(11,122,117,.04));
  border: 1px solid rgba(11,122,117,.15);
  transition: all .3s ease;
}

.pwa-video-detail .vd-chip:hover {
  background: linear-gradient(135deg, rgba(11,122,117,.12), rgba(11,122,117,.08));
  transform: scale(1.02);
}

.pwa-video-detail .vd-chip-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-primary), #0d9488);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(11,122,117,.25);
}

.pwa-video-detail .vd-chip-avatar.has-img {
  background: none;
  background-size: cover;
  background-position: center;
}

.pwa-video-detail .vd-chip-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pwa-video-detail .vd-dot {
  opacity: .5;
}

.pwa-video-detail .vd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.pwa-video-detail .vd-actions .btn {
  border-radius: .85rem;
  padding: .55rem .95rem;
  font-size: .75rem;
  font-weight: 600;
  transition: all .3s ease;
  box-shadow: 0 4px 12px rgba(15,23,42,.08);
}

.pwa-video-detail .vd-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15,23,42,.15);
}

.pwa-video-detail .vd-actions .btn-light {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(239,68,68,.3);
}

.pwa-video-detail .vd-actions .btn-light:hover {
  box-shadow: 0 8px 20px rgba(239,68,68,.4);
}

/* Comments */
.pwa-video-detail .vd-comments {
  max-width: 800px;
  margin-inline: auto;
  margin-top: 1.5rem;
}

.pwa-video-detail .vd-section-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: .85rem;
  letter-spacing: -.01em;
  color: var(--color-text);
}

.vd-comment {
  display: flex;
  gap: .75rem;
  padding: .85rem 1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(148,163,184,.08);
  margin-bottom: .6rem;
  transition: all .3s ease;
}

.vd-comment:hover {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 4px 12px rgba(15,23,42,.08);
  border-color: rgba(11,122,117,.15);
}

.vd-comment .avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.vd-comment .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vd-comment .avatar .initial {
  font-size: .8rem;
  font-weight: 700;
  color: #475569;
}

.vd-comment .body {
  flex: 1;
  min-width: 0;
}

.vd-comment .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .72rem;
  margin-bottom: .3rem;
  gap: .5rem;
}

.vd-comment .head strong {
  font-weight: 700;
  color: var(--color-text);
}

.vd-comment .head .time {
  color: var(--color-text-muted);
  font-size: .65rem;
}

.vd-comment .content {
  font-size: .75rem;
  line-height: 1.5;
  color: #475569;
}

/* Dark Mode - Video Detail */
body.dark-mode .pwa-video-detail .vd-topbar {
  background: linear-gradient(135deg, rgba(15,23,42,.98), rgba(30,41,59,.95));
}

body.dark-mode .pwa-video-detail .pv-back-btn {
  background: linear-gradient(135deg, rgba(30,41,59,.8), rgba(15,23,42,.7));
  color: #5eead4;
  border-color: rgba(148,163,184,.15);
}

body.dark-mode .pwa-video-detail .pv-back-btn:hover {
  background: linear-gradient(135deg, var(--color-primary), #0d9488);
  color: white;
}

body.dark-mode .vd-share-top {
  background: linear-gradient(135deg, rgba(30,41,59,.8), rgba(15,23,42,.7));
  color: #cbd5e1;
  border-color: rgba(148,163,184,.15);
}

body.dark-mode .vd-share-top:hover {
  background: linear-gradient(135deg, var(--color-primary), #0d9488);
  color: white;
}

body.dark-mode .pwa-video-detail .vd-info {
  background: linear-gradient(135deg, rgba(30,41,59,.6), rgba(15,23,42,.5));
  border-color: rgba(148,163,184,.15);
}

body.dark-mode .pwa-video-detail .vd-title {
  color: #f1f5f9;
}

body.dark-mode .vd-comment {
  background: linear-gradient(135deg, rgba(30,41,59,.6), rgba(15,23,42,.5));
  border-color: rgba(148,163,184,.15);
}

body.dark-mode .vd-comment:hover {
  background: linear-gradient(135deg, rgba(30,41,59,.7), rgba(15,23,42,.6));
  border-color: rgba(94,234,212,.2);
}

body.dark-mode .vd-comment .head strong,
body.dark-mode .vd-comment .content {
  color: #e2e8f0;
}

/* =========================================================
   HOME VIDEO RAIL (2-card + peek)
   ========================================================= */
.home-video-section {
  margin: 1rem 0;
}

.home-video-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
}

.home-video-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-text);
  letter-spacing: -.02em;
}

.home-video-linkall {
  font-size: .75rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all .3s ease;
}

.home-video-linkall:hover {
  color: #0d9488;
  transform: translateX(2px);
}

.home-video-rail {
  position: relative;
}

.hv-track {
  display: flex;
  gap: .85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: .2rem .3rem .3rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(148,163,184,.3) transparent;
}

.hv-track::-webkit-scrollbar {
  height: 6px;
}

.hv-track::-webkit-scrollbar-thumb {
  background: rgba(148,163,184,.3);
  border-radius: 10px;
}

.hv-card {
  flex: 0 0 calc(50% - .425rem);
  min-width: 160px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148,163,184,.12);
  border-radius: 1.1rem;
  padding: .65rem;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
  scroll-snap-align: start;
  cursor: pointer;
  user-select: none;
  position: relative;
  z-index: 1;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15,23,42,.15);
  border-color: rgba(11,122,117,.25);
}

.hv-thumb {
  position: relative;
  width: 100%;
  border-radius: .85rem;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}

.hv-thumb::before {
  content: "";
  display: block;
  padding-bottom: 56.25%;
}

.hv-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .3s ease;
}

.hv-card:hover .hv-thumb img {
  transform: scale(1.05);
}

.hv-thumb .badge-play {
  position: absolute;
  right: .5rem;
  bottom: .5rem;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: .7rem;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(239,68,68,.4);
  transition: all .3s ease;
}

.hv-card:hover .badge-play {
  transform: scale(1.15);
  box-shadow: 0 6px 16px rgba(239,68,68,.5);
}

.hv-title {
  font-size: .8rem;
  font-weight: 700;
  color: var(--color-text);
  margin: .45rem 0 .2rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: -.01em;
}

.hv-sub {
  font-size: .68rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Nav buttons */
.hv-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  box-shadow: 0 6px 18px rgba(15,23,42,.15);
  color: var(--color-primary);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: all .3s ease;
  border: 1px solid rgba(148,163,184,.12);
}

.hv-nav:hover {
  background: linear-gradient(135deg, var(--color-primary), #0d9488);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(11,122,117,.35);
}

.hv-nav:active {
  transform: translateY(-50%) scale(1);
}

.hv-prev {
  left: -8px;
}

.hv-next {
  right: -8px;
}

@media (min-width: 768px) {
  .home-video-section,
  .home-video-rail,
  #homeVideoTrack {
    position: relative;
    z-index: 50;
  }

  .hv-card {
    pointer-events: auto;
    z-index: 51;
    min-width: 200px;
  }

  #homeVideoTrack {
    scrollbar-width: none;
    -ms-overflow-style: none;
    touch-action: pan-x;
  }

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

@media (max-width: 640px) {
  .hv-card {
    flex: 0 0 calc(50% - .425rem);
    min-width: 140px;
  }
}

/* Dark mode - Home Video Rail */
body.dark-mode .home-video-title {
  color: #f1f5f9;
}

body.dark-mode .home-video-linkall {
  color: #5eead4;
}

body.dark-mode .hv-card {
  background: linear-gradient(135deg, rgba(30,41,59,.6), rgba(15,23,42,.5));
  border-color: rgba(148,163,184,.15);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

body.dark-mode .hv-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
  border-color: rgba(94,234,212,.25);
}

body.dark-mode .hv-title {
  color: #f1f5f9;
}

body.dark-mode .hv-nav {
  background: linear-gradient(135deg, rgba(30,41,59,.95), rgba(15,23,42,.9));
  color: #5eead4;
  border-color: rgba(148,163,184,.15);
}

body.dark-mode .hv-nav:hover {
  background: linear-gradient(135deg, var(--color-primary), #0d9488);
  color: white;
}

/* =========================================================
   LOADING & EMPTY STATES
   ========================================================= */
#videoEmpty {
  padding: 2rem 1rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(248,250,252,.8), rgba(241,245,249,.6));
  border: 1px dashed rgba(148,163,184,.3);
  border-radius: 1.2rem;
  margin: 1rem 0;
}

#videoEmpty .text-muted {
  color: var(--color-text-muted);
  font-size: .85rem;
}

#videoEmpty i {
  font-size: 2rem;
  color: var(--color-text-muted);
  margin-bottom: .5rem;
  display: block;
}

#videoLoadingMore {
  padding: 1.5rem;
}

body.dark-mode #videoEmpty {
  background: linear-gradient(135deg, rgba(30,41,59,.4), rgba(15,23,42,.3));
  border-color: rgba(148,163,184,.2);
}

/* =========================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================= */
@media (max-width: 480px) {
  .pwa-video .pv-topbar {
    padding: .4rem .5rem;
  }

  .pwa-video .pv-back-btn {
    width: 36px;
    height: 36px;
  }

  .pwa-video .pv-title {
    font-size: 1.05rem;
  }

  .pwa-video-detail .vd-topbar {
    padding: .7rem;
  }

  .pwa-video-detail .vd-info {
    padding: .85rem .95rem;
  }

  .pwa-video-detail .vd-title {
    font-size: 1.05rem;
  }

  .vd-comment {
    padding: .7rem .85rem;
  }
}

/* =========================================================
   ACCESSIBILITY
   ========================================= ===============*/
.pwa-video .pv-back-btn:focus-visible,
.vps-item:focus-visible,
.pwa-video .video-card:focus-visible,
.pwa-video-detail .pv-back-btn:focus-visible,
.vd-share-top:focus-visible,
.pwa-video-detail .vd-actions .btn:focus-visible,
.hv-nav:focus-visible,
.hv-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

body.dark-mode .pwa-video .pv-back-btn:focus-visible,
body.dark-mode .vps-item:focus-visible,
body.dark-mode .pwa-video .video-card:focus-visible,
body.dark-mode .pwa-video-detail .pv-back-btn:focus-visible,
body.dark-mode .vd-share-top:focus-visible,
body.dark-mode .pwa-video-detail .vd-actions .btn:focus-visible,
body.dark-mode .hv-nav:focus-visible,
body.dark-mode .hv-card:focus-visible {
  outline-color: #5eead4;
}

/* =========================================================
   SMOOTH TRANSITIONS
   ========================================= ===============*/
* {
  -webkit-tap-highlight-color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}