/* ==============================
   PlayTorrio IPTV v2
   "Broadcast Studio" Theme
   ============================== */

*{margin:0;padding:0;box-sizing:border-box}

:root {
  --bg-primary: #111015;
  --bg-secondary: #18171e;
  --bg-card: #1e1d25;
  --bg-card-hover: #26252e;
  --bg-elevated: #222130;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.14);
  --border-active: rgba(232,175,80,0.45);
  --accent: #e8af50;
  --accent-light: #f4cf85;
  --accent-dim: rgba(232,175,80,0.12);
  --accent-glow: rgba(232,175,80,0.25);
  --text: #e8e6ef;
  --text-secondary: #908e99;
  --text-muted: #5a5865;
  --live: #e84057;
  --success: #50b87a;
  --favorite-color: #e8af50;
  --record-color: #e84057;
  --sidebar-w: 300px;
  --header-h: 64px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
}

html,body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(232,175,80,0.3); color: #fff; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ---- Animations ---- */
@keyframes fadeUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
@keyframes scaleIn { from { opacity:0; transform:scale(0.96); } to { opacity:1; transform:scale(1); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes recording-pulse { 0%,100% { box-shadow:0 0 0 0 rgba(232,64,87,0.5); } 50% { box-shadow:0 0 0 8px rgba(232,64,87,0); } }
@keyframes live-pulse { 0%,100% { opacity:1; } 50% { opacity:0.3; } }

.animate-fadeUp { animation: fadeUp 0.35s ease forwards; }
.animate-scaleIn { animation: scaleIn 0.3s ease forwards; }

/* ---- Sidebar ---- */
.sidebar {
  position: fixed; left: 0; top: 0;
  width: var(--sidebar-w); height: 100vh;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  z-index: 100;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease;
}
.sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-brand {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.sidebar-brand img {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 2px solid var(--accent-dim);
}
.sidebar-brand-name {
  font-weight: 800; font-size: 1.2rem; color: var(--accent);
  letter-spacing: -0.5px;
}
.sidebar-brand-sub { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }

.sidebar-search {
  width: 100%; padding: 10px 14px 10px 38px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 0.85rem; font-family: inherit; transition: border-color 0.2s;
}
.sidebar-search:focus { outline: none; border-color: var(--accent); }
.sidebar-search::placeholder { color: var(--text-muted); }
.sidebar-search-wrap { position: relative; }
.sidebar-search-wrap i {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 0.8rem;
}

.sidebar-nav { display: flex; gap: 6px; padding: 12px 16px; }
.sidebar-nav-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 8px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.sidebar-nav-btn:hover { color: var(--text); border-color: var(--border-hover); }
.sidebar-nav-btn i { font-size: 0.9rem; }
.sidebar-nav-btn .live-dot {
  width: 6px; height: 6px; background: var(--live); border-radius: 50%;
  animation: live-pulse 1.4s infinite;
}

.sidebar-section-title {
  padding: 10px 20px 6px; font-size: 0.65rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700;
}

.sidebar-content { flex: 1; overflow-y: auto; padding: 4px 8px 80px; }

.sidebar-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; margin: 2px 0; border-radius: var(--radius-sm);
  cursor: pointer; transition: background 0.15s, color 0.15s;
  color: var(--text-secondary); font-weight: 500; font-size: 0.88rem;
  border: 1px solid transparent;
}
.sidebar-item:hover { color: var(--text); background: var(--bg-card); }
.sidebar-item.active {
  background: var(--accent-dim); color: var(--accent);
  border-color: var(--border-active);
}
.sidebar-item img { width: 22px; height: 15px; object-fit: cover; border-radius: 3px; }
.sidebar-item i { width: 22px; text-align: center; font-size: 0.95rem; }

.glow-btn {
  width: 100%; padding: 10px 16px;
  background: var(--accent-dim); border: 1px solid var(--border-active);
  color: var(--accent); border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.82rem; cursor: pointer;
  transition: all 0.2s; font-family: inherit;
}
.glow-btn:hover { background: rgba(232,175,80,0.2); }
.glow-btn span { display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ---- Main Content ---- */
.main-content {
  margin-left: var(--sidebar-w); min-height: 100vh;
  padding: 32px 36px; transition: margin-left 0.3s ease;
}

/* ---- Mobile Header ---- */
.mobile-header {
  display: none; position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h); background: rgba(17,16,21,0.95);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
  z-index: 99; padding: 0 16px;
  align-items: center; justify-content: space-between;
}
.mobile-menu-btn {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); cursor: pointer; font-size: 1.1rem;
  transition: all 0.2s;
}
.mobile-menu-btn:hover { border-color: var(--accent); color: var(--accent); }
.mobile-brand { font-weight: 800; font-size: 1.1rem; color: var(--accent); letter-spacing: -0.5px; }

/* ---- Search ---- */
.search-container { position: relative; max-width: 600px; margin: 0 auto 36px; }
.search-input {
  width: 100%; padding: 16px 20px 16px 52px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: 0.95rem; font-weight: 500; font-family: inherit;
  transition: border-color 0.2s;
}
.search-input:focus { outline: none; border-color: var(--accent); }
.search-input::placeholder { color: var(--text-muted); }
.search-icon {
  position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
  font-size: 1rem; color: var(--text-muted);
}

/* ---- Filter Pills ---- */
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.filter-pill {
  padding: 8px 18px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 50px;
  color: var(--text-secondary); font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.filter-pill:hover { border-color: var(--border-hover); color: var(--text); }
.filter-pill.active { background: var(--accent); border-color: var(--accent); color: #111; }
.filter-pill i { margin-right: 6px; }

/* ---- Channel Grid ---- */
.channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

/* ---- Channel Card ---- */
.channel-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  cursor: pointer; transition: border-color 0.2s, transform 0.2s, background 0.2s;
  position: relative;
}
.channel-card:hover {
  border-color: var(--border-active); background: var(--bg-card-hover);
  transform: translateY(-3px);
}
.channel-logo {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  margin: 0 auto 12px; background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; border: 1px solid var(--border);
}
.channel-name {
  font-weight: 600; font-size: 0.88rem; margin-bottom: 10px;
  line-height: 1.3; text-align: center; color: var(--text);
}
.channel-card:hover .channel-name { color: var(--accent); }
.channel-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.channel-tag {
  padding: 4px 10px; border-radius: 20px; font-size: 0.65rem;
  font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase;
}
.tag-iptv { background: rgba(232,175,80,0.12); color: var(--accent); border: 1px solid rgba(232,175,80,0.25); }
.tag-youtube { background: rgba(255,72,72,0.1); color: #ff6b6b; border: 1px solid rgba(255,72,72,0.25); }
.tag-iptvorg { background: rgba(80,184,122,0.1); color: var(--success); border: 1px solid rgba(80,184,122,0.25); }
.tag-iptvcat { background: rgba(96,165,250,0.1); color: #60a5fa; border: 1px solid rgba(96,165,250,0.25); }
.tag-ipstreet { background: rgba(192,132,252,0.1); color: #c084fc; border: 1px solid rgba(192,132,252,0.25); }

.favorite-btn {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,0.4); border: 1px solid var(--border);
  color: var(--text-muted); cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.favorite-btn:hover { color: var(--favorite-color); }
.favorite-btn.active { color: var(--favorite-color); background: rgba(232,175,80,0.15); border-color: var(--favorite-color); }

/* ---- Modal / Player ---- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(11,10,15,0.92);
  z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.active { display: flex; }
.modal-content {
  width: 100%; max-width: 1300px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  animation: scaleIn 0.25s ease; display: flex; flex-direction: column; max-height: 90vh;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-title { font-size: 1.15rem; font-weight: 700; color: var(--accent); }
.modal-close {
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: rgba(232,64,87,0.1); border: 1px solid rgba(232,64,87,0.25);
  color: var(--live); cursor: pointer; transition: all 0.2s; font-size: 1.1rem;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--live); color: #fff; }

.player-wrapper-with-ad { display: flex; flex: 1; min-height: 0; overflow: hidden; }
.player-main-section { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.player-container {
  position: relative; aspect-ratio: 16/9; background: #000;
  overflow: hidden;
}
.player-container video, .player-container iframe {
  width: 100%; height: 100%; object-fit: contain; background: #000; display: block;
}

/* ---- Custom Video Player ---- */
.custom-player-wrapper { position: relative; width: 100%; height: 100%; background: #000; }
.custom-player-wrapper video { width: 100%; height: 100%; object-fit: contain; }
.custom-player-wrapper video::-webkit-media-controls { display: none !important; }
.custom-player-wrapper video::-webkit-media-controls-enclosure { display: none !important; }
video::-webkit-media-controls-panel { display: none !important; }
video::-webkit-media-controls-start-playback-button { display: none !important; }

.custom-player-overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  justify-content: space-between; opacity: 1; transition: opacity 0.3s; z-index: 10;
}
.custom-player-wrapper.idle .custom-player-overlay { opacity: 0; pointer-events: none; }
.custom-player-wrapper.idle { cursor: none; }

.custom-player-top {
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%);
  display: flex; align-items: center; justify-content: space-between;
}
.custom-player-brand { display: flex; align-items: center; gap: 8px; }
.custom-player-brand img { width: 24px; height: 24px; border-radius: 5px; }
.custom-player-brand span { font-size: 0.8rem; font-weight: 700; color: var(--accent); }
.custom-player-live {
  display: flex; align-items: center; gap: 5px;
  padding: 4px 10px; background: var(--live); border-radius: 5px;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff;
}
.custom-player-live::before {
  content: ''; width: 6px; height: 6px; background: #fff; border-radius: 50%;
  animation: live-pulse 1.5s infinite;
}

.custom-player-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  display: flex; align-items: center; justify-content: center;
}
.custom-player-play {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(232,175,80,0.85); border: none; color: #111;
  font-size: 1.6rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center; transition: all 0.2s;
}
.custom-player-play:hover { transform: scale(1.08); background: var(--accent); }
.custom-player-play i { margin-left: 3px; }
.custom-player-wrapper.playing .custom-player-play { display: none; }

.custom-player-bottom {
  padding: 14px 18px;
  background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, transparent 100%);
}
.custom-player-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.custom-player-left, .custom-player-right { display: flex; align-items: center; gap: 10px; }

.cp-btn {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  color: #fff; font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.cp-btn:hover { background: rgba(232,175,80,0.3); border-color: var(--accent); }
.cp-btn.active { background: var(--accent); border-color: var(--accent); color: #111; }

.cp-volume { display: flex; align-items: center; gap: 6px; }
.cp-volume-slider { width: 0; overflow: hidden; transition: width 0.2s; }
.cp-volume:hover .cp-volume-slider { width: 70px; }
.cp-volume-slider input {
  width: 70px; height: 3px; -webkit-appearance: none;
  background: rgba(255,255,255,0.15); border-radius: 2px; cursor: pointer;
}
.cp-volume-slider input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px;
  background: var(--accent); border-radius: 50%; cursor: pointer;
}

.custom-player-loading { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); display: none; }
.custom-player-wrapper.loading .custom-player-loading { display: block; }
.custom-player-wrapper.loading .custom-player-play { display: none; }
.cp-spinner {
  width: 48px; height: 48px; border: 3px solid rgba(232,175,80,0.15);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.custom-player-error { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; display: none; }
.custom-player-wrapper.error .custom-player-error { display: block; }
.custom-player-wrapper.error .custom-player-play, .custom-player-wrapper.error .custom-player-loading { display: none; }
.custom-player-error i { font-size: 2.5rem; color: var(--live); margin-bottom: 10px; }
.custom-player-error p { color: var(--text-secondary); font-size: 0.85rem; }

.player-controls {
  padding: 14px 24px; display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center; background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}
.control-btn {
  padding: 10px 18px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; display: flex;
  align-items: center; gap: 8px; font-family: inherit;
}
.control-btn:hover { border-color: var(--accent); color: var(--accent); }
.control-btn.active { background: var(--accent); border-color: var(--accent); color: #111; }
.control-btn.record { border-color: rgba(232,64,87,0.3); color: var(--live); }
.control-btn.record:hover { background: rgba(232,64,87,0.15); }
.control-btn.record.recording { background: var(--live); color: #fff; animation: recording-pulse 1.2s infinite; border-color: transparent; }

.player-select {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 8px 12px;
  color: var(--text); font-size: 0.8rem; font-family: inherit;
  cursor: pointer; transition: border-color 0.2s;
}
.player-select:hover, .player-select:focus { border-color: var(--accent); outline: none; }

/* ---- Toast ---- */
.toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%) translateY(-120px);
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 24px; z-index: 9999;
  display: flex; align-items: center; gap: 10px; transition: transform 0.3s ease;
  font-size: 0.88rem; font-weight: 500;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--live); }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--live); }

