/* ═══════════════════════════════════════════════
   kavuntv.net — Warm Cream + Orange Editorial Theme
   Completely different from canlitvme.com and tvizle.me
═══════════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
  --cream:        #fef9f0;
  --white:        #ffffff;
  --orange:       #f97316;
  --orange-dark:  #ea580c;
  --orange-light: #fff7ed;
  --border:       #fde8d0;
  --text:         #1c1917;
  --text-dim:     #78716c;
  --text-mute:    #a8a29e;
  --nav-h:        58px;
  --radius:       8px;
  --transition:   .18s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange-dark); text-decoration: none; }
a:hover { color: var(--orange); text-decoration: underline; }

/* ── Top Navigation ── */
.kav-nav {
  background: var(--white);
  border-bottom: 2px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.kav-nav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  height: var(--nav-h);
  max-width: 1280px;
  margin: 0 auto;
}

/* Logo */
.kav-brand {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -.2px;
  flex-shrink: 0;
}
.kav-brand:hover { color: var(--orange); text-decoration: none; }

/* Nav links */
.kav-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 20px;
}

.kav-nav-link {
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}
.kav-nav-link:hover { color: var(--text); background: var(--orange-light); text-decoration: none; }
.kav-nav-link.kav-active { color: var(--orange-dark); font-weight: 600; }

/* Search */
.kav-search {
  display: flex;
  align-items: center;
  margin-left: auto;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.kav-search:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}
.kav-search input {
  background: transparent;
  border: none;
  color: var(--text);
  padding: 7px 14px;
  font-size: 13px;
  width: 200px;
  outline: none;
}
.kav-search input::placeholder { color: var(--text-mute); }
.kav-search button {
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 7px 12px;
  cursor: pointer;
  font-size: 14px;
  transition: color var(--transition);
}
.kav-search button:hover { color: var(--orange); }

/* Burger button (mobile) */
.kav-burger {
  display: none;
  background: var(--orange-light);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 20px;
  cursor: pointer;
  margin-left: auto;
  transition: background var(--transition);
}
.kav-burger:hover { background: var(--border); }

/* Ad top strip */
.kav-ad-top {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

/* ── Main wrapper ── */
.kav-main { flex: 1; padding: 24px 0 48px; }

/* ── Page intro ── */
.page-intro {
  max-width: 1280px;
  margin: 0 auto 20px;
  padding: 0 24px;
}
.page-intro h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -.2px;
}
.page-intro p {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.75;
}
.page-intro strong { color: var(--text); }
.page-intro em { color: var(--orange-dark); font-style: normal; }

/* ── Category tabs ── */
.cat-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 1280px;
  margin: 0 auto 16px;
  padding: 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text-dim);
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
  appearance: none;
}
.cat-tab:hover {
  border-color: var(--orange);
  color: var(--orange-dark);
  background: var(--orange-light);
}
.cat-tab.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(249,115,22,.3);
}

/* ── Sidebar layout ── */
.sidebar-wrap {
  display: flex;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  align-items: flex-start;
}

/* Left channel sidebar */
.ch-sidebar {
  width: 180px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--nav-h) + 8px);
  max-height: calc(100vh - var(--nav-h) - 40px);
  overflow-y: auto;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 0;
  margin-right: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.ch-sidebar::-webkit-scrollbar { width: 4px; }
.ch-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.ch-sidebar-item {
  display: block;
  padding: 9px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-dim);
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ch-sidebar-item:hover {
  color: var(--text);
  background: var(--orange-light);
  text-decoration: none;
}
.ch-sidebar-item.is-active {
  color: var(--orange-dark);
  border-left-color: var(--orange);
  background: var(--orange-light);
  font-weight: 600;
}

/* ── Program area (right column) ── */
.prog-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* One row per channel */
.prog-strip-row {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.prog-strip-row.is-hidden { display: none; }

.prog-strip-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--orange-light);
}

.prog-strip-color {
  width: 4px;
  height: 20px;
  border-radius: 2px;
  flex-shrink: 0;
}

.prog-strip-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.prog-strip-name:hover { color: var(--orange-dark); text-decoration: none; }

.prog-strip-cat {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-mute);
  background: var(--border);
  border-radius: 4px;
  padding: 2px 8px;
  text-transform: uppercase;
  letter-spacing: .3px;
  flex-shrink: 0;
}

