/* ============================================================
   Club TV — vanilla CSS (ported from Tailwind v4 theme)
   ============================================================ */

:root {
  --font-sans: "Vazirmatn", "Outfit", ui-sans-serif, system-ui, sans-serif;
  --font-en: "Outfit", ui-sans-serif, system-ui, sans-serif;

  --color-base: #171925;
  --color-surface: #202431;
  --color-surface-hover: #2a2e3d;
  --color-gold-light: #FFD700;
  --color-gold-dark: #D4AF37;

  --border-faint: rgba(255, 255, 255, 0.05);
  --border-soft: rgba(255, 255, 255, 0.10);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-base);
  color: #f3f4f6;
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  user-select: none;
  -webkit-user-select: none;
}
input, textarea {
  user-select: text;
  -webkit-user-select: text;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

video::-webkit-media-controls-timeline,
video::-webkit-media-controls-current-time-display,
video::-webkit-media-controls-time-remaining-display {
  display: none !important;
}

.gold-gradient-text {
  background: linear-gradient(to right, var(--color-gold-light), var(--color-gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Loading screen ---------- */
.loading-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.loading-screen__header {
  position: sticky;
  top: 0;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-faint);
}
.loading-screen__header img { height: 40px; width: auto; }
.loading-screen__body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loading-screen__spinner {
  width: 56px;
  height: 56px;
  border: 4px solid var(--color-surface);
  border-top-color: var(--color-gold-light);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Error screen ---------- */
.error-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  min-height: calc(100vh - 64px);
}
.error-screen__icon { font-size: 48px; color: var(--color-gold-light); margin-bottom: 16px; }
.error-screen__text { color: #d1d5db; max-width: 420px; }
.error-screen__retry {
  margin-top: 24px;
  background: linear-gradient(to right, var(--color-gold-light), var(--color-gold-dark));
  color: #000;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 999px;
  transition: box-shadow 0.2s;
}
.error-screen__retry:hover { box-shadow: 0 0 15px rgba(255, 215, 0, 0.3); }

/* ---------- App shell ---------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.app-body { flex: 1; width: 100%; display: flex; position: relative; }

/* ---------- Header ---------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-base);
  border-bottom: 1px solid var(--border-faint);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  gap: 8px;
}
@media (min-width: 768px) { .app-header { height: 64px; padding: 0 16px; } }
.app-header__left { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.app-header__hamburger {
  padding: 8px;
  border-radius: 999px;
  font-size: 18px;
  transform: scaleX(-1);
  transition: background 0.15s;
}
@media (min-width: 768px) { .app-header__hamburger { font-size: 20px; } }
.app-header__hamburger:hover { background: var(--color-surface); }
.app-header__logo-btn { display: flex; align-items: center; }
.app-header__logo { height: 28px; width: auto; }
@media (min-width: 768px) { .app-header__logo { height: 32px; } }

.app-header__search-area {
  flex: 1;
  max-width: 500px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
@media (min-width: 768px) { .app-header__search-area { max-width: 640px; padding: 0 8px; } }
.app-header__search {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: stretch;
  height: 36px;
}
@media (min-width: 768px) { .app-header__search { height: 40px; } }
.app-header__search-input {
  width: 100%;
  min-width: 0;
  height: 100%;
  background: var(--color-surface);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0 40px 0 14px;
  font-size: 12px;
  color: #fff;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
@media (min-width: 768px) { .app-header__search-input { padding: 0 44px 0 16px; font-size: 13px; } }
.app-header__search-input::placeholder { color: #6b7280; }
.app-header__search-input:focus {
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}
.app-header__search-btn {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #9ca3af;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
  z-index: 2;
}
@media (min-width: 768px) { .app-header__search-btn { width: 32px; height: 32px; } }
.app-header__search-btn:hover {
  background: rgba(255, 215, 0, 0.15);
  color: var(--color-gold-light);
}
.app-header__search-btn i { font-size: 13px; }
@media (min-width: 768px) { .app-header__search-btn i { font-size: 14px; } }

.app-header__right { display: flex; align-items: center; gap: 8px; position: relative; flex-shrink: 0; }
@media (min-width: 768px) { .app-header__right { gap: 12px; } }
.app-header__profile-btn {
  height: 36px; width: 36px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(to right, var(--color-gold-light), var(--color-gold-dark));
}
@media (min-width: 768px) { .app-header__profile-btn { height: 40px; width: 40px; } }
.app-header__avatar {
  width: 100%; height: 100%;
  background: var(--color-surface);
  border-radius: 50%;
  border: 1px solid #000;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.app-header__avatar img { width: 100%; height: 100%; object-fit: cover; }

.app-header__dropdown {
  position: absolute;
  top: 48px;
  left: 0;
  width: 240px;
  background: var(--color-surface);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  padding: 8px;
  z-index: 60;
  text-align: right;
}
.app-header__dropdown-user {
  padding: 12px;
  border-bottom: 1px solid var(--border-faint);
  margin-bottom: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
}
.app-header__dropdown-name { font-weight: 700; font-size: 14px; color: #fff; margin: 0 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-header__dropdown-email { font-size: 12px; color: #9ca3af; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-break: break-all; }
.app-header__dropdown-item {
  width: 100%;
  text-align: right;
  padding: 10px 12px;
  font-size: 14px;
  color: #d1d5db;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
}
.app-header__dropdown-item:hover { background: rgba(255,255,255,0.05); }
.app-header__dropdown-item--danger { color: #f87171; margin-top: 4px; }
.app-header__dropdown-item--danger:hover { background: rgba(239,68,68,0.1); }

/* ---------- Sidebar overlay ---------- */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 40;
  display: none;
}
.sidebar-overlay--visible { display: block; }

/* ---------- Sidebar ---------- */
.sidebar {
  flex-shrink: 0;
  background: var(--color-base);
  height: calc(100vh - 64px);
  overflow-y: auto;
  overflow-x: hidden;
  transition: width 0.3s, opacity 0.3s;
  position: sticky;
  top: 64px;
  z-index: 45;
  border-left: 1px solid var(--border-faint);
  width: 240px;
  min-width: 0;
}
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.sidebar--collapsed { width: 72px; }
.sidebar--collapsed .sidebar__nav-label,
.sidebar--collapsed .sidebar__section-title,
.sidebar--collapsed .sidebar__guest,
.sidebar--collapsed .sidebar__services-wrap,
.sidebar--collapsed .sidebar__about-wrap { display: none; }
.sidebar--collapsed .sidebar__nav-item { flex-direction: column; justify-content: center; gap: 4px; }

.sidebar--player-mode {
  position: fixed;
  top: 64px;
  right: 0;
  height: calc(100vh - 64px);
  box-shadow: 0 0 40px rgba(0,0,0,0.9);
  width: 240px;
}
.sidebar--player-mode.sidebar--hidden {
  width: 0;
  border-color: transparent;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  padding: 0;
}

@media (max-width: 767px) {
  .sidebar:not(.sidebar--player-mode) {
    position: fixed;
    top: 64px;
    right: 0;
    width: 0;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 0 40px rgba(0,0,0,0.9);
  }
  .sidebar:not(.sidebar--player-mode).sidebar--open {
    width: 240px;
    opacity: 1;
    pointer-events: auto;
  }
}

.sidebar__nav { padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.sidebar__nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #9ca3af;
  transition: background 0.15s, color 0.15s;
  font-size: 14px;
}
.sidebar__nav-item:hover { background: rgba(255,255,255,0.05); }
.sidebar__nav-item--active { background: var(--color-surface); color: #fff; }
.sidebar__nav-icon { width: 24px; text-align: center; font-size: 18px; }
.sidebar--collapsed .sidebar__nav-icon { font-size: 18px; }

.sidebar__divider { margin: 8px 12px; border-top: 1px solid var(--border-faint); }

.sidebar__section-title { padding: 8px 12px; font-size: 12px; font-weight: 700; color: #6b7280; letter-spacing: 0.02em; margin: 0; }

.sidebar__guest { padding: 20px; }
.sidebar__guest-text { font-size: 12px; color: #9ca3af; line-height: 1.7; margin: 0 0 16px; }
.sidebar__guest-btn {
  display: flex; align-items: center; justify-content: center; width: 100%; gap: 8px;
  border: 1px solid rgba(255,255,255,0.2); color: #60a5fa; border-radius: 999px;
  padding: 8px 16px; font-weight: 500; font-size: 14px; transition: background 0.15s, border-color 0.15s;
}
.sidebar__guest-btn:hover { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.5); }

.sidebar__services-wrap, .sidebar__about-wrap {
  margin: 12px 0; padding: 16px 16px 0; border-top: 1px solid var(--border-faint);
}
.sidebar__services-title { color: #9ca3af; font-weight: 700; margin: 0 0 12px; }
.sidebar__services { display: flex; flex-direction: column; gap: 8px; }
.sidebar__services a {
  display: flex; align-items: center; gap: 12px; font-size: 14px; color: #9ca3af;
  transition: color 0.15s; padding: 4px 0;
}
.sidebar__services a:hover { color: #fff; }
.sidebar__services a i { width: 20px; text-align: center; }
.sidebar__about-text { font-size: 12px; color: #6b7280; line-height: 1.7; margin: 0; }

/* ---------- Main region ---------- */
.main-region { 
  flex: 1; 
  min-width: 0; 
  background: var(--color-base); 
  display: flex; 
  flex-direction: column; 
  padding: 0; 
  overflow-x: hidden;
  overflow-y: auto;
}

.category-chips-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(23,25,37,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-faint);
  padding: 10px 12px;
}
@media (min-width: 768px) { 
  .category-chips-bar { 
    top: 0;
    padding: 12px 16px; 
  } 
}
.category-chips { display: flex; align-items: center; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.category-chips::-webkit-scrollbar { display: none; }
.category-chip {
  white-space: nowrap; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 500;
  background: var(--color-surface); color: #e5e7eb; border: 1px solid var(--border-faint);
  transition: background 0.15s;
}
@media (min-width: 768px) { .category-chip { padding: 6px 16px; border-radius: 8px; font-size: 14px; } }
.category-chip:hover { background: rgba(255,255,255,0.1); }
.category-chip--active { background: #fff; color: #000; border-color: transparent; }

.main-content { 
  padding: 16px 12px; 
  flex: 1;
  overflow-y: auto;
}
@media (min-width: 640px) { .main-content { padding: 20px 16px; } }
@media (min-width: 768px) { .main-content { padding: 24px 20px; } }

.section-heading { font-size: 17px; font-weight: 700; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
@media (min-width: 768px) { .section-heading { font-size: 20px; margin: 0 0 24px; gap: 12px; } }
.section-heading__icon--red { color: #ef4444; }
.section-heading__icon--blue { color: #60a5fa; }
.section-note { color: #6b7280; font-size: 14px; }
@media (min-width: 768px) { .section-note { font-size: 15px; } }

/* ---------- Channel grid & card ---------- */
.channel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px 16px;
  width: 100%;
}
@media (min-width: 480px) { .channel-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; } }
@media (min-width: 640px) { .channel-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; } }
@media (min-width: 768px) { .channel-grid { grid-template-columns: repeat(3, 1fr); gap: 20px 16px; } }
@media (min-width: 1024px) { .channel-grid { grid-template-columns: repeat(4, 1fr); gap: 24px 16px; } }
@media (min-width: 1280px) { .channel-grid { grid-template-columns: repeat(5, 1fr); gap: 32px 16px; } }
@media (min-width: 1536px) { .channel-grid { grid-template-columns: repeat(6, 1fr); gap: 32px 16px; } }

.channel-card { display: flex; flex-direction: column; text-align: right; width: 100%; min-width: 0; }
.channel-card__thumb {
  width: 100%; 
  aspect-ratio: 16/9; 
  background: var(--color-surface); 
  border-radius: 8px;
  display: flex; 
  align-items: center; 
  justify-content: center; 
  position: relative; 
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s; 
  border: 1px solid transparent;
  flex-shrink: 0;
}
@media (min-width: 768px) { .channel-card__thumb { border-radius: 12px; } }
.channel-card:hover .channel-card__thumb { transform: scale(1.01); border-color: var(--border-soft); box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
.channel-card__badge-live {
  position: absolute; bottom: 4px; left: 4px; background: rgba(0,0,0,0.8); padding: 2px 6px;
  border-radius: 4px; font-size: 9px; font-family: var(--font-en); font-weight: 700; color: #fff; z-index: 20; pointer-events: none;
}
@media (min-width: 768px) { .channel-card__badge-live { font-size: 10px; bottom: 6px; left: 6px; } }
.channel-card__meta { display: flex; gap: 8px; margin-top: 8px; padding: 0 2px; }
@media (min-width: 768px) { .channel-card__meta { gap: 12px; margin-top: 12px; padding: 0 4px; } }
.channel-card__logo {
  width: 32px; height: 32px; border-radius: 50%; background: var(--color-surface); flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 3px; box-shadow: inset 0 1px 3px rgba(0,0,0,0.3);
}
@media (min-width: 768px) { .channel-card__logo { width: 36px; height: 36px; padding: 4px; } }
.channel-card__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.channel-card__logo i { color: #6b7280; font-size: 11px; }
@media (min-width: 768px) { .channel-card__logo i { font-size: 12px; } }
.channel-card__text { display: flex; flex-direction: column; align-items: flex-start; overflow: hidden; width: 100%; }
.channel-card__group {
  font-weight: 700; font-size: 13px; line-height: 1.4; color: #e5e7eb; margin: 0; width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (min-width: 768px) { .channel-card__group { font-size: 15px; } }
.channel-card:hover .channel-card__group { color: #fff; }
.channel-card__row { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 2px; gap: 6px; }
@media (min-width: 768px) { .channel-card__row { gap: 8px; } }
.channel-card__name { font-size: 12px; color: #9ca3af; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 768px) { .channel-card__name { font-size: 13px; } }
.channel-card__views {
  font-size: 10px; color: #d1d5db; font-family: var(--font-en); display: flex; align-items: center; gap: 3px;
  flex-shrink: 0; background: rgba(255,255,255,0.05); padding: 1px 5px; border-radius: 4px;
}
@media (min-width: 768px) { .channel-card__views { font-size: 11px; gap: 4px; padding: 1px 6px; } }
.channel-card__views i { font-size: 8px; }
@media (min-width: 768px) { .channel-card__views i { font-size: 9px; } }

/* ---------- Live preview thumbnail ---------- */
.live-thumb {
  position: absolute; inset: 0; width: 100%; height: 100%; background: #1a1d27;
  display: flex; align-items: center; justify-content: center; overflow: hidden; z-index: 0;
}
.live-thumb__idle { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.live-thumb__idle--hidden { display: none; }
.live-thumb__logo {
  width: 50%; height: 50%; object-fit: contain; opacity: 0.4; filter: grayscale(1);
  transition: filter 0.3s, opacity 0.3s;
}
.channel-card:hover .live-thumb__logo,
.sidebar-channel:hover .live-thumb__logo { filter: grayscale(0); opacity: 1; }
.live-thumb__icon { font-size: 36px; color: rgba(55,65,81,0.5); }
.channel-card:hover .live-thumb__icon { color: rgba(59,130,246,0.5); }
.live-thumb__preview { position: absolute; inset: 0; z-index: 10; background: #000; }

/* ---------- Empty state / load more ---------- */
.empty-state {
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 768px) { .empty-state { padding: 80px 24px; } }
.empty-state__icon {
  font-size: 48px;
  color: var(--color-surface);
  margin-bottom: 16px;
  display: block;
  width: 100%;
  text-align: center;
}
@media (min-width: 768px) { .empty-state__icon { font-size: 60px; margin-bottom: 20px; } }
.empty-state__title {
  font-size: 18px;
  font-weight: 700;
  color: #d1d5db;
  margin: 0;
  width: 100%;
  text-align: center;
}
@media (min-width: 768px) { .empty-state__title { font-size: 20px; } }
.empty-state__subtitle {
  color: #6b7280;
  margin: 8px 0 0;
  font-size: 14px;
  width: 100%;
  text-align: center;
}
@media (min-width: 768px) { .empty-state__subtitle { font-size: 15px; } }

.load-more-wrap { margin-top: 36px; display: flex; justify-content: center; padding-bottom: 24px; }
@media (min-width: 768px) { .load-more-wrap { margin-top: 48px; padding-bottom: 32px; } }
.load-more-btn {
  background: var(--color-surface); color: #fff; padding: 8px 20px; border-radius: 999px; font-weight: 500;
  border: 1px solid var(--border-faint); box-shadow: 0 1px 3px rgba(0,0,0,0.3); transition: background 0.15s;
  font-size: 13px;
}
@media (min-width: 768px) { .load-more-btn { padding: 8px 24px; font-size: 14px; } }
.load-more-btn:hover { background: rgba(255,255,255,0.1); }

/* ---------- Categories grid ---------- */
.categories-grid {
  display: grid; 
  grid-template-columns: repeat(2, 1fr); 
  gap: 12px;
}
@media (min-width: 480px) { .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (min-width: 640px) { .categories-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 768px) { .categories-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .categories-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
@media (min-width: 1280px) { .categories-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; } }

.category-card {
  aspect-ratio: 4/3; background: var(--color-surface); border-radius: 8px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 12px; border: 1px solid var(--border-faint);
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
@media (min-width: 768px) { .category-card { border-radius: 12px; padding: 16px; } }
.category-card:hover { background: rgba(255,255,255,0.1); transform: scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.category-card__icon-wrap {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.05); display: flex;
  align-items: center; justify-content: center; margin-bottom: 8px; transition: background 0.15s;
}
@media (min-width: 768px) { .category-card__icon-wrap { width: 56px; height: 56px; margin-bottom: 12px; } }
.category-card:hover .category-card__icon-wrap { background: rgba(255,255,255,0.1); }
.category-card__icon { font-size: 20px; color: #9ca3af; transition: color 0.15s; }
@media (min-width: 768px) { .category-card__icon { font-size: 24px; } }
.category-card:hover .category-card__icon { color: var(--color-gold-light); }
.category-card__label { font-weight: 700; color: #e5e7eb; font-size: 12px; }
@media (min-width: 768px) { .category-card__label { font-size: 14px; } }

/* ---------- Player view ---------- */
.main-region--player { display: block; }
.player-view {
  flex: 1; width: 100%; margin: 0 auto; padding: 12px; display: flex; flex-direction: column;
  max-width: 1800px; min-width: 0; background: var(--color-base); gap: 16px;
}
@media (min-width: 768px) { .player-view { padding: 20px; gap: 20px; } }
@media (min-width: 1024px) { 
  .player-view { 
    flex-direction: row; 
    padding: 24px; 
    gap: 24px; 
    align-items: flex-start;
  } 
}

.player-view__col--player { width: 100%; display: flex; flex-direction: column; min-width: 0; }
@media (min-width: 1024px) { .player-view__col--player { width: 70%; flex: 1 1 70%; } }
.player-view__col--suggestions { width: 100%; display: flex; flex-direction: column; min-width: 0; }
@media (min-width: 1024px) { .player-view__col--suggestions { width: 30%; flex: 0 0 30%; padding-right: 8px; } }

.player-wrapper {
  width: 100%; background: #000; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9;
  border: 1px solid var(--border-faint); position: relative;
}
@media (max-width: 480px) { .player-wrapper { border-radius: 8px; } }

.player-info { margin-top: 12px; display: flex; flex-direction: column; padding-bottom: 12px; border-bottom: 1px solid var(--border-soft); }
@media (min-width: 768px) { .player-info { margin-top: 16px; padding-bottom: 16px; } }
.player-info__title { font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 10px; }
@media (min-width: 768px) { .player-info__title { font-size: 18px; margin: 0 0 12px; } }
@media (min-width: 1024px) { .player-info__title { font-size: 22px; } }
.player-info__row { display: flex; flex-direction: column; gap: 12px; justify-content: space-between; }
@media (min-width: 640px) { .player-info__row { flex-direction: row; align-items: center; } }
@media (min-width: 768px) { .player-info__row { gap: 16px; } }
.player-info__left { display: flex; align-items: center; gap: 10px; }
@media (min-width: 768px) { .player-info__left { gap: 12px; } }
.player-info__logo {
  width: 40px; height: 40px; border-radius: 50%; background: var(--color-surface); border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 4px; flex-shrink: 0;
}
@media (min-width: 768px) { .player-info__logo { width: 48px; height: 48px; padding: 6px; } }
.player-info__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.player-info__logo i { font-size: 16px; color: #6b7280; }
@media (min-width: 768px) { .player-info__logo i { font-size: 20px; } }
.player-info__text { min-width: 0; }
.player-info__name { font-weight: 700; color: #fff; line-height: 1.3; margin: 0; font-size: 14px; }
@media (min-width: 768px) { .player-info__name { font-size: inherit; } }
.player-info__meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-family: var(--font-en); font-size: 11px; }
@media (min-width: 768px) { .player-info__meta { font-size: 12px; } }
.player-info__live-label { color: #9ca3af; }
.player-info__views { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.05); color: #9ca3af; padding: 2px 8px; border-radius: 4px; font-size: 11px; }
.player-info__follow-btn {
  margin-right: 12px; border: 1px solid #fff; background: #fff; color: #000; font-weight: 600; padding: 6px 12px;
  border-radius: 999px; font-size: 13px; display: flex; align-items: center; gap: 6px; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
@media (min-width: 768px) { .player-info__follow-btn { margin-right: 16px; padding: 8px 16px; font-size: 14px; gap: 8px; } }
.player-info__follow-btn--active { background: var(--color-surface); border-color: rgba(255,255,255,0.2); color: #fff; }
.player-info__actions { display: flex; align-items: center; gap: 8px; }
.player-info__share-btn {
  display: flex; align-items: center; gap: 6px; background: var(--color-surface); padding: 6px 12px;
  justify-content: center; border-radius: 999px; font-size: 13px; font-weight: 500; transition: background 0.15s;
}
@media (min-width: 768px) { .player-info__share-btn { gap: 8px; padding: 8px 16px; font-size: 14px; } }
.player-info__share-btn:hover { background: rgba(255,255,255,0.1); }
@media (max-width: 639px) { .player-info__share-label { display: none; } }

.suggestions__tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; padding-bottom: 4px; }
@media (min-width: 768px) { .suggestions__tabs { margin-bottom: 16px; } }
.suggestions__tabs::-webkit-scrollbar { display: none; }
.suggestions__tab {
  padding: 4px 10px; border-radius: 6px; font-size: 13px; white-space: nowrap; background: var(--color-surface);
  color: #d1d5db; transition: background 0.15s;
}
@media (min-width: 768px) { .suggestions__tab { padding: 4px 12px; border-radius: 8px; font-size: 14px; } }
.suggestions__tab:hover { background: rgba(255,255,255,0.1); }
.suggestions__tab--active { background: #fff; color: #000; font-weight: 500; }
.suggestions__list { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 768px) { .suggestions__list { gap: 12px; } }
.player-info__row { display: flex; flex-direction: column; gap: 16px; justify-content: space-between; }
@media (min-width: 640px) { .player-info__row { flex-direction: row; align-items: center; } }
.player-info__left { display: flex; align-items: center; gap: 12px; }
.player-info__logo {
  width: 48px; height: 48px; border-radius: 50%; background: var(--color-surface); border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center; overflow: hidden; padding: 6px; flex-shrink: 0;
}
.player-info__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.player-info__logo i { font-size: 20px; color: #6b7280; }
.player-info__text { min-width: 0; }
.player-info__name { font-weight: 700; color: #fff; line-height: 1.3; margin: 0; }
.player-info__meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-family: var(--font-en); font-size: 12px; }
.player-info__live-label { color: #9ca3af; }
.player-info__views { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.05); color: #9ca3af; padding: 2px 8px; border-radius: 4px; font-size: 11px; }
.player-info__follow-btn {
  margin-right: 16px; border: 1px solid #fff; background: #fff; color: #000; font-weight: 600; padding: 8px 16px;
  border-radius: 999px; font-size: 14px; display: flex; align-items: center; gap: 8px; transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.player-info__follow-btn--active { background: var(--color-surface); border-color: rgba(255,255,255,0.2); color: #fff; }
.player-info__actions { display: flex; align-items: center; gap: 8px; }
.player-info__share-btn {
  display: flex; align-items: center; gap: 8px; background: var(--color-surface); padding: 8px 16px;
  justify-content: center; border-radius: 999px; font-size: 14px; font-weight: 500; transition: background 0.15s;
}
.player-info__share-btn:hover { background: rgba(255,255,255,0.1); }
@media (max-width: 639px) { .player-info__share-label { display: none; } }

.suggestions__tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; padding-bottom: 4px; }
.suggestions__tabs::-webkit-scrollbar { display: none; }
.suggestions__tab {
  padding: 4px 12px; border-radius: 8px; font-size: 14px; white-space: nowrap; background: var(--color-surface);
  color: #d1d5db; transition: background 0.15s;
}
.suggestions__tab:hover { background: rgba(255,255,255,0.1); }
.suggestions__tab--active { background: #fff; color: #000; font-weight: 500; }
.suggestions__list { display: flex; flex-direction: column; gap: 12px; }

.sidebar-channel { display: flex; text-align: right; gap: 8px; }
.sidebar-channel__thumb {
  position: relative; width: 140px; min-width: 140px; aspect-ratio: 16/9; background: var(--color-surface);
  border-radius: 6px; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; justify-content: center;
}
@media (min-width: 1024px) { .sidebar-channel__thumb { width: 160px; min-width: 160px; border-radius: 8px; } }
.sidebar-channel__badge-live {
  position: absolute; bottom: 3px; left: 3px; background: rgba(0,0,0,0.8); padding: 2px 5px; border-radius: 3px;
  font-size: 9px; font-family: var(--font-en); font-weight: 700; z-index: 10; pointer-events: none;
}
@media (min-width: 1024px) { .sidebar-channel__badge-live { font-size: 10px; bottom: 4px; left: 4px; padding: 2px 6px; border-radius: 4px; } }
.sidebar-channel__text { display: flex; flex-direction: column; overflow: hidden; padding: 2px 0; }
@media (min-width: 1024px) { .sidebar-channel__text { padding: 4px 0; } }
.sidebar-channel__title {
  font-weight: 600; font-size: 13px; line-height: 1.3; color: #fff; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color 0.15s;
}
@media (min-width: 1024px) { .sidebar-channel__title { font-size: 14px; } }
.sidebar-channel:hover .sidebar-channel__title { color: var(--color-gold-light); }
.sidebar-channel__row { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: 4px; }
.sidebar-channel__name { font-size: 11px; color: #9ca3af; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 1024px) { .sidebar-channel__name { font-size: 12px; } }
.sidebar-channel__views {
  font-size: 9px; color: #d1d5db; font-family: var(--font-en); display: flex; align-items: center; gap: 3px;
  flex-shrink: 0; background: rgba(255,255,255,0.05); padding: 1px 4px; border-radius: 3px;
}
@media (min-width: 1024px) { .sidebar-channel__views { font-size: 10px; padding: 1px 4px; border-radius: 4px; } }

/* ---------- HLS player ---------- */
.hls-player { position: relative; width: 100%; height: 100%; background: #000; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hls-player--thumb { pointer-events: none; }
.hls-player__video {
  width: 100%;
  height: 100%;
  outline: none;
  object-fit: cover;
  display: block;
}
.hls-player--thumb .hls-player__video { object-fit: cover; }
.hls-player__video--clickable { cursor: pointer; }
.hls-player__error {
  position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center;
  justify-content: center; background: rgba(0,0,0,0.8); color: #fff; padding: 16px; text-align: center;
}
.hls-player__error i { font-size: 24px; color: #ef4444; margin-bottom: 8px; }
.hls-player__error p { font-weight: 600; font-size: 14px; margin: 0; }

.hls-player__overlay {
  position: absolute; inset: 0; z-index: 20; pointer-events: none; opacity: 0; transition: opacity 0.3s;
  display: flex; flex-direction: column; justify-content: space-between;
}
.hls-player__overlay--visible { 
  opacity: 1; 
  pointer-events: auto;
}
.hls-player__gradient-top { background: linear-gradient(to bottom, rgba(0,0,0,0.6), transparent); height: 72px; padding: 12px 16px; }
.hls-player__bar {
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4), transparent);
  padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; pointer-events: auto;
}
@media (min-width: 1024px) { .hls-player__bar { padding: 16px 24px; } }
.hls-player__bar-left { display: flex; align-items: center; gap: 16px; }
@media (min-width: 1024px) { .hls-player__bar-left { gap: 20px; } }
.hls-player__btn { color: #fff; width: 32px; text-align: center; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: color 0.15s; }
@media (min-width: 1024px) { .hls-player__btn { font-size: 20px; } }
.hls-player__btn:hover { color: var(--color-gold-light); }
.hls-player__live {
  display: flex; align-items: center; gap: 6px; background: rgba(220,38,38,0.2); padding: 4px 10px; border-radius: 4px;
  color: #ef4444; font-weight: 700; font-size: 11px; letter-spacing: 0.1em; border: 1px solid rgba(239,68,68,0.3);
}
@media (min-width: 1024px) { .hls-player__live { font-size: 12px; gap: 8px; } }
.hls-player__live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; animation: pulse 1.5s ease-in-out infinite; }
@media (min-width: 1024px) { .hls-player__live-dot { width: 8px; height: 8px; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hls-player__muted-icon { color: #ef4444; }

/* ---------- Login modal ---------- */
.login-modal {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); padding: 16px;
}
.login-modal__card {
  width: 100%; max-width: 340px; background: var(--color-surface); border: 1px solid var(--border-soft);
  border-radius: 16px; padding: 24px; box-shadow: 0 25px 50px rgba(0,0,0,0.5); position: relative;
}
@media (min-width: 640px) { .login-modal__card { max-width: 384px; padding: 32px; border-radius: 24px; } }
.login-modal__close {
  position: absolute; top: 16px; left: 16px; color: #6b7280; background: rgba(255,255,255,0.05);
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: color 0.15s; font-size: 14px;
}
@media (min-width: 640px) { .login-modal__close { top: 20px; left: 20px; width: 32px; height: 32px; font-size: 16px; } }
.login-modal__close:hover { color: #fff; }
.login-modal__head { text-align: center; margin-bottom: 24px; margin-top: 8px; }
@media (min-width: 640px) { .login-modal__head { margin-bottom: 32px; } }
.login-modal__logo { width: 64px; height: 64px; margin: 0 auto 16px; }
@media (min-width: 640px) { .login-modal__logo { width: 80px; height: 80px; margin: 0 auto 20px; } }
.login-modal__logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 15px rgba(255,215,0,0.2)); }
.login-modal__title { font-size: 20px; font-weight: 700; color: #fff; margin: 0 0 6px; }
@media (min-width: 640px) { .login-modal__title { font-size: 24px; margin: 0 0 8px; } }
.login-modal__subtitle { font-size: 12px; color: #9ca3af; margin: 0; }
@media (min-width: 640px) { .login-modal__subtitle { font-size: 14px; } }
.login-modal__error {
  background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #f87171; font-size: 13px;
  padding: 10px; border-radius: 8px; text-align: center; margin-bottom: 16px; font-weight: 500;
}
@media (min-width: 640px) { .login-modal__error { font-size: 14px; padding: 12px; margin-bottom: 20px; border-radius: 12px; } }
.login-modal__step { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .login-modal__step { gap: 16px; } }
.login-modal__input {
  width: 100%; background: var(--color-base); border: 1px solid var(--border-soft); border-radius: 8px;
  padding: 10px 12px; text-align: right; outline: none; color: #fff; font-family: var(--font-en);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.3); transition: border-color 0.15s; font-size: 13px;
}
@media (min-width: 640px) { .login-modal__input { padding: 14px 16px; border-radius: 12px; font-size: 14px; } }
.login-modal__input::placeholder { text-align: right; color: #6b7280; }
.login-modal__input:focus { border-color: rgba(255,215,0,0.5); }
.login-modal__input:disabled { opacity: 0.5; }
.login-modal__input--code { text-align: center; letter-spacing: 1em; font-size: 20px; padding-right: 1em; }
@media (min-width: 640px) { .login-modal__input--code { font-size: 24px; } }
.login-modal__submit {
  width: 100%; background: #fff; color: #000; font-weight: 700; padding: 10px; border-radius: 8px;
  margin-top: 6px; transition: background 0.15s; font-size: 13px;
}
@media (min-width: 640px) { .login-modal__submit { padding: 14px; border-radius: 12px; margin-top: 8px; font-size: 14px; } }
.login-modal__submit:hover { background: #e5e7eb; }
.login-modal__submit:disabled { opacity: 0.5; }
.login-modal__submit--gold {
  background: linear-gradient(to right, var(--color-gold-light), var(--color-gold-dark)); color: #171925;
  transition: box-shadow 0.15s;
}
.login-modal__submit--gold:hover { box-shadow: 0 0 15px rgba(255,215,0,0.3); }
.login-modal__signup-wrap { margin-top: 12px; border-top: 1px solid var(--border-soft); padding-top: 12px; text-align: center; }
@media (min-width: 640px) { .login-modal__signup-wrap { margin-top: 16px; padding-top: 16px; } }
.login-modal__signup-label { color: #9ca3af; font-size: 12px; margin: 0 0 10px; }
@media (min-width: 640px) { .login-modal__signup-label { font-size: 14px; margin: 0 0 12px; } }
.login-modal__signup {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center;
  border: 1px solid rgba(255,215,0,0.3); color: var(--color-gold-light); font-weight: 700; padding: 10px 12px;
  border-radius: 8px; transition: background 0.15s; font-size: 12px;
}
@media (min-width: 640px) { .login-modal__signup { gap: 8px; padding: 12px 16px; border-radius: 12px; font-size: 14px; } }
.login-modal__signup:hover { background: rgba(255,215,0,0.1); }
.login-modal__code-note { text-align: center; font-size: 12px; color: #9ca3af; margin: 0; }
@media (min-width: 640px) { .login-modal__code-note { font-size: 14px; } }
.login-modal__code-email { text-align: center; font-size: 11px; color: var(--color-gold-light); margin: -6px 0 0; }
@media (min-width: 640px) { .login-modal__code-email { font-size: 12px; margin: -8px 0 0; } }
.login-modal__edit-btn { font-size: 12px; color: #6b7280; margin-top: 6px; transition: color 0.15s; }
@media (min-width: 640px) { .login-modal__edit-btn { font-size: 14px; margin-top: 4px; } }
.login-modal__edit-btn:hover { color: #fff; }
.login-modal__edit-btn:disabled { opacity: 0.5; }

/* ---------- Scrollbars (utility classes) ---------- */
.custom-scrollbar::-webkit-scrollbar { width: 8px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background-color: rgba(255,255,255,0.1); border-radius: 4px; }
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ---------- Toast Notifications ---------- */
.toast-container {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
@media (max-width: 767px) {
  .toast-container {
    top: 70px;
    width: calc(100% - 32px);
    max-width: 400px;
  }
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 12px;
  background: rgba(32, 36, 49, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-20px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: auto;
  max-width: 100%;
}

.toast--show {
  transform: translateY(0);
  opacity: 1;
}

.toast__icon {
  font-size: 20px;
  flex-shrink: 0;
}

.toast__message {
  font-size: 14px;
  color: #e5e7eb;
  font-weight: 500;
}

.toast--success .toast__icon { color: #22c55e; }
.toast--success { border-color: rgba(34, 197, 94, 0.3); }

.toast--error .toast__icon { color: #ef4444; }
.toast--error { border-color: rgba(239, 68, 68, 0.3); }

.toast--warning .toast__icon { color: #f59e0b; }
.toast--warning { border-color: rgba(245, 158, 11, 0.3); }

.toast--info .toast__icon { color: #3b82f6; }
.toast--info { border-color: rgba(59, 130, 246, 0.3); }