/* ---- Welcome Hero ---- */
.welcome-hero { text-align: center; padding: 80px 24px; max-width: 800px; margin: 0 auto; }
.welcome-title {
  font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900;
  margin-bottom: 20px; line-height: 1.05; letter-spacing: -2px; color: var(--text);
}
.welcome-title .accent { color: var(--accent); }
.welcome-subtitle {
  font-size: 1.1rem; color: var(--text-secondary);
  margin-bottom: 48px; max-width: 520px; margin-left: auto; margin-right: auto; line-height: 1.6;
}
.stats-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.stat-item {
  text-align: center; padding: 24px 32px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-number { font-size: 2.5rem; font-weight: 900; color: var(--accent); }
.stat-label {
  color: var(--text-muted); font-size: 0.75rem; margin-top: 4px;
  font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px;
}

/* ---- Skeleton ---- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius);
}

/* ---- No Results ---- */
.no-results { text-align: center; padding: 80px 24px; }
.no-results i { font-size: 4rem; color: var(--text-muted); margin-bottom: 20px; display: block; }
.no-results h3 { font-size: 1.3rem; margin-bottom: 8px; }
.no-results p { color: var(--text-secondary); }

/* ---- Recordings ---- */
.recording-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; transition: all 0.2s;
}
.recording-card:hover { border-color: var(--border-active); transform: translateY(-3px); }

