:root {
  --on7-red: #df1724;
  --on7-red-dark: #b60e18;
  --on7-navy: #0b1b2d;
  --on7-ink: #101926;
  --on7-muted: #697484;
  --on7-line: #e3e8ed;
  --on7-soft: #f6f8fa;
  --on7-white: #fff;
  --on7-shadow: 0 14px 34px rgba(18, 33, 49, .07);
}

.on7-video-page,
.on7-video-single-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: none !important;
  margin: 28px 0 58px;
  transform: none;
  font-family: inherit;
  color: var(--on7-ink);
}

/*
 * 17.org.tr / Rehberim tema entegrasyonu
 * Tema normal WordPress sayfalarını .single-shell ile 1000px'e sınırlar.
 * Video Haberler ise üst menü, slider ve diğer ana site alanlarıyla aynı
 * .site-shell genişliğini (1440px / ekrandan 40px boşluk) kullanır.
 */
body.on7-video-archive-active .site-main > .site-shell.single-shell,
body.on7-video-archive-active #primary-content > .site-shell.single-shell {
  width: min(1440px, calc(100% - 40px)) !important;
  max-width: none !important;
}

body.on7-video-archive-active .single-shell > .single-content {
  width: 100%;
  max-width: none !important;
}

body.on7-video-archive-active .single-content > .entry-content,
body.on7-video-archive-active .entry-content > .on7-video-page {
  width: 100% !important;
  max-width: none !important;
}

/* Tema dışında kullanıldığında da aynı masaüstü ritmini koru. */
body:not(.on7-video-archive-active) .on7-video-page {
  width: min(1440px, calc(100vw - 40px));
  margin-left: 50%;
  transform: translateX(-50%);
}

.on7-video-page *,
.on7-video-single-wrap * { box-sizing: border-box; }

/* ÜST TANITIM */
.on7-video-heading {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr);
  min-height: 242px;
  margin: 0 0 24px;
  border: 1px solid var(--on7-line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 16%, rgba(223,23,36,.17) 0, rgba(223,23,36,.08) 24%, transparent 46%),
    linear-gradient(120deg, #fff 0%, #fff 48%, #fbf3f4 100%);
  box-shadow: 0 10px 30px rgba(18,33,49,.035);
}

.on7-video-heading:before {
  content: '';
  position: absolute;
  right: 14%;
  top: -82px;
  width: 235px;
  height: 235px;
  border: 38px solid rgba(223,23,36,.035);
  border-radius: 50%;
}

.on7-heading-copy {
  position: relative;
  z-index: 2;
  padding: 34px 24px 28px 34px;
}

