/* ============================================================
   DeezTimestamps — Cinematic Design System
   Netflix-inspired dark UI for YouTube transcript search
   ============================================================ */

/* ------------------------------------------------------------
   1. Reset & Base
   ------------------------------------------------------------ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  background: #070707;
  color: #f0f0f0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
}

/* ------------------------------------------------------------
   2. Glass Effects
   ------------------------------------------------------------ */

.glass {
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

@supports not ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .glass {
    background: rgba(0, 0, 0, 0.92);
  }
}

/* ------------------------------------------------------------
   3. Floating Pill Nav (browse mode)
   ------------------------------------------------------------ */

.floating-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  padding: 8px 15px;
}

@supports not ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .floating-nav {
    background: rgba(0, 0, 0, 0.92);
  }
}

.logo-spot {
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
}

.logo-spot span {
  color: #ff1744;
}

.search-pill {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 5px 15px;
  display: flex;
  align-items: center;
  border: 1px solid transparent;
  transition: border-color 0.3s;
}

.search-pill:focus-within {
  border-color: #ff1744;
}

.search-pill input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
}

.search-pill input::placeholder {
  color: #666;
}

.search-pill button,
.search-pill__btn {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 4px;
  flex-shrink: 0;
  transition: color 0.3s;
}

.search-pill button:hover,
.search-pill__btn:hover {
  color: #fff;
}

.nav-pills {
  display: flex;
  gap: 10px;
  list-style: none;
  font-size: 13px;
}

.nav-pills a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-pills a:hover {
  color: #fff;
}

/* ------------------------------------------------------------
   4. Player Top Bar (player mode)
   ------------------------------------------------------------ */

.player-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
  z-index: 1000;
}

@supports not ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .player-nav {
    background: rgba(0, 0, 0, 0.92);
  }
}

/* Player nav layout */
.player-nav .nav-logo,
.player-nav .logo-spot {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  text-decoration: none;
}

.player-nav .nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.player-nav .nav-left {
  flex-shrink: 0;
}

.player-nav .nav-right,
.player-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-link {
  color: #888;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link--active {
  color: #fff;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: #aaa;
  font-size: 12px;
  font-family: inherit;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.nav-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

.nav-logo {
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

/* Player search (wider variant) */
.player-search,
.player-nav .search-pill {
  flex: 1;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 5px 15px;
  display: flex;
  align-items: center;
  border: 1px solid transparent;
  transition: border-color 0.3s;
}

.player-search:focus-within,
.player-nav .search-pill:focus-within {
  border-color: #ff1744;
}

.player-search input,
.player-nav .search-pill input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
}

.player-search input::placeholder,
.player-nav .search-pill input::placeholder {
  color: #666;
}

.player-nav .search-pill button,
.player-search button {
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
  font-size: 14px;
  padding: 2px;
}

.player-nav .nav-pills {
  flex-shrink: 0;
}

/* Hamburger button */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 4px;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #aaa;
  border-radius: 1px;
  transition: all 0.3s;
}

.hamburger:hover span {
  background: #fff;
}

/* Mobile nav dropdown */
.mobile-nav {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
  z-index: 1001;
}

.mobile-nav--open {
  display: flex;
}

.mobile-nav a,
.mobile-nav button,
.mobile-nav__link,
.mobile-nav__btn {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  color: #aaa;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-nav a:hover,
.mobile-nav button:hover,
.mobile-nav__link:hover,
.mobile-nav__btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

/* ------------------------------------------------------------
   5. Hero Banner
   ------------------------------------------------------------ */

.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  padding-top: 80px;
  min-height: 250px;
}

.hero--large {
  height: 65vh;
}

.hero--medium {
  height: 50vh;
}