/* ---- Audio Mode ---- */
.audio-mode .player-container { background: var(--bg-secondary); }
.audio-mode video { visibility: hidden; }

/* ---- Discord Float ---- */
.discord-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  background: #5865F2; color: #fff; width: 52px; height: 52px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4); transition: all 0.2s;
  text-decoration: none;
}
.discord-float:hover { transform: scale(1.08); background: #4752c4; }
.discord-float i { font-size: 26px; }

/* ======== RESPONSIVE ======== */
@media (max-width: 1024px) {
  .sidebar { width: 260px; }
  .main-content { margin-left: 260px; padding: 24px; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%); width: 85vw; max-width: 300px;
    box-shadow: 4px 0 24px rgba(0,0,0,0.5);
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 80px 14px 120px; }
  .mobile-header { display: flex; }
  .channel-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .channel-card { padding: 14px; }
  .channel-logo { width: 44px; height: 44px; margin-bottom: 8px; }
  .channel-name { font-size: 0.8rem; margin-bottom: 6px; }
  .channel-tag { padding: 3px 8px; font-size: 0.6rem; }
  .favorite-btn { width: 28px; height: 28px; top: 8px; right: 8px; font-size: 0.75rem; }
  .welcome-hero { padding: 40px 14px; }
  .welcome-title { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .welcome-subtitle { font-size: 0.95rem; margin-bottom: 32px; }
  .stat-item { padding: 16px 20px; }
  .stat-number { font-size: 1.8rem; }
  .search-input { padding: 14px 16px 14px 44px; font-size: 0.9rem; }
  .search-icon { left: 16px; }
  .filter-pills { gap: 6px; margin-bottom: 20px; }
  .filter-pill { padding: 7px 14px; font-size: 0.75rem; }
  .modal-content { border-radius: var(--radius) var(--radius) 0 0; max-height: 92vh; }
  .modal-header { padding: 14px 18px; }
  .modal-title { font-size: 1rem; }
  .player-controls { padding: 10px 14px; gap: 6px; }
  .control-btn { padding: 8px 12px; font-size: 0.72rem; }
  .toast { border-radius: var(--radius-sm); padding: 12px 18px; font-size: 0.82rem; }
  .discord-float { bottom: 16px; right: 16px; width: 46px; height: 46px; }
  .discord-float i { font-size: 22px; }
  .stats-grid { gap: 10px; }
}

@media (max-width: 400px) {
  .channel-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .channel-card { padding: 12px; }
  .channel-logo { width: 38px; height: 38px; }
  .channel-name { font-size: 0.75rem; }
  .filter-pills { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
  .filter-pill { flex-shrink: 0; }
}

/* ---- Smart TV ---- */
@media (min-width:1200px) and (pointer:coarse), (min-width:1200px) and (hover:none) {
  * { transition: none !important; }
  body { background: var(--bg-primary) !important; }
  .sidebar { background: var(--bg-secondary) !important; }
  .sidebar-item { padding: 18px 20px; font-size: 1.05rem; border: 2px solid transparent; }
  .sidebar-item:focus { border-color: var(--accent) !important; outline: none; }
  .channel-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
  .channel-card { padding: 22px; border: 2px solid transparent; }
  .channel-card:focus { border-color: var(--accent) !important; outline: none; }
  .modal-close { position: fixed !important; top: 2vh !important; right: 2vw !important; width: 70px !important; height: 70px !important; font-size: 1.6rem !important; z-index: 99999 !important; }
  .control-btn { padding: 14px 24px; font-size: 0.95rem; }
  .control-btn:focus { border-color: var(--accent) !important; outline: none; }
}
