@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green:  #80bb41;
  --dark:   #505959;
  --darker: #2e3333;
  --ink:    #1a1d1d;
  --muted:  #7a8585;
  --border: #e0e5e5;
  --bg:     #f7f8f7;
  --white:  #ffffff;
  --radius: 6px;
  --font:   'Lato', sans-serif;
}

body {
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

/* ── LAYOUT ── */
.vl-root {
  color: var(--ink);
}

.vl-body {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: 1000px;
}

/* ── SIDEBAR ── */
.vl-sidebar {
  background: var(--darker);
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.vl-sidebar::-webkit-scrollbar { width: 4px; }
.vl-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
}

.vl-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.vl-tab {
  flex: 1;
  padding: 14px 12px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.vl-tab:hover {
  color: rgba(255,255,255,0.75);
  background: none !important;
}

.vl-tab.active {
  color: #ffffff !important;
  background: transparent !important;
  border-bottom-color: var(--green);
}

/* ── SORT BAR ── */
.vl-sort-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.vl-sort-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-right: 4px;
  white-space: nowrap;
}

.vl-sort-btn {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 20px;
  border: 1px solid transparent;
  background: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
  line-height: 1;
}

.vl-sort-btn:hover {
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.06) !important;
}

.vl-sort-btn.active {
  color: var(--green) !important;
  background: rgba(128,187,65,0.12) !important;
  border-color: rgba(128,187,65,0.3) !important;
}

.vl-list {
  flex: 1;
  padding: 8px 0;
  overflow-y: auto;
}

.vl-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.vl-item:hover { background: rgba(255,255,255,0.05); }

.vl-item.active {
  background: rgba(128, 187, 65, 0.1);
  border-left-color: var(--green);
}

.vl-thumb-wrap {
  position: relative;
  width: 80px;
  min-width: 80px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  flex-shrink: 0;
}

.vl-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vl-thumb-duration {
  position: absolute;
  bottom: 3px;
  right: 3px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}

.vl-item-meta {
  flex: 1;
  min-width: 0;
}

.vl-item-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  line-height: 1.35;
  margin-bottom: 0;
}

.vl-item.active .vl-item-title { color: var(--white); }

.vl-item-desc { display: none; }

/* ── MAIN CONTENT ── */
.vl-main {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.vl-player-wrap {
  position: relative;
  width: 100%;
  background: var(--ink);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}

.vl-player-wrap iframe,
.vl-player-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.vl-poster {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vl-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: opacity 0.2s;
  display: block;
}

.vl-poster:hover img { opacity: 0.5; }

.vl-play-btn {
  position: absolute;
  width: 68px;
  height: 68px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(0,0,0,0.45);
  transition: transform 0.18s, box-shadow 0.18s;
  pointer-events: none;
}

.vl-poster:hover .vl-play-btn {
  transform: scale(1.08);
  box-shadow: 0 10px 36px rgba(0,0,0,0.55);
}

.vl-play-btn svg { margin-left: 5px; }

.vl-content {
  padding: 36px 40px 48px;
  width: 740px;
}

.vl-content-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

.vl-content-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.vl-content-duration {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 20px;
}

.vl-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 20px;
}

.vl-content-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--dark);
  margin-bottom: 36px;
}

/* ── NEXT STEPS ── */
.vl-next-steps {
  margin-bottom: 0;
  padding: 16px 24px;
  background: #f4f7f1;
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.vl-next-steps-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 16px 0;
}

.vl-next-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.vl-next-steps-link {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}

.vl-next-steps-link::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--green);
  border-top: 2px solid var(--green);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.vl-next-steps-link:hover { color: var(--green); }

.vl-next-steps-list li {
  margin-bottom: 0 !important;
}

.vl-next-steps-list li:last-child {
  margin-bottom: 0 !important;
}

/* ── TRANSCRIPT ── */
.vl-transcript {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.vl-transcript-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.15s;
}

.vl-transcript-toggle:hover { background: var(--bg); }

.vl-transcript-chevron {
  transition: transform 0.22s;
  color: var(--muted);
}

.vl-transcript-chevron.open { transform: rotate(180deg); }

.vl-transcript-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.vl-transcript-body.open { max-height: 1000px; }

.vl-transcript-inner {
  padding: 20px 20px 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.8;
  color: var(--dark);
  white-space: pre-line;
}

/* ── TITLE ROW WITH SOCIAL SHARE ── */
.vl-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.vl-social-share {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding-top: 4px;
}

.vl-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--bg) !important;
  border: 1px solid var(--border) !important;
  color: var(--dark) !important;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  flex-shrink: 0;
  cursor: pointer;
  padding: 0;
}

.vl-social-btn:hover {
  border-color: var(--green) !important;
  color: var(--green) !important;
  background: var(--white) !important;
}

.vl-social-btn svg { display: block; }


.vl-loading {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(255,255,255,0.35);
  padding: 40px 16px;
}

@keyframes vl-spin {
  to { transform: rotate(360deg); }
}

.vl-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(128,187,65,0.25);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: vl-spin 0.75s linear infinite;
}

.vl-loading-text {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── EMPTY STATE ── */
.vl-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  padding: 48px;
  text-align: center;
}

.vl-empty-icon { opacity: 0.3; }

.vl-empty h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--dark);
}

.vl-empty p {
  font-size: 14px;
  max-width: 280px;
  line-height: 1.6;
}

/* ── NO RESULTS ── */
.vl-no-results {
  padding: 32px 16px;
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 13px;
}

/* ── RESPONSIVE ── */
/* ── MOBILE FEED ── */
.vl-mobile-feed { display: none; }

@media (min-width: 769px) {
  .vl-root {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  }
}

@media (max-width: 768px) {

  /* Hide desktop layout entirely */
  .vl-body { display: none; }

  /* Show mobile feed */
  .vl-mobile-feed {
    display: block;
    padding: 8px 0 48px;
  }

  .vl-mobile-card {
    padding: 24px 16px;
    border-bottom: 1px solid var(--border);
  }

  .vl-mobile-player-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    border-radius: var(--radius);
    overflow: hidden;
    background: #111;
    margin-bottom: 14px;
  }

  .vl-mobile-poster {
    position: absolute;
    inset: 0;
    cursor: pointer;
  }

  .vl-mobile-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .vl-mobile-poster-blank {
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.06);
  }

  .vl-mobile-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    transition: background 0.15s;
  }

  .vl-mobile-poster:hover .vl-mobile-play {
    background: rgba(0,0,0,0.45);
  }

  .vl-mobile-play svg {
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
  }

  .vl-mobile-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .vl-mobile-cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 6px;
  }

  .vl-mobile-title {
    font-size: 18px;
    font-weight: 900;
    color: var(--white);
    line-height: 1.3;
    margin: 0 0 10px 0;
  }

  .vl-mobile-desc {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255,255,255,0.75);
    margin: 0;
  }
}