.hero--small {
  height: 30vh;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(to top, #070707 0%, transparent 80%),
    linear-gradient(to right, rgba(7, 7, 7, 0.8) 0%, transparent 60%);
  z-index: 1;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
  position: relative;
}

.hero--center {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero--center .hero-content {
  max-width: 700px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-content p {
  color: #aaa;
  line-height: 1.5;
  font-size: 15px;
  margin-bottom: 16px;
}

.hero-label {
  color: #ff1744;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: inline-block;
}

.btn-watch {
  background: #ff1744;
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  text-decoration: none;
}

.btn-watch:hover {
  background: #e01440;
  transform: scale(1.02);
}

.btn-watch:active {
  transform: scale(0.98);
}

/* ------------------------------------------------------------
   6. Content Area
   ------------------------------------------------------------ */

.content-area {
  padding: 40px;
  margin-top: -50px;
  position: relative;
  z-index: 3;
}

/* ------------------------------------------------------------
   7. Carousel Row
   ------------------------------------------------------------ */

.carousel-row {
  margin-bottom: 50px;
  position: relative;
}

.carousel-header {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin-bottom: 20px;
  position: relative;
  z-index: 5;
}

.carousel-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.carousel-header .see-all {
  font-size: 12px;
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
  cursor: pointer;
  z-index: 5;
  position: relative;
  flex-shrink: 0;
}

.carousel-header .see-all:hover {
  color: #ff1744;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-bottom: 15px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

/* Right-edge fade to hint more content */
.carousel-row::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 100%;
  background: linear-gradient(to left, #070707, transparent);
  pointer-events: none;
  z-index: 3;
  opacity: 1;
  transition: opacity 0.3s;
}

/* Hide fade when scrolled to end */
.carousel-row.scrolled-end::after {
  opacity: 0;
}

/* Mobile swipe hint — animated arrow that fades out */
@media (max-width: 1024px) {
  .carousel-row .swipe-hint {
    position: absolute;
    right: 15px;
    top: 55%;
    color: rgba(255, 255, 255, 0.5);
    font-size: 20px;
    pointer-events: none;
    z-index: 4;
    animation: swipeHint 2.5s ease-in-out forwards;
  }

  @keyframes swipeHint {
    0% { opacity: 0; transform: translateX(0); }
    20% { opacity: 1; }
    50% { opacity: 1; transform: translateX(-20px); }
    70% { opacity: 1; transform: translateX(0); }
    85% { opacity: 1; transform: translateX(-20px); }
    100% { opacity: 0; transform: translateX(-20px); }
  }
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.carousel-row:hover .carousel-arrow {
  opacity: 1;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.9);
}

.carousel-arrow--left {
  left: -20px;
}

.carousel-arrow--right {
  right: -20px;
}

/* ------------------------------------------------------------
   8. Video Card (Standard 16:9)
   ------------------------------------------------------------ */

.v-card {
  flex: 0 0 calc(25% - 15px);
  scroll-snap-align: start;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1),
              box-shadow 0.3s cubic-bezier(0.2, 0, 0, 1),
              z-index 0s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: block;
}

.v-card:hover {
  transform: scale(1.05);
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.v-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #222;
  overflow: hidden;
}

.v-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.v-card__duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  color: #ccc;
  line-height: 1.4;
}

.v-card__views {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  color: #ccc;
  line-height: 1.4;
}

.v-card__ad-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 8px;
  line-height: 1.4;
}

.v-card__body {
  padding: 12px;
}

.v-card__title {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

.v-card__meta {
  font-size: 12px;
  color: #888;
}

/* ------------------------------------------------------------
   9. Channel Card (Featured 2:3)
   ------------------------------------------------------------ */

.v-card--featured {
  flex: 0 0 calc(20% - 16px);
  aspect-ratio: 2 / 3;
  position: relative;
}

.v-card--featured .v-card__thumb {
  aspect-ratio: 2 / 3;
  height: 100%;
}

.v-card--featured .v-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 15px 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  z-index: 1;
}

.v-card--featured .v-card__overlay h4 {
  font-size: 14px;
  color: #fff;
  line-height: 1.3;
  font-weight: 500;
}

/* ------------------------------------------------------------
   10. Video Player Page Layout
   ------------------------------------------------------------ */

.player-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 20px 40px;
}

.player-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  background: #1a1a1a;
}

.player-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.player-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-meta {
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.video-meta__title {
  font-size: 20px;
  font-weight: 600;
  color: #f0f0f0;
}

.video-meta__channel {
  color: #ff1744;
  text-decoration: none;
  font-weight: 500;
  transition: text-decoration 0.2s;
}

.video-meta__channel:hover {
  text-decoration: underline;
}

.video-meta__stats {
  font-size: 14px;
  color: #aaa;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.video-meta__summary-link {
  color: #ff1744;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 12px;
  background: rgba(255, 23, 68, 0.1);
  border-radius: 12px;
  transition: all 0.3s;
}

.video-meta__summary-link:hover {
  background: rgba(255, 23, 68, 0.2);
}

.video-meta__ad-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
}

