:root {
  --bg: #100e0c;
  --surface: #1a1512;
  --surface-2: #231c18;
  --border: #3d3028;
  --text: #e8e0d9;
  --text-muted: #9c8f85;
  --heading: #fff7ed;
  --accent: #f97316;
  --accent-mid: #ea580c;
  --accent-deep: #c2410c;
  --accent-glow: rgba(249, 115, 22, 0.35);
  --danger: #fb7185;
  --radius: 12px;
  --font: 'Segoe UI', system-ui, sans-serif;
  --gradient-cta: linear-gradient(145deg, #fb923c 0%, #ea580c 45%, #c2410c 100%);
  --gradient-cta-hover: linear-gradient(145deg, #fdba74 0%, #f97316 50%, #ea580c 100%);
  --gradient-ghost: linear-gradient(145deg, rgba(251, 146, 60, 0.2) 0%, rgba(234, 88, 12, 0.12) 100%);
  --gradient-tab-active: linear-gradient(180deg, rgba(251, 146, 60, 0.35) 0%, rgba(194, 65, 12, 0.2) 100%);
  font-family: var(--font);
  line-height: 1.45;
  color: var(--text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background-color: #050a14;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: #050a14;
  background-image: url("home-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

@media (max-width: 900px) {
  body {
    background-attachment: scroll;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

/* Logo + marka (tüm sayfalar) */
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.site-brand:hover .site-brand__name {
  filter: brightness(1.08);
}

.site-brand__logo {
  height: 40px;
  width: auto;
  max-width: 48px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.site-brand__name {
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 1.42rem;
  line-height: 1.1;
  color: #ff7a00;
  text-shadow:
    0 0 24px rgba(255, 140, 0, 0.45),
    0 2px 4px rgba(0, 0, 0, 0.35);
}

.site-brand--login .site-brand__logo {
  height: 52px;
  max-width: 56px;
}

.site-brand--login {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.site-brand--login .site-brand__name {
  font-size: 1.95rem;
  letter-spacing: -0.045em;
}

.site-brand--compact .site-brand__logo {
  height: 34px;
  max-width: 40px;
}

.site-brand--compact .site-brand__name {
  font-size: 1.2rem;
}

.site-brand--home {
  flex-direction: column;
  gap: clamp(10px, 2vw, 18px);
  align-items: center;
  text-align: center;
}

.site-brand--home .site-brand__logo {
  height: clamp(96px, 15vw, 140px);
  max-width: min(200px, 42vw);
  width: auto;
}

.site-brand--home .site-brand__name {
  font-size: clamp(2rem, 5.5vw, 2.85rem);
  letter-spacing: -0.05em;
}

/* Login */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.login-card .site-brand {
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin: 0 0 12px;
}

.login-sub {
  margin: 0 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-reset-form {
  margin-top: 12px;
}

.login-reset-btn {
  width: 100%;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.field input {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--heading);
  font: inherit;
}

.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.875rem;
}

.btn-primary {
  margin-top: 8px;
  padding: 16px 22px;
  border: none;
  border-radius: 12px;
  background: var(--gradient-cta);
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(234, 88, 12, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn-primary:hover {
  background: var(--gradient-cta-hover);
  filter: brightness(1.05);
  box-shadow: 0 6px 22px rgba(234, 88, 12, 0.45);
  transform: translateY(-1px);
}

/* Browse — tam yükseklik, yan panellerde kaydırma */
.browse {
  height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.browse-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  flex-shrink: 0;
}

.browse-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.browse-home-link {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.browse-home-link:hover {
  color: var(--heading);
  background: rgba(251, 146, 60, 0.1);
}

.browse-home-link--current {
  pointer-events: none;
  background: var(--gradient-tab-active);
  color: var(--heading);
  border-color: rgba(251, 146, 60, 0.45);
  box-shadow: 0 2px 12px rgba(234, 88, 12, 0.2);
}

/* Üye menüsü (Hesap bilgisi / Çıkış) */
.user-menu {
  position: relative;
  flex-shrink: 0;
}

.user-menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(280px, 38vw);
  padding: 10px 14px 10px 18px;
  border-radius: 999px;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--heading);
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.22) 0%, rgba(234, 88, 12, 0.14) 100%);
  border: 1px solid rgba(251, 146, 60, 0.42);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 4px 18px rgba(234, 88, 12, 0.15);
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu__trigger::-webkit-details-marker {
  display: none;
}

.user-menu__trigger::after {
  content: '';
  flex-shrink: 0;
  width: 0.45em;
  height: 0.45em;
  margin-left: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.85;
}

.user-menu[open] .user-menu__trigger::after {
  transform: rotate(225deg);
  margin-top: 4px;
}

.user-menu__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 200;
  min-width: 220px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.user-menu__item {
  display: block;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
  text-decoration: none;
  transition: background 0.12s ease;
}

.user-menu__item:hover {
  background: rgba(251, 146, 60, 0.14);
}

.browse-header-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 14px;
}

.browse-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.browse-tabs .browse-home-link--in-tabs {
  flex-shrink: 0;
}

.tab {
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--text-muted);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tab:hover {
  color: var(--heading);
  background: rgba(251, 146, 60, 0.1);
}

.tab.active {
  background: var(--gradient-tab-active);
  color: var(--heading);
  border-color: rgba(251, 146, 60, 0.45);
  box-shadow: 0 2px 12px rgba(234, 88, 12, 0.2);
}

.btn-ghost {
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(251, 146, 60, 0.35);
  background: var(--gradient-ghost);
  color: var(--heading);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.btn-ghost:hover {
  border-color: rgba(253, 186, 116, 0.55);
  box-shadow: 0 2px 14px rgba(234, 88, 12, 0.25);
  transform: translateY(-1px);
}

.browse-layout {
  display: flex;
  flex: 1;
  min-height: 0;
  align-items: stretch;
  overflow: hidden;
}

.browse-sidebar {
  width: 280px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.sidebar-heading {
  margin: 0;
  padding: 16px 16px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}

.sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 10px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-mid) var(--surface);
}

.sidebar-nav::-webkit-scrollbar {
  width: 10px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: var(--surface);
  border-radius: 6px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fb923c, var(--accent-deep));
  border-radius: 6px;
  border: 2px solid var(--surface);
}

.sidebar-empty {
  margin: 0;
  padding: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.cat-link {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cat-link:hover {
  background: rgba(251, 146, 60, 0.12);
  color: var(--heading);
}

.cat-link.active {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.35) 0%, rgba(234, 88, 12, 0.22) 100%);
  border-color: rgba(251, 146, 60, 0.45);
  color: var(--heading);
  box-shadow: 0 2px 12px rgba(234, 88, 12, 0.2);
}

.browse-content {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: #050a14;
  background-image:
    linear-gradient(180deg, rgba(5, 10, 20, 0.78) 0%, rgba(5, 10, 20, 0.84) 100%),
    url("home-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-mid) var(--bg);
}

.browse-content::-webkit-scrollbar {
  width: 10px;
}

.browse-content::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 6px;
}

.browse-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fb923c, var(--accent-deep));
  border-radius: 6px;
  border: 2px solid var(--bg);
}

.content-inner {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.content-inner--detail {
  padding-top: 12px;
}

.content-placeholder {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.toolbar-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.875rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.card {
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  border-color: rgba(251, 146, 60, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* Film / dizi poster — oran korunur */
.card-thumb {
  aspect-ratio: 2/3;
  width: 100%;
  object-fit: cover;
  background: var(--bg);
}

/* Canlı TV — logo alanı: kırpma yok, logo kutuya sığar */
.card-media--live {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 88px;
  height: 110px;
  padding: 12px 14px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.card-thumb--live {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  aspect-ratio: auto;
}

.grid--live {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.card--live .card-title {
  min-height: 2.6em;
}

.card-placeholder {
  aspect-ratio: 2/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #2d2218, #1a1410);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.card-placeholder--live {
  aspect-ratio: auto;
  min-height: 88px;
  height: 110px;
  padding: 12px;
}

.card-title {
  padding: 12px;
  font-size: 0.85rem;
  color: var(--heading);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.series-title {
  margin: 0 0 20px;
  font-size: 1.35rem;
  color: var(--heading);
}

.season-block {
  margin-bottom: 24px;
}

.season-heading {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--text);
}

.episode-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.episode-btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(251, 146, 60, 0.25);
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.12) 0%, rgba(28, 22, 18, 0.9) 100%);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.episode-btn:hover {
  border-color: rgba(251, 146, 60, 0.55);
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.22) 0%, rgba(45, 34, 24, 0.95) 100%);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.2);
  transform: translateY(-1px);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  margin-bottom: 12px;
  border: 1px solid rgba(253, 186, 116, 0.45);
  border-radius: 12px;
  background: var(--gradient-cta);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.btn-back:hover {
  background: var(--gradient-cta-hover);
  border-color: rgba(255, 237, 213, 0.55);
  box-shadow: 0 6px 22px rgba(234, 88, 12, 0.45);
  transform: translateY(-1px);
  color: #fff;
}

/* Player page */
.player-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.player-page-topbar {
  border: 1px solid rgba(251, 146, 60, 0.28);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(20, 25, 38, 0.9) 0%, rgba(12, 16, 26, 0.95) 100%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

.player-page-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  justify-content: space-between;
  padding: 12px 14px;
}

.player-page-topbar-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.player-video-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}

.player-page-title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 1rem;
  color: var(--heading);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  display: block;
}

/* Film / dizi detay — hero kartı */
.browse-content--detail {
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

.detail-hero-wrap {
  position: relative;
}

.season-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

/* Bölüm listesinin hemen üstünde */
.season-tabs--below {
  margin: 0 0 20px;
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.season-tab {
  padding: 14px 26px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.season-tab:hover {
  color: #fff;
  border-color: rgba(251, 146, 60, 0.5);
  transform: translateY(-1px);
}

.season-tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.5) 0%, rgba(194, 65, 12, 0.4) 100%);
  border-color: rgba(251, 146, 60, 0.6);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.3);
}

.detail-hero {
  position: relative;
  padding: 28px 24px 36px;
  min-height: 420px;
  background-color: #0a0505;
  background-size: cover;
  background-position: center top;
}

.detail-hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(25, 8, 8, 0.72) 42%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}

.detail-hero__back {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-bottom: 16px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--gradient-cta);
  border: 1px solid rgba(253, 186, 116, 0.45);
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.detail-hero__back:hover {
  color: #fff;
  background: var(--gradient-cta-hover);
  border-color: rgba(255, 237, 213, 0.55);
  box-shadow: 0 6px 22px rgba(234, 88, 12, 0.45);
  transform: translateY(-1px);
}

.detail-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px 36px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.detail-hero__poster-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-hero__poster {
  width: 100%;
  max-width: 200px;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
  object-fit: cover;
  aspect-ratio: 2/3;
}

.detail-hero__poster--empty {
  aspect-ratio: 2/3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.35);
  font-size: 2rem;
}

.detail-hero__watch {
  display: block;
  text-align: center;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(180deg, #e53935 0%, #b71c1c 100%);
  box-shadow: 0 6px 20px rgba(183, 28, 28, 0.45);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.detail-hero__watch:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.detail-hero__body {
  min-width: 0;
}

.detail-hero__title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.detail-hero__title {
  margin: 0;
  flex: 1;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.detail-hero__fav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: #fb7185;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.detail-hero__fav:hover {
  background: rgba(251, 113, 133, 0.2);
  border-color: rgba(251, 113, 133, 0.5);
}

.detail-hero__meta {
  margin: 0 0 20px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

.detail-hero__dot {
  margin: 0 6px;
  opacity: 0.5;
}

.detail-hero__star {
  color: #fbbf24;
  margin-right: 4px;
}

.detail-hero__block {
  margin-bottom: 18px;
}

.detail-hero__label {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
}

.detail-hero__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.detail-episode-list {
  padding-top: 8px;
  padding-bottom: 32px;
}

.detail-episode-section-title {
  margin: 0 0 14px;
  font-size: 1.1rem;
  color: var(--heading);
}

@media (max-width: 768px) {
  .detail-hero__inner {
    grid-template-columns: 1fr;
  }

  .detail-hero__poster-col {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
  }

  .detail-hero__poster,
  .detail-hero__poster--empty {
    max-width: 140px;
  }

  .detail-hero__watch {
    flex: 1;
    min-width: 160px;
  }
}

/* Canlı TV — üç sütun: kategoriler + kanal listesi + önizleme */
/* Kategori ve kanal listesi eşit (1fr + 1fr); önizleme 2 kat geniş (2fr) */
.browse-layout--live {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr) minmax(0, 2fr);
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #050505;
}

.live-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #0a0a0a 0%, #000 100%);
}

.live-sidebar-title {
  margin: 0;
  padding: 20px 18px 14px;
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.live-sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 12px 18px;
  scrollbar-width: thin;
  scrollbar-color: #ea580c #0a0a0a;
}

.live-sidebar-nav::-webkit-scrollbar {
  width: 8px;
}

.live-sidebar-nav::-webkit-scrollbar-track {
  background: #0a0a0a;
}

.live-sidebar-nav::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fb923c, #9a3412);
  border-radius: 4px;
}

.live-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 8px;
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.live-cat-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.live-cat-row.active {
  background: rgba(255, 140, 0, 0.42);
  border-color: rgba(255, 180, 80, 0.55);
  box-shadow: 0 2px 16px rgba(255, 140, 0, 0.2);
}

.live-cat-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-cat-count {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  font-weight: 600;
}

.live-channels {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #0c0c0c;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.live-channels-inner {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 12px 22px;
  scrollbar-width: thin;
  scrollbar-color: #ea580c #0c0c0c;
}

.live-channels-inner::-webkit-scrollbar {
  width: 8px;
}

.live-channels-inner::-webkit-scrollbar-track {
  background: #0c0c0c;
}

.live-channels-inner::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fb923c, #9a3412);
  border-radius: 4px;
}

.live-channel-row {
  display: grid;
  grid-template-columns: 48px 56px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 10px;
  color: #fff;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.live-channel-row:hover {
  background: rgba(255, 255, 255, 0.05);
}

.live-channel-row.active {
  background: rgba(255, 140, 0, 0.42);
  border-color: rgba(255, 180, 80, 0.5);
  box-shadow: 0 2px 14px rgba(255, 140, 0, 0.18);
}

.live-channel-num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
}

