/* =========================================
   VİDEO BÖLÜMÜ (video.php)
   ========================================= */
.video-page { width: var(--main-width); margin: 0 auto 1.5vh; }
.video-page .seperate { width: 100%; max-width: 100%; }

/* Kategori filtresi */
.vd-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.vd-filters a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid #ddd; border-radius: 999px; font-size: 0.9rem; color: #333; text-decoration: none; transition: border-color .2s, color .2s; }
.vd-filters a span { font-size: 0.75rem; color: #999; }
.vd-filters a:hover { border-color: var(--main-color); color: var(--main-color); text-decoration: none; }
.vd-filters a.on { background-color: var(--main-color); border-color: var(--main-color); color: #fff; }
.vd-filters a.on span { color: rgba(255, 255, 255, .8); }

.vd-empty { color: #777; padding: 30px 0; }

/* Kartlar butondur: varsayılan buton görünümü sıfırlanır */
.vd-open { display: flex; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; width: 100%; }
.vd-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #111; }
.vd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--img-dur, .35s) ease; }
:root .vd-thumb img:hover { filter: none; }
.vd-open:hover .vd-thumb img, .vd-open:focus-visible .vd-thumb img { transform: scale(var(--img-zoom, 1.04)); }
.vd-play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(0, 0, 0, .55); border: 2px solid rgba(255, 255, 255, .85); display: flex; align-items: center; justify-content: center; transition: background .2s, transform .2s; }
.vd-play i { color: #fff; font-size: 20px; margin-left: 4px; }
.vd-open:hover .vd-play, .vd-open:focus-visible .vd-play { background: var(--main-color); border-color: var(--main-color); transform: scale(1.08); }
.vd-open:focus-visible { outline: 3px solid var(--main-color); outline-offset: 4px; border-radius: 8px; }
.vd-meta { font-size: 0.82rem; color: #888; }

/* Öne çıkan (son video) */
.vd-featured { gap: 26px; align-items: center; margin-bottom: 28px; }
.vd-featured .vd-thumb { flex: 0 0 62%; }
.vd-featured .vd-play { width: 80px; height: 80px; margin: -40px 0 0 -40px; }
.vd-featured .vd-play i { font-size: 28px; }
.vd-featured-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vd-badge { align-self: flex-start; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--main-color); }
.vd-badge i { color: var(--main-color); }
.vd-featured-title { font-size: 1.7rem; font-weight: 800; line-height: 1.25; color: #111; }
.vd-featured:hover .vd-featured-title { color: var(--main-color); }
.vd-featured-summary { font-size: 1rem; line-height: 1.55; color: #444; }

/* Izgara */
.vd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 20px; margin-bottom: 24px; }
.vd-card { flex-direction: column; gap: 8px; }
.vd-card-title { font-size: 1rem; font-weight: 700; line-height: 1.35; color: #111; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.vd-card:hover .vd-card-title { color: var(--main-color); }

/* Oynatıcı penceresi */
html.vd-lock { overflow: hidden; }
.vd-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .85); display: flex; align-items: center; justify-content: center; padding: 20px; }
.vd-modal[hidden] { display: none; }
.vd-modal-box { position: relative; width: min(1100px, 100%); max-height: 100%; overflow-y: auto; background: #111; border-radius: 10px; }
.vd-close { position: absolute; top: 8px; right: 8px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.vd-close i { color: #fff; font-size: 20px; }
.vd-close:hover { background: var(--main-color); }
.vd-frame { aspect-ratio: 16 / 9; background: #000; }
.vd-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.vd-info { padding: 18px 22px 22px; }
.vd-info .vd-meta { color: #aaa; }
.vd-title { font-size: 1.35rem; font-weight: 800; line-height: 1.3; color: #fff; margin: 6px 0 8px; }
.vd-summary { font-size: 0.98rem; line-height: 1.55; color: #ccc; margin: 0 0 14px; }
.vd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.vd-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; border: 1px solid #444; background: transparent; color: #eee; font-size: 0.92rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.vd-btn i, .vd-btn span { color: inherit; }
.vd-btn:hover { border-color: #fff; text-decoration: none; }
.vd-btn-primary { background: var(--main-color); border-color: var(--main-color); color: #fff; }
.vd-btn-primary:hover { opacity: .9; border-color: var(--main-color); }
.vd-btn[hidden], .vd-summary[hidden] { display: none; }
/* Sitenin genel link rengi (:root a) ve * { color } kuralları buton yazısını ezmesin */
.vd-actions a.vd-btn, .vd-actions a.vd-btn i, .vd-actions .vd-btn span, .vd-actions .vd-btn i { color: #fff; }
.vd-actions a.vd-btn:hover { text-decoration: none; }

@media (max-width: 1024px) {
  .vd-grid { grid-template-columns: repeat(2, 1fr); }
  .vd-featured { flex-direction: column; align-items: stretch; gap: 14px; }
  .vd-featured .vd-thumb { flex-basis: auto; }
  .vd-featured-title { font-size: 1.4rem; }
}
@media (max-width: 768px) {
  .video-page { width: 95%; }
  .vd-grid { gap: 18px 12px; }
  .vd-card-title { font-size: 0.92rem; }
  .vd-play { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
  .vd-play i { font-size: 16px; }
  .vd-modal { padding: 0; align-items: flex-start; }
  .vd-modal-box { border-radius: 0; min-height: 100%; }
  .vd-info { padding: 14px 16px 20px; }
  .vd-title { font-size: 1.15rem; }
}
@media (max-width: 420px) {
  .vd-grid { grid-template-columns: 1fr; }
}