.on7-video-kicker {
  display: inline-flex;
  margin-bottom: 11px;
  color: var(--on7-red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .11em;
}

.on7-video-display-title {
  margin: 0;
  color: var(--on7-ink);
  font-size: clamp(38px, 5vw, 55px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -.04em;
}

.on7-video-heading p {
  max-width: 620px;
  margin: 12px 0 20px;
  color: #667180;
  font-size: 15px;
  line-height: 1.65;
}

.on7-heading-features {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.on7-heading-features > span {
  display: grid;
  grid-template-columns: 28px auto;
  grid-template-rows: auto auto;
  column-gap: 8px;
  min-width: 145px;
  padding: 9px 11px;
  border: 1px solid #edf0f3;
  border-radius: 12px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 7px 18px rgba(15,28,41,.03);
}

.on7-heading-features i {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff0f1;
  color: var(--on7-red);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.on7-heading-features b { font-size: 11px; line-height: 1.1; }
.on7-heading-features small { margin-top: 2px; color: #89929c; font-size: 9px; white-space: nowrap; }

.on7-heading-visual {
  position: relative;
  min-height: 242px;
  overflow: hidden;
}

.on7-heading-visual:after {
  content: '';
  position: absolute;
  inset: 10% 0 0 8%;
  background-image: radial-gradient(rgba(223,23,36,.16) 1px, transparent 1px);
  background-size: 11px 11px;
  mask-image: linear-gradient(to right, transparent, #000 50%);
  opacity: .75;
}

.on7-heading-mark {
  position: absolute;
  z-index: 4;
  right: 28px;
  top: 58px;
  display: grid;
  place-items: center;
  width: 116px;
  height: 116px;
  border-radius: 27px;
  background: linear-gradient(145deg, #e31a28, #cb0f1b);
  color: #fff;
  font-size: 48px;
  font-weight: 950;
  letter-spacing: -.08em;
  box-shadow: 0 18px 36px rgba(209,15,28,.25);
}

.on7-heading-mark em {
  position: absolute;
  right: 10px;
  bottom: 11px;
  font-size: 20px;
  font-style: normal;
  letter-spacing: 0;
}

.on7-monument {
  position: absolute;
  z-index: 2;
  left: 8px;
  bottom: -3px;
  width: 126px;
  height: 151px;
  opacity: .24;
  filter: saturate(.45) sepia(.15);
}

.on7-monument i { position: absolute; display: block; background: #ab7a70; }
.on7-monument i:nth-child(1),
.on7-monument i:nth-child(2) { bottom: 0; width: 25px; height: 128px; border-radius: 4px 4px 0 0; }
.on7-monument i:nth-child(1) { left: 14px; }
.on7-monument i:nth-child(2) { right: 14px; }
.on7-monument i:nth-child(3) { left: 8px; right: 8px; top: 0; height: 29px; border-radius: 3px; }

/* ANA YERLEŞİM */
.on7-video-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(295px, .82fr);
  gap: 20px;
  align-items: start;
}

.on7-video-main,
.on7-video-sidebar { min-width: 0; }

.on7-video-main { display: grid; gap: 20px; }
.on7-video-sidebar { display: grid; gap: 16px; }

/* ÖNE ÇIKAN */
.on7-featured-video,
.on7-video-browser,
.on7-side-card,
.on7-youtube-card {
  border: 1px solid var(--on7-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--on7-shadow);
}

.on7-featured-video { position: relative; overflow: hidden; }

.on7-featured-badge {
  display: none !important;
  position: absolute;
  z-index: 5;
  left: 14px;
  top: 14px;
  padding: 8px 12px;
  border-radius: 7px;
  background: var(--on7-red);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  box-shadow: 0 6px 16px rgba(223,23,36,.22);
}

.on7-featured-media,
.on7-video-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #0a0f14;
  cursor: pointer;
  overflow: hidden;
}

.on7-featured-media { aspect-ratio: 16 / 8.6; }
.on7-video-thumb { aspect-ratio: 16 / 9; }

.on7-featured-media img,
.on7-video-thumb img,
.on7-featured-media iframe,
.on7-video-thumb iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.on7-featured-media:after,
.on7-video-thumb:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.02) 50%, rgba(0,0,0,.29) 100%);
  pointer-events: none;
}

.on7-featured-media.is-playing:after,
.on7-video-thumb.is-playing:after { display: none; }

.on7-play-icon {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  transform: translate(-50%, -50%);
  border: 3px solid rgba(255,255,255,.96);
  border-radius: 50%;
  background: rgba(10,15,20,.48);
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  transition: transform .18s ease, background .18s ease;
}

.on7-play-icon.is-large { width: 74px; height: 74px; background: rgba(211,16,29,.86); }
.on7-play-icon span {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 15px solid #fff;
}
.on7-play-icon.is-large span {
  margin-left: 6px;
  border-top-width: 13px;
  border-bottom-width: 13px;
  border-left-width: 21px;
}
.on7-featured-media:hover .on7-play-icon,
.on7-video-thumb:hover .on7-play-icon { transform: translate(-50%, -50%) scale(1.07); background: var(--on7-red); }

.on7-duration,
.on7-side-duration {
  position: absolute;
  z-index: 4;
  right: 8px;
  bottom: 7px;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(7,11,15,.88);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.on7-duration.is-featured { right: 12px; bottom: 10px; font-size: 11px; padding: 5px 7px; }

.on7-featured-copy { padding: 16px 18px 18px; }
.on7-featured-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.7vw, 29px);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.on7-featured-copy h2 a,
.on7-video-card h3 a { color: inherit; text-decoration: none; }
.on7-featured-copy h2 a:hover,
.on7-video-card h3 a:hover { color: var(--on7-red); }
.on7-featured-copy p { margin: 0 0 13px; color: var(--on7-muted); font-size: 13px; line-height: 1.6; }
.on7-featured-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; }

.on7-watch-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--on7-red);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 7px 16px rgba(223,23,36,.18);
}
.on7-watch-button:hover { background: var(--on7-red-dark); }

