/* ==========================================================================
   SezTube :: module/view  (önek: vw-)
   Video izleme sayfası: oynatıcı, bilgi, tepkiler, açıklama, önerilenler.
   Mobilde oynatıcı üstte yapışık, masaüstünde sağda öneri sütunu.
   ========================================================================== */

.vw-page { width: 100%; max-width: 1700px; margin: 0 auto; padding-bottom: 20px; }
.vw-main { min-width: 0; }

/* ---------- Oynatıcı ---------- */
.vw-player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.vw-player iframe, .vw-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.vw-err {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 20px; text-align: center; color: var(--st-text-2); background: var(--st-surface);
}
.vw-err .st-icon { color: var(--st-warning); }

@media (max-width: 999px) and (orientation: portrait) {
  .vw-player { position: sticky; z-index: 35; top: calc(var(--st-topbar-h) + var(--st-safe-t)); }
}

/* ---------- Bilgi ---------- */
.vw-info { padding: 14px 14px 4px; animation: vw-in .5s var(--st-ease) both; }
.vw-title { font-size: 19px; font-weight: 740; line-height: 1.3; letter-spacing: -.015em; overflow-wrap: anywhere; }

.vw-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 6px; font-size: 13px; color: var(--st-text-2); }
.vw-meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .7; }
.vw-cat {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 650; color: var(--st-accent); background: var(--st-accent-soft);
  transition: filter .2s;
}
a.vw-cat:hover { filter: brightness(1.2); }

.vw-bar { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.vw-owner { display: flex; align-items: center; gap: 12px; min-width: 0; }
.vw-owner__text { display: flex; flex-direction: column; min-width: 0; }
.vw-owner__text strong { font-size: 15px; font-weight: 680; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vw-owner__text span { font-size: 12.5px; color: var(--st-text-3); }

.vw-actions { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.vw-actions::-webkit-scrollbar { display: none; }

.vw-react { display: inline-flex; flex: none; overflow: hidden; border-radius: 999px; background: var(--st-surface-2); border: 1px solid var(--st-border); }
.vw-act {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none;
  height: 40px; padding: 0 16px; font-size: 14px; font-weight: 650; color: var(--st-text);
  transition: background .2s, color .2s, transform .15s var(--st-ease);
}
.vw-act:hover { background: var(--st-surface-3); }
.vw-act:active { transform: scale(.94); }
.vw-act--dislike { padding: 0 14px; border-left: 1px solid var(--st-border); }
.vw-act--pill { border-radius: 999px; background: var(--st-surface-2); border: 1px solid var(--st-border); }
.vw-act.is-active { color: var(--st-accent); background: var(--st-accent-soft); }
.vw-act.is-active .st-icon { fill: currentColor; fill-opacity: .22; }
.vw-act.is-pop .st-icon { animation: vw-pop .45s var(--st-spring); }

/* ---------- Açıklama ---------- */
.vw-desc { margin: 14px 0 0; padding: 12px 14px; border-radius: 16px; background: var(--st-surface-2); border: 1px solid var(--st-border); }
.vw-desc__text { font-size: 14px; line-height: 1.55; color: var(--st-text-2); overflow-wrap: anywhere; }
.vw-desc__text a { color: var(--st-accent); }
.vw-desc__text a:hover { text-decoration: underline; }
.vw-desc:not(.is-open) .vw-desc__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vw-desc__more { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--st-text); }
.vw-desc__more:hover { color: var(--st-accent); }

.vw-comments { padding: 18px 14px 6px; }

/* ---------- Önerilenler ---------- */
.vw-side { padding: 18px 14px 0; }
.vw-side__title { margin-bottom: 12px; font-size: 16px; font-weight: 720; letter-spacing: -.01em; }
.vw-side__list { display: flex; flex-direction: column; gap: 14px; }

.vw-rel { display: flex; gap: 10px; min-width: 0; }
.vw-rel__thumb {
  position: relative; display: block; flex: none; width: 150px; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: 12px; background: var(--st-surface-2);
}
.vw-rel__thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--st-border); pointer-events: none; }
.vw-rel__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--st-ease); }
.vw-ph {
  display: grid; place-items: center; width: 100%; height: 100%; color: rgba(255, 255, 255, .85);
  background: linear-gradient(135deg, hsl(var(--vw-h, 260), 68%, 48%), hsl(calc(var(--vw-h, 260) + 55), 72%, 36%));
}
.vw-dur {
  position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 7px;
  font-size: 11.5px; font-weight: 650; line-height: 1.5; color: #fff; font-variant-numeric: tabular-nums;
  background: rgba(8, 8, 14, .78);
}
.vw-rel__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vw-rel__title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 14px; font-weight: 650; line-height: 1.35; transition: color .2s;
}
.vw-rel__by { font-size: 12.5px; color: var(--st-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vw-rel__meta { font-size: 12px; color: var(--st-text-3); }
@media (hover: hover) {
  .vw-rel:hover .vw-rel__title { color: var(--st-accent); }
  .vw-rel:hover .vw-rel__thumb img { transform: scale(1.06); }
}

/* ---------- Masaüstü ---------- */
@media (min-width: 768px) {
  .vw-info { padding: 18px 2px 4px; }
  .vw-title { font-size: 22px; }
  .vw-bar { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
  .vw-actions { overflow: visible; }
  .vw-comments { padding: 22px 2px 6px; }
}
@media (min-width: 1000px) {
  .vw-page { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; padding: 24px 28px 36px; }
  .vw-player { border-radius: 20px; box-shadow: 0 26px 60px -28px rgba(0, 0, 0, .8), 0 0 0 1px var(--st-border); }
  .vw-side { padding: 0; }
  .vw-rel__thumb { width: 168px; }
}
@media (min-width: 1500px) { .vw-page { grid-template-columns: minmax(0, 1fr) 420px; } }

@keyframes vw-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes vw-pop { 0% { transform: scale(1); } 40% { transform: scale(1.35) rotate(-8deg); } 100% { transform: scale(1); } }
