/* WStream – dizi sayfası sezon / bölüm arayüzü */
.wep-section { --wep-bg: var(--color-wrapper, #18181b); --wep-line: var(--color-light, #27272a); --wep-text: var(--color-text, #e4e4e7); --wep-muted: color-mix(in srgb, var(--wep-text) 60%, transparent); --wep-primary: var(--color-primary, #dc2626); color: var(--wep-text); }

/* Başlık + araçlar */
.wep-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.wep-head h2 { font-size: 1.35rem; font-weight: 700; }
.wep-tools { display: flex; align-items: center; gap: .5rem; }
.wep-find { display: flex; align-items: center; gap: .35rem; height: 38px; padding: 0 .7rem; border-radius: 10px; background: var(--wep-bg); border: 1px solid var(--wep-line); color: var(--wep-muted); }
.wep-find input { width: 78px; background: none; border: 0; outline: none; color: var(--wep-text); font-size: .85rem; -moz-appearance: textfield; }
.wep-find input::-webkit-outer-spin-button, .wep-find input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wep-find:focus-within { border-color: var(--wep-primary); }
.wep-iconbtn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--wep-bg); border: 1px solid var(--wep-line); color: var(--wep-muted); font-size: 1.15rem; cursor: pointer; transition: .2s; }
.wep-iconbtn:hover { color: var(--wep-text); }
.wep-view { display: flex; padding: 3px; gap: 3px; border-radius: 12px; background: var(--wep-bg); border: 1px solid var(--wep-line); }
.wep-view .wep-iconbtn { width: 32px; height: 30px; border: 0; background: none; border-radius: 8px; }
.wep-view .wep-iconbtn.is-active { background: var(--wep-line); color: var(--wep-text); }

