/*
Theme Name: DarkCine
Description: Koyu sinematik film ve dizi teması. Slider, "Kaldığın yerden devam et", yatay raflar, TMDB otomasyonu, sosyal medya caption üretici ve şablonlu oynatıcı alanı.
Version: 1.4.0
Text Domain: darkcine
*/

:root {
  --bg: #08080a;
  --bg2: #111114;
  --card: #17171c;
  --line: #26262d;
  --text: #ececf1;
  --muted: #9a9aa6;
  --accent: #f5c518;
  --accent-ink: #111;
  --radius: 10px;
}
body.accent-blue { --accent: #1ea7ff; --accent-ink: #04121c; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
.dc-wrap { width: min(1280px, 100% - 32px); margin-inline: auto; }

/* Header */
.dc-header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(#08080af2, #08080acc); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.dc-header .dc-wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.dc-logo { font-weight: 800; font-size: 22px; letter-spacing: .5px; }
.dc-logo span { color: var(--accent); }
.dc-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.dc-nav a { color: var(--muted); font-weight: 600; }
.dc-nav a:hover, .dc-nav .current-menu-item > a { color: var(--accent); }
.dc-catalog-nav { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.dc-catalog-nav a { padding: 6px 9px; border-radius: 7px; color: var(--muted); font-weight: 700; }
.dc-catalog-nav a:hover, .dc-catalog-nav a:focus-visible { background: var(--card); color: var(--accent); }
.dc-spacer { flex: 1; }
.dc-search { display: flex; }
.dc-search input {
  background: var(--card); border: 1px solid var(--line); color: var(--text);
  padding: 8px 14px; border-radius: 999px 0 0 999px; width: 190px; outline: none;
}
.dc-search input:focus { border-color: var(--accent); }
.dc-search button {
  background: var(--accent); color: var(--accent-ink); border: 0; padding: 0 16px;
  border-radius: 0 999px 999px 0; font-weight: 700; cursor: pointer;
}
.dc-login {
  border: 1px solid var(--accent); color: var(--accent); padding: 7px 16px;
  border-radius: 999px; font-weight: 700; white-space: nowrap;
}
.dc-login:hover { background: var(--accent); color: var(--accent-ink); }
.dc-user { display: flex; align-items: center; gap: 8px; }
.dc-user img { border-radius: 50%; }

/* Slider */
.dc-slider { position: relative; height: clamp(380px, 62vh, 620px); overflow: hidden; background: var(--bg2); }
.dc-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; pointer-events: none;
  background: var(--bg) center/cover no-repeat;
}
.dc-slide.is-active { opacity: 1; pointer-events: auto; }
.dc-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #08080a 8%, #08080acc 40%, transparent 85%),
              linear-gradient(0deg, #08080a 0%, transparent 40%);
}
.dc-slide-in { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; max-width: 620px; padding-bottom: 20px; }
.dc-slide h2 { font-size: clamp(28px, 4.5vw, 54px); font-weight: 800; }
.dc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.dc-chip { border: 1px solid var(--line); padding: 2px 10px; border-radius: 999px; background: #0008; }
.dc-chip.is-accent { border-color: var(--accent); color: var(--accent); }
.dc-slide p { color: #cfcfd8; margin: 0 0 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dc-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.dc-btn {
  display: inline-block; padding: 11px 24px; border-radius: 8px; font-weight: 700;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); cursor: pointer; font-size: 15px;
}
.dc-btn.is-ghost { background: transparent; color: var(--text); border-color: #ffffff55; }
.dc-btn:hover { filter: brightness(1.1); }
.dc-dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 8px; }
.dc-dots button { width: 28px; height: 4px; border: 0; border-radius: 4px; background: #ffffff44; cursor: pointer; padding: 0; }
.dc-dots button.is-active { background: var(--accent); }

/* Bölümler / raflar */
.dc-section { margin: 34px auto; width: min(1280px, 100% - 32px); }
.dc-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.dc-sec-head h2 { font-size: 22px; margin: 0; padding-left: 12px; border-left: 4px solid var(--accent); }
.dc-more, .dc-link-btn { color: var(--muted); font-size: 14px; background: none; border: 0; cursor: pointer; }
.dc-more:hover, .dc-link-btn:hover { color: var(--accent); }
.dc-row-wrap { position: relative; }
.dc-row {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0 10px;
}
.dc-row::-webkit-scrollbar { display: none; }
.dc-row .dc-card { flex: 0 0 clamp(130px, 15vw, 190px); scroll-snap-align: start; }
.dc-row.dc-three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
.dc-row.dc-three-col .dc-card { min-width: 0; }
.dc-arrow {
  position: absolute; top: 38%; transform: translateY(-50%); z-index: 5;
  width: 38px; height: 62px; border: 0; background: #000b; color: #fff; font-size: 28px; cursor: pointer;
  opacity: 0; transition: opacity .2s; border-radius: 6px;
}
.dc-row-wrap:hover .dc-arrow { opacity: 1; }
.dc-prev { left: -8px; } .dc-next { right: -8px; }
.dc-arrow:hover { background: var(--accent); color: var(--accent-ink); }

/* Kart */
.dc-card { display: block; }
.dc-poster { position: relative; display: block; aspect-ratio: 2/3; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.dc-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.dc-card:hover .dc-poster img { transform: scale(1.06); }
.dc-card:hover .dc-poster { border-color: var(--accent); }
.dc-noposter { display: grid; place-items: center; height: 100%; padding: 10px; text-align: center; color: var(--muted); }
.dc-badge { position: absolute; top: 8px; left: 8px; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 4px; }
.dc-rate { position: absolute; bottom: 8px; right: 8px; background: #000c; color: var(--accent); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.dc-title { display: block; margin-top: 8px; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-year { display: block; color: var(--muted); font-size: 13px; }
.dc-cw-meta { color: var(--accent); font-size: 13px; }
.dc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }

/* Tek sayfa hero */
.dc-hero { position: relative; background: var(--bg) center/cover no-repeat; border-bottom: 1px solid var(--line); }
.dc-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #08080a 10%, #08080ad9 50%, #08080a99), linear-gradient(0deg, #08080a, transparent 50%); }
.dc-hero-in { position: relative; display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 40px 0; align-items: end; }
.dc-hero .dc-poster { box-shadow: 0 20px 60px #000a; }
.dc-hero h1 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; }
.dc-orig { color: var(--muted); margin: -6px 0 10px; }
.dc-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.dc-cast { color: var(--muted); margin-top: 14px; }
.dc-cast b { color: var(--text); }
.dc-cast-link { color: var(--accent); text-decoration: none; }
.dc-cast-link:hover { text-decoration: underline; }
.dc-cast-help { color: var(--muted); font-size: 13px; margin-top: 6px; }
.dc-konflix-player { background:#090a0d; border:1px solid #2a2d35; border-radius:18px; overflow:hidden; box-shadow:0 24px 70px #000b; }
.dc-konflix-head { display:flex; align-items:center; gap:12px; padding:13px 16px; background:linear-gradient(110deg,#16090c,#0d0e13 65%); border-bottom:1px solid #302026; }
.dc-konflix-logo { color:#ff304f; font-weight:900; letter-spacing:2px; }
.dc-konflix-label { color:#f4f4f6; font-weight:700; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dc-konflix-live { color:#ff7184; font-size:10px; letter-spacing:1px; white-space:nowrap; }
.dc-konflix-live:first-letter { color:#ff304f; }
.dc-konflix-player .dc-iframe-stage { border-radius:0; border:0; }
.dc-overview { max-width: 760px; color: #d6d6de; }
.dc-score { color: var(--accent); font-weight: 800; }

/* Oynatıcı / fragman */
.dc-watch { margin: 28px auto; }
.dc-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.dc-tab { background: var(--card); color: var(--muted); border: 1px solid var(--line); padding: 9px 22px; border-radius: 8px; font-weight: 700; cursor: pointer; }
.dc-tab.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.dc-panel { display: none; }
.dc-panel.is-active { display: block; }
.dc-frame { position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; margin-inline: auto; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.dc-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.dc-empty { display: grid; place-items: center; color: var(--muted); text-align: center; padding: 20px; }

/* Dizi: sezon / bölüm */
.dc-episodes { margin-top: 22px; }
.dc-seasons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.dc-season { background: var(--card); color: var(--muted); border: 1px solid var(--line); padding: 7px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; }
.dc-season.is-active { border-color: var(--accent); color: var(--accent); }
.dc-eplist { display: none; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.dc-eplist.is-active { display: grid; }
.dc-ep { display: flex; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); padding: 10px 14px; border-radius: 8px; }
.dc-ep:hover { border-color: var(--accent); }
.dc-ep.is-current { border-color: var(--accent); background: #f5c51814; }
.dc-ep b { color: var(--accent); min-width: 28px; }
.dc-ep span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Genel */
.dc-content { padding: 36px 0; }
.dc-page-title { font-size: 28px; margin: 28px 0 18px; padding-left: 12px; border-left: 4px solid var(--accent); }
.dc-pagination { display: flex; gap: 8px; justify-content: center; margin: 30px 0; }
.dc-pagination .page-numbers { padding: 7px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }
.dc-pagination .current, .dc-pagination .page-numbers:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.dc-comments { margin: 40px auto; }
.dc-comments input[type=text], .dc-comments input[type=email], .dc-comments textarea {
  width: 100%; background: var(--card); border: 1px solid var(--line); color: var(--text); padding: 10px; border-radius: 8px;
}
.dc-comments input[type=submit] { background: var(--accent); color: var(--accent-ink); border: 0; padding: 10px 22px; border-radius: 8px; font-weight: 700; cursor: pointer; }
.dc-footer { border-top: 1px solid var(--line); margin-top: 50px; padding: 28px 0; color: var(--muted); font-size: 14px; text-align: center; }
.dc-footer p { margin: 4px 0; }

@media (min-width: 761px) and (max-width: 1024px) {
  .dc-header .dc-wrap { height: auto; min-height: 64px; padding-block: 8px; flex-wrap: wrap; gap: 12px; }
  .dc-header .dc-nav { display: none; }
  .dc-header .dc-catalog-nav { order: 5; flex: 0 0 100%; justify-content: center; }
  .dc-header .dc-logo { order: 1; }
  .dc-header .dc-spacer { display: none; }
  .dc-header .dc-search { order: 2; margin-left: auto; }
  .dc-header .dc-login { order: 3; }
}

@media (max-width: 760px) {
  .dc-header .dc-wrap { height: auto; min-height: 64px; padding-block: 8px; flex-wrap: wrap; gap: 8px; }
  .dc-nav { display: none; }
  .dc-catalog-nav { order: 5; flex: 0 0 100%; justify-content: center; gap: 10px; padding-top: 2px; }
  .dc-catalog-nav a { flex: 1 1 0; max-width: 180px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--text); text-align: center; }
  .dc-catalog-nav a:hover, .dc-catalog-nav a:focus-visible { border-color: var(--accent); color: var(--accent); }
  .dc-logo { order: 1; }
  .dc-spacer { display: none; }
  .dc-search { order: 2; margin-left: auto; }
  .dc-login { order: 3; padding: 6px 10px; }
  .dc-search input { width: 120px; }
  .dc-hero-in { grid-template-columns: 1fr; }
  .dc-hero .dc-poster { max-width: 180px; }
  .dc-arrow { display: none; }
}
@media (max-width: 380px) {
  .dc-search input { width: 84px; }
  .dc-catalog-nav { gap: 8px; }
  .dc-catalog-nav a { padding-inline: 8px; }
}


/* Konflix responsive HTML5 player */
.dc-video-player{--dcv-accent:var(--accent);position:relative;max-width:100%;margin:18px auto;background:#08090c;border:1px solid var(--line);border-radius:12px;overflow:hidden;box-shadow:0 14px 48px #0008;color:var(--text)}
.dc-video-stage{position:relative;width:100%;aspect-ratio:16/9;background:#000;display:grid;place-items:center;overflow:hidden}
.dc-video-stage video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
.dc-video-loading{position:absolute;z-index:2;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:#030407b8;color:#fff}
.dc-video-loading[hidden],.dc-video-error[hidden],.dc-video-center[hidden],.dc-video-controls [hidden]{display:none!important}
.dc-spinner{width:38px;height:38px;border:3px solid #ffffff55;border-top-color:var(--dcv-accent);border-radius:50%;animation:dcv-spin .8s linear infinite}
@keyframes dcv-spin{to{transform:rotate(360deg)}}
.dc-video-error{position:absolute;z-index:3;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:20px;text-align:center;background:#08090cf2}
.dc-video-error strong{font-size:clamp(20px,3vw,30px)}.dc-video-error span{color:#c8c9d0}
.dc-video-error button{border:0;border-radius:7px;background:var(--dcv-accent);color:#111;padding:10px 18px;font-weight:700;cursor:pointer}
.dc-video-center{position:absolute;z-index:1;left:50%;top:50%;transform:translate(-50%,-50%);width:68px;height:68px;border:1px solid #ffffff77;border-radius:50%;background:#0009;color:#fff;font-size:26px;cursor:pointer}
.dc-video-controls{position:relative;display:flex;align-items:center;gap:8px;min-height:54px;padding:8px 10px;background:linear-gradient(#171920,#0d0f14)}
.dc-video-controls button{flex:none;min-width:36px;min-height:36px;padding:4px 7px;border:1px solid #383b44;border-radius:6px;background:#1a1d24;color:#fff;font-weight:700;cursor:pointer}
.dc-video-controls button:hover,.dc-video-controls button:focus-visible{border-color:var(--dcv-accent);color:var(--dcv-accent)}
.dc-video-controls input[type=range]{height:4px;accent-color:var(--dcv-accent);cursor:pointer}.dc-vseek{flex:1;min-width:45px}.dc-vvolume{width:78px;max-width:14vw}.dc-vtime{flex:none;color:#d3d3d9;font:12px/1.2 system-ui,sans-serif;font-variant-numeric:tabular-nums}
.dc-vaudio{max-width:110px;background:#1a1d24;color:#fff;border:1px solid #383b44;border-radius:6px;padding:5px}
.dc-video-status{margin:0;padding:0 12px;color:#b7bbc4;font-size:12px}.dc-video-status:empty{display:none}
.dc-video-player:fullscreen{width:100vw;height:100vh;max-width:none;margin:0;border:0;border-radius:0;display:flex;flex-direction:column;background:#000}.dc-video-player:fullscreen .dc-video-stage{flex:1;min-height:0;aspect-ratio:auto}.dc-video-player:fullscreen .dc-video-controls{flex:none}
.dc-episode-nav{display:flex;justify-content:space-between;gap:12px;margin:14px 0}.dc-episode-nav a,.dc-episode-nav span{display:inline-flex;align-items:center;padding:9px 14px;border:1px solid var(--line);border-radius:8px;background:var(--card);color:var(--text)}.dc-episode-nav a:hover{border-color:var(--accent);color:var(--accent)}.dc-episode-nav span[aria-disabled=true]{opacity:.45}
@media(max-width:640px){.dc-video-player{border-radius:7px}.dc-video-controls{gap:5px;padding:6px;min-height:48px}.dc-video-controls button{min-width:31px;min-height:32px;padding:3px 5px;font-size:12px}.dc-vvolume{width:48px}.dc-vtime{font-size:11px}.dc-video-center{width:56px;height:56px}.dc-vaudio{max-width:76px;font-size:11px}}
@media(max-width:380px){.dc-vvolume{display:none}.dc-video-controls{gap:3px}.dc-video-controls button{min-width:28px;padding:2px 4px}}
@media(prefers-reduced-motion:reduce){.dc-spinner{animation:none}}
.dc-video-mark{position:absolute;z-index:1;left:14px;top:12px;padding:5px 9px;border-radius:5px;background:#050608b8;color:var(--accent);font:800 12px/1 system-ui,sans-serif;letter-spacing:1.5px;pointer-events:none}


/* External web-player frame state */
.dc-iframe-wrap{width:100%;max-width:100%;margin-inline:auto}
.dc-iframe-stage iframe{z-index:0;background:#000}
.dc-iframe-loading,.dc-iframe-error{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:20px;background:#050609eF;color:#f2f2f6;text-align:center}
.dc-iframe-loading[hidden],.dc-iframe-error[hidden]{display:none!important}
.dc-iframe-error{z-index:3;background:#090a0df2}
.dc-iframe-error strong{font-size:clamp(18px,3vw,28px)}
.dc-iframe-error span{max-width:620px;color:#c5c7d0}
.dc-iframe-error button{border:0;border-radius:7px;background:var(--accent);color:#111;padding:10px 18px;font-weight:700;cursor:pointer}
.dc-iframe-note{margin:7px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