.video-meta__ad-toggle input[type="checkbox"] {
  accent-color: #ff1744;
}

.video-meta__beta-badge {
  font-size: 9px;
  background: rgba(255, 23, 68, 0.15);
  color: #ff1744;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.video-meta__report {
  color: #666;
  text-decoration: none;
  font-size: 12px;
  transition: color 0.3s;
}

.video-meta__report:hover {
  color: #aaa;
}

/* ------------------------------------------------------------
   11. Subtitle Bar
   ------------------------------------------------------------ */

.subtitle-bar {
  text-align: center;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  margin: 12px 0;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 15px;
  color: #ccc;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.subtitle-bar:hover {
  background: rgba(255, 255, 255, 0.06);
}

.subtitle-bar__hint {
  font-size: 11px;
  color: #666;
  margin-left: 8px;
  opacity: 0;
  transition: opacity 0.3s;
}

.subtitle-bar:hover .subtitle-bar__hint {
  opacity: 1;
}

/* ------------------------------------------------------------
   12. Chapter Timeline
   ------------------------------------------------------------ */

.chapter-timeline {
  position: relative;
  height: 40px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  margin: 8px 0;
  overflow: visible;
}

.chapter-timeline__bar {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  width: 100%;
  background: #333;
  border-radius: 2px;
}

.chapter-timeline__progress {
  height: 100%;
  background: #4caf50;
  border-radius: 2px;
  transition: width 0.3s;
}

.chapter-timeline__marker {
  position: absolute;
  top: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transform: translateX(-50%);
  z-index: 2;
}

/* Chapter markers (green) */
.chapter-timeline__marker--chapter::after {
  content: '';
  width: 3px;
  height: 16px;
  background: #4caf50;
  border-radius: 1px;
  transition: all 0.2s;
}

.chapter-timeline__marker--chapter:hover::after {
  background: #66bb6a;
  height: 20px;
}

/* Section markers (subtle, smaller) */
.chapter-timeline__marker--section::after {
  content: '';
  width: 2px;
  height: 10px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 1px;
  transition: all 0.2s;
}

.chapter-timeline__marker--section:hover::after {
  background: rgba(255, 255, 255, 0.6);
  height: 14px;
}

/* Fallback for untyped markers */
.chapter-timeline__marker::after {
  content: '';
  width: 3px;
  height: 12px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 1px;
  transition: all 0.2s;
}

.chapter-timeline__marker:hover::after {
  background: #fff;
}