/* Sezon sekmeleri */
.wep-seasons-wrap { position: relative; margin-bottom: 1.25rem; }
.wep-seasons-wrap::after { content: ""; position: absolute; right: 0; top: 0; bottom: 6px; width: 40px; pointer-events: none; background: linear-gradient(to right, transparent, var(--color-body, #09090b)); }
.wep-seasons { display: flex; gap: .5rem; overflow-x: auto; scroll-behavior: smooth; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--wep-line) transparent; }
.wep-season { position: relative; flex: none; min-width: 112px; display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; padding: .6rem .9rem .7rem; border-radius: 12px; background: var(--wep-bg); border: 1px solid var(--wep-line); color: var(--wep-muted); cursor: pointer; text-align: left; overflow: hidden; transition: .2s; }
.wep-season strong { font-size: .9rem; font-weight: 700; color: var(--wep-text); white-space: nowrap; }
.wep-season small { font-size: .72rem; white-space: nowrap; display: flex; align-items: center; gap: .2rem; }
.wep-season small .ti { color: #4ade80; font-size: .85rem; }
.wep-season:hover { border-color: color-mix(in srgb, var(--wep-primary) 50%, var(--wep-line)); }
.wep-season.is-active { background: var(--wep-primary); border-color: var(--wep-primary); color: rgba(255,255,255,.8); }
.wep-season.is-active strong { color: #fff; }
.wep-season.is-active small .ti { color: #fff; }
.wep-season__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: color-mix(in srgb, var(--wep-text) 12%, transparent); }
.wep-season__bar span { display: block; height: 100%; background: #4ade80; }
.wep-season.is-active .wep-season__bar span { background: #fff; }

/* Liste */
.wep-list { transition: opacity .2s; }
.wep-list.is-loading { opacity: .4; pointer-events: none; }
.wep-empty { color: var(--wep-muted); padding: 2rem 0; text-align: center; grid-column: 1 / -1; }
.wep { position: relative; display: flex; gap: 1rem; padding: .75rem; border-radius: 14px; background: var(--wep-bg); border: 1px solid var(--wep-line); transition: border-color .2s, background .2s; }
.wep:hover { border-color: color-mix(in srgb, var(--wep-primary) 45%, var(--wep-line)); }
.wep-list.is-list { display: flex; flex-direction: column; gap: .6rem; }
.wep__thumb { position: relative; flex: none; width: 210px; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; background: var(--wep-line); display: block; }
.wep__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.wep:hover .wep__thumb img { transform: scale(1.05); }
.wep__play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.25); opacity: 0; transition: .25s; }
.wep__play i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--wep-primary); color: #fff; font-size: 1.2rem; }
.wep:hover .wep__play { opacity: 1; }
.wep__check { position: absolute; top: .4rem; left: .4rem; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #16a34a; color: #fff; font-size: .85rem; }
.wep__dur { position: absolute; right: .4rem; bottom: .4rem; padding: .1rem .4rem; border-radius: 6px; background: rgba(0,0,0,.75); color: #fff; font-size: .7rem; font-weight: 600; }
.wep__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .3rem; justify-content: center; }
.wep__tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.wep__tags:empty { display: none; }
.wep-tag { display: inline-flex; align-items: center; gap: .25rem; padding: .12rem .5rem; border-radius: 6px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.wep-tag.is-new { background: var(--wep-primary); color: #fff; }
.wep-tag.is-last { background: color-mix(in srgb, #facc15 20%, transparent); color: #facc15; }
.wep-tag.is-soon { background: var(--wep-line); color: var(--wep-muted); }
.wep__title { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.wep__title a { color: var(--wep-text); display: flex; flex-wrap: wrap; gap: 0 .45rem; }
.wep__title a:hover { color: var(--wep-primary); }
.wep__name { font-weight: 500; color: var(--wep-muted); }
.wep__name::before { content: "· "; }
.wep__ov { font-size: .84rem; line-height: 1.5; color: var(--wep-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wep__meta { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .75rem; color: var(--wep-muted); }
.wep__meta span { display: inline-flex; align-items: center; gap: .25rem; }

/* Durumlar */
.wep.is-watched .wep__thumb img { opacity: .55; filter: grayscale(.4); }
.wep.is-watched .wep__title a { color: var(--wep-muted); }
.wep.is-last { border-color: color-mix(in srgb, #facc15 55%, var(--wep-line)); background: color-mix(in srgb, #facc15 5%, var(--wep-bg)); }
.wep.is-soon { opacity: .6; }
.wep.is-flash { animation: wepFlash 1.6s ease; }
@keyframes wepFlash { 0%, 60% { box-shadow: 0 0 0 2px var(--wep-primary); } 100% { box-shadow: 0 0 0 0 transparent; } }
.wep-more-soon { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .9rem; border-radius: 14px; border: 1px dashed var(--wep-line); color: var(--wep-muted); font-size: .85rem; grid-column: 1 / -1; }

/* Kart görünümü */
.wep-list.is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.wep-list.is-grid .wep { flex-direction: column; padding: 0; gap: 0; overflow: hidden; }
.wep-list.is-grid .wep__thumb { width: 100%; border-radius: 0; }
.wep-list.is-grid .wep__body { padding: .7rem .8rem .85rem; justify-content: flex-start; }
.wep-list.is-grid .wep__tags { position: absolute; top: .45rem; right: .45rem; justify-content: flex-end; }
.wep-list.is-grid .wep__ov, .wep-list.is-grid .wep__meta span:first-child { display: none; }
.wep-list.is-grid .wep__title { font-size: .92rem; }
.wep-list.is-grid .wep__name { display: block; width: 100%; font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wep-list.is-grid .wep__name::before { content: ""; }

/* Mobil */
@media (max-width: 640px) {
    .wep-head h2 { font-size: 1.15rem; }
    .wep-find input { width: 56px; }
    .wep { gap: .75rem; padding: .55rem; }
    .wep__thumb { width: 132px; }
    .wep__ov { -webkit-line-clamp: 2; font-size: .78rem; }
    .wep__meta span:first-child { display: none; }
    .wep__title { font-size: .9rem; }
    .wep-list.is-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
    .wep-list.is-grid .wep__body { padding: .5rem .55rem .65rem; }
}

/* Açık tema */
html[data-theme="light"] .wep-seasons-wrap::after { background: linear-gradient(to right, transparent, var(--color-body, #f1f5f9)); }

/* Kart görünümü: sadece dizi adı + bölüm numarası */
.wep__show { display: none; }
.wep-list.is-grid .wep__tags, .wep-list.is-grid .wep__name, .wep-list.is-grid .wep__ov, .wep-list.is-grid .wep__meta, .wep-list.is-grid .wep__dur { display: none !important; }
.wep-list.is-grid .wep__title a { flex-direction: column; gap: .1rem; }
.wep-list.is-grid .wep__show { display: block; font-size: .92rem; font-weight: 700; color: var(--wep-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wep-list.is-grid .wep__num { font-size: .8rem; font-weight: 500; color: var(--wep-muted); }
.wep-list.is-grid .wep:hover .wep__show { color: var(--wep-primary); }

/* Sade kart: dizi adı + bölüm no (her iki görünümde) */
.wep__show { display: block; font-size: .95rem; font-weight: 700; color: var(--wep-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wep__title a { flex-direction: column; gap: .1rem; }
.wep__num { font-size: .82rem; font-weight: 500; color: var(--wep-muted); }
.wep:hover .wep__show { color: var(--wep-primary); }
.wep-list.is-list .wep__thumb { width: 160px; }
@media (max-width: 640px) { .wep-list.is-list .wep__thumb { width: 120px; } }
.wep-list[hidden] { display: none !important; }
