/* Video penceresi. Renk, kose ve yazi her ornegin kendi degiskenlerinden gelir:
   --m-bg, --m-fg, --m-muted, --m-accent, --m-accent-fg, --m-radius, --m-line */
.cv-modal {
  width: min(960px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--m-line, rgb(127 127 127 / .3));
  border-radius: var(--m-radius, 0);
  background: var(--m-bg, #111);
  color: var(--m-fg, #eee);
  overflow: hidden;
}
.cv-modal::backdrop { background: rgb(0 0 0 / .78); }
.cv-modal[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }

.cv-modal__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 14px 14px 20px; }
.cv-modal__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; min-width: 0; }
.cv-modal__title strong { font: inherit; font-weight: 700; font-size: 1.125rem; }
.cv-modal__title span { color: var(--m-muted, #999); font-size: .9375rem; }
.cv-modal__close {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 1px solid var(--m-line, rgb(127 127 127 / .3)); border-radius: var(--m-radius, 0);
  background: transparent; color: inherit; font-size: 1.25rem; cursor: pointer;
}
.cv-modal__close:hover { background: var(--m-accent); color: var(--m-accent-fg); border-color: var(--m-accent); }
.cv-modal__close:focus-visible, .cv-modal__tabs button:focus-visible { outline: 2px solid var(--m-accent); outline-offset: 2px; }

.cv-modal__stage { display: grid; place-items: center; min-height: 0; padding: 0 20px 20px; }
.cv-modal__stage iframe, .cv-modal__stage video { display: block; border: 0; background: #000; max-width: 100%; border-radius: var(--m-radius, 0); }
.cv-modal__stage[data-kind="tall"] iframe { height: min(74dvh, 760px); aspect-ratio: 9 / 16; }
.cv-modal__stage[data-kind="reel"] iframe { width: min(100%, 98dvh); aspect-ratio: 4 / 3; max-height: 74dvh; }
.cv-modal__stage[data-kind="wide"] video { width: 100%; max-height: 74dvh; }
.cv-modal__stage figure { margin: 0; display: grid; gap: 16px; justify-items: center; text-align: center; }
.cv-modal__stage figure img { width: min(420px, 70vw); aspect-ratio: 1; object-fit: cover; border-radius: var(--m-radius, 0); }
.cv-modal__stage figcaption { color: var(--m-muted, #999); }

.cv-modal__tabs { display: flex; gap: 8px; justify-content: center; padding: 0 20px 20px; }
.cv-modal__tabs button {
  min-width: 44px; height: 36px; border: 1px solid var(--m-line, rgb(127 127 127 / .3)); border-radius: var(--m-radius, 0);
  background: transparent; color: inherit; font: inherit; cursor: pointer;
}
.cv-modal__tabs button[aria-pressed="true"] { background: var(--m-accent); color: var(--m-accent-fg); border-color: var(--m-accent); }
