/* Video izleme penceresi (bmv-*). Tailwind derlemesinden bağımsız ek stiller. */
.bmv-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .86);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  animation: bmv-fade .2s ease-out;
}
.bmv-shell {
  position: relative;
  width: min(1480px, 100%); height: min(920px, calc(100dvh - 48px));
  display: flex; flex-direction: column;
  background: #0d0d10;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 28px;
  overflow: hidden;
  color: #f5f5f5;
  animation: bmv-pop .25s cubic-bezier(.2, .9, .3, 1.1);
}
.bmv-shell::before {
  content: ""; position: absolute; top: -220px; left: 18%;
  width: 640px; height: 360px; border-radius: 50%;
  background: rgba(229, 9, 20, .14); filter: blur(120px);
  pointer-events: none;
}

/* Header */
.bmv-head {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.bmv-titlebox { min-width: 0; flex: 1; }
.bmv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.bmv-chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #d4d4d4;
}
.bmv-chip-brand { background: #e50914; border-color: #e50914; color: #fff; }
.bmv-title {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 30px); line-height: 1.2; font-weight: 800; letter-spacing: -.02em;
  color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bmv-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: #a3a3a3; }
.bmv-meta-strong { color: #fff; font-weight: 600; }
.bmv-dot { width: 4px; height: 4px; border-radius: 50%; background: #525252; }
.bmv-avatar {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
}
.bmv-avatar-sm { width: 24px; height: 24px; font-size: 11px; }
.bmv-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Buttons */
.bmv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s, transform .1s;
}
.bmv-btn:active { transform: scale(.97); }
.bmv-btn:disabled { opacity: .45; cursor: default; }
.bmv-btn-glass { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #e5e5e5; }
.bmv-btn-glass:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.bmv-btn-primary { background: #e50914; color: #fff; }
.bmv-btn-primary:hover { background: #b20710; }
.bmv-btn-danger { width: 42px; padding: 0; background: rgba(229, 9, 20, .12); border-color: rgba(229, 9, 20, .35); color: #ff6b72; }
.bmv-btn-danger:hover { background: #e50914; border-color: #e50914; color: #fff; }
.bmv-btn-round { width: 42px; padding: 0; background: #fff; color: #000; }
.bmv-btn-round:hover { background: #e5e5e5; }
.bmv-ic { width: 18px; height: 18px; flex-shrink: 0; }
.bmv-ic-sm { width: 14px; height: 14px; flex-shrink: 0; }
.bmv-ic-lg { width: 30px; height: 30px; }
.bmv-brand { color: #e50914; }

/* Edit form */
.bmv-edit { flex: 1; display: grid; gap: 8px; max-width: 760px; }
.bmv-label { font-size: 12px; font-weight: 600; color: #a3a3a3; }
.bmv-input {
  width: 100%; box-sizing: border-box;
  padding: 12px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  color: #fff; font: inherit; font-size: 15px; outline: none; resize: vertical;
  transition: border-color .15s, background-color .15s;
}
.bmv-input:focus { border-color: #e50914; background: rgba(255, 255, 255, .07); }
.bmv-input-title { font-size: 18px; font-weight: 700; }
.bmv-input-desc { min-height: 64px; }
.bmv-err { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: #fca5a5; }
.bmv-edit-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

/* Body */
.bmv-body { position: relative; z-index: 1; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 400px; }
.bmv-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 20px 12px 20px 24px; gap: 16px; overflow-y: auto; }
.bmv-player {
  position: relative; flex: 1; min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  background: #000; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .06);
}
.bmv-video { width: 100%; height: 100%; max-height: 100%; object-fit: contain; background: #000; display: block; }
.bmv-photo { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; user-select: none; }
.bmv-spinner-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .35); pointer-events: none; }
.bmv-spinner { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #e50914; border-top-color: transparent; animation: bmv-spin .8s linear infinite; }
.bmv-playover {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  background: rgba(0, 0, 0, .55); border: 0; cursor: pointer; color: #fff;
}
.bmv-playbtn { width: 76px; height: 76px; border-radius: 50%; background: #e50914; display: flex; align-items: center; justify-content: center; transition: transform .15s; }
.bmv-playbtn svg { fill: #fff; margin-left: 4px; }
.bmv-playover:hover .bmv-playbtn { transform: scale(1.06); }
.bmv-playtxt { font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; background: rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .15); }
.bmv-error { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; background: #0a0a0a; }
.bmv-error-title { margin: 4px 0 0; font-size: 17px; font-weight: 700; color: #fff; }
.bmv-error-text { margin: 0 0 8px; font-size: 14px; color: #a3a3a3; }
.bmv-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.bmv-info { display: grid; gap: 14px; }
.bmv-desc {
  margin: 0; padding: 14px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .07);
  font-size: 14px; line-height: 1.6; color: #d4d4d4; white-space: pre-line;
}
.bmv-reactions { display: flex; flex-wrap: wrap; gap: 8px; }
.bmv-react {
  display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 16px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1);
  color: #e5e5e5; cursor: pointer; transition: background-color .15s, border-color .15s, transform .1s;
}
.bmv-react:hover { background: rgba(255, 255, 255, .1); }
.bmv-react:active { transform: scale(.94); }
.bmv-react.is-on { background: rgba(229, 9, 20, .18); border-color: #e50914; }
.bmv-react-emoji { font-size: 20px; line-height: 1; }
.bmv-react-count { font-size: 13px; font-weight: 700; color: #fff; }

/* Notes */
.bmv-side { min-height: 0; display: flex; flex-direction: column; margin: 20px 24px 20px 12px; border-radius: 20px; background: rgba(255, 255, 255, .03); border: 1px solid rgba(255, 255, 255, .07); overflow: hidden; }
.bmv-side-head { display: flex; align-items: center; gap: 8px; padding: 16px 18px; border-bottom: 1px solid rgba(255, 255, 255, .07); font-size: 15px; font-weight: 700; }
.bmv-count { margin-left: auto; min-width: 26px; height: 22px; padding: 0 8px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); font-size: 12px; color: #d4d4d4; }
.bmv-notes { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.bmv-empty { margin: auto; text-align: center; padding: 24px 12px; color: #737373; }
.bmv-empty-icon { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: rgba(229, 9, 20, .1); border: 1px solid rgba(229, 9, 20, .25); color: #e50914; }
.bmv-empty-icon .bmv-ic-lg { width: 26px; height: 26px; }
.bmv-empty-title { margin: 0; font-size: 15px; font-weight: 700; color: #e5e5e5; }
.bmv-empty-text { margin: 4px 0 0; font-size: 13px; }
.bmv-note { padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); }
.bmv-note.is-mine { background: rgba(229, 9, 20, .1); border-color: rgba(229, 9, 20, .25); }
.bmv-note-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.bmv-note-name { font-size: 13px; font-weight: 700; color: #fff; }
.bmv-note-del { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; color: #737373; cursor: pointer; }
.bmv-note-del:hover { background: rgba(229, 9, 20, .15); color: #ff6b72; }
.bmv-note-text { margin: 0; font-size: 14px; line-height: 1.55; color: #e5e5e5; word-break: break-word; white-space: pre-line; }
.bmv-note-form { display: flex; align-items: center; gap: 8px; margin: 12px; padding: 6px 6px 6px 18px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: border-color .15s; }
.bmv-note-form:focus-within { border-color: #e50914; }
.bmv-note-input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #fff; font: inherit; font-size: 15px; }
.bmv-note-input::placeholder { color: #737373; }
.bmv-send { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center; background: #e50914; color: #fff; cursor: pointer; transition: background-color .15s, transform .1s; }
.bmv-send:hover { background: #b20710; }
.bmv-send:active { transform: scale(.92); }
.bmv-send:disabled { opacity: .4; cursor: default; }

/* Delete confirm */
.bmv-confirm { position: absolute; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); animation: bmv-fade .15s ease-out; }
.bmv-confirm-box { width: 100%; max-width: 380px; padding: 28px 24px 22px; border-radius: 24px; text-align: center; background: #141417; border: 1px solid rgba(229, 9, 20, .3); }
.bmv-confirm-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: rgba(229, 9, 20, .12); color: #e50914; }
.bmv-confirm-box h3 { margin: 0; font-size: 18px; font-weight: 800; color: #fff; }
.bmv-confirm-box p { margin: 8px 0 20px; font-size: 14px; color: #a3a3a3; line-height: 1.5; }
.bmv-confirm-actions { display: flex; gap: 8px; }
.bmv-confirm-actions .bmv-btn { flex: 1; }

/* Upload modal: selected photos */
.bmu-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px;
  max-height: 340px; overflow-y: auto; padding: 10px; background: #0a0a0c;
}
.bmu-thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: #18181b; }
.bmu-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bmu-x {
  position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, .7); border: 1px solid rgba(255, 255, 255, .2); color: #fff; cursor: pointer;
}
.bmu-x:hover { background: #e50914; border-color: #e50914; }
.bmu-add {
  aspect-ratio: 1; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: rgba(229, 9, 20, .06); border: 2px dashed rgba(229, 9, 20, .45); color: #ff6b72;
  font-size: 12px; font-weight: 700; cursor: pointer; transition: background-color .15s;
}
.bmu-add:hover { background: rgba(229, 9, 20, .14); }

@keyframes bmv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bmv-pop { from { opacity: 0; transform: scale(.97) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bmv-spin { to { transform: rotate(360deg); } }

/* Tablet */
@media (max-width: 1180px) {
  .bmv-body { grid-template-columns: minmax(0, 1fr) 340px; }
  .bmv-lbl { display: none; }
  .bmv-actions .bmv-btn-glass { width: 42px; padding: 0; }
}

/* Mobil: tam ekran, tek sütun */
@media (max-width: 860px) {
  .bmv-overlay { padding: 0; align-items: stretch; }
  .bmv-shell { width: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .bmv-head { padding: 14px 16px; padding-top: max(14px, env(safe-area-inset-top)); flex-wrap: wrap; gap: 12px; }
  .bmv-titlebox { flex-basis: 100%; order: 2; }
  .bmv-actions { order: 1; width: 100%; justify-content: flex-end; }
  .bmv-actions .bmv-btn-round { order: -1; margin-right: auto; }
  .bmv-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 21px; }
  .bmv-chips { display: none; }
  .bmv-body { display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .bmv-main { padding: 0 0 16px; overflow: visible; }
  .bmv-player { flex: none; min-height: 220px; border-radius: 0; border-left: 0; border-right: 0; }
  .bmv-video, .bmv-photo { height: auto; max-height: 64dvh; }
  .bmv-info { padding: 0 16px; }
  .bmv-react { height: 46px; flex: 1 1 calc(33.33% - 8px); justify-content: center; }
  .bmv-side { margin: 0 16px; margin-bottom: max(16px, env(safe-area-inset-bottom)); min-height: 360px; max-height: 70dvh; }
  .bmv-edit { max-width: none; }
  .bmv-input { font-size: 16px; }
  .bmv-note-input { font-size: 16px; }
}
