:root {
  --lv-bg: #030303;
  --lv-surface: #0c0c0c;
  --lv-elevated: #141414;
  --lv-border: rgba(255, 255, 255, 0.1);
  --lv-text: #fafafa;
  --lv-muted: #8c8c8c;
  --lv-accent: #ffffff;
  --lv-font-display: "Outfit", system-ui, sans-serif;
  --lv-font-body: "Manrope", system-ui, sans-serif;
}

.hidden {
  display: none !important;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--lv-bg);
  color: var(--lv-text);
  font-family: var(--lv-font-body);
  display: flex;
  flex-direction: column;
}

.lv-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.lv-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(3, 3, 3, 0.92);
  border-bottom: 1px solid var(--lv-border);
  backdrop-filter: blur(10px);
}

.lv-nav {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.lv-logo {
  font-family: var(--lv-font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--lv-text);
  text-decoration: none;
}

.lv-logo-accent {
  color: var(--lv-muted);
  font-weight: 600;
}

.lv-tabs {
  display: flex;
  gap: 8px;
  padding: 4px;
  background: var(--lv-surface);
  border: 1px solid var(--lv-border);
  border-radius: 999px;
}

.lv-tab {
  font-family: var(--lv-font-body);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 8px 18px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: transparent;
  color: var(--lv-muted);
  transition: background 0.15s, color 0.15s;
}

.lv-tab:hover {
  color: var(--lv-text);
}

.lv-tab.active {
  background: var(--lv-text);
  color: #050505;
}

.lv-main {
  flex: 1;
  padding: 24px 0 48px;
}

.lv-panel.hidden {
  display: none !important;
}

.lv-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.lv-toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  row-gap: 12px;
}

.lv-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lv-live-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lv-live-toggle-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lv-muted);
  user-select: none;
}

.lv-switch {
  position: relative;
  width: 48px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: var(--lv-elevated);
  box-shadow: inset 0 0 0 1px var(--lv-border);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.lv-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s;
}

.lv-switch.is-on {
  background: linear-gradient(145deg, #22c55e, #16a34a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.lv-switch.is-on::after {
  transform: translateX(20px);
  background: #fff;
}

.lv-switch:focus-visible {
  outline: 2px solid rgba(34, 197, 94, 0.6);
  outline-offset: 2px;
}

.lv-chip {
  font-family: var(--lv-font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--lv-border);
  background: var(--lv-surface);
  color: var(--lv-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.lv-chip:hover {
  color: var(--lv-text);
  border-color: rgba(255, 255, 255, 0.22);
}

.lv-chip.active {
  border-color: var(--lv-text);
  color: var(--lv-text);
  background: rgba(255, 255, 255, 0.06);
}

.lv-muted {
  color: var(--lv-muted);
}

.lv-small {
  font-size: 0.8rem;
  line-height: 1.45;
}

.lv-toolbar-hint {
  margin: 0;
  font-size: 0.85rem;
}

.lv-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 960px) {
  .lv-layout {
    grid-template-columns: 1fr;
  }
  .lv-list-col {
    order: 2;
  }
  .lv-player-col {
    order: 1;
  }
}

.lv-player-wrap {
  position: relative;
  background: #000;
  border: 1px solid var(--lv-border);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.lv-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: none;
}

.lv-iframe.is-visible {
  display: block;
}

.lv-player-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: var(--lv-muted);
  font-size: 0.95rem;
}

.lv-player-placeholder.hidden {
  display: none !important;
}

.lv-iframe.is-visible ~ .lv-player-placeholder {
  display: none !important;
}

.lv-stream-picks {
  margin-top: 12px;
  padding: 12px;
  background: var(--lv-surface);
  border: 1px solid var(--lv-border);
  border-radius: 10px;
}

.lv-stream-picks.hidden {
  display: none;
}

.lv-stream-picks strong {
  font-size: 0.85rem;
  display: block;
  margin-bottom: 8px;
}

.lv-stream-btn {
  margin: 4px 6px 4px 0;
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--lv-border);
  background: var(--lv-elevated);
  color: var(--lv-text);
  cursor: pointer;
}

.lv-stream-btn:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.lv-match-list,
.lv-channel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: min(70vh, 620px);
  overflow-y: auto;
}

.lv-match-item,
.lv-channel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--lv-surface);
  border: 1px solid var(--lv-border);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: inherit;
  font: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.lv-match-item:hover,
.lv-channel-item:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: var(--lv-elevated);
}

.lv-match-item.active,
.lv-channel-item.active {
  border-color: var(--lv-text);
  background: rgba(255, 255, 255, 0.05);
}

.lv-match-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.lv-badge {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
}

.lv-match-meta {
  flex: 1;
  min-width: 0;
}

.lv-match-live-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.lv-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.35);
  animation: lv-live-pulse 1.2s ease-in-out infinite;
}

@keyframes lv-live-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.92);
  }
}

.lv-live-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #f87171;
}

.lv-match-title {
  font-family: var(--lv-font-display);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 4px;
  line-height: 1.25;
}

.lv-match-date {
  font-size: 0.75rem;
  color: var(--lv-muted);
}

.lv-popular-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lv-muted);
  border: 1px solid var(--lv-border);
  padding: 2px 6px;
  border-radius: 4px;
}

.lv-channel-meta {
  flex: 1;
}

.lv-channel-name {
  font-family: var(--lv-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}

.lv-channels-intro {
  margin: 0 0 16px;
  max-width: 720px;
}

.lv-footer {
  border-top: 1px solid var(--lv-border);
  padding: 20px 0;
  margin-top: auto;
  background: var(--lv-surface);
}

.lv-footer-inner {
  max-width: 720px;
}

.lv-layout-channels .lv-match-list,
.lv-layout-channels .lv-channel-list {
  max-height: min(50vh, 400px);
}

.lv-channel-epg {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--lv-surface);
  border: 1px solid var(--lv-border);
  border-radius: 12px;
}

.lv-channel-epg.hidden {
  display: none !important;
}

.lv-channel-epg-inner p {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.lv-channel-epg-inner p:last-child {
  margin-bottom: 0;
}

.lv-channel-epg-inner strong {
  font-weight: 700;
  color: var(--lv-text);
}

.lv-epg-time {
  color: var(--lv-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.lv-channel-epg-line {
  margin: 6px 0 0 !important;
  font-size: 0.72rem;
  color: var(--lv-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 600px) {
  .lv-nav {
    flex-direction: column;
    height: auto;
    padding: 12px 0;
    align-items: stretch;
  }
  .lv-tabs {
    justify-content: center;
  }
}