/* Horizontal scrollable chip strip */
.prog-chips {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.prog-chips::-webkit-scrollbar { height: 4px; }
.prog-chips::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Individual program chip */
.prog-chip {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 12px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  min-width: 110px;
  max-width: 160px;
  flex-shrink: 0;
  cursor: default;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.prog-chip:hover {
  border-color: var(--orange);
  box-shadow: 0 2px 8px rgba(249,115,22,.12);
}

.prog-chip.is-live {
  background: var(--orange);
  border-color: var(--orange-dark);
  color: var(--white);
}

.prog-chip.is-past {
  opacity: .45;
}

.time-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  letter-spacing: .3px;
}
.prog-chip.is-live .time-tag { color: rgba(255,255,255,.8); }

.chip-title {
  font-size: 12px;
  color: var(--text);
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.prog-chip.is-live .chip-title { color: var(--white); font-weight: 600; }

/* Pulsing live dot */
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--white);
  margin-right: 5px;
  animation: kav-pulse 1.4s ease-in-out infinite;
}

@keyframes kav-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(.8); }
}

.no-prog-note {
  color: var(--text-mute);
  font-size: 12.5px;
  font-style: italic;
  padding: 14px 0;
}

/* ── AdSense mid block ── */
.kav-ad-mid {
  max-width: 1280px;
  margin: 24px auto;
  padding: 0 24px;
  text-align: center;
}

/* ── About / page-about section ── */
.page-about {
  max-width: 1280px;
  margin: 0 auto 24px;
  padding: 0 24px;
}
.page-about h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.page-about p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 12px;
}
.page-about strong { color: var(--text); }

/* ── FAQ / SSS ── */
.faq-block {
  max-width: 1280px;
  margin: 0 auto 24px;
  padding: 0 24px;
}
.faq-block h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.faq-toggle {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
  transition: border-color var(--transition);
  cursor: pointer;
}
.faq-toggle:hover { border-color: var(--orange); }
.faq-toggle[open] { border-color: var(--orange); }

.faq-toggle > summary {
  list-style: none;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  position: relative;
  user-select: none;
}
.faq-toggle > summary::-webkit-details-marker { display: none; }
.faq-toggle > summary::after {
  content: '›';
  position: absolute;
  right: 18px;
  font-size: 22px;
  font-weight: 300;
  color: var(--orange);
  line-height: 1;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transition: transform var(--transition);
}
.faq-toggle[open] > summary::after {
  transform: translateY(-50%) rotate(270deg);
}

.faq-body {
  padding: 4px 18px 16px;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.75;
  border-top: 1px solid var(--border);
}

/* ── Channel detail page (kanal.php) ── */
.ch-detail-header {
  max-width: 960px;
  margin: 0 auto 16px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ch-detail-accent {
  width: 5px;
  height: 52px;
  background: var(--orange);
  border-radius: 3px;
  flex-shrink: 0;
}

.ch-detail-body { flex: 1; }

.ch-detail-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.3px;
}

.ch-detail-cat {
  font-size: 12.5px;
  color: var(--text-dim);
  font-weight: 500;
  margin-top: 3px;
  text-transform: capitalize;
}

.ch-back-link {
  color: var(--text-mute);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition);
}
.ch-back-link:hover { color: var(--orange-dark); text-decoration: none; }

/* Channel intro text */
.ch-intro-text {
  max-width: 960px;
  margin: 0 auto 16px;
  padding: 0 24px;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
}
.ch-intro-text p { padding: 14px 0; }
.ch-intro-text strong { color: var(--text); }

/* Program timeline (vertical) */
.prog-timeline {
  max-width: 960px;
  margin: 0 auto 24px;
  padding: 0 24px;
}

.timeline-entry {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 6px;
  transition: all var(--transition);
  border-left: 4px solid transparent;
}
.timeline-entry:hover { border-color: var(--border); background: var(--orange-light); }

.timeline-entry.live {
  border-left-color: var(--orange);
  background: var(--orange-light);
  border-color: var(--border);
}

.timeline-entry.past {
  opacity: .5;
}

.time-col {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  width: 52px;
  flex-shrink: 0;
}
.timeline-entry.live .time-col { color: var(--orange-dark); }

.title-col {
  font-size: 14px;
  color: var(--text);
  flex: 1;
  font-weight: 500;
}
.timeline-entry.live .title-col { font-weight: 700; color: var(--text); }

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--orange);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 10px;
  flex-shrink: 0;
  letter-spacing: .4px;
}

/* Highlights / prime-time */
.ch-highlights {
  max-width: 960px;
  margin: 0 auto 24px;
  padding: 0 24px;
}
.ch-highlights h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}
.ch-highlights-lead {
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.prime-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  list-style: none;
}
.prime-list li {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  transition: border-color var(--transition);
}
.prime-list li:hover { border-color: var(--orange); }
.prime-time {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-dark);
  font-variant-numeric: tabular-nums;
  min-width: 44px;
  flex-shrink: 0;
}
.prime-title { font-size: 13px; color: var(--text); }

