/* ===== Player Showcase ===== */
.showcase {
  margin: 60px 0 40px;
  text-align: center;
}

.showcase h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-heading);
}

.showcase .subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Showcase Blocks (Vertical Layout) ===== */
.showcase-block {
  margin-bottom: 48px;
  text-align: left;
}

.showcase-block-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 20px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.label-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.label-dot.dark { background: #0a0e1a; border: 1px solid rgba(0,0,0,0.15); }
.label-dot.light { background: #f1f5f9; border: 1px solid rgba(0,0,0,0.1); }

/* ===== Player Frame ===== */
.player-frame {
  position: relative;
  display: block;
  background: #0a0e1a;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 24px 80px rgba(0,0,0,0.45),
    0 8px 32px rgba(59,130,246,0.12);
  overflow: hidden;
  text-align: left;
}

.player-frame.light {
  background: #f1f5f9;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.06),
    0 24px 80px rgba(0,0,0,0.15),
    0 8px 32px rgba(59,130,246,0.08);
}

/* ─── Title Bar ─── */
.player-titlebar {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: #131826;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  user-select: none;
}

.player-frame.light .player-titlebar {
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.player-titlebar-dots {
  display: flex;
  gap: 7px;
  margin-right: 14px;
  flex-shrink: 0;
}

.player-titlebar-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.player-titlebar-dot.close  { background: #ff5f57; }
.player-titlebar-dot.minimize { background: #febc2e; }
.player-titlebar-dot.maximize { background: #28c840; }

.player-titlebar-text {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-frame.light .player-titlebar-text {
  color: rgba(0,0,0,0.4);
}

.player-titlebar-text .badge {
  display: inline-block;
  background: rgba(59,130,246,0.2);
  color: #60a5fa;
  font-size: 10px;
  border-radius: 3px;
  padding: 1px 7px;
  margin-left: 8px;
  font-weight: 600;
}

.player-frame.light .player-titlebar-text .badge {
  background: rgba(59,130,246,0.12);
  color: #3b82f6;
}

/* ─── Body ─── */
.player-body {
  display: flex;
  height: 480px;
}

@media (max-width: 820px) {
  .player-body { height: 380px; }
}
@media (max-width: 600px) {
  .player-body { height: 320px; }
}

/* ─── Drawer ─── */
.player-drawer {
  width: 440px;
  min-width: 300px;
  flex-shrink: 0;
  background: #111620;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}

.player-frame.light .player-drawer {
  background: #ffffff;
  border-right: 1px solid rgba(0,0,0,0.06);
}

.player-drawer-header {
  padding: 8px 8px 4px;
  background: #161c2b;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}

.player-frame.light .player-drawer-header {
  background: #f8fafc;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* ─── Column Count Slider ─── */
.player-drawer-slider-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 6px 4px;
}

.slider-label {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  flex-shrink: 0;
  min-width: 22px;
}

.player-frame.light .slider-label {
  color: rgba(0,0,0,0.5);
}

.slider-track {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  position: relative;
  cursor: pointer;
}

.player-frame.light .slider-track {
  background: rgba(0,0,0,0.08);
}

.slider-fill {
  height: 100%;
  border-radius: 999px;
  background: rgba(59,130,246,0.5);
  position: absolute;
  left: 0;
  top: 0;
}

.slider-thumb {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #60a5fa;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.player-frame.light .slider-thumb {
  background: #3b82f6;
}

.slider-value {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
  min-width: 16px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.player-frame.light .slider-value {
  color: rgba(0,0,0,0.6);
}

.player-drawer-header-row {
  display: flex;
  align-items: center;
  gap: 1px;
  flex-wrap: wrap;
}

.player-drawer-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  cursor: pointer;
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  transition: background 0.15s;
  flex-shrink: 0;
}

.player-frame.light .player-drawer-icon {
  color: rgba(0,0,0,0.5);
}

.player-drawer-path {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-frame.light .player-drawer-path {
  color: rgba(0,0,0,0.7);
}

/* ─── Drawer Inner: browse | playlist ─── */
.player-drawer-inner {
  flex: 1;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  min-height: 0;
}

/* Browse Pane */
.browse-pane {
  width: 180px;
  min-width: 140px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.12);
}

.player-frame.light .browse-pane {
  border-right: 1px solid rgba(0,0,0,0.06);
  background: rgba(0,0,0,0.02);
}

.browse-header {
  display: flex;
  align-items: center;
  padding: 5px 8px 3px;
}

.browse-header label {
  flex: 1;
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.player-frame.light .browse-header label {
  color: rgba(0,0,0,0.45);
}

.browse-collapse {
  cursor: pointer;
  color: rgba(255,255,255,0.45);
  font-size: 14px;
  padding: 2px 5px;
  border-radius: 4px;
}

.player-frame.light .browse-collapse {
  color: rgba(0,0,0,0.45);
}

.browse-list {
  flex: 1;
  overflow: hidden;
  padding: 0 5px 6px;
}

.browse-item {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border-radius: 5px;
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1px;
}

.player-frame.light .browse-item {
  color: rgba(0,0,0,0.65);
}

.browse-item .icon-folder { color: #fbbf24; }
.browse-item .icon-video  { color: #93c5fd; }

.browse-item.active {
  background: rgba(59,130,246,0.15);
  color: #fff;
  font-weight: 600;
}

.player-frame.light .browse-item.active {
  background: rgba(59,130,246,0.1);
  color: #1e40af;
}

/* Playlist */
.player-playlist {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.playlist-header {
  display: flex;
  align-items: center;
  padding: 5px 10px 3px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  flex-shrink: 0;
}

.player-frame.light .playlist-header {
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.playlist-header label {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
}

.player-frame.light .playlist-header label {
  color: rgba(0,0,0,0.6);
}

.playlist-toggle-view {
  font-size: 16px;
  padding: 2px 5px;
  border-radius: 4px;
  color: rgba(255,255,255,0.35);
}

.player-frame.light .playlist-toggle-view {
  color: rgba(0,0,0,0.35);
}

/* ─── List View ─── */
.playlist-items-list {
  flex: 1;
  overflow: hidden;
  padding: 4px 6px 8px;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border-radius: 6px;
  margin-bottom: 2px;
  background: rgba(255,255,255,0.04);
}

.player-frame.light .playlist-item {
  background: rgba(0,0,0,0.04);
}

.playlist-item.active {
  background: rgba(59,130,246,0.15);
  outline: 1px solid rgba(59,130,246,0.25);
}

.player-frame.light .playlist-item.active {
  background: rgba(59,130,246,0.1);
  outline: 1px solid rgba(59,130,246,0.2);
}

.playlist-thumb {
  width: 64px;
  height: 36px;
  border-radius: 4px;
  background: #000;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.playlist-thumb svg { display: block; }

.playlist-item-info {
  flex: 1;
  min-width: 0;
}

.playlist-item-name {
  font-size: 11px;
  color: rgba(255,255,255,0.78);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-frame.light .playlist-item-name {
  color: rgba(0,0,0,0.78);
}

.playlist-item-meta {
  font-size: 9px;
  color: rgba(255,255,255,0.3);
  margin-top: 1px;
}

.player-frame.light .playlist-item-meta {
  color: rgba(0,0,0,0.3);
}

/* ─── Thumbnail Grid ─── */
.playlist-items-thumbs {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  align-content: start;
}

/* 10 columns for thumbnail showcase */
.playlist-items-thumbs.cols-10 {
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  padding: 4px;
}

.playlist-thumb-card {
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid transparent;
}

.player-frame.light .playlist-thumb-card {
  background: rgba(0,0,0,0.04);
}

.playlist-thumb-card.active {
  border-color: rgba(59,130,246,0.5);
  background: rgba(59,130,246,0.1);
}

.player-frame.light .playlist-thumb-card.active {
  border-color: rgba(59,130,246,0.4);
  background: rgba(59,130,246,0.07);
}

.thumb-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-card-img svg {
  display: block;
  width: 100%;
  height: 100%;
}

.thumb-card-name {
  padding: 3px 5px 4px;
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-frame.light .thumb-card-name {
  color: rgba(0,0,0,0.7);
}

/* ─── Video Area ─── */
.player-video {
  flex: 1;
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-width: 0;
}

.player-video-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(59,130,246,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 60%, rgba(139,92,246,0.06) 0%, transparent 50%);
}

.player-video-content {
  position: relative;
  text-align: center;
  z-index: 1;
  padding: 0 16px;
}

.player-video-content .big-icon {
  font-size: 56px;
  opacity: 0.12;
  margin-bottom: 6px;
}

.player-video-content .hint {
  font-size: 13px;
  color: rgba(255,255,255,0.22);
  font-weight: 500;
}

.player-video-content .hint-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.14);
  margin-top: 3px;
}

/* ─── Bottom Chrome ─── */
.player-chrome {
  padding: 6px 14px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.4) 65%, transparent 100%);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.player-chrome-track {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.82);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 30px;
}

.chrome-controls-row {
  display: flex;
  align-items: center;
  gap: 2px;
}

.chrome-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.82);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-size: 19px;
  padding: 0;
}

.chrome-btn.small {
  font-size: 16px;
  width: 28px;
}

.chrome-seek-area {
  flex: 1;
  height: 24px;
  position: relative;
  margin: 0 6px;
  min-width: 60px;
}

.chrome-seek-bg {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 10px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.chrome-seek-buffer {
  height: 100%;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
}

.chrome-seek-thumb {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 0;
  height: 24px;
  display: flex;
  align-items: center;
}

.chrome-seek-fill {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.chrome-time {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  font-variant-numeric: tabular-nums;
  width: 100px;
  text-align: right;
  letter-spacing: 0.2px;
  flex-shrink: 0;
}

.chrome-actions {
  display: flex;
  align-items: center;
}

.chrome-actions .chrome-btn {
  width: 30px;
  height: 30px;
  font-size: 15px;
  color: rgba(255,255,255,0.5);
}

/* ─── Volume Popup ─── */
.volume-popup-hint {
  position: absolute;
  bottom: 54px;
  right: 14px;
  background: rgba(17,22,32,0.95);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px;
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 3;
}

.player-frame:hover .volume-popup-hint {
  opacity: 1;
}

.player-frame.light .volume-popup-hint {
  background: rgba(248,250,252,0.97);
  border: 1px solid rgba(0,0,0,0.1);
}

.volume-popup-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-popup-row .vol-icon {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.player-frame.light .volume-popup-row .vol-icon {
  color: rgba(0,0,0,0.4);
}

.volume-popup-slider {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  position: relative;
}

.player-frame.light .volume-popup-slider {
  background: rgba(0,0,0,0.08);
}

.volume-popup-slider-fill {
  height: 100%;
  width: 65%;
  border-radius: 999px;
  background: rgba(255,255,255,0.65);
}

.player-frame.light .volume-popup-slider-fill {
  background: rgba(0,0,0,0.5);
}

.volume-popup-mute {
  align-self: flex-end;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  padding: 3px 6px;
  border-radius: 4px;
}

.player-frame.light .volume-popup-mute {
  color: rgba(0,0,0,0.55);
}

/* ===== Feature Badges ===== */
.player-badge-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}

.player-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.player-badge:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  transform: translateY(-1px);
}

.player-badge .badge-icon {
  font-size: 15px;
}

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .player-body { height: 380px; }
  .player-drawer { width: 320px; min-width: 240px; }
  .browse-pane { width: 140px; min-width: 110px; }
  .chrome-time { width: 78px; }
  .playlist-items-thumbs.cols-10 {
    grid-template-columns: repeat(6, 1fr);
  }
}
@media (max-width: 600px) {
  .player-body { height: 320px; }
  .player-drawer { width: 55%; min-width: 160px; }
  .browse-pane { width: 110px; min-width: 90px; }
  .browse-item { font-size: 10px; padding: 3px 4px; }
  .playlist-thumb { width: 46px; height: 26px; }
  .chrome-btn { width: 28px; height: 28px; font-size: 16px; }
  .chrome-btn.small { width: 24px; font-size: 14px; }
  .chrome-time { display: none; }
  .playlist-item-name { font-size: 10px; }
  .showcase h2 { font-size: 24px; }
  .playlist-items-thumbs.cols-10 {
    grid-template-columns: repeat(4, 1fr);
  }
}
