/*
 * ============================================================================
 *  SEZFILM TV — TASARIM            Yol: /modules/kanal/kanal.css            Önek: .szkn-
 * ----------------------------------------------------------------------------
 *  1) Oynatıcı üstü TV grafikleri (logo, REKLAM, alt bant, sıradaki) — oynatıcı
 *     genişliğine göre ölçeklenir (cqw), tam ekranda da aynı oranda büyür.
 *  2) Kanal paneli: şimdi yayında film kartı, sıradaki programlar, "TV'ne ekle" (IPTV)
 *  3) Ana sayfa "Şimdi canlı" kartı
 * ============================================================================
 */

/* ------------------------------------------------------------ 1) OYNATICI ÜSTÜ */
.szkn { position: absolute; inset: 0; z-index: 2; pointer-events: none; container-type: size; }
.szkn > * { font-size: clamp(11px, 1.6cqw, 22px); }   /* oynatıcı genişliğine göre ölçek (katmanın kendisi kapsayıcı) */
.szkn[hidden] { display: none; }

/* kanal logosu (sağ üst, TV'deki gibi yarı saydam) */
.szkn-bug { position: absolute; top: 5.5%; right: 3.5%; opacity: .78; transition: opacity .4s; filter: drop-shadow(0 2px 8px rgba(0,0,0,.6)); line-height: 1; text-align: right; }
.szkn-bug[hidden] { display: block; opacity: 0; }
.szkn-bug img { height: 2.6em; width: auto; max-width: 9em; object-fit: contain; display: block; }
.szkn-bug b { display: block; font-weight: 900; font-size: 1.5em; letter-spacing: -.045em; color: #fff; }
.szkn-bug b span { background: var(--sz-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.szkn-bug small { display: block; font-size: .62em; font-weight: 800; letter-spacing: .5em; color: rgba(255,255,255,.85); margin-top: .2em; margin-right: -.5em; }

/* REKLAM rozeti + geri sayım (sol üst) */
.szkn-ad { position: absolute; top: 5.5%; left: 3.5%; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .35em .7em; padding: .55em .8em .65em .55em; border-radius: .6em;
  background: rgba(8,8,13,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12); color: #fff; max-width: 70%; animation: szkn-in .4s var(--sz-ease); }
.szkn-ad[hidden] { display: none; }
.szkn-ad__tag { padding: .3em .6em; border-radius: .35em; background: var(--sz-gold); color: #111; font-weight: 900; font-size: .78em; letter-spacing: .12em; text-transform: uppercase; }
.szkn-ad__t { font-weight: 600; font-size: .95em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.szkn-ad__bar { grid-column: 1 / -1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; }
.szkn-ad__bar i { display: block; height: 100%; width: 0; background: var(--sz-gold); transition: width .5s linear; }

/* reklamda: "Reklamlardan sonra · Film" (sağ alt) */
.szkn-back { position: absolute; right: 3.5%; bottom: 17%; display: flex; align-items: center; gap: .7em; padding: .5em .9em .5em .5em; border-radius: .7em; max-width: 46%;
  background: rgba(8,8,13,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12); color: #fff; animation: szkn-in .5s var(--sz-ease); }
.szkn-back[hidden] { display: none; }
.szkn-back img { width: 2.6em; height: 3.9em; object-fit: cover; border-radius: .35em; flex: none; background: #222; }
.szkn-back small { display: block; font-size: .72em; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.szkn-back b { display: block; font-size: 1em; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* alt bant: "Şimdi yayında · Film adı" (sol alt) */
.szkn-lt { position: absolute; left: 3.5%; bottom: 17%; display: flex; align-items: center; gap: .8em; max-width: 64%; padding: .55em 1.2em .55em .55em; border-radius: .8em;
  background: linear-gradient(90deg, rgba(8,8,13,.88), rgba(8,8,13,.6)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12);
  border-left: .25em solid var(--sz-primary); color: #fff; animation: szkn-slide .6s var(--sz-ease); }
.szkn-lt[hidden] { display: none; }
.szkn-lt img { width: 3em; height: 4.5em; object-fit: cover; border-radius: .4em; flex: none; background: #222; }
.szkn-lt small { display: inline-flex; align-items: center; gap: .45em; font-size: .7em; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ff5a6e; }
.szkn-lt b { display: block; font-size: 1.45em; line-height: 1.12; font-weight: 800; letter-spacing: -.01em; margin: .1em 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.szkn-lt em { display: block; font-style: normal; font-size: .82em; color: rgba(255,255,255,.72); }
.szkn-dot { width: .6em; height: .6em; border-radius: 50%; background: #e50914; box-shadow: 0 0 0 .2em rgba(229,9,20,.25); animation: szkn-blink 1.4s infinite; }

/* sıradaki (sağ üst, logonun altı) */
.szkn-next { position: absolute; right: 3.5%; top: 16%; max-width: 40%; padding: .6em .9em; border-radius: .7em; text-align: right;
  background: rgba(8,8,13,.75); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12); color: #fff; animation: szkn-in .5s var(--sz-ease); }
.szkn-next[hidden] { display: none; }
.szkn-next small { display: block; font-size: .7em; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--sz-primary); filter: brightness(1.4); }
.szkn-next b { display: block; font-size: 1.05em; line-height: 1.2; margin-top: .15em; }

/* yayın yok */
.szkn-off { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .6em; color: rgba(255,255,255,.8); background: radial-gradient(circle at 50% 40%, rgba(123,92,255,.25), transparent 60%); }
.szkn-off[hidden] { display: none; }
.szkn-off .sz-ico { width: 3em; height: 3em; opacity: .7; }

/* kontroller görünürken alt grafikler biraz yukarı */
.szlt-player:not(.is-idle) .szkn-lt, .szlt-player:not(.is-idle) .szkn-back { bottom: 19%; }
.szlt-player.is-idle .szkn-lt, .szlt-player.is-idle .szkn-back { bottom: 7%; }
.szkn-lt, .szkn-back { transition: bottom .3s var(--sz-ease); }

@keyframes szkn-in { from { opacity: 0; transform: translateY(-.5em); } to { opacity: 1; transform: none; } }
@keyframes szkn-slide { from { opacity: 0; transform: translateX(-1.5em); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .szkn-ad, .szkn-lt, .szkn-back, .szkn-next { animation: none; } }

/* telefon: küçük oynatıcıda ikincil kartlar gizlenir, metin okunur kalır */
@container (max-width: 520px) {
  .szkn > * { font-size: 11px; }
  .szkn-back, .szkn-next { display: none !important; }
  .szkn-lt { max-width: 86%; }
  .szkn-lt img { display: none; }
  .szkn-lt b { font-size: 1.3em; }
}

/* ------------------------------------------------------------ 2) PANEL */
.szkn-panel { display: grid; gap: 16px; min-width: 0; }
.szkn-panel[hidden] { display: none; }
.szkn-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 6px; background: #e50914; color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; flex: none; }
.szkn-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: szkn-blink 1.4s infinite; }
.szkn-view { display: inline-flex; align-items: center; gap: 5px; color: var(--sz-text-2); font-size: 13px; font-weight: 600; }
.szkn-view .sz-ico { width: 15px; height: 15px; }
.szkn-bar { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.1); overflow: hidden; }
.szkn-bar i { display: block; height: 100%; width: 0; background: var(--sz-grad); border-radius: 4px; transition: width .5s linear; }

.szkn-now { display: grid; grid-template-columns: 120px 1fr; gap: 18px; padding: clamp(14px, 3vw, 22px); background: var(--sz-surface); border: 1px solid var(--sz-line); border-radius: 18px; min-width: 0; position: relative; overflow: hidden; }
.szkn-now[hidden] { display: none; }
.szkn-now::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 0 0, rgba(123,92,255,.16), transparent 55%); pointer-events: none; }
.szkn-now__poster { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 2/3; background: var(--sz-surface-2); }
.szkn-now__poster img { width: 100%; height: 100%; object-fit: cover; }
.szkn-now__b { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.szkn-now__k { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; color: var(--sz-muted); font-size: 13px; font-weight: 600; }
.szkn-now h2 { margin: 0; font-size: clamp(19px, 3vw, 26px); line-height: 1.15; letter-spacing: -.01em; }
.szkn-now__m { margin: 0; color: var(--sz-text-2); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.szkn-now__m i { font-style: normal; color: var(--sz-muted); }
.szkn-now__d { margin: 0; color: var(--sz-muted); font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.szkn-now__p { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.szkn-now__p .szkn-bar { flex: 1; }
.szkn-now__p small { color: var(--sz-muted); font-size: 12.5px; white-space: nowrap; }
.szkn-now__a { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.szkn-now__a [hidden] { display: none; }

.szkn-up { background: var(--sz-surface); border: 1px solid var(--sz-line); border-radius: 18px; padding: clamp(14px, 3vw, 22px); min-width: 0; }
.szkn-up[hidden] { display: none; }
.szkn-up h3, .szkn-iptv h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 17px; }
.szkn-up h3 .sz-ico { width: 18px; height: 18px; color: var(--sz-primary); }
.szkn-up__list { display: grid; grid-auto-flow: column; grid-auto-columns: 128px; gap: 12px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 6px; overscroll-behavior-x: contain; }
.szkn-card { display: grid; gap: 6px; min-width: 0; color: var(--sz-text); }
.szkn-card img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 10px; background: var(--sz-surface-2); transition: transform .25s var(--sz-ease); }
.szkn-card:hover img { transform: translateY(-3px); }
.szkn-card time { font-size: 12px; font-weight: 800; color: var(--sz-primary); filter: brightness(1.35); letter-spacing: .03em; }
.szkn-card b { font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.szkn-iptv { background: linear-gradient(160deg, rgba(123,92,255,.12), transparent 60%), var(--sz-surface); border: 1px solid var(--sz-line); border-radius: 18px; padding: clamp(14px, 3vw, 22px); min-width: 0; }
.szkn-iptv[hidden] { display: none; }
.szkn-iptv__h { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.szkn-iptv__h h3 { margin-bottom: 4px; }
.szkn-iptv__h p { margin: 0; color: var(--sz-muted); font-size: 14px; line-height: 1.5; }
.szkn-iptv__i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--sz-grad); flex: none; box-shadow: var(--sz-shadow-glow); }
.szkn-iptv__i .sz-ico { width: 22px; height: 22px; color: #fff; }
.szkn-iptv__g { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; }
.szkn-links { display: grid; gap: 12px; min-width: 0; }
.szkn-link { display: grid; gap: 6px; min-width: 0; }
.szkn-link > span:first-child { font-size: 13px; font-weight: 700; color: var(--sz-text-2); }
.szkn-link__r { display: flex; gap: 8px; min-width: 0; }
.szkn-link__r .sz-input { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.szkn-link__r .sz-btn { flex: none; }
.szkn-link__r .sz-btn.is-ok { color: var(--sz-green); border-color: rgba(34,197,94,.4); }
.szkn-personal { display: flex; gap: 8px; align-items: flex-start; margin: 2px 0 0; color: var(--sz-orange); font-size: 13px; line-height: 1.45; }
.szkn-personal[hidden] { display: none; }
.szkn-personal .sz-ico { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.szkn-qr { margin: 0; display: grid; justify-items: center; gap: 6px; }
.szkn-qr[hidden] { display: none; }
.szkn-qr > div { width: 132px; height: 132px; padding: 8px; background: #fff; border-radius: 12px; }
.szkn-qr svg { width: 100%; height: 100%; display: block; }
.szkn-qr figcaption { font-size: 12px; color: var(--sz-muted); }
.szkn-apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 8px; margin-top: 16px; align-items: start; }
.szkn-apps details { background: var(--sz-surface-2); border: 1px solid var(--sz-line); border-radius: 12px; min-width: 0; }
.szkn-apps summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; font-weight: 700; font-size: 14px; }
.szkn-apps summary::-webkit-details-marker { display: none; }
.szkn-apps summary .sz-ico { width: 18px; height: 18px; color: var(--sz-primary); flex: none; }
.szkn-apps summary .sz-ico:last-child { margin-left: auto; color: var(--sz-muted); transition: transform .2s; }
.szkn-apps details[open] summary .sz-ico:last-child { transform: rotate(180deg); }
.szkn-apps p { margin: 0; padding: 0 14px 14px; color: var(--sz-text-2); font-size: 13.5px; line-height: 1.55; }

@media (max-width: 640px) {
  .szkn-now, .szkn-up, .szkn-iptv { border-radius: 0; border-left: 0; border-right: 0; }
  .szkn-now { grid-template-columns: 88px 1fr; gap: 14px; }
  .szkn-iptv__g { grid-template-columns: 1fr; }
  .szkn-qr { justify-items: start; grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
  .szkn-qr > div { width: 104px; height: 104px; }
  .szkn-link__r .sz-btn span { display: none; }
}
@media (max-width: 1000px) { .szkn-panel { order: 2; } .szkn-iptv { order: 4; } }

/* ------------------------------------------------------------ 3) ANA SAYFA KARTI */
.szkn-home { position: relative; display: flex; align-items: flex-end; min-height: clamp(220px, 30vw, 340px); border-radius: 22px; overflow: hidden; isolation: isolate;
  background: radial-gradient(circle at 80% 20%, rgba(123,92,255,.35), transparent 55%), var(--sz-surface); border: 1px solid var(--sz-line); color: #fff; }
.szkn-home__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--sz-ease); }
.szkn-home::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,6,10,.95) 0%, rgba(6,6,10,.7) 45%, rgba(6,6,10,.15) 100%), linear-gradient(0deg, rgba(6,6,10,.8), transparent 50%); }
.szkn-home:hover .szkn-home__bg { transform: scale(1.04); }
.szkn-home__b { display: grid; gap: 10px; padding: clamp(18px, 4vw, 36px); max-width: 640px; min-width: 0; }
.szkn-home__k { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.szkn-home__k b { font-weight: 900; letter-spacing: -.02em; font-size: 16px; }
.szkn-home strong { font-size: clamp(24px, 4vw, 40px); line-height: 1.05; letter-spacing: -.02em; font-weight: 800; }
.szkn-home small { color: rgba(255,255,255,.75); font-size: 14px; }
.szkn-home .szkn-bar { max-width: 360px; }
.szkn-home em { font-style: normal; color: rgba(255,255,255,.7); font-size: 14px; }
.szkn-home__cta { justify-self: start; margin-top: 4px; }
@media (max-width: 640px) { .szkn-home { border-radius: 18px; } }
@keyframes szkn-blink { 50% { opacity: .25; } }