/* ── Search page ── */
.search-hero {
  max-width: 860px;
  margin: 0 auto 24px;
  padding: 0 24px;
}
.search-hero-box {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.search-hero-box h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}

.search-row {
  display: flex;
  gap: 10px;
}
.search-row input {
  flex: 1;
  background: var(--cream);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 11px 16px;
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}
.search-row input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}
.search-row input::placeholder { color: var(--text-mute); }
.search-row button {
  background: var(--orange);
  border: none;
  color: var(--white);
  border-radius: var(--radius);
  padding: 11px 24px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
  font-family: inherit;
}
.search-row button:hover { background: var(--orange-dark); box-shadow: 0 2px 10px rgba(249,115,22,.3); }

.search-count {
  font-size: 13px;
  color: var(--text-dim);
  margin: 12px 24px;
  max-width: 860px;
}
.search-count strong { color: var(--text); }

.hit-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  margin: 0 24px 8px;
  max-width: 860px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all var(--transition);
}
.hit-card:hover { border-color: var(--orange); transform: translateX(3px); }

.hit-color-bar {
  width: 4px;
  height: 38px;
  border-radius: 2px;
  flex-shrink: 0;
}
.hit-channel {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  width: 110px;
  flex-shrink: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.hit-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--orange-dark);
  width: 52px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.hit-title {
  font-size: 14px;
  color: var(--text);
  flex: 1;
  font-weight: 500;
}
.hit-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--orange);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  flex-shrink: 0;
}

/* ── Static pages ── */
.static-wrap {
  max-width: 780px;
  margin: 0 auto 32px;
  padding: 32px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
}
.static-wrap h1 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--border);
}
.static-wrap h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--orange-dark);
  margin: 20px 0 8px;
}
.static-wrap p,
.static-wrap li {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 10px;
}
.static-wrap ul { padding-left: 20px; }
.static-wrap a { color: var(--orange-dark); font-weight: 500; }
.static-wrap a:hover { color: var(--orange); }

/* Contact form inside static-wrap */
.kav-contact-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 5px;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.kav-contact-form input,
.kav-contact-form textarea {
  width: 100%;
  background: var(--cream);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 14px;
  margin-bottom: 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}
.kav-contact-form input:focus,
.kav-contact-form textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}
.kav-contact-form textarea { resize: vertical; min-height: 130px; }

.kav-btn-send {
  background: var(--orange);
  border: none;
  color: var(--white);
  border-radius: var(--radius);
  padding: 12px 30px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
  font-family: inherit;
}
.kav-btn-send:hover { background: var(--orange-dark); box-shadow: 0 4px 14px rgba(249,115,22,.3); }

/* Alert boxes */
.kav-alert {
  padding: 13px 16px;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 18px;
}
.kav-alert-ok      { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }
.kav-alert-err     { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

/* ── Admin panel styles ── */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 220px;
  min-height: 100vh;
  background: var(--white);
  border-right: 1.5px solid var(--border);
  padding: 20px 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.admin-sidebar .brand {
  padding: 0 16px 16px;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 12px;
  color: var(--text);
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}
.admin-nav-link:hover { background: var(--orange-light); color: var(--text); text-decoration: none; }
.admin-nav-link.active { color: var(--orange-dark); background: var(--orange-light); border-left-color: var(--orange); }

.admin-content { flex: 1; padding: 30px; max-width: 1300px; }
.admin-content h1 { font-family: Georgia, serif; font-size: 22px; margin-bottom: 24px; font-weight: 700; letter-spacing: -.3px; color: var(--text); }

.admin-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
}
.admin-card h2 { font-size: 14px; margin-bottom: 18px; color: var(--text); font-weight: 700; }

.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.form-ctrl {
  width: 100%;
  background: var(--cream);
  border: 1.5px solid var(--border);
  color: var(--text);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}
.form-ctrl:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,.15); }
select.form-ctrl { cursor: pointer; }

.btn {
  border: none;
  border-radius: var(--radius);
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); box-shadow: 0 2px 8px rgba(249,115,22,.3); }
.btn-danger  { background: #dc2626; color: var(--white); }
.btn-sm      { padding: 6px 11px; font-size: 12px; }
.btn-ghost   { background: var(--cream); color: var(--text); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--border); }
.w-100 { width: 100%; }

