.afs-preview {
  width:100%;
  max-width:100%;
  background:#14171c;
  color:#fff;
  border:1px solid #292e36;
  border-radius:13px;
  padding:10px 12px;
  margin:0 0 20px;
  overflow:hidden;
}
.afs-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  font-size:13px;
  margin-bottom:9px;
}
.afs-heading span {color:#aab2bd;font-size:11px}
.afs-rail {
  display:flex;
  gap:12px;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-width:thin;
  padding:2px 0 6px;
}
.afs-story {
  border:0;
  padding:0;
  background:none;
  color:#dce2e9;
  width:65px;
  min-width:65px;
  text-align:center;
  cursor:pointer;
}
.afs-thumb {
  display:block;
  width:57px;
  height:57px;
  margin:0 auto 5px;
  padding:3px;
  border:2px solid #e63946;
  border-radius:50%;
  overflow:hidden;
}
.afs-thumb img {
  display:block;
  width:100%;
  height:100%;
  border-radius:50%;
  object-fit:cover;
}
.afs-name {
  display:block;
  font-size:10px;
  line-height:1.2;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.afs-loading {font-size:12px;color:#aab2bd}
.afs-demo-content {min-height:100vh;padding:16px 4px}
.afs-demo-content h1 {font-size:1.5rem}

.afs-modal[hidden] {display:none!important}
.afs-modal {
  position:fixed;
  inset:0;
  z-index:1050;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,.94);
  padding:8px 8px 85px;
}
.afs-player {
  position:relative;
  width:min(100%,390px);
  height:min(100%,740px);
  min-height:0;
  display:flex;
  flex-direction:column;
  background:#090b0e;
  border:1px solid #272c34;
  border-radius:15px;
  overflow:hidden;
  color:#fff;
}
.afs-player-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  min-height:45px;
  padding:6px 12px;
}
.afs-player-top button {
  background:#292e36;
  color:#fff;
  border:0;
  border-radius:50%;
  width:35px;
  height:35px;
  cursor:pointer;
}
.afs-video {
  flex:1;
  min-height:0;
  display:flex;
  justify-content:center;
  align-items:center;
  background:#000;
}
.afs-video iframe {
  display:block;
  width:100%;
  height:100%;
  border:0;
}
.afs-player-bottom {padding:9px 12px 12px}
.afs-player-bottom p {
  margin:0 0 9px;
  font-size:12px;
  line-height:1.4;
  color:#e4e7ec;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.afs-actions {display:flex;gap:10px}
.afs-actions button {
  flex:1;
  background:#242931;
  border:1px solid #3d4653;
  border-radius:9px;
  color:#fff;
  padding:10px;
  cursor:pointer;
}
.afs-actions button:disabled {opacity:.3;cursor:default}
.afs-story:focus-visible,
.afs-modal button:focus-visible {
  outline:3px solid #f59e0b;
  outline-offset:3px;
}
@media(max-width:600px) {
  .afs-preview {padding:9px 10px}
  .afs-modal {padding:0 0 85px}
  .afs-player {
    width:100%;
    height:100%;
    max-height:none;
    border-radius:0;
  }
}

/* AFS_RANDOM_SWIPE_V2 */

/* Yalnızca yuvarlak video kapakları */
.afs-heading,
.afs-name {
  display:none !important;
}
.afs-preview {
  padding:8px 10px !important;
  margin-bottom:12px;
}
.afs-rail {
  gap:11px;
  padding:2px 0 !important;
}
.afs-story {
  width:60px;
  min-width:60px;
}
.afs-thumb {
  width:56px;
  height:56px;
  margin-bottom:0;
}

/* Ekranı kaplayan oynatıcı */
.afs-modal {
  padding:0 !important;
  background:#000 !important;
}
.afs-player {
  width:100% !important;
  height:100% !important;
  max-height:none !important;
  border:0 !important;
  border-radius:0 !important;
  background:#000 !important;
}
.afs-player-top {
  position:absolute;
  z-index:5;
  top:12px;
  right:12px;
  padding:0;
  min-height:0;
}
#afsCounter,
.afs-player-bottom {
  display:none !important;
}
#afsClose {
  width:40px;
  height:40px;
  background:rgba(0,0,0,.55);
  font-size:20px;
}
.afs-video {
  position:relative;
  flex:1;
  min-height:0;
}
.afs-video iframe {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
}

/* Swipe bölgeleri */
.afs-swipe-zone {
  position:absolute;
  top:0;
  bottom:0;
  width:17%;
  z-index:2;
  touch-action:pan-y;
  background:transparent;
}
.afs-zone-left {left:0}
.afs-zone-right {right:0}

/* AFS SWIPE FIX V3 */
.afs-modal {
  overscroll-behavior: none;
  touch-action: none;
}

.afs-video {
  position: relative;
  overflow: hidden;
  touch-action: none;
}

.afs-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.afs-touch-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 27%;
  z-index: 4;
  background: transparent;
  touch-action: none;
  cursor: pointer;
}

