/* Manşet slider'ı ve manşet tasarımı (site ana sayfası + paneldeki önizleme) */
@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald-var.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}

.manset { align-self: start; position: relative; border-radius: var(--radius, 12px); overflow: hidden; background: #0d0d0f; color: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .12); }
.manset__track { position: relative; aspect-ratio: 16 / 9; overflow: hidden; touch-action: pan-y; container-type: inline-size; }
.manset__slide { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility 0s linear .55s; }
.manset__slide.is-active { opacity: 1; visibility: visible; transition: opacity .55s ease, visibility 0s; z-index: 1; }
.manset__slide picture, .manset__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.manset__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.manset__slide.is-active img { animation: manset-zoom calc(var(--manset-t, 6s) + 1s) ease-out both; }
.manset__slide--custom.is-active img { animation: none; }
@keyframes manset-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.manset__ph { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(135deg, #2a2a30, #121216); }

/* Büyük punto tasarım: siyah kutuda başlık, altında "›" ile alt satır */
.manset__slide--tasarim::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(196, 0, 15, .9) 0%, rgba(196, 0, 15, .62) 40%, rgba(196, 0, 15, 0) 74%);
}
.manset__art { position: absolute; z-index: 2; left: 4.5%; top: 50%; transform: translateY(-50%); width: 64%; display: flex; flex-direction: column; align-items: flex-start; gap: .55em; font-size: clamp(13px, 2.6vw, 21px); font-size: clamp(8px, 3cqw, 21px); }
.manset__h { display: inline-block; max-width: 100%; background: #111; color: #fff; padding: .12em .3em .16em; font: 700 2.6em/1.06 "Oswald", "Arial Narrow", Impact, sans-serif; letter-spacing: .005em; box-shadow: 0 6px 22px rgba(0, 0, 0, .3); overflow-wrap: anywhere; }
.manset__art--long .manset__h { font-size: 2.15em; }
.manset__art--xl .manset__h { font-size: 1.75em; }
.manset__sub { font: 500 1.75em/1.12 "Oswald", "Arial Narrow", sans-serif; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); padding-left: .85em; position: relative; max-width: 100%; }
.manset__sub::before { content: "›"; position: absolute; left: 0; top: -.06em; font-weight: 700; }
.manset__slide.is-active .manset__h { animation: manset-in .6s .1s cubic-bezier(.2, .8, .2, 1) both; }
.manset__slide.is-active .manset__sub { animation: manset-in .6s .3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes manset-in { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

/* Klasik: altta başlık */
.manset__slide--baslik::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .35) 45%, transparent 70%); }
.manset__cap { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 18px 22px 20px; display: flex; flex-direction: column; gap: 6px; }
.manset__cap .cat-label { color: #fff; opacity: .85; }
.manset__cap-t { font: 700 clamp(18px, 2.6vw, 28px)/1.2 var(--serif, Georgia, serif); }

/* Son dakika efekti: kırmızı şerit, yanıp sönen nokta, parlama ve nabız gibi atan çerçeve */
.manset__flash {
  position: absolute; z-index: 3; top: 0; left: 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 14px; background: #e00000; color: #fff; font: 700 clamp(13px, 1.6vw, 17px)/1 "Oswald", sans-serif; font-size: clamp(10px, 2.3cqw, 17px); letter-spacing: .08em;
  border-bottom-right-radius: 10px; overflow: hidden; box-shadow: 0 4px 16px rgba(224, 0, 0, .45);
}
.manset__flash::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); animation: manset-shine 2.2s ease-in-out infinite; }
.manset__flash .live__dot { background: #fff; }
.manset__slide.is-active .manset__flash { animation: manset-flash-in .5s cubic-bezier(.2, .8, .2, 1) both; }
.manset__slide.is-breaking::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; box-shadow: inset 0 0 0 4px #e00000; animation: manset-pulse 1.4s ease-in-out infinite; }
@keyframes manset-shine { 0%, 35% { transform: translateX(-120%); } 75%, 100% { transform: translateX(120%); } }
@keyframes manset-flash-in { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes manset-pulse { 0%, 100% { box-shadow: inset 0 0 0 3px rgba(224, 0, 0, .95); } 50% { box-shadow: inset 0 0 0 7px rgba(224, 0, 0, .35); } }
.manset__slide .manset__play { position: absolute; z-index: 3; inset: auto 14px 14px auto; transform: none; margin: 0; }

/* Numaralar: 1 2 3 … */
.manset__nums { display: flex; background: #111; overflow-x: auto; scrollbar-width: none; }
.manset__nums::-webkit-scrollbar { display: none; }
.manset__num {
  position: relative; flex: 1 1 0; min-width: 32px; height: 34px; padding: 0 6px; border: 0; background: transparent; color: #fff;
  font: 700 13px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; cursor: pointer; transition: background .2s;
}
.manset__num + .manset__num { box-shadow: inset 1px 0 0 rgba(255, 255, 255, .08); }
.manset__num:hover, .manset__num:focus-visible { background: rgba(255, 255, 255, .12); outline: none; }
.manset__num.is-active { background: #d40000; }
.manset__num.is-breaking:not(.is-active) { color: #ff6b6b; }
.manset__num.is-active::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(255, 255, 255, .85); transform-origin: left; animation: manset-progress var(--manset-t, 6s) linear both; }
.manset.is-paused .manset__num.is-active::after { animation-play-state: paused; }
@keyframes manset-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (max-width: 760px) {
  .manset { border-radius: 0; margin: 0 calc(-1 * var(--gutter, 16px)); }
  .manset__art { width: 80%; }
  .manset__num { min-width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .manset__slide, .manset__slide.is-active img, .manset__h, .manset__sub, .manset__flash, .manset__flash::after, .manset__slide.is-breaking::after { animation: none !important; transition: none !important; }
  .manset__num.is-active::after { display: none; }
}
/* Paneldeki canlı önizleme: yazarken giriş animasyonu oynamasın */
.manset--preview .manset__h, .manset--preview .manset__sub, .manset--preview img { animation: none !important; }
.manset--preview .manset__num { cursor: default; }