.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--text-mute);
  border-bottom: 2px solid var(--border);
  font-weight: 700;
}
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--orange-light); }
.admin-table code {
  background: var(--cream);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  color: var(--orange-dark);
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}
.badge-green { background: #dcfce7; color: #15803d; }
.badge-red   { background: #fee2e2; color: #b91c1c; }

/* Admin login */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  padding: 20px;
}
.login-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  width: 360px;
  box-shadow: 0 8px 30px rgba(0,0,0,.08);
}
.login-card h2 {
  font-family: Georgia, serif;
  text-align: center;
  margin-bottom: 28px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 13px; font-weight: 500; margin-bottom: 16px; }
.alert-danger  { background: #fee2e2; border: 1px solid #fecaca; color: #b91c1c; }
.alert-success { background: #dcfce7; border: 1px solid #bbf7d0; color: #15803d; }

/* ── Footer ── */
.foot-bar {
  background: var(--white);
  border-top: 2px solid var(--orange);
  margin-top: auto;
  padding: 28px 0;
}
.foot-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.foot-disclaimer {
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.7;
  margin-bottom: 14px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.foot-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
}
.foot-links a {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 500;
  transition: color var(--transition);
  text-decoration: none;
}
.foot-links a:hover { color: var(--orange-dark); text-decoration: none; }
.foot-copy {
  font-size: 11px;
  color: var(--text-mute);
}

/* ── Clock display ── */
.kav-clock {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-dark);
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
  flex-shrink: 0;
}

/* ── Empty state ── */
.kav-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-mute);
}
.kav-empty .empty-icon { font-size: 48px; margin-bottom: 14px; }
.kav-empty p { font-size: 15px; margin-bottom: 14px; }
.kav-empty a { color: var(--orange-dark); font-weight: 600; }

/* ── Mobile accordion (small screens) ── */
.mobile-ch-list { display: none; }
.mobile-ch-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.mobile-ch-card.is-hidden { display: none; }
.mobile-ch-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  background: var(--orange-light);
  border-bottom: 1px solid var(--border);
}
.mobile-ch-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mobile-ch-name {
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  flex: 1;
}
.mobile-ch-now {
  font-size: 12px;
  color: var(--text-dim);
  max-width: 120px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mobile-ch-chevron {
  font-style: normal;
  color: var(--text-mute);
  transition: transform var(--transition);
}
.mobile-ch-card.is-open .mobile-ch-chevron { transform: rotate(180deg); }

.mobile-prog-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}
.mobile-prog-item:last-child { border-bottom: none; }
.mobile-prog-item.live { background: var(--orange-light); }
.mobile-prog-item.past { opacity: .5; }
.mobile-prog-time {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
  width: 44px;
  flex-shrink: 0;
}
.mobile-prog-title { font-size: 13px; color: var(--text); flex: 1; }
.mobile-live-badge {
  background: var(--orange);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
  flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .sidebar-wrap { flex-direction: column; padding: 0 12px; }
  .ch-sidebar { display: none; }
  .prog-area { width: 100%; }
  .sidebar-wrap .prog-area { display: none; }
  .mobile-ch-list { display: block; padding: 0 12px; }
  .page-intro { padding: 0 12px; }
  .cat-tabs { padding: 0 12px; }
  .faq-block { padding: 0 12px; }
  .page-about { padding: 0 12px; }
  .kav-ad-mid { padding: 0 12px; }
}

@media (max-width: 768px) {
  .kav-nav-inner { padding: 0 16px; }
  .kav-nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1.5px solid var(--border);
    padding: 12px;
    z-index: 199;
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
    gap: 4px;
    margin-left: 0;
  }
  .kav-nav-links.is-open { display: flex; }
  .kav-nav-link { width: 100%; border-radius: 6px; padding: 10px 14px; }
  .kav-search { display: none; }
  .kav-burger { display: flex; align-items: center; justify-content: center; }

  .ch-detail-header { padding: 0 12px; }
  .ch-intro-text { margin-left: 12px; margin-right: 12px; }
  .prog-timeline { padding: 0 12px; }
  .ch-highlights { padding: 0 12px; }
  .prime-list { grid-template-columns: 1fr; }
  .search-hero { padding: 0 12px; }
  .search-count { margin: 12px 12px; }
  .hit-card { margin: 0 12px 8px; }
  .static-wrap { padding: 20px; margin: 8px; }
  .admin-layout { flex-direction: column; }
  .admin-sidebar {
    width: 100%;
    min-height: auto;
    border-right: none;
    border-bottom: 1.5px solid var(--border);
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px;
  }
  .admin-sidebar .brand { width: 100%; border-bottom: none; padding-bottom: 8px; }
  .admin-nav-link { border-left: none; border-radius: 6px; flex: 1; justify-content: center; }
  .admin-content { padding: 16px; }
}

@media (max-width: 480px) {
  .ch-detail-name { font-size: 20px; }
  .page-intro h1 { font-size: 18px; }
}
