/* ==========================================================================
   YOUTUBE MOVIES - STYLESHEET (CINEMATIC 16:9 EXPERIENCE)
   ========================================================================== */

:root {
  --ytmov-primary: #fa470d;
  --ytmov-primary-dark: #d83a07;
  --ytmov-accent: #ef4444;
  --ytmov-dark-bg: #070914;
}

.kizmio-movies-page {
  padding-top: 15px;
  padding-bottom: 40px;
}

/* -------------------------------------------------------------------------- */
/* 1. CINEMATIC HERO BANNER                                                   */
/* -------------------------------------------------------------------------- */
.ytmov-hero {
  position: relative;
  min-height: 440px;
  border-radius: 24px;
  background: var(--ytmov-dark-bg);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(7, 9, 20, 0.35);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
}

.ytmov-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.ytmov-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 10, 20, 0.94) 0%, rgba(8, 10, 20, 0.70) 45%, rgba(8, 10, 20, 0.25) 75%, rgba(8, 10, 20, 0.50) 100%);
  pointer-events: none;
}

.ytmov-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ytmov-hero__chars-wrap {
  position: absolute;
  bottom: 0;
  right: -20px;
  width: 580px;
  height: 100%;
  max-height: 480px;
  z-index: 2;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.ytmov-hero__chars {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom right;
  filter: drop-shadow(0 14px 40px rgba(0, 0, 0, 0.85));
}

.ytmov-hero__container {
  position: relative;
  z-index: 3;
  padding: 40px 36px;
  max-width: 580px;
  width: 100%;
}

.ytmov-hero__badge {
  display: inline-flex;
  align-items: center;
  background: rgba(250, 71, 13, 0.25);
  border: 1px solid rgba(250, 71, 13, 0.5);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(250, 71, 13, 0.3);
}

.ytmov-hero__title {
  font-size: 2.75rem;
  font-weight: 850;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}

.ytmov-hero__title span {
  background: linear-gradient(135deg, #fa470d, #ff7a45);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ytmov-hero__desc {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.55;
  margin-bottom: 22px;
}

/* Hero Search Pill */
.ytmov-hero__search {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 50px;
  padding: 5px 6px 5px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: 22px;
  max-width: 480px;
}

.ytmov-hero__search-icon {
  color: #9ca3af;
  font-size: 0.95rem;
  margin-right: 12px;
}

.ytmov-hero__search input {
  border: none !important;
  background: transparent !important;
  outline: none !important;
  color: #111827 !important;
  font-size: 0.88rem;
  flex-grow: 1;
  min-width: 0;
  padding: 0;
}

.ytmov-hero__search-btn {
  background: linear-gradient(135deg, #fa470d, #d83a07);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 9px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(250, 71, 13, 0.4);
}

.ytmov-hero__search-btn:hover {
  background: linear-gradient(135deg, #d83a07, #b82f04);
  transform: translateY(-1px);
}

/* Hero Action Pills */
.ytmov-hero__features {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ytmov-hero-action-pill {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 5px 14px 5px 5px;
  color: #ffffff;
  text-decoration: none !important;
  text-align: left !important;
  cursor: pointer;
  transition: all 0.18s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ytmov-hero-action-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  color: #ffffff;
}

.ytmov-hero-action-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fa470d, #d83a07);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 0.88rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(250, 71, 13, 0.35);
}

.ytmov-hero-action-text {
  text-align: left !important;
}

.ytmov-hero-action-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 750;
  color: #ffffff;
  line-height: 1.2;
  text-align: left !important;
}

.ytmov-hero-action-text small {
  display: block;
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.65);
  text-align: left !important;
}

/* -------------------------------------------------------------------------- */
/* 2. CATEGORY CAROUSEL TILES                                                 */
/* -------------------------------------------------------------------------- */
.ytmov-cat-section {
  margin-bottom: 30px;
}

.ytmov-cat-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.ytmov-cat-arrow {
  position: absolute;
  z-index: 5;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ytmov-cat-arrow:hover {
  background: #f9fafb;
  transform: scale(1.06);
}

.ytmov-cat-arrow--prev { left: -14px; }
.ytmov-cat-arrow--next { right: -14px; }

.ytmov-cat-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 4px;
  width: 100%;
}

.ytmov-cat-track::-webkit-scrollbar {
  display: none;
}

.ytmov-cat-tile {
  flex: 0 0 calc(14.28% - 12px);
  min-width: 112px;
  height: 108px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 12px 6px 8px;
  text-decoration: none !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.ytmov-cat-tile:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  color: #ffffff !important;
}

.ytmov-cat-tile__art {
  font-size: 2.2rem;
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  transition: transform 0.2s ease;
}

.ytmov-cat-tile:hover .ytmov-cat-tile__art {
  transform: scale(1.12);
}

.ytmov-cat-tile__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: calc(100% - 8px);
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ytmov-cat-tile__badge i { font-size: 0.74rem; flex-shrink: 0; }
.ytmov-cat-tile__badge span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Category Gradient Palettes */
.ytmov-cat-tile--action { background: linear-gradient(155deg, #ef4444 0%, #b91c1c 100%) !important; }
.ytmov-cat-tile--adventure { background: linear-gradient(155deg, #f97316 0%, #c2410c 100%) !important; }
.ytmov-cat-tile--comedy { background: linear-gradient(155deg, #f59e0b 0%, #d97706 100%) !important; }
.ytmov-cat-tile--drama { background: linear-gradient(155deg, #8b5cf6 0%, #6d28d9 100%) !important; }
.ytmov-cat-tile--romance { background: linear-gradient(155deg, #ec4899 0%, #be185d 100%) !important; }
.ytmov-cat-tile--thriller { background: linear-gradient(155deg, #374151 0%, #111827 100%) !important; }
.ytmov-cat-tile--horror { background: linear-gradient(155deg, #7f1d1d 0%, #450a0a 100%) !important; }
.ytmov-cat-tile--sci-fi { background: linear-gradient(155deg, #06b6d4 0%, #0e7490 100%) !important; }
.ytmov-cat-tile--fantasy { background: linear-gradient(155deg, #a855f7 0%, #7c3aed 100%) !important; }
.ytmov-cat-tile--animation { background: linear-gradient(155deg, #10b981 0%, #047857 100%) !important; }
.ytmov-cat-tile--family { background: linear-gradient(155deg, #3b82f6 0%, #1d4ed8 100%) !important; }
.ytmov-cat-tile--documentary { background: linear-gradient(155deg, #64748b 0%, #334155 100%) !important; }
.ytmov-cat-tile--crime { background: linear-gradient(155deg, #1e293b 0%, #0f172a 100%) !important; }
.ytmov-cat-tile--mystery { background: linear-gradient(155deg, #6366f1 0%, #4338ca 100%) !important; }
.ytmov-cat-tile--bollywood { background: linear-gradient(155deg, #e11d48 0%, #9f1239 100%) !important; }
.ytmov-cat-tile--dhivehi-movies { background: linear-gradient(155deg, #0284c7 0%, #0369a1 100%) !important; }
.ytmov-cat-tile--asian-movies { background: linear-gradient(155deg, #d946ef 0%, #a21caf 100%) !important; }
.ytmov-cat-tile--classic-movies { background: linear-gradient(155deg, #d4af37 0%, #aa820a 100%) !important; }
.ytmov-cat-tile--other { background: linear-gradient(155deg, #fa470d 0%, #c23303 100%) !important; }

/* -------------------------------------------------------------------------- */
/* 3. CINEMATIC 16:9 MOVIE CARDS & GRID                                       */
/* -------------------------------------------------------------------------- */
.ytmov-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.ytmov-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ytmov-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

/* 16:9 Cinematic Thumbnail */
.ytmov-card__thumb-wrap {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
  text-decoration: none !important;
}

.ytmov-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ytmov-card:hover .ytmov-card__thumb {
  transform: scale(1.05);
}

.ytmov-card__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}

/* Play button overlay */
.ytmov-card__play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: rgba(0, 0, 0, 0.3);
}

.ytmov-card:hover .ytmov-card__play-overlay {
  opacity: 1;
}

.ytmov-card__play-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fa470d, #d83a07);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  box-shadow: 0 6px 20px rgba(250, 71, 13, 0.6);
  transform: scale(0.9);
  transition: transform 0.2s ease;
}

.ytmov-card:hover .ytmov-card__play-btn {
  transform: scale(1);
}

/* Card Badges */
.ytmov-card__badge-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 750;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ytmov-card__badge-views {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.70rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ytmov-card__badge-year {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(250, 71, 13, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.70rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Card Body */
.ytmov-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ytmov-card__title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7em;
}

.ytmov-card__title a {
  color: #0f172a;
  text-decoration: none;
  transition: color 0.15s ease;
}

.ytmov-card__title a:hover {
  color: var(--ytmov-primary);
}

.ytmov-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}

.ytmov-card__watch-btn {
  background: #fff0e9;
  color: var(--ytmov-primary) !important;
  border-radius: 999px;
  font-weight: 750;
  font-size: 0.74rem;
  padding: 4px 12px;
  transition: all 0.15s ease;
  border: 1px solid #ffd8cc;
}

.ytmov-card__watch-btn:hover {
  background: var(--ytmov-primary);
  color: #ffffff !important;
  border-color: var(--ytmov-primary);
}

body.night-mode .ytmov-card,
.night-mode .ytmov-card,
body[data-bs-theme="dark"] .ytmov-card,
[data-bs-theme="dark"] .ytmov-card {
  background: #111827;
  border-color: #334155;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

body.night-mode .ytmov-card__title a,
.night-mode .ytmov-card__title a,
body[data-bs-theme="dark"] .ytmov-card__title a,
[data-bs-theme="dark"] .ytmov-card__title a {
  color: #f8fafc;
}

body.night-mode .ytmov-card__footer,
.night-mode .ytmov-card__footer,
body[data-bs-theme="dark"] .ytmov-card__footer,
[data-bs-theme="dark"] .ytmov-card__footer {
  border-top-color: #334155;
}

body.night-mode .ytmov-card__footer .text-muted,
.night-mode .ytmov-card__footer .text-muted,
body[data-bs-theme="dark"] .ytmov-card__footer .text-muted,
[data-bs-theme="dark"] .ytmov-card__footer .text-muted {
  color: #cbd5e1 !important;
}

/* -------------------------------------------------------------------------- */
/* 4. LARGE 16:9 WATCH PAGE PLAYER                                            */
/* -------------------------------------------------------------------------- */
.ytmov-watch-page {
  margin-bottom: 40px;
}

.ytmov-player-wrapper {
  background: #000000;
  border-radius: 20px;
  overflow: hidden;
}

.ytmov-player-ratio {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.ytmov-player-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* -------------------------------------------------------------------------- */
/* 5. RESPONSIVE BREAKPOINTS                                                  */
/* -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .ytmov-hero__chars-wrap {
    width: 480px;
    right: -30px;
  }
}

@media (max-width: 991px) {
  .ytmov-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ytmov-hero {
    min-height: 400px;
  }

  .ytmov-hero__chars-wrap {
    width: 380px;
    opacity: 0.55;
    right: -40px;
  }

  .ytmov-hero__title {
    font-size: 2.2rem;
  }
}

@media (max-width: 767px) {
  .ytmov-grid {
    grid-template-columns: 1fr;
  }

  .ytmov-hero {
    min-height: auto;
    padding: 24px 0;
  }

  .ytmov-hero__chars-wrap {
    display: none;
  }

  .ytmov-hero__container {
    padding: 24px 20px;
    max-width: 100%;
  }

  .ytmov-hero__title {
    font-size: 1.95rem;
  }

  .ytmov-cat-tile {
    min-width: 96px;
    height: 96px;
  }
}

/* ==========================================================================
   OFFCANVAS SIDEBAR (MOBILE DRAWER LIKE BLOGS)
   ========================================================================== */
.movies-sidebar-backdrop {
  display: none;
}

.ytmov-mobile-bar {
  background: var(--kzm-surface, #ffffff);
  border: 1px solid var(--kzm-border, #e2e8f0);
}

body.night-mode .ytmov-mobile-bar,
[data-bs-theme="dark"] .ytmov-mobile-bar {
  background: #0B1933 !important;
  border-color: rgba(22, 139, 255, 0.22) !important;
}

body.night-mode .ytmov-mobile-bar span,
[data-bs-theme="dark"] .ytmov-mobile-bar span {
  color: #F8FAFC !important;
}

@media (max-width: 767.98px) {
  .kizmio-movies-page.sg-offcanvas {
    overflow: visible !important;
  }

  .kizmio-movies-page.sg-offcanvas.active {
    position: relative !important;
    z-index: 1000000 !important;
    isolation: isolate;
    overflow: visible !important;
    min-height: max-content !important;
  }

  .kizmio-movies-page .sg-offcanvas-sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    display: block !important;
    width: min(88vw, 340px) !important;
    max-width: 88vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: 16px 14px 80px !important;
    overflow-x: hidden !important;
    overflow-y: scroll !important;
    background: var(--bs-body-bg, #fff) !important;
    box-shadow: 0 0 40px rgba(15, 23, 42, .3) !important;
    z-index: 2 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: #fa470d transparent;
    transform: translateX(-105%) !important;
    transition: transform .28s cubic-bezier(.16, 1, .3, 1), visibility .28s !important;
  }

  body.night-mode .kizmio-movies-page .sg-offcanvas-sidebar,
  [data-bs-theme="dark"] .kizmio-movies-page .sg-offcanvas-sidebar {
    background: #081326 !important;
    border-right: 1px solid rgba(22, 139, 255, 0.25) !important;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8) !important;
  }

  .kizmio-movies-page.sg-offcanvas.active .sg-offcanvas-sidebar {
    left: 0 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
  }

  .kizmio-movies-page.sg-offcanvas.active .sg-offcanvas-sidebar * {
    pointer-events: auto;
  }

  .kizmio-movies-page .sg-offcanvas-sidebar::-webkit-scrollbar {
    width: 5px;
  }

  .kizmio-movies-page .sg-offcanvas-sidebar::-webkit-scrollbar-track {
    background: transparent;
  }

  .kizmio-movies-page .sg-offcanvas-sidebar::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #fa470d;
  }

  .kizmio-movies-page .sg-offcanvas-sidebar::-webkit-scrollbar-thumb:hover {
    background: #d83a07;
  }

  .kizmio-movies-page .sg-offcanvas-mainbar,
  .kizmio-movies-page.sg-offcanvas.active .sg-offcanvas-mainbar {
    position: static !important;
    left: 0 !important;
    width: 100% !important;
  }

  .kizmio-movies-page .movies-sidebar-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1;
    background: rgba(15, 23, 42, .55);
    pointer-events: auto;
  }

  .kizmio-movies-page.sg-offcanvas.active .movies-sidebar-backdrop {
    display: block;
  }
}

/* ==========================================================================
   6. KIZMIO CUSTOM CINEMA PLAYER CONTROLS (MOVIES THEME #fa470d)
   ========================================================================== */
.ytmov-player-wrapper {
  position: relative !important;
  background: #000000 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.45) !important;
  user-select: none;
}

.ytmov-player-wrapper.is-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  z-index: 999999 !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

.ytmov-player-wrapper.is-fullscreen .ytmov-player-ratio {
  width: 100vw !important;
  height: 100vh !important;
  aspect-ratio: auto !important;
}

.ytmov-player-wrapper.is-controls-hidden {
  cursor: none !important;
}

.ytmov-player-wrapper.is-controls-hidden .kzm-controls-bar,
.ytmov-player-wrapper.is-controls-hidden .kzm-resume-banner {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Player Overlay Layer */
.kzm-player-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

/* Hit Area for Video Tapping */
.kzm-player-hit-area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: pointer;
  pointer-events: auto;
}

/* Center Controls & Big Play Button */
.kzm-center-controls {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.kzm-center-controls.is-playing {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
}

.kzm-center-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(250, 71, 13, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.kzm-center-play-btn:hover {
  background: #fa470d;
  border-color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(250, 71, 13, 0.6);
}

/* Feedback Badge (+10s / -10s) */
.kzm-feedback-badge {
  position: absolute;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.7);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.kzm-feedback-badge.show {
  opacity: 1;
  transform: scale(1);
}

/* Resume Banner */
.kzm-resume-banner {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  max-width: 480px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 8px 14px;
  color: #ffffff;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  transition: opacity 0.4s ease;
}

.kzm-resume-banner.fade-out {
  opacity: 0;
}

/* Bottom Controls Bar */
.kzm-controls-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 15;
  padding: 24px 18px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: auto;
  transition: opacity 0.25s ease;
}

/* Progress / Seek Bar */
.kzm-progress-container {
  position: relative;
  width: 100%;
  height: 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
  outline: none;
}

.kzm-progress-bg {
  position: relative;
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
  transition: height 0.15s ease;
}

.kzm-progress-container:hover .kzm-progress-bg {
  height: 8px;
}

.kzm-progress-buffer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  transition: width 0.2s linear;
}

.kzm-progress-played {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #fa470d, #ff6b3d);
  box-shadow: 0 0 10px rgba(250, 71, 13, 0.7);
  border-radius: 999px;
  z-index: 2;
}

.kzm-progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #fa470d;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.15s ease;
  z-index: 3;
}

.kzm-progress-container:hover .kzm-progress-thumb {
  transform: translate(-50%, -50%) scale(1);
}

.kzm-progress-tooltip {
  position: absolute;
  bottom: 22px;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

/* Controls Row */
.kzm-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kzm-controls-left,
.kzm-controls-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Control Buttons */
.kzm-ctrl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.kzm-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: scale(1.05);
}

.kzm-ctrl-btn:active {
  transform: scale(0.95);
}

/* Volume Group */
.kzm-volume-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.kzm-volume-slider-wrap {
  width: 65px;
  display: flex;
  align-items: center;
}

.kzm-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}

.kzm-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fa470d;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

.kzm-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fa470d;
  cursor: pointer;
  border: none;
}

/* Time Display */
.kzm-time-display {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  margin-left: 6px;
}

.kzm-time-sep {
  opacity: 0.5;
}

/* Actual Watched Time Badge */
.kzm-watch-stats {
  display: inline-flex;
  align-items: center;
  background: rgba(250, 71, 13, 0.2);
  border: 1px solid rgba(250, 71, 13, 0.4);
  color: #ffa182;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-right: 4px;
}

/* Speed Dropdown */
.kzm-speed-btn {
  font-size: 13px !important;
  font-weight: 700 !important;
  width: auto !important;
  padding: 0 8px !important;
}

.kzm-speed-menu {
  position: absolute;
  bottom: 42px;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  min-width: 120px;
  z-index: 30;
}

.kzm-speed-item {
  display: block;
  width: 100%;
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.kzm-speed-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.kzm-speed-item.active {
  background: #fa470d;
  color: #ffffff;
}

/* Hover link color */
.hover-danger:hover {
  color: #fa470d !important;
}

/* Watch Later Page Cards */
.ytmov-thumb-link {
  border-radius: 12px 12px 0 0;
  overflow: hidden;
}

.ytmov-thumb-link .ytmov-play-overlay {
  opacity: 0;
  background: rgba(0, 0, 0, 0.35);
  transition: opacity 0.2s ease;
}

.ytmov-thumb-link:hover .ytmov-play-overlay {
  opacity: 1;
}

/* Mobile Adjustments */
@media (max-width: 576px) {
  .kzm-controls-bar {
    padding: 18px 10px 8px;
  }
  .kzm-volume-slider-wrap {
    display: none;
  }
  .kzm-time-display {
    font-size: 11px;
    margin-left: 2px;
  }
  .kzm-ctrl-btn {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .kzm-center-play-btn {
    width: 54px;
    height: 54px;
    font-size: 20px;
  }
}