.afs-touch-left { left: 0; }
.afs-touch-right { right: 0; }

.afs-player {
  overscroll-behavior: contain;
}



/* AFS_ARROWS_V8 */
.afs-nav-arrow {
  position:fixed;
  top:50%;
  transform:translateY(-50%);
  z-index:1060;
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.18);
  border-radius:50%;
  background:rgba(0,0,0,.58);
  color:#fff;
  font-size:34px;
  line-height:1;
  cursor:pointer;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .25s ease,visibility .25s ease;
}

.afs-nav-left {left:12px}
.afs-nav-right {right:12px}

.afs-modal.afs-arrows-visible .afs-nav-arrow {
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

.afs-nav-arrow:disabled {
  opacity:.25;
}

@media(max-width:600px) {
  .afs-nav-arrow {
    width:44px;
    height:44px;
    font-size:31px;
  }
  .afs-nav-left {left:8px}
  .afs-nav-right {right:8px}
}


/* AFS_BRANDED_V10 */

/* Marka çubukları videonun içinde değil, çevresinde. */
.afs-modal:not([hidden]) {
  display: flex !important;
  flex-direction: column;
  background: #0b0d12 !important;
  padding: 0 !important;
  box-sizing: border-box;
}

.afs-brand-header {
  position: relative;
  z-index: 1100;
  flex: 0 0 auto;
  width: 100%;
  min-height: 68px;
  padding: max(10px, env(safe-area-inset-top)) 15px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  background: #141820;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.afs-brand-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  min-width: 0;
}

.afs-brand-symbol {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #e63946;
  font-size: 18px;
}

.afs-brand-words {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.afs-brand-words strong {
  font-size: 13px;
  line-height: 1.15;
  letter-spacing: .6px;
  color: #fff;
}

.afs-brand-words small {
  font-size: 8px;
  color: #aab2bf;
  letter-spacing: .35px;
}

.afs-brand-header #afsClose {
  position: static !important;
  flex: 0 0 auto;
  margin-left: 12px;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  transform: none !important;
  z-index: 1101;
}

.afs-modal .afs-player {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.afs-modal .afs-player-top {
  display: none !important;
}

.afs-modal .afs-video,
.afs-modal #afsVideo {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.afs-brand-footer {
  position: relative;
  z-index: 1100;
  flex: 0 0 auto;
  min-height: 45px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 15px max(8px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  color: #aeb6c4;
  background: #141820;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 11px;
}

.afs-brand-footer span:first-child {
  color: #fff;
  font-weight: 600;
}

/* Önceki-sonraki okları yalnızca video alanının ortasına getir. */
.afs-modal .afs-nav-arrow {
  top: 50%;
}

@media (max-width: 380px) {
  .afs-brand-words strong { font-size: 12px; }
  .afs-brand-words small { font-size: 7px; }
  .afs-brand-footer { font-size: 10px; }
}

/* AFS LOGO V11 */
.afs-brand-logo {
  display: block;
  width: auto;
  height: 38px;
  max-width: 145px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Logo zaten marka adını içeriyor */
.afs-brand-words {
  display: none !important;
}

.afs-brand-identity {
  gap: 0;
}

.afs-brand-header {
  min-height: 64px;
}

/* V12 - Logo ile ayni siyah arka plan */
.afs-modal .afs-brand-header,
.afs-modal .afs-brand-footer {
    background: #000000 !important;
    border-color: #000000 !important;
}

.afs-modal:not([hidden]) {
    background: #000000 !important;
}

/* Stories metadata, above the existing V12 brand footer. */
.afs-story-details {
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 15px;
  background: #000;
  color: #fff;
  touch-action: manipulation;
}
.afs-story-details p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.afs-story-details a {
  display: inline-block;
  margin-top: 5px;
  padding: 5px 0;
  color: #ffb454;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.afs-story-details a[hidden] { display: none; }
.afs-story-details a:focus-visible { outline: 3px solid #f59e0b; }

/* Shared header integration; keep the V12 player rules above unchanged. */
.afs-sitewide { padding-top: 10px; }
.afs-sitewide[hidden] { display: none !important; }
.afs-sitewide .afs-preview { min-height: 76px; margin-bottom: 0; }
.afs-sitewide .afs-rail { min-height: 60px; align-items: center; }
@media print {
  .afs-sitewide, .afs-modal, .afs-nav-arrow { display: none !important; }
  body:has(#afsModal:not([hidden])) { position: static !important; top: auto !important; }
}
[data-afs-open][hidden] { display: none !important; }
