/* =====================================
   PLAY88 LIGHT DESIGN SYSTEM
   YouTube-inspired, original PLAY88 brand
===================================== */

:root {
  color-scheme: light;
  --line: #e5e5e5;
  --text: #0f0f0f;
  --muted: #606060;
  --cyan: #087f78;
}

html, body {
  background: #ffffff !important;
  color: #0f0f0f !important;
}

body {
  font-family: Arial, Helvetica, sans-serif !important;
}

#app, #root, .app-shell, .app-layout,
.main-content, .main-area, main, #page-content {
  background: #ffffff !important;
  color: #0f0f0f !important;
}

#page-content {
  min-height: calc(100vh - 75px);
}

/* TOP HEADER */
.topbar, .app-header, .top-bar, .header-bar {
  background: #ffffff !important;
  border-bottom: 1px solid #e5e5e5 !important;
  box-shadow: none !important;
  color: #0f0f0f !important;
}

#global-search {
  background: #ffffff !important;
  color: #0f0f0f !important;
  border: 1px solid #c6c6c6 !important;
  border-radius: 25px !important;
  height: 42px !important;
  padding: 0 18px !important;
  box-shadow: inset 0 1px 2px #00000008 !important;
}

#global-search::placeholder {
  color: #777777 !important;
}

/* LEFT NAVIGATION */
.sidebar, .app-sidebar, aside, nav.sidebar {
  background: #ffffff !important;
  color: #0f0f0f !important;
  border-right: 1px solid #e5e5e5 !important;
  box-shadow: none !important;
}

.sidebar a, .sidebar button,
.app-sidebar a, .app-sidebar button,
.nav-item, [data-view] {
  color: #333333 !important;
}

.nav-item:hover, [data-view]:hover {
  background: #f2f2f2 !important;
  border-radius: 10px !important;
}

.nav-item.active, [data-view].active {
  background: #f0f0f0 !important;
  color: #111111 !important;
  font-weight: 700 !important;
  border-radius: 10px !important;
}

.brand, .brand-name, .logo {
  color: #111111 !important;
}

/* DISCOVER SEARCH */
.p88-suite, .yt-discover-shell {
  background: #ffffff !important;
  color: #0f0f0f !important;
  max-width: 1800px;
}

.p88-search-box, .play88-search-panel,
.yt-search-panel {
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 8px 16px 15px !important;
  margin: 0 !important;
}

.p88-search-box input,
.play88-search-form input,
.yt-search-form input {
  background: #ffffff !important;
  border: 1px solid #c6c6c6 !important;
  color: #111111 !important;
  border-radius: 22px !important;
  height: 44px !important;
  padding: 0 18px !important;
}

.p88-search-box input::placeholder,
.play88-search-form input::placeholder {
  color: #777777 !important;
}

.p88-primary, .primary-button,
.play88-search-form button {
  background: #f2f2f2 !important;
  border: 1px solid #e5e5e5 !important;
  color: #111111 !important;
  border-radius: 22px !important;
  font-weight: 600 !important;
}

.p88-primary:hover, .primary-button:hover {
  background: #e5e5e5 !important;
}

.p88-secondary, .secondary-button {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #cccccc !important;
  border-radius: 22px !important;
}

/* SORTING CONTROLS */
.p88-sort-line {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 12px 0 !important;
}

.p88-sort-line button {
  background: #f2f2f2 !important;
  color: #333333 !important;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 9px 14px !important;
}

.p88-sort-line button.selected {
  background: #0f0f0f !important;
  color: #ffffff !important;
}

/* SAVED SEARCH BOOKMARKS */
.p88-bookmark-area {
  border-top: 1px solid #eeeeee !important;
}

.p88-bookmark {
  background: #f2f2f2 !important;
  border: 0 !important;
  border-radius: 18px !important;
}

.p88-bookmark button {
  color: #333333 !important;
}

.p88-section-caption b,
.p88-section-head h1,
.p88-section-head h2 {
  color: #111111 !important;
}

.p88-section-caption small,
.p88-section-head p,
.p88-muted {
  color: #666666 !important;
}

/* HORIZONTAL FEATURE BUTTONS */
.p88-feature-tabs {
  display: flex !important;
  gap: 9px !important;
  padding: 12px 16px 16px !important;
  background: #ffffff !important;
  overflow-x: auto !important;
  scrollbar-width: none;
  border-bottom: 0 !important;
}

.p88-feature-tabs::-webkit-scrollbar {
  display: none;
}

.p88-feature-tabs button {
  background: #f2f2f2 !important;
  color: #222222 !important;
  border: 0 !important;
  border-radius: 8px !important;
  padding: 9px 16px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

.p88-feature-tabs button.active {
  background: #0f0f0f !important;
  color: #ffffff !important;
}

/* VIDEO GRID */
.p88-video-grid, .yt-results-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 22px 17px !important;
  padding: 8px 16px 30px !important;
}

.p88-video-card, .yt-result-card {
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #111111 !important;
  overflow: hidden !important;
}

.p88-video-card:hover, .yt-result-card:hover {
  border-color: transparent !important;
  transform: none !important;
}

.p88-video-thumb, .yt-thumbnail {
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #eeeeee !important;
}

.p88-video-thumb img, .yt-thumbnail img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

.p88-video-info, .yt-result-body {
  background: #ffffff !important;
  padding: 10px 2px !important;
}

.p88-video-info h3, .yt-result-body h3 {
  color: #0f0f0f !important;
  font-family: Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
}

.p88-video-info p, .yt-channel, .yt-date {
  color: #606060 !important;
  font-size: 12px !important;
}

.yt-source {
  color: #606060 !important;
}

.yt-watch-link {
  color: #087f78 !important;
}

.p88-video-actions button {
  background: #f2f2f2 !important;
  color: #222222 !important;
  border: 0 !important;
  border-radius: 18px !important;
}

/* DETAILS AND PLAYLISTS */
.p88-playlist-card, .p88-account-card,
.p88-plan {
  background: #ffffff !important;
  color: #111111 !important;
  border: 1px solid #e5e5e5 !important;
  border-radius: 12px !important;
}

.p88-playlist-card h3,
.p88-plan h2, .p88-account-card h2 {
  color: #111111 !important;
}

.p88-detail-overlay {
  background: #000b !important;
}

.p88-detail-box {
  background: #ffffff !important;
  color: #111111 !important;
}

.p88-detail-content h2 {
  color: #111111 !important;
}

.p88-description, .p88-detail-stats,
.p88-detail-content small {
  color: #555555 !important;
}

/* KEEP VIDEO PLAYER BLACK */
.p88-player-overlay, .play88-player-backdrop,
.play88-player-dialog, .play88-player-frame {
  background: #000000 !important;
}

/* MOBILE */
@media(max-width: 950px) {
  .p88-video-grid, .yt-results-grid {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
}

@media(max-width: 600px) {
  .p88-video-grid, .yt-results-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 8px 12px 25px !important;
  }

  .p88-search-box, .play88-search-panel {
    padding: 8px 10px 12px !important;
  }

  .p88-search-box form,
  .play88-search-form {
    grid-template-columns: minmax(0,1fr) auto !important;
  }

  .p88-search-box input,
  .play88-search-form input {
    grid-column: 1/-1 !important;
  }

  .p88-feature-tabs {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}