.on7-video-meta { display: flex; flex-wrap: wrap; gap: 14px; color: #8a939e; font-size: 10px; font-weight: 650; }
.on7-video-meta span { display: inline-flex; align-items: center; gap: 5px; }
.on7-meta-date:before { content: '▣'; font-size: 9px; }
.on7-meta-view:before { content: '◉'; font-size: 9px; }

/* VİDEO TARAYICI */
.on7-video-browser { padding: 14px; }

.on7-video-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}
.on7-video-filters a {
  padding: 8px 13px;
  border: 1px solid #e3e8ed;
  border-radius: 8px;
  background: #fff;
  color: #273343;
  text-decoration: none;
  font-size: 10px;
  font-weight: 850;
  transition: .15s ease;
}
.on7-video-filters a:hover,
.on7-video-filters a.is-active { border-color: var(--on7-red); background: var(--on7-red); color: #fff; }

.on7-video-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 9px; margin: 0 0 16px; }
.on7-video-search { display: grid; grid-template-columns: minmax(0, 1fr) 42px; }
.on7-video-search input,
.on7-video-sort select {
  width: 100%;
  height: 40px;
  border: 1px solid #dce2e7;
  background: #fff;
  color: #354150;
  font: inherit;
  font-size: 11px;
  outline: none;
}
.on7-video-search input { min-width: 0; padding: 0 12px; border-radius: 8px 0 0 8px; }
.on7-video-search button { border: 1px solid #dce2e7; border-left: 0; border-radius: 0 8px 8px 0; background: #fff; color: var(--on7-navy); font-size: 20px; cursor: pointer; }
.on7-video-search input:focus { border-color: #b9c2ca; }
.on7-video-sort select { padding: 0 10px; border-radius: 8px; cursor: pointer; }

.on7-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  color: var(--on7-ink);
  font-size: 16px;
  font-weight: 900;
}
.on7-section-title > span { display: inline-flex; align-items: center; gap: 9px; }
.on7-section-title > span:before { content: ''; width: 3px; height: 20px; border-radius: 999px; background: var(--on7-red); }
.on7-section-title small { color: #9aa2ab; font-size: 10px; font-weight: 700; }
.on7-grid-title { padding-top: 3px; }

.on7-video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.on7-video-card { overflow: hidden; border: 1px solid var(--on7-line); border-radius: 11px; background: #fff; transition: transform .16s ease, box-shadow .16s ease; }
.on7-video-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(15,28,41,.08); }
.on7-video-card-body { padding: 10px 10px 11px; }
.on7-video-card h3 { margin: 0 0 9px; min-height: 2.7em; font-size: 12px; line-height: 1.35; letter-spacing: -.01em; }

/* SAĞ SÜTUN */
.on7-side-card { padding: 15px; box-shadow: 0 10px 28px rgba(15,28,41,.045); }
.on7-side-card .on7-section-title { margin-bottom: 7px; }
.on7-side-list { display: grid; }
.on7-side-video {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid #edf0f2;
  color: inherit;
  text-decoration: none;
}
.on7-side-video.is-ranked { grid-template-columns: 24px 72px minmax(0, 1fr); }
.on7-side-video:last-child { border-bottom: 0; }
.on7-side-rank { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--on7-red); color: #fff; font-size: 10px; font-weight: 900; }
.on7-side-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 7px; background: #edf1f4; }
.on7-side-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.on7-side-duration { right: 3px; bottom: 3px; padding: 2px 4px; font-size: 8px; }
.on7-side-copy { min-width: 0; }
.on7-side-copy strong { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 11px; line-height: 1.32; }
.on7-side-copy small { display: block; margin-top: 4px; color: #9aa2ab; font-size: 8.5px; }
.on7-side-video:hover strong { color: var(--on7-red); }

.on7-side-more { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; margin-top: 10px; border: 1px solid var(--on7-line); border-radius: 8px; color: #273343; text-decoration: none; font-size: 10px; font-weight: 850; }
.on7-side-more:hover { border-color: #cfd6dc; background: var(--on7-soft); }

.on7-category-list { display: grid; gap: 2px; }
.on7-category-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 31px; color: #33404c; text-decoration: none; font-size: 10px; }
.on7-category-list a > span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.on7-category-list i { color: #7c8792; font-style: normal; font-size: 9px; }
.on7-category-list b { display: grid; place-items: center; min-width: 26px; height: 20px; padding: 0 6px; border-radius: 999px; background: #f2f4f6; color: #68737e; font-size: 8px; }
.on7-category-list a:hover { color: var(--on7-red); }

.on7-youtube-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 76px;
  gap: 10px;
  padding: 20px 17px;
  border-color: #f2dfe1;
  background: radial-gradient(circle at 90% 15%, rgba(223,23,36,.15), transparent 35%), linear-gradient(135deg,#fff 0%,#fff 56%,#fff1f2 100%);
}
.on7-youtube-copy { position: relative; z-index: 2; }
.on7-youtube-copy > span { display: block; margin-bottom: 3px; color: var(--on7-red); font-size: 11px; font-weight: 900; }
.on7-youtube-copy strong { display: block; font-size: 18px; line-height: 1.15; }
.on7-youtube-copy p { margin: 8px 0 12px; color: var(--on7-muted); font-size: 10px; line-height: 1.5; }
.on7-youtube-copy a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; border-radius: 7px; background: var(--on7-red); color: #fff !important; text-decoration: none !important; font-size: 9px; font-weight: 900; }
.on7-youtube-icon { align-self: center; display: grid; place-items: center; width: 62px; height: 52px; border-radius: 15px; background: var(--on7-red); color: #fff; font-size: 23px; box-shadow: 0 12px 24px rgba(223,23,36,.22); }

/* SAYFALAMA / BOŞ DURUM */
.on7-video-pagination { margin-top: 17px; }
.on7-video-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.on7-video-pagination a,
.on7-video-pagination span { display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--on7-line); border-radius: 7px; background: #fff; color: var(--on7-ink); text-decoration: none; font-size: 10px; font-weight: 850; }
.on7-video-pagination .current { border-color: var(--on7-red); background: var(--on7-red); color: #fff; }

.on7-empty-state,
.on7-empty-small { color: var(--on7-muted); }
.on7-empty-small { margin: 12px 0 4px; font-size: 11px; line-height: 1.5; }
.on7-empty-state { display: grid; gap: 6px; padding: 34px 20px; border: 1px dashed #cfd6dc; border-radius: 12px; background: #fafbfc; text-align: center; }
.on7-empty-state strong { font-size: 14px; }
.on7-empty-state span { font-size: 11px; }

/* TEKİL VİDEO */
.on7-video-single { max-width: 980px; margin: 0 auto; }
.on7-back-link { display: inline-flex; margin-bottom: 18px; color: var(--on7-red); font-size: 12px; font-weight: 850; text-decoration: none; }
.on7-single-header { margin-bottom: 18px; }
.on7-single-header h1 { max-width: 900px; margin: 0 0 12px; color: var(--on7-ink); font-size: clamp(30px, 4.5vw, 48px); line-height: 1.06; letter-spacing: -.035em; }
.on7-single-player { overflow: hidden; aspect-ratio: 16 / 9; border-radius: 18px; background: #050708; box-shadow: var(--on7-shadow); }
.on7-single-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.on7-single-summary { margin: 18px 0 0; padding: 18px 20px; border: 1px solid var(--on7-line); border-radius: 13px; background: #fff; color: var(--on7-muted); font-size: 14px; line-height: 1.7; }
.on7-single-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 16px 0; margin-top: 18px; border-top: 1px solid var(--on7-line); border-bottom: 1px solid var(--on7-line); }
.on7-single-footer > span { margin-right: auto; font-size: 11px; font-weight: 900; color: var(--on7-red); text-transform: uppercase; letter-spacing: .08em; }
.on7-single-footer a { padding: 8px 10px; border-radius: 7px; background: var(--on7-soft); color: var(--on7-ink); text-decoration: none; font-size: 11px; font-weight: 800; }

@media (max-width: 1020px) {
  .on7-video-heading { grid-template-columns: minmax(0,1fr) 280px; }
  .on7-video-layout { grid-template-columns: 1fr; }
  .on7-video-sidebar { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .on7-youtube-card { min-height: 220px; }
}

@media (max-width: 760px) {
  body.on7-video-archive-active .site-main > .site-shell.single-shell,
  body.on7-video-archive-active #primary-content > .site-shell.single-shell {
    width: calc(100% - 20px) !important;
  }
  .on7-video-page,
  .on7-video-single-wrap { width: 100%; margin-top: 16px; margin-bottom: 38px; }
  body:not(.on7-video-archive-active) .on7-video-page {
    width: calc(100vw - 20px);
  }
  .on7-video-heading { grid-template-columns: 1fr; min-height: 0; border-radius: 15px; }
  .on7-heading-copy { padding: 25px 20px 21px; }
  .on7-heading-visual { display: none; }
  .on7-video-display-title { font-size: 38px; }
  .on7-video-heading p { font-size: 13px; }
  .on7-heading-features { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .on7-heading-features > span { min-width: 142px; }
  .on7-featured-media { aspect-ratio: 16 / 9; }
  .on7-featured-bottom { align-items: flex-start; flex-direction: column; }
  .on7-watch-button { width: 100%; justify-content: center; }
  .on7-video-toolbar { grid-template-columns: 1fr; }
  .on7-video-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
  .on7-video-filters a { flex: 0 0 auto; white-space: nowrap; }
  .on7-video-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .on7-video-sidebar { grid-template-columns: 1fr; }
  .on7-youtube-card { min-height: 0; }
}

@media (max-width: 520px) {
  .on7-video-grid { grid-template-columns: 1fr; gap: 12px; }
  .on7-video-card h3 { min-height: 0; font-size: 14px; }
  .on7-play-icon { width: 58px; height: 58px; }
  .on7-featured-copy h2 { font-size: 21px; }
  .on7-side-video.is-ranked { grid-template-columns: 24px 82px minmax(0,1fr); }
  .on7-side-video { grid-template-columns: 82px minmax(0,1fr); }
}