.live-channel-logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 8px;
  overflow: hidden;
}

.live-channel-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.live-channel-logo-fallback {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
}

.live-channel-name {
  font-size: 0.95rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-channels-placeholder {
  margin: 0;
  padding: 28px 16px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  font-size: 0.95rem;
}

.live-preview {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  overflow-y: auto;
  background-color: #050a14;
  background-image:
    linear-gradient(180deg, rgba(5, 10, 20, 0.74) 0%, rgba(5, 10, 20, 0.9) 100%),
    url("home-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 16px 18px 20px;
  scrollbar-width: thin;
  scrollbar-color: #ea580c #000;
}

.live-preview::-webkit-scrollbar {
  width: 8px;
}

.live-preview::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #fb923c, #9a3412);
  border-radius: 4px;
}

.live-preview-video-wrap {
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 16/9;
  background: #0a0a0a;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.live-preview-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.live-preview-placeholder {
  width: 100%;
  height: 100%;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.95rem;
}

.live-preview-title {
  margin: 14px 0 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
  line-height: 1.35;
}

/* Filmler / Diziler sol sütun başlığı (Canlı Kanallar ile aynı hiyerarşi) */
.browse-sidebar-title {
  margin: 0;
  padding: 20px 18px 14px;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

/* Hesap Bilgisi sekmesi */
.browse-layout--account {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 24px 20px 40px;
  background-color: #050a14;
  background-image:
    linear-gradient(180deg, rgba(5, 10, 20, 0.78) 0%, rgba(5, 10, 20, 0.86) 100%),
    url("home-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.account-page {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.account-page-title {
  margin: 0 0 22px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: -0.02em;
}

.account-page-error {
  text-align: center;
}

.account-card {
  background: #12161d;
  border: 1px solid rgba(251, 146, 60, 0.55);
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(249, 115, 22, 0.2),
    0 0 24px rgba(234, 88, 12, 0.18);
  padding: 22px 22px 8px;
}

.account-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.account-card__avatar {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fb923c;
  background: #0a0d12;
  border: 2px solid rgba(251, 146, 60, 0.9);
  box-shadow: 0 0 16px rgba(234, 88, 12, 0.4);
}

.account-card__headline {
  min-width: 0;
  flex: 1;
}

.account-card__username {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  word-break: break-all;
  margin-bottom: 8px;
}

.account-card__badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  border: 1px solid rgba(253, 186, 116, 0.55);
}

.account-card__rows {
  margin: 0;
  padding: 0;
}

.account-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.account-card__row:last-child {
  border-bottom: none;
}

.account-card__row dt {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}

.account-card__row dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  text-align: right;
}

@media (max-width: 768px) {
  .browse {
    height: auto;
    max-height: none;
    min-height: 100vh;
    overflow: visible;
  }

  .browse-layout {
    flex-direction: column;
    overflow: visible;
  }

  .browse-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    max-height: 42vh;
  }

  .browse-content {
    overflow: visible;
  }

  .browse-layout--live {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    overflow: visible;
    min-height: auto;
  }

  .live-sidebar {
    max-height: 36vh;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .live-channels {
    max-height: 40vh;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .live-preview {
    overflow: visible;
    min-height: 280px;
  }
}

/* ——— Anasayfa (CANLI TV / FİLMLER / DİZİLER) ——— */
.home-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 18px 22px 8px;
  flex-shrink: 0;
}

.home-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.home-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px 40px;
  min-height: 0;
}

.home-main__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 5vh, 48px);
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.home-main__brand {
  display: flex;
  justify-content: center;
  width: 100%;
}

.home-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.5vw, 24px);
  width: 100%;
}

.home-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 26px);
  min-height: clamp(200px, 28vh, 280px);
  padding: 36px 20px;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.home-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
}

.home-card--live {
  background: linear-gradient(145deg, #5eead4 0%, #14b8a6 38%, #2563eb 100%);
}

.home-card--movies {
  background: linear-gradient(145deg, #fdba74 0%, #fb923c 42%, #ea580c 88%, #c2410c 100%);
}

.home-card--series {
  background: linear-gradient(145deg, #e879f9 0%, #c026d3 45%, #db2777 100%);
}

.home-card__icon-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(72px, 14vw, 96px);
  height: clamp(72px, 14vw, 96px);
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.92);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.home-card__icon-svg {
  width: clamp(36px, 7vw, 48px);
  height: clamp(36px, 7vw, 48px);
}

.home-card__label {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
  .home-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .home-card {
    min-height: 180px;
  }
}
