/* ==========================================================================
   KijkIPTV - OrigamiTV Live Channel Player & Interactive Stream Center
   High-Contrast Futuristic Theme with Pure Dark Obsidian & Neon Orange Accents
   ========================================================================== */

.ltv-section {
  position: relative;
  padding: 40px 0 60px;
  background: radial-gradient(circle at 50% 0%, rgba(255, 85, 0, 0.08) 0%, transparent 60%), #040711;
  color: #ffffff;
  overflow: hidden;
}

.ltv-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

.ltv-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(18px, 2.8vw, 32px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(70% 50% at 0 0, rgba(255, 85, 0, 0.16), transparent 60%),
    radial-gradient(60% 50% at 100% 100%, rgba(255, 140, 0, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(8, 12, 22, 0.98));
  color: #ffffff;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

/* Header */
.ltv-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.ltv-kicker {
  color: #ff9a68;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 85, 0, 0.12);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 85, 0, 0.3);
}

.ltv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5500;
  box-shadow: 0 0 0 0 rgba(255, 85, 0, 0.7);
  animation: ltv-pulse 1.8s infinite;
}

@keyframes ltv-pulse {
  70% { box-shadow: 0 0 0 10px rgba(255, 85, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 85, 0, 0); }
}

.ltv-title {
  margin: 10px 0 6px;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #ffffff;
}

.ltv-title em {
  font-style: normal;
  background: linear-gradient(135deg, #ff8f52, #ff5500 60%, #e02800);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ltv-sub {
  margin: 6px 0 0;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14.5px;
  line-height: 1.55;
}

/* Country Selector Pills */
.ltv-countries {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.ltv-country {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ltv-country img {
  width: 20px;
  height: 15px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.ltv-country:hover {
  border-color: rgba(255, 140, 0, 0.6);
  background: rgba(255, 85, 0, 0.12);
}

.ltv-country.active {
  border-color: rgba(255, 255, 255, 0.35);
  background: linear-gradient(135deg, #ff8f52, #ff5500 55%, #c22a05);
  color: #ffffff;
  box-shadow: 0 8px 24px -6px rgba(255, 85, 0, 0.65);
}

/* 2-Column Grid Layout */
.ltv-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 1024px) {
  .ltv-body {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    align-items: start;
  }
}

/* Left Column: Player & EPG */
.ltv-screen-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ltv-screen-wrap {
  position: relative;
  background: #000000;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
}

#ltv-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

/* Screen Top Bar */
.ltv-screen-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
  pointer-events: none;
}

.ltv-live-tag {
  background: #e02800;
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(224, 40, 0, 0.5);
}

.ltv-channel-watermark {
  background: rgba(8, 12, 22, 0.75);
  backdrop-filter: blur(10px);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Screen Bottom Controls */
.ltv-screen-controls {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.ltv-ctrl-btn {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.ltv-ctrl-btn:hover {
  background: rgba(255, 85, 0, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Locked Modal Overlay */
.ltv-locked-modal {
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 70% at 50% 40%, rgba(255, 85, 0, 0.18), transparent 70%), rgba(8, 12, 20, 0.94);
  backdrop-filter: blur(14px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  z-index: 20;
}

.ltv-locked-modal.active {
  display: flex;
}

.locked-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 85, 0, 0.16);
  border: 1px solid #ff5500;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: #ff8f52;
  box-shadow: 0 0 20px rgba(255, 85, 0, 0.35);
}

.locked-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.locked-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.locked-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-unlock-wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-unlock-wa:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.btn-view-plans {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-view-plans:hover {
  background: rgba(255, 85, 0, 0.15);
  border-color: rgba(255, 85, 0, 0.5);
}

/* Now Playing Bar */
.ltv-now {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ltv-now-meta {
  min-width: 0;
  flex: 1;
}

.ltv-now-title {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.ltv-now-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 3px;
  line-height: 1.4;
}

.ltv-now-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 85, 0, 0.15);
  border: 1px solid rgba(255, 85, 0, 0.35);
  padding: 4px 10px;
  border-radius: 6px;
  color: #ff9a68;
  white-space: nowrap;
}

/* Right Column: Search, Categories & Channel List */
.ltv-list-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 420px;
}

.ltv-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ltv-search-box {
  position: relative;
  width: 100%;
}

.ltv-search-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 11px 16px 11px 40px;
  font-size: 14px;
  color: #ffffff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ltv-search-box input:focus {
  border-color: #ff5500;
  background: rgba(255, 255, 255, 0.09);
}

.ltv-search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

/* Category Filter Chips */
.ltv-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.ltv-chips::-webkit-scrollbar {
  display: none;
}

.ltv-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.8);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.ltv-chip:hover {
  border-color: rgba(255, 140, 0, 0.5);
  color: #ffffff;
}

.ltv-chip.active {
  background: rgba(255, 85, 0, 0.2);
  color: #ffffff;
  border-color: #ff5500;
  box-shadow: 0 2px 10px rgba(255, 85, 0, 0.3);
}

/* Channel Cards List */
.ltv-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.ltv-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none;
  color: #ffffff;
}

.ltv-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(2px);
}

.ltv-card.active {
  background: linear-gradient(135deg, rgba(255, 85, 0, 0.22), rgba(224, 40, 0, 0.15));
  border-color: #ff5500;
  box-shadow: 0 4px 16px rgba(255, 85, 0, 0.25);
}

.ltv-card-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.ltv-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #141418;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  overflow: hidden;
}

.ltv-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.ltv-card-name {
  font-size: 14px;
  font-weight: 750;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ltv-card-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.ltv-card-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.tag-free {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  text-transform: uppercase;
}

.tag-prem {
  background: rgba(255, 85, 0, 0.2);
  color: #ff9a68;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid rgba(255, 85, 0, 0.35);
  text-transform: uppercase;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .ltv-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .ltv-screen-controls {
    bottom: 8px;
    right: 8px;
  }
  .ltv-ctrl-btn {
    padding: 6px 10px;
    font-size: 11.5px;
  }
}