/* Tooltip label */
.chapter-timeline__marker-label {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 6px;
  background: rgba(0, 0, 0, 0.95);
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
  z-index: 10;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chapter-timeline__marker--chapter .chapter-timeline__marker-label {
  border-bottom: 2px solid #4caf50;
}

.chapter-timeline__marker--section .chapter-timeline__marker-label {
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.chapter-timeline__marker:hover .chapter-timeline__marker-label {
  opacity: 1;
}

/* Ad markers (red) */
.chapter-timeline__ad-marker {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: rgba(255, 107, 107, 0.7);
  border-radius: 2px;
  z-index: 1;
  cursor: pointer;
  transition: all 0.2s;
}

.chapter-timeline__ad-marker:hover {
  background: #ff6b6b;
  height: 6px;
}

/* ------------------------------------------------------------
   13. Action Row
   ------------------------------------------------------------ */

.action-row {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.action-btn {
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ccc;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.action-btn:hover {
  border-color: #ff1744;
  color: #fff;
}

.action-btn--active {
  border-color: #ff1744;
  color: #ff1744;
}

/* ------------------------------------------------------------
   14. Transcript Slide-out Panel
   ------------------------------------------------------------ */

.transcript-panel {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: rgba(10, 10, 10, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 2000;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 60px 20px 20px;
}

.transcript-panel--open,
.transcript-panel.open {
  right: 0;
}

.transcript-panel__close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #aaa;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

.transcript-panel__close:hover {
  color: #fff;
}

.transcript-panel__line {
  padding: 10px;
  margin: 5px 0;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  word-wrap: break-word;
  font-size: 14px;
  color: #ccc;
  border-left: 4px solid transparent;
}

.transcript-panel__line:hover {
  background: rgba(255, 23, 68, 0.1);
}

.transcript-panel__line--active {
  background: rgba(255, 23, 68, 0.2);
  border-left: 4px solid #ff1744;
}

.transcript-panel__line--ad {
  background: rgba(255, 107, 107, 0.15);
  border-left: 4px solid #ff6b6b;
}

.transcript-panel__timestamp {
  color: #ff1744;
  font-weight: 700;
  margin-right: 10px;
  font-size: 13px;
}

.transcript-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.transcript-overlay--open,
.transcript-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Transcript panel internal elements */
.sync-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #888;
}

.sync-toggle input[type="checkbox"] {
  accent-color: #ff1744;
}

.ad-summary {
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 15px;
  font-size: 13px;
}

.ad-summary__header {
  color: #ff6b6b;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 12px;
}

.transcript-loading {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

/* Transcript lines (also used as .transcript-line in legacy JS) */
.transcript-line {
  padding: 10px;
  margin: 5px 0;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
  word-wrap: break-word;
  font-size: 14px;
  color: #ccc;
  border-left: 4px solid transparent;
}

.transcript-line:hover {
  background: rgba(255, 23, 68, 0.1);
}

.transcript-line.active {
  background: rgba(255, 23, 68, 0.2);
  border-left: 4px solid #ff1744;
  color: #fff;
}

.transcript-line.ad-segment {
  background: rgba(255, 107, 107, 0.12);
  border-left: 4px solid #ff6b6b;
}

.transcript-line .timestamp {
  color: #ff1744;
  font-weight: 700;
  margin-right: 10px;
  font-size: 13px;
}

/* ------------------------------------------------------------
   14b. Chapters/Sections List
   ------------------------------------------------------------ */

.chapters-section {
  margin-top: 16px;
}

.chapters-section h3 {
  color: #ff1744;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(255, 23, 68, 0.06);
  border-radius: 8px;
  transition: all 0.3s;
  user-select: none;
}

.chapters-section h3:hover {
  background: rgba(255, 23, 68, 0.1);
}

.chapters-list {
  max-height: 400px;
  overflow-y: auto;
  transition: max-height 0.3s ease;
}

.chapters-list.collapsed {
  max-height: 0;
  overflow: hidden;
}

.chapter-group {
  margin-bottom: 4px;
  border-radius: 8px;
  overflow: hidden;
}

.chapter-header {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: all 0.3s;
  user-select: none;
  gap: 8px;
  border-radius: 6px;
}

.chapter-header:hover {
  background: rgba(255, 255, 255, 0.06);
}

.chapter-header .chapter-time {
  color: #ff1744;
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
  min-width: 50px;
}

.chapter-header .chapter-title {
  flex: 1;
  font-size: 14px;
  color: #e0e0e0;
}

.chapter-header .chapter-type {
  font-size: 10px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.chapter-sections {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.chapter-sections.expanded {
  max-height: 500px;
  overflow-y: auto;
}

.section-item {
  display: flex;
  align-items: center;
  padding: 8px 12px 8px 32px;
  cursor: pointer;
  transition: all 0.3s;
  gap: 8px;
  border-left: 3px solid transparent;
}

.section-item:hover {
  background: rgba(255, 23, 68, 0.08);
  border-left-color: #ff1744;
}

.section-item .chapter-time {
  color: #ff1744;
  font-weight: 500;
  font-size: 12px;
  flex-shrink: 0;
  min-width: 50px;
}

.section-item .chapter-title {
  font-size: 13px;
  color: #aaa;
}

.sections-count {
  background: rgba(255, 23, 68, 0.15);
  color: #ff1744;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.toggle-icon {
  transition: transform 0.3s;
  font-size: 12px;
  color: #666;
}

.toggle-icon.collapsed {
  transform: rotate(-90deg);
}

/* ------------------------------------------------------------
   15. Search Dropdown
   ------------------------------------------------------------ */

.search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  display: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

@supports not ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .search-dropdown {
    background: rgba(0, 0, 0, 0.92);
  }
}

.search-dropdown--open {
  display: block;
}

.search-dropdown__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
}

.search-dropdown__item:hover,
.search-dropdown__item--active {
  background: rgba(255, 255, 255, 0.05);
}

.search-dropdown__thumb {
  width: 40px;
  height: 30px;
  border-radius: 4px;
  object-fit: cover;
  background: #333;
  flex-shrink: 0;
}

.search-dropdown__info {
  flex: 1;
  min-width: 0;
}

.search-dropdown__title {
  font-size: 13px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-dropdown__subtitle {
  font-size: 11px;
  color: #888;
}

.search-dropdown__type {
  font-size: 10px;
  color: #ff1744;
  text-transform: uppercase;
  flex-shrink: 0;
  font-weight: 600;
}

.search-dropdown__footer {
  padding: 10px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 12px;
  color: #666;
}

/* ------------------------------------------------------------
   16. Filter Pills
   ------------------------------------------------------------ */

.filter-pills {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  color: #aaa;
  border: 1px solid transparent;
  transition: all 0.3s;
  text-decoration: none;
  font-family: inherit;
}

.filter-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.filter-pill--active {
  border-color: #ff1744;
  color: #fff;
  background: rgba(255, 23, 68, 0.1);
}

/* ------------------------------------------------------------
   17. Stats Line
   ------------------------------------------------------------ */

.stats-inline {
  font-size: 14px;
  color: #aaa;
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.stats-inline__dot {
  color: #444;
}

/* ------------------------------------------------------------
   18. Search Results Page
   ------------------------------------------------------------ */

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.search-result-card {
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1),
              box-shadow 0.3s cubic-bezier(0.2, 0, 0, 1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.search-result-card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.mention-badge {
  background: rgba(255, 23, 68, 0.15);
  color: #ff1744;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
  display: inline-block;
}

.search-result-card__excerpt {
  font-size: 12px;
  color: #999;
  margin-top: 6px;
  line-height: 1.4;
}

.search-result-card__excerpt mark {
  background: transparent;
  color: #ff1744;
  font-weight: 600;
}

/* ------------------------------------------------------------
   19. Skeleton Loading
   ------------------------------------------------------------ */

.skeleton {
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.skeleton::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

.skeleton--card {
  aspect-ratio: 16 / 9;
}

.skeleton--text {
  height: 14px;
  width: 60%;
  margin: 8px 12px;
  border-radius: 4px;
}

.skeleton--text-short {
  height: 14px;
  width: 40%;
  margin: 8px 12px;
  border-radius: 4px;
}

/* ------------------------------------------------------------
   20. Empty States
   ------------------------------------------------------------ */

.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #666;
}

.empty-state h2 {
  font-size: 1.5rem;
  color: #999;
  margin-bottom: 10px;
}

.empty-state p {
  font-size: 14px;
}

/* ------------------------------------------------------------
   20b. Queue / Processing Card
   ------------------------------------------------------------ */

.queue-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  position: relative;
}

.queue-card__icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.8;
}

.queue-card__spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #ff1744;
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: queueSpin 0.8s linear infinite;
}

@keyframes queueSpin {
  to { transform: rotate(360deg); }
}

.queue-card__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #f0f0f0;
  margin-bottom: 8px;
}

.queue-card__subtitle {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
  font-family: monospace;
  letter-spacing: 1px;
}

.queue-card__meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #aaa;
}

.queue-card__meta strong {
  color: #ff1744;
  font-size: 18px;
}

.queue-card__progress {
  height: 4px;
  background: #222;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 16px;
}

.queue-card__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #66bb6a);
  border-radius: 2px;
  width: 0%;
  transition: width 1s ease;
}

.queue-card__status {
  font-size: 14px;
  color: #aaa;
  min-height: 20px;
}

.queue-card__status #current-status {
  color: #4caf50;
  font-weight: 500;
}

.queue-card__message {
  font-size: 15px;
  color: #999;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* ------------------------------------------------------------
   20c. Privacy / Content Pages
   ------------------------------------------------------------ */

.privacy-content {
  line-height: 1.8;
}

.privacy-content h2 {
  color: #ff1744;
  font-size: 1.3rem;
  margin-top: 35px;
  margin-bottom: 12px;
  font-weight: 600;
}

.privacy-content p {
  color: #ccc;
  margin-bottom: 12px;
  font-size: 15px;
}

.privacy-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

.privacy-content li {
  color: #bbb;
  margin-bottom: 8px;
  font-size: 15px;
}

.privacy-content li strong {
  color: #e0e0e0;
}

.privacy-content a {
  color: #ff1744;
  text-decoration: none;
  transition: color 0.3s;
}

.privacy-content a:hover {
  color: #ff5252;
}

.privacy-date {
  color: #888;
  font-size: 13px;
  margin-bottom: 30px;
}

/* ------------------------------------------------------------
   21. Responsive Breakpoints
   ------------------------------------------------------------ */

@media (max-width: 1200px) {
  .v-card {
    flex: 0 0 calc(25% - 15px);
  }

  .v-card--featured {
    flex: 0 0 calc(25% - 15px);
  }
}

@media (max-width: 1024px) {
  .hero--large {
    height: 50vh;
  }

  .hero--medium {
    height: 40vh;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .v-card {
    flex: 0 0 calc(50% - 10px);
  }

  .v-card--featured {
    flex: 0 0 calc(33.333% - 14px);
  }

  .floating-nav .nav-pills,
  .floating-nav .nav-links {
    display: none;
  }

  .floating-nav .nav-hamburger,
  .floating-nav .hamburger {
    display: flex;
  }

  .player-nav .nav-links {
    display: none;
  }

  .player-nav .hamburger {
    display: flex;
  }

  .player-nav {
    gap: 8px;
    padding: 8px 12px;
  }

  .player-nav .search-pill {
    max-width: none;
    min-width: 0;
  }

  .player-nav .nav-logo,
  .player-nav .logo-spot {
    font-size: 12px;
  }

  .player-page {
    padding-top: 60px;
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 768px) {
  .hero--large {
    height: 55vh;
  }

  .hero--small {
    height: 30vh;
  }

  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content {
    padding: 20px;
  }

  .hero {
    padding: 20px;
    padding-top: 80px;
  }

  .floating-nav {
    top: 10px;
    padding: 6px 10px;
    gap: 8px;
  }

  .floating-nav .search-pill {
    min-width: 0;
  }

  .floating-nav .logo-spot,
  .floating-nav .nav-logo {
    font-size: 12px;
  }

  .player-nav {
    gap: 6px;
    padding: 6px 10px;
  }

  .player-nav .nav-logo,
  .player-nav .logo-spot {
    font-size: 11px;
  }

  .player-nav .search-pill input {
    font-size: 12px;
  }

  .player-page {
    padding-top: 55px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .content-area {
    padding: 20px;
  }

  .v-card {
    flex: 0 0 calc(100% - 10px);
  }

  .v-card--featured {
    flex: 0 0 calc(50% - 10px);
  }

  .floating-nav {
    width: calc(100% - 40px);
    padding: 6px 10px;
  }

  .search-pill {
    flex: 1;
  }

  .transcript-panel {
    width: 100%;
    right: -100%;
  }

  .transcript-panel--open {
    right: 0;
  }

  .search-dropdown {
    width: calc(100vw - 40px);
  }

  .video-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .carousel-header h2 {
    font-size: 1.2rem;
  }
}

/* ------------------------------------------------------------
   22. Hamburger Menu (mobile nav)
   ------------------------------------------------------------ */

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.mobile-nav {
  position: fixed;
  top: 60px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px;
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

@supports not ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .mobile-nav {
    background: rgba(0, 0, 0, 0.92);
  }
}

.mobile-nav--open {
  display: flex;
}

.mobile-nav a {
  padding: 10px 20px;
  color: #aaa;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s;
  font-size: 14px;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

/* ------------------------------------------------------------
   23. Infinite Scroll Sentinel
   ------------------------------------------------------------ */

.scroll-sentinel {
  height: 1px;
  width: 100%;
}

/* ------------------------------------------------------------
   24. Page Transitions
   ------------------------------------------------------------ */

.page-enter {
  opacity: 0;
  transform: translateY(10px);
}

.page-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease;
}
