/* ===== DIZIPAL - ANA TEMA ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red: #e50914;
  --red-dark: #b0060f;
  --red-hover: #c40812;
  --bg-primary: #0f0f0f;
  --bg-secondary: #141414;
  --bg-card: #1a1a1a;
  --bg-hover: #222222;
  --border: #2a2a2a;
  --border-light: #1e1e1e;
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-muted: #888888;
  --text-hint: #555555;
  --gold: #f5c518;
  --green: #22c55e;
}

body {
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== NAVBAR (index.php) ===== */
.nav { background: var(--bg-secondary); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; }
.nav-inner { max-width: 1024px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; height: 60px; gap: 1.5rem; }
.nav-logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: var(--text-primary); flex-shrink: 0; }
.nav-logo .logo-icon { width: 34px; height: 34px; background: var(--red); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-item { position: relative; }
.nav-a { display: flex; align-items: center; gap: 4px; padding: 7px 11px; font-size: 13px; color: var(--text-muted); border-radius: 5px; cursor: pointer; white-space: nowrap; transition: color 0.15s, background 0.15s; }
.nav-a:hover, .nav-a.active { color: var(--text-primary); background: #1e1e1e; }
.nav-a .arrow { font-size: 9px; color: #555; transition: transform 0.2s; }
.nav-item:hover .arrow { transform: rotate(180deg); }
.dropdown { display: none; position: absolute; top: calc(100% + 4px); left: 0; background: #1c1c1c; border: 1px solid var(--border); border-radius: 8px; padding: 6px 0; min-width: 170px; z-index: 500; box-shadow: 0 12px 32px rgba(0,0,0,0.7); }
.dropdown.grid-2 { display: none; grid-template-columns: 1fr 1fr; min-width: 300px; }
.nav-item:hover .dropdown { display: block; }
.nav-item:hover .dropdown.grid-2 { display: grid; }
.drop-item { padding: 8px 16px; font-size: 12px; color: var(--text-muted); cursor: pointer; transition: background 0.1s, color 0.1s; }
.drop-item:hover { background: #252525; color: var(--text-primary); }
.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.search-wrap { display: flex; align-items: center; background: #1c1c1c; border: 1px solid var(--border); border-radius: 20px; padding: 5px 14px; gap: 7px; transition: border-color 0.2s; }
.search-wrap:focus-within { border-color: #555; }
.search-wrap i { color: var(--text-hint); font-size: 14px; }
.search-wrap input { background: none; border: none; outline: none; color: var(--text-primary); font-size: 12px; width: 130px; }
.search-wrap input::placeholder { color: var(--text-hint); }
.btn { border: none; cursor: pointer; font-size: 12px; border-radius: 5px; padding: 6px 14px; transition: background 0.15s; font-weight: 500; }
.btn-outline { background: none; border: 1px solid #444; color: var(--text-secondary); }
.btn-outline:hover { border-color: #777; color: #fff; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); }

/* ===== HERO (index.php) ===== */
.hero { position: relative; height: 480px; overflow: hidden; background: #0a0a0a; }
.hero-bg { position: absolute; inset: 0; transition: background 0.8s ease; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.93) 38%, rgba(0,0,0,0.25) 100%); }
.hero-overlay-bottom { position: absolute; bottom: 0; left: 0; right: 0; height: 120px; background: linear-gradient(to top, var(--bg-primary), transparent); }
.hero-content { position: relative; z-index: 2; max-width: 1024px; margin: 0 auto; padding: 0 1.5rem; height: 100%; display: flex; align-items: center; }
.hero-text { max-width: 540px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 6px; background: rgba(229,9,20,0.12); border: 1px solid rgba(229,9,20,0.35); color: #ff7070; font-size: 11px; font-weight: 600; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; letter-spacing: 0.5px; text-transform: uppercase; }
.hero-title { font-size: 38px; font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 10px; letter-spacing: -0.5px; }
.hero-title .accent { color: var(--red); }
.hero-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.hero-tag { font-size: 11px; color: var(--text-muted); background: rgba(255,255,255,0.06); border: 1px solid #2a2a2a; padding: 3px 10px; border-radius: 12px; }
.hero-rating { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }
.hero-rating .stars { color: var(--gold); font-size: 13px; }
.hero-rating .hd { color: #22c55e; font-weight: 600; }
.hero-desc { font-size: 13px; color: #999; line-height: 1.75; margin-bottom: 20px; max-width: 440px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-hero-play { display: flex; align-items: center; gap: 8px; background: var(--red); color: #fff; padding: 11px 24px; border-radius: 6px; font-size: 14px; font-weight: 700; cursor: pointer; border: none; transition: background 0.15s; }
.btn-hero-play:hover { background: var(--red-hover); }
.btn-hero-info { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); color: #fff; padding: 11px 20px; border-radius: 6px; font-size: 14px; cursor: pointer; border: 1px solid rgba(255,255,255,0.18); transition: background 0.15s; }
.btn-hero-info:hover { background: rgba(255,255,255,0.18); }
.hero-posters { position: absolute; right: 4%; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 14px; z-index: 1; opacity: 0.75; }
.hero-poster-card { border-radius: 8px; border: 1px solid #2e2e2e; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-poster-card.main { width: 150px; height: 215px; }
.hero-poster-card.side { width: 105px; height: 155px; opacity: 0.5; }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; z-index: 3; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #444; cursor: pointer; transition: all 0.25s; border: none; }
.dot.active { background: var(--red); width: 22px; border-radius: 4px; }

/* ===== GENEL LAYOUT ===== */
.container { max-width: 1024px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 1.75rem 0; }
.sec-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.1rem; padding-left: 12px; border-left: 3px solid var(--red); }
.sec-title { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.sec-more { font-size: 12px; color: var(--red); cursor: pointer; display: flex; align-items: center; gap: 4px; transition: color 0.15s; }
.sec-more:hover { color: #ff4444; }

/* ===== CARDS ===== */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.ccard { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 7px; overflow: hidden; cursor: pointer; transition: transform 0.2s, border-color 0.2s; }
.ccard:hover { transform: translateY(-5px); border-color: #3a3a3a; }
.ccard-poster { aspect-ratio: 2/3; position: relative; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.ccard-poster i { font-size: 30px; color: #333; }
.ccard-poster[style*="background-image"] i { display: none; }
.cbadge { position: absolute; top: 7px; left: 7px; font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: 3px; }
.cbadge-dizi { background: rgba(229,9,20,0.9); color: #fff; }
.cbadge-film { background: rgba(30,100,220,0.9); color: #fff; }
.cbadge-anime { background: rgba(160,40,210,0.9); color: #fff; }
.cquality { position: absolute; bottom: 7px; right: 7px; font-size: 9px; font-weight: 700; background: rgba(0,0,0,0.85); color: var(--gold); padding: 2px 7px; border-radius: 3px; border: 1px solid #444; }
.ccard-body { padding: 9px 10px 12px; }
.ccard-title { font-size: 12px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.ccard-meta { display: flex; justify-content: space-between; align-items: center; }
.ccard-year { font-size: 10px; color: var(--text-hint); }
.ccard-rating { font-size: 10px; color: var(--gold); display: flex; align-items: center; gap: 2px; }
.bg1 { background: linear-gradient(150deg,#1a0040,#3a1090); }
.bg2 { background: linear-gradient(150deg,#001a40,#1a4090); }
.bg3 { background: linear-gradient(150deg,#1a0a00,#4a2200); }
.bg4 { background: linear-gradient(150deg,#001a10,#004428); }
.bg5 { background: linear-gradient(150deg,#1a1a00,#3a3a10); }
.bg6 { background: linear-gradient(150deg,#1a0020,#4a0070); }

/* ===== TREND ===== */
.trend-list { display: flex; flex-direction: column; gap: 8px; }
.trend-item { display: flex; gap: 12px; align-items: center; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 7px; padding: 9px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.trend-item:hover { border-color: #333; background: var(--bg-hover); }
.trend-num { font-size: 24px; font-weight: 800; color: #282828; width: 34px; text-align: center; flex-shrink: 0; }
.trend-poster { width: 52px; height: 72px; border-radius: 5px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.trend-poster i { font-size: 18px; color: #444; }
.trend-poster[style*="background-image"] i { display: none; }
.trend-info { flex: 1; min-width: 0; }
.trend-title { font-size: 13px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.trend-meta { font-size: 11px; color: var(--text-hint); }
.trend-star { color: var(--gold); margin-left: 6px; }

/* ===== PLATFORM ===== */
.plat-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.plat-card { display: flex; align-items: center; gap: 8px; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 8px; padding: 9px 18px; font-size: 12px; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.plat-card:hover { border-color: #444; color: var(--text-primary); background: var(--bg-hover); }
.plat-dot { width: 9px; height: 9px; border-radius: 50%; }
.two-col { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; }
.divider { height: 1px; background: var(--border-light); margin: 0.25rem 0; }

/* ===== FOOTER (index.php) ===== */
.footer { background: #0a0a0a; border-top: 1px solid var(--border-light); margin-top: 1.5rem; padding: 2.5rem 1.5rem 1.5rem; }
.footer-inner { max-width: 1024px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 12px; color: var(--text-hint); margin-bottom: 7px; cursor: pointer; transition: color 0.15s; }
.footer-col a:hover { color: var(--text-secondary); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border-light); padding-top: 1.25rem; flex-wrap: wrap; gap: 10px; }
.footer-logo { font-size: 17px; font-weight: 800; color: var(--text-primary); display: flex; align-items: center; gap: 7px; }
.footer-logo .logo-icon { width: 28px; height: 28px; background: var(--red); border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: #fff; }
.footer-copy { font-size: 11px; color: var(--text-hint); }
.footer-links { display: flex; gap: 1.2rem; }
.footer-links a { font-size: 11px; color: var(--text-hint); cursor: pointer; }
.footer-links a:hover { color: var(--text-secondary); }

/* ===== AUTH ===== */
.auth-page { min-height: calc(100vh - 60px); display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; background: radial-gradient(ellipse at 50% 0%, #1a0020 0%, var(--bg-primary) 60%); }
.auth-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; padding: 2.5rem; width: 100%; max-width: 400px; }
.auth-logo { display: flex; align-items: center; gap: 9px; justify-content: center; margin-bottom: 1.75rem; }
.auth-logo .logo-icon { width: 38px; height: 38px; background: var(--red); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: #fff; }
.auth-logo span { font-size: 22px; font-weight: 800; color: var(--text-primary); }
.auth-title { font-size: 20px; font-weight: 700; color: var(--text-primary); text-align: center; margin-bottom: 6px; }
.auth-sub { font-size: 13px; color: var(--text-hint); text-align: center; margin-bottom: 1.75rem; }
.form-group { margin-bottom: 1rem; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; display: block; }
.form-input { width: 100%; background: #111; border: 1px solid var(--border); border-radius: 7px; padding: 11px 14px; font-size: 13px; color: var(--text-primary); outline: none; transition: border-color 0.15s; }
.form-input:focus { border-color: var(--red); }
.form-input::placeholder { color: var(--text-hint); }
.form-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.form-check { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-muted); cursor: pointer; }
.form-check input { accent-color: var(--red); }
.form-link { font-size: 12px; color: var(--red); cursor: pointer; }
.form-link:hover { color: #ff4444; }
.btn-auth { width: 100%; background: var(--red); color: #fff; border: none; border-radius: 7px; padding: 12px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background 0.15s; margin-bottom: 1.25rem; }
.btn-auth:hover { background: var(--red-hover); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin-bottom: 1.25rem; font-size: 11px; color: var(--text-hint); }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.btn-social { width: 100%; background: none; border: 1px solid var(--border); border-radius: 7px; padding: 10px; font-size: 13px; color: var(--text-muted); cursor: pointer; transition: border-color 0.15s, color 0.15s; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-social:hover { border-color: #555; color: var(--text-primary); }
.auth-footer { text-align: center; font-size: 12px; color: var(--text-hint); margin-top: 1.25rem; }
.auth-footer a { color: var(--red); cursor: pointer; }
.auth-footer a:hover { color: #ff4444; }

/* ============================================================
   DİZİ DETAY SAYFASI (dizi.php) - YENİ CSS
   ============================================================ */

/* Header (dizi.php) */
.main-header { background: var(--bg-secondary); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; }
.header-inner { max-width: 1024px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; gap: 1.5rem; height: 60px; }
.main-nav .nav-menu { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav .nav-menu li a { display: flex; align-items: center; gap: 4px; padding: 7px 11px; font-size: 13px; color: var(--text-muted); border-radius: 5px; transition: color 0.15s, background 0.15s; }
.main-nav .nav-menu li a:hover { color: var(--text-primary); background: #1e1e1e; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search-wrapper { display: flex; align-items: center; background: #1c1c1c; border: 1px solid var(--border); border-radius: 20px; padding: 5px 14px; gap: 7px; }
.search-input { background: none; border: none; outline: none; color: var(--text-primary); font-size: 12px; width: 130px; }
.search-input::placeholder { color: var(--text-hint); }
.search-btn { background: none; border: none; cursor: pointer; color: var(--text-hint); }
.btn-login { background: none; border: 1px solid #444; color: var(--text-secondary); padding: 6px 14px; border-radius: 5px; font-size: 12px; transition: border-color 0.15s; }
.btn-login:hover { border-color: #777; color: #fff; }
.btn-register { background: var(--red); color: #fff; padding: 6px 14px; border-radius: 5px; font-size: 12px; font-weight: 600; transition: background 0.15s; }
.btn-register:hover { background: var(--red-hover); }

/* Footer (dizi.php) */
.main-footer { background: #0a0a0a; border-top: 1px solid var(--border-light); margin-top: 2rem; padding: 2rem 1.5rem 1rem; }
.main-footer .footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 1rem; }
.main-footer .footer-bottom { text-align: center; font-size: 11px; color: var(--text-hint); }

/* Hero */
.main-content { min-height: calc(100vh - 120px); }
.series-detail-page { background: var(--bg-primary); }
.series-hero { position: relative; min-height: 340px; background-size: cover; background-position: center top; background-repeat: no-repeat; display: flex; align-items: flex-end; padding-bottom: 2.5rem; }
.series-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.55) 60%, rgba(0,0,0,0.25) 100%), linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 55%); z-index: 1; }
.series-hero .container { position: relative; z-index: 2; width: 100%; }
.series-hero-content { max-width: 700px; }
.series-title { font-size: 36px; font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 10px; letter-spacing: -0.5px; }

/* Badges */
.series-meta-badges { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.badge { padding: 4px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; }
.badge-imdb { background: #f5c518; color: #000; }
.badge-year { background: rgba(255,255,255,0.12); color: #ddd; border: 1px solid rgba(255,255,255,0.25); }
.badge-season { background: rgba(255,255,255,0.12); color: #ddd; border: 1px solid rgba(255,255,255,0.25); }
.badge-hd { background: #22c55e; color: #fff; }

/* Hero Butonlar */
.series-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-watch-first { display: flex; align-items: center; gap: 8px; background: var(--red); color: #fff; padding: 10px 20px; border-radius: 6px; font-size: 13px; font-weight: 700; border: none; cursor: pointer; transition: background 0.15s; }
.btn-watch-first:hover { background: var(--red-hover); color: #fff; }
.btn-watch-last { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); color: #fff; padding: 10px 18px; border-radius: 6px; font-size: 13px; cursor: pointer; border: 1px solid rgba(255,255,255,0.2); transition: background 0.15s; }
.btn-watch-last:hover { background: rgba(255,255,255,0.2); }
.btn-action { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.08); color: #ccc; padding: 10px 14px; border-radius: 6px; font-size: 13px; cursor: pointer; border: 1px solid rgba(255,255,255,0.15); transition: all 0.15s; }
.btn-action:hover { background: rgba(255,255,255,0.16); color: #fff; }

/* Layout */
.series-content-wrapper { display: grid; grid-template-columns: 1fr 280px; gap: 2rem; padding: 2rem 0; }

/* Ana içerik */
.series-top-row { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 24px; }
.movie-series-poster { width: 150px; min-width: 150px; border-radius: 8px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,0.6); flex-shrink: 0; }
.movie-series-poster img { width: 100%; display: block; object-fit: cover; }
.series-description { color: #aaa; font-size: 13px; line-height: 1.75; margin: 0; }

/* Sekmeler */
.series-tabs { display: flex; border-bottom: 1px solid var(--border-light); margin-bottom: 1.25rem; }
.tab-btn { font-size: 13px; font-weight: 600; color: var(--text-hint); padding: 12px 20px; background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; transition: color 0.15s; }
.tab-btn:hover { color: var(--text-secondary); }
.tab-btn.active { color: var(--text-primary); border-bottom-color: var(--red); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Sezon Butonları */
.season-buttons { display: flex; gap: 8px; margin-bottom: 1rem; flex-wrap: wrap; }
.season-btn { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); padding: 6px 18px; border-radius: 5px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.season-btn:hover { border-color: #555; color: var(--text-primary); }
.season-btn.active { background: var(--red); border-color: var(--red); color: #fff; }

/* Bölüm Listesi */
.detail-episode-list { display: none; flex-direction: column; gap: 6px; }
.detail-episode-list.active { display: flex; }
.detail-episode-item-wrap { display: flex; align-items: center; gap: 8px; }
.detail-episode-item { flex: 1; display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 7px; padding: 12px 16px; cursor: pointer; transition: border-color 0.15s, background 0.15s; text-decoration: none; }
.detail-episode-item:hover { border-color: #3a3a3a; background: var(--bg-hover); }
.detail-episode-title { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 3px; }
.detail-episode-subtitle { font-size: 11px; color: var(--text-hint); }
.loading-episodes { text-align: center; color: var(--text-hint); padding: 30px; font-size: 13px; }
.loading-episodes i { margin-right: 8px; color: var(--red); }

/* Yorumlar */
.comments-section { padding: 20px 0; }
.comment-login-prompt { text-align: center; color: var(--text-hint); padding: 40px; font-size: 13px; }
.comment-login-prompt i { font-size: 28px; display: block; margin-bottom: 10px; color: #444; }
.comment-login-prompt a { color: var(--red); }

/* Sidebar */
.sidebar-poster { border-radius: 8px; overflow: hidden; margin-bottom: 16px; box-shadow: 0 4px 20px rgba(0,0,0,0.5); }
.sidebar-poster img { width: 100%; display: block; object-fit: cover; }
.sidebar-info { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.info-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); gap: 10px; }
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-label { font-size: 12px; color: var(--text-hint); flex-shrink: 0; }
.info-value { font-size: 12px; color: var(--text-secondary); font-weight: 600; text-align: right; }
.info-value.categories { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.info-value.categories a { background: rgba(229,9,20,0.12); border: 1px solid rgba(229,9,20,0.3); color: #ff7070; font-size: 10px; padding: 2px 8px; border-radius: 10px; transition: background 0.15s; }
.info-value.categories a:hover { background: rgba(229,9,20,0.25); }
.sidebar-cast { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 8px; padding: 16px; }
.sidebar-cast h4 { color: var(--text-primary); font-size: 13px; font-weight: 700; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border-light); }
.cast-list { display: flex; flex-wrap: wrap; gap: 6px; }
.cast-item { background: rgba(255,255,255,0.06); border-radius: 4px; padding: 4px 10px; }
.actor-name { color: #bbb; font-size: 11px; }

/* Benzer Diziler */
.recommended-section { padding: 2rem 0; }
.recommended-section .section-title { font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: 1rem; padding-left: 12px; border-left: 3px solid var(--red); }
.recommended-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
.recommended-card { display: block; border-radius: 8px; overflow: hidden; transition: transform 0.2s; }
.recommended-card:hover { transform: scale(1.04); }
.recommended-poster { position: relative; }
.recommended-poster img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.recommended-info { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 10px; background: linear-gradient(transparent, rgba(0,0,0,0.88)); }
.recommended-info h4 { color: #fff; font-size: 11px; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recommended-info .year { color: #999; font-size: 10px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .hero-posters { display: none; }
  .hero { height: auto; min-height: 360px; }
  .hero-title { font-size: 28px; }
  .detay-hero-inner { flex-direction: column; }
  .detay-poster { width: 140px; }
  .series-content-wrapper { grid-template-columns: 1fr; }
  .series-title { font-size: 26px; }
  .series-hero { min-height: 260px; }
  .recommended-grid { grid-template-columns: repeat(3, 1fr); }
  .sidebar-poster { display: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .cards-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .hero-title

/* ============================================
   MOBİL UYUMLU CSS - ip- prefix sınıfları
   ============================================ */

/* Tablet (max 900px) */
@media (max-width: 900px) {
  .ip-hero { height: 380px; }
  .ip-hero-content { left: 30px; bottom: 40px; max-width: 380px; }
  .ip-hero-title { font-size: 28px; }
  .ip-hero-thumbs { display: none; }
  .ip-cards-row { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .ip-episodes-grid { grid-template-columns: 1fr 1fr; }
  .ip-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .ip-trend-card { min-width: 140px; flex: 0 0 140px; }
}

/* Mobil (max 640px) */
@media (max-width: 640px) {
  /* Nav */
  .ip-nav { padding: 0 10px; gap: 6px; height: 52px; overflow: visible; max-width: 100%; box-sizing: border-box; }
  .ip-nav-links { display: none; }
  .ip-search { flex: 1; min-width: 0; max-width: 220px; margin-left: 6px; }
  .ip-search input { font-size: 13px; }
  .ip-nav-btns .ip-btn-outline { display: none; }
  .ip-btn-red { padding: 6px 12px; font-size: 12px; }
  .ip-logo-text { font-size: 16px; }

  /* Hero */
  .ip-hero { height: 280px; }
  .ip-hero-content { left: 16px; bottom: 30px; max-width: calc(100% - 32px); }
  .ip-hero-title { font-size: 20px; }
  .ip-hero-desc { display: none; }
  .ip-hero-btns { gap: 8px; }
  .ip-hero-btn { padding: 8px 16px; font-size: 12px; }
  .ip-hero-thumbs { display: none; }
  .ip-hero-dots { bottom: 12px; }

  /* Kartlar */
  .ip-cards-row { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
  .ip-card-info { padding: 6px; }
  .ip-card-title { font-size: 11px; }
  .ip-card-meta { font-size: 10px; }

  /* Trend */
  .ip-trend-card { min-width: 120px; flex: 0 0 120px; }
  .ip-trend-wrap { padding: 0 28px; }
  .ip-trend-num { font-size: 48px; }

  /* Bölümler */
  .ip-episodes-grid { grid-template-columns: 1fr; }
  .ip-ep-card { padding: 8px; }

  /* Section */
  .ip-section { padding: 24px 0 6px; }
  .ip-section-title { font-size: 15px; }
  .ip-container { padding: 0 12px; }

  /* Footer */
  .ip-footer-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .ip-footer { padding: 28px 0 16px; }

  /* Platform butonları */
  .ip-platforms { gap: 8px; }
  .ip-plat-btn { padding: 6px 14px; font-size: 12px; }

  /* Detail sayfası */
  .detail-wrap { grid-template-columns: 1fr; gap: 20px; margin: 20px auto; }
  .detail-poster { max-width: 200px; margin: 0 auto; }
  .detail-title { font-size: 22px; }
  .detail-btns { flex-wrap: wrap; }
  .player-wrap { padding: 0 12px; }
}

/* Küçük mobil (max 400px) */
@media (max-width: 400px) {
  .ip-cards-row { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .ip-hero { height: 240px; }
  .ip-hero-title { font-size: 18px; }
  .ip-hero-btn span { display: none; }
}


/* === GLOBAL MOBILE OVERFLOW FIX === */
@media (max-width: 768px) {
  html, body { overflow-x: hidden !important; max-width: 100vw !important; }
  .ip-nav, .fp-nav, .bp-header, nav { box-sizing: border-box !important; max-width: 100% !important; overflow: visible !important; }
  .ip-search, .fp-search, .bp-search, .search-wrap { min-width: 0 !important; flex-shrink: 1 !important; }
  .ip-hss-dd, .fp-hss-dd, #hssDd, #fpDd { max-width: calc(100vw - 20px) !important; right: 0 !important; left: auto !important; }
}

/* === GLOBAL WIDTH FIX === */
.lp-container,.fp-container,.tp-container,.an-container,.dp-container,.container,.ip-container,.ap-container{max-width:1024px!important;margin-left:auto!important;margin-right:auto!important;box-sizing:border-box!important;width:100%!important}
.ip-nav-inner{max-width:1024px!important;margin-left:auto!important;margin-right:auto!important;width:100%!important;box-sizing:border-box!important}


/* === GLOBAL NAV FIX === */
.ip-nav-links{align-items:center!important}
.ip-nav-links a,.ip-nav-links .ip-dropdown>a{display:inline-flex!important;align-items:center!important;gap:5px!important}
.ip-nav-inner{align-items:center!important}
.ip-nav{align-items:center!important}


/* === MOBİL MENÜ ACCORDION (Platform & Tür) === */
.ip-mob-section {
  cursor: pointer;
  user-select: none;
}
.ip-mob-section span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #666;
  background: transparent;
  border: none;
  cursor: pointer;
}
.ip-mob-section span::after {
  content: '\203A';
  font-size: 18px;
  line-height: 1;
  color: #555;
  transform: rotate(90deg);
  transition: transform 0.25s ease;
  display: inline-block;
}
.ip-mob-section.open span::after {
  transform: rotate(-90deg);
}
.ip-mob-group-items {
  display: none;
  overflow: hidden;
}
.ip-mob-group-items.open {
  display: block;
}
