:root {
  --bg: #0b0d12;
  --surface: #171a21;
  --surface-2: #1f232c;
  --surface-3: #262b35;
  --border: #2a2f3a;
  --border-soft: #21252e;
  --text: #eef0f3;
  --text-dim: #9aa0ab;
  --text-faint: #6b7280;
  --accent: #e64980;
  --accent-2: #ff922b;
  --accent-hover: #f06595;
  --accent-soft: rgba(230, 73, 128, 0.14);
  --success: #40c057;
  --danger: #e03131;
  --danger-hover: #f03e3e;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  background-image:
    radial-gradient(circle at 15% -10%, rgba(230, 73, 128, 0.10), transparent 40%),
    radial-gradient(circle at 90% 0%, rgba(255, 146, 43, 0.08), transparent 35%);
  background-attachment: fixed;
}

header.topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  background: rgba(23, 26, 33, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}

header.topbar h1 {
  font-size: 1.2rem;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  background: linear-gradient(90deg, var(--text) 0%, var(--text) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

header.topbar .navlinks { display: flex; align-items: center; gap: 18px; }

header.topbar a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.15s ease;
  flex-shrink: 0;
}
header.topbar a:hover { color: var(--text); }

header.topbar .search-wrap {
  flex: 1;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--text-faint);
  transition: border-color 0.15s ease, background 0.15s ease;
}
header.topbar .search-wrap:focus-within {
  border-color: var(--accent);
  background: var(--surface-3);
  color: var(--text-dim);
}
header.topbar .search-wrap input {
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  width: 100%;
  padding: 0;
}
header.topbar .search-wrap input:focus { outline: none; }

@media (max-width: 640px) {
  header.topbar { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  header.topbar h1 { font-size: 1.05rem; }
  header.topbar .search-wrap { order: 3; flex: 1 1 100%; max-width: 100%; margin: 0; }
}

main { max-width: 1440px; margin: 0 auto; padding: 24px 28px; }

h2 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px 20px;
}

.card {
  background: transparent;
  border: none;
  text-decoration: none;
  color: inherit;
  display: block;
}

.thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--text-dim);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  transition: box-shadow 0.25s ease;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease, filter 0.25s ease;
}
.card:hover .thumb { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45); }
.card:hover .thumb img { transform: scale(1.06); filter: brightness(1.05); }
.card .info h3 { transition: color 0.15s ease; }
.card:hover .info h3 { color: var(--accent-hover); }

.duration-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.01em;
}

.card .info { padding: 12px 2px 0; display: flex; flex-direction: column; gap: 4px; }
.card .info h3 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card .info p { margin: 0; font-size: 0.78rem; color: var(--text-dim); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.cat-badge {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  padding-bottom: 4px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.pill-icon { flex-shrink: 0; opacity: 0.85; transition: opacity 0.18s ease, transform 0.18s ease; }
.pill:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--surface-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(230, 73, 128, 0.16);
}
.pill:hover .pill-icon { opacity: 1; transform: scale(1.08); }
.pill.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(230, 73, 128, 0.32);
}
.pill.active .pill-icon { opacity: 1; }
.pill.active:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 6px 20px rgba(230, 73, 128, 0.4); }

.empty-state {
  text-align: center;
  color: var(--text-dim);
  padding: 70px 20px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.empty-state .icon { font-size: 2.2rem; display: block; margin-bottom: 10px; opacity: 0.6; }

.player-wrap { max-width: 900px; margin: 0 auto; }
video { width: 100%; border-radius: var(--radius); background: #000; box-shadow: var(--shadow); }
.meta { margin-top: 16px; }
.meta h2 { margin: 0 0 6px; }
.meta p { color: var(--text-dim); }

form.stack { display: flex; flex-direction: column; gap: 14px; max-width: 460px; }
label { font-size: 0.83rem; color: var(--text-dim); font-weight: 500; display: block; margin-bottom: 6px; }
input[type=text], input[type=password], input[type=tel], input[type=email], textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}
input[type=text]:focus, input[type=password]:focus, input[type=tel]:focus, input[type=email]:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-3);
}
textarea { resize: vertical; min-height: 70px; }

select {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
}
select:focus { outline: none; border-color: var(--accent); }

button {
  cursor: pointer;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  transition: filter 0.15s ease, transform 0.1s ease;
}
button:hover { filter: brightness(1.08); }
button:active { transform: scale(0.98); }
button.danger { background: var(--danger); }
button.danger:hover { background: var(--danger-hover); filter: none; }
button:disabled { opacity: 0.55; cursor: not-allowed; filter: none; }

.msg { font-size: 0.88rem; padding: 10px 14px; border-radius: var(--radius-sm); margin-top: 4px; }
.msg.error { color: #ffa8a8; background: rgba(224, 49, 49, 0.12); border: 1px solid rgba(224, 49, 49, 0.3); }
.msg.success { color: #8ce99a; background: rgba(64, 192, 87, 0.12); border: 1px solid rgba(64, 192, 87, 0.3); }

progress {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  border: none;
}
progress::-webkit-progress-bar { background: var(--surface-2); border-radius: 4px; }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 4px; }
progress::-moz-progress-bar { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* ===== Admin dashboard ===== */

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.stat-card .stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-bottom: 8px;
}
.stat-card .stat-value {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, var(--text), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.dropzone {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  padding: 26px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  position: relative;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.dropzone .dz-icon { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.dropzone .dz-text { color: var(--text-dim); font-size: 0.88rem; }
.dropzone .dz-filename { color: var(--text); font-weight: 600; font-size: 0.9rem; margin-top: 6px; }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-heading h2 { margin: 0; }
.badge {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.video-list { display: flex; flex-direction: column; gap: 10px; }

.admin-video-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.admin-video-row:hover { border-color: var(--border-soft); transform: translateX(2px); }

.row-icon {
  width: 56px;
  height: 40px;
  min-width: 56px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
}
.row-thumb {
  width: 56px;
  height: 40px;
  min-width: 56px;
  border-radius: 9px;
  object-fit: cover;
  background: var(--surface-2);
}

.admin-video-row .row-info { flex: 1; min-width: 0; }
.admin-video-row .title {
  font-weight: 600;
  font-size: 0.92rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-video-row .sub {
  color: var(--text-dim);
  font-size: 0.78rem;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.admin-video-row form { margin: 0; flex-shrink: 0; }

.btn-outline {
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.btn-outline:hover { border-color: var(--accent); color: var(--text); background: var(--accent-soft); }
.admin-video-row button.danger {
  padding: 8px 14px;
  font-size: 0.82rem;
  background: transparent;
  border: 1px solid rgba(224, 49, 49, 0.4);
  color: #ff8787;
}
.admin-video-row button.danger:hover { background: rgba(224, 49, 49, 0.15); }

.live-cat-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.live-cat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.live-cat-row[data-category="__all__"] {
  grid-column: 1 / -1;
  background: var(--surface-3);
  border-color: var(--border-soft);
}
.live-cat-row[data-category="__all__"] .live-cat-name { font-weight: 700; color: var(--text); }
.live-cat-name { font-size: 0.85rem; color: var(--text-dim); font-weight: 500; }
.live-cat-count {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-faint);
  min-width: 22px;
  text-align: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--surface-3);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.live-cat-row.active { border-color: var(--accent); }
.live-cat-row.active .live-cat-count {
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 10px rgba(230, 73, 128, 0.35);
}

.rank-list { display: flex; flex-direction: column; gap: 14px; }
.rank-row {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  padding: 6px;
  margin: -6px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.rank-row:hover { background: var(--surface-2); }
.rank-number {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rank-row:nth-child(1) .rank-number {
  color: #3b2a05;
  background: linear-gradient(135deg, #ffe066, #fab005);
  border-radius: 50%;
}
.rank-row:nth-child(2) .rank-number {
  color: #2b2e33;
  background: linear-gradient(135deg, #e9ecef, #adb5bd);
  border-radius: 50%;
}
.rank-row:nth-child(3) .rank-number {
  color: #3d2411;
  background: linear-gradient(135deg, #eaa571, #c9793f);
  border-radius: 50%;
}
.rank-info { flex: 1; min-width: 0; }
.rank-info .title {
  font-weight: 600;
  font-size: 0.88rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 7px;
}
.rank-bar-track {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}
.rank-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.3s ease;
}
.rank-views {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.resource-card {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.resource-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.resource-icon { font-size: 1rem; line-height: 1; }
.resource-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  flex: 1;
}
.resource-percent {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.resource-bar-track {
  height: 7px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
  margin-bottom: 8px;
}
.resource-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease, background 0.3s ease;
}
.resource-bar-fill.level-ok { background: linear-gradient(90deg, #2f9e44, var(--success)); }
.resource-bar-fill.level-warn { background: linear-gradient(90deg, #f08c00, var(--accent-2)); }
.resource-bar-fill.level-danger { background: linear-gradient(90deg, var(--danger), var(--danger-hover)); }
.resource-bar-fill.level-unknown { background: var(--surface-3); }
.resource-sub {
  font-size: 0.76rem;
  color: var(--text-faint);
  line-height: 1.4;
}
.resource-sub.resource-na { color: var(--text-faint); font-style: italic; }

.hw-details {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hw-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-size: 0.82rem;
}
.hw-label {
  flex-shrink: 0;
  color: var(--text-dim);
  font-weight: 600;
  min-width: 130px;
}
.hw-value {
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.hw-value.hw-na { color: var(--text-faint); font-style: italic; white-space: normal; }

.thumb-live { background: linear-gradient(135deg, #1a2230, #232b3d); }
.live-badge {
  left: 6px;
  right: auto;
  background: var(--danger);
  display: flex;
  align-items: center;
  gap: 4px;
}
.live-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: ws-live-pulse 1.4s ease-in-out infinite;
}
@keyframes ws-live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.stream-link-row {
  display: flex;
  gap: 8px;
  margin: 12px 0 6px;
}
.stream-link-row input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 0.82rem;
}
.stream-link-row button {
  flex-shrink: 0;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text);
  font-size: 0.82rem;
  cursor: pointer;
}
.stream-link-row button:hover { background: var(--surface-2); }

/* NayaNet cinematic / Netflix-inspired skin */
:root {
  --bg: #050505;
  --surface: #141414;
  --surface-2: #202020;
  --surface-3: #2b2b2b;
  --border: #303030;
  --text: #f5f5f5;
  --text-dim: #b3b3b3;
  --accent: #e50914;
  --accent-2: #b20710;
  --accent-hover: #ff2a34;
  --accent-soft: rgba(229,9,20,.14);
  --radius: 4px;
}
body {
  background: #050505;
  background-image: radial-gradient(ellipse at 50% -20%, rgba(229,9,20,.10), transparent 48%);
}
header.topbar {
  height: 68px;
  padding: 0 4vw;
  gap: 28px;
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.96), rgba(0,0,0,.78));
}
.brand { display:flex; align-items:center; gap:9px; color:#fff !important; text-decoration:none; font-size:1.55rem !important; font-weight:800 !important; letter-spacing:-.04em; }
.brand-mark { display:grid; place-items:center; width:31px; height:31px; border-radius:3px; background:var(--accent); color:#fff; font-weight:900; font-size:1.15rem; box-shadow:0 6px 18px rgba(229,9,20,.28); }
.main-nav { display:flex; align-items:center; gap:22px; }
.main-nav a { color:#d2d2d2 !important; font-size:.9rem !important; }
.main-nav a:hover,.main-nav .nav-active { color:#fff !important; }
header.topbar .search-wrap { max-width:360px; margin-left:auto; background:rgba(20,20,20,.82); border-color:#444; }
header.topbar .search-wrap:focus-within { border-color:#777; background:#181818; }
main { max-width:none; padding:0 4vw 48px; }
.hero { min-height:500px; margin:0 -4vw 36px; position:relative; overflow:hidden; background-image:var(--hero-image); background-size:cover; background-position:center 30%; display:flex; align-items:flex-end; }
.hero::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.64) 35%, rgba(0,0,0,.08) 72%), linear-gradient(0deg, #050505 0%, transparent 35%); }
.hero-content { position:relative; z-index:2; max-width:600px; padding:0 4vw 72px; }
.hero-kicker { color:#ddd; font-size:.75rem; font-weight:800; letter-spacing:.18em; }
.hero h2 { font-size:clamp(2.4rem,5vw,4.7rem); line-height:.98; margin:14px 0 18px; letter-spacing:-.04em; }
.hero p { color:#ddd; font-size:1rem; line-height:1.55; max-width:560px; }
.hero-actions { display:flex; gap:10px; margin-top:24px; }
.btn { display:inline-flex; align-items:center; gap:9px; padding:11px 22px; border-radius:4px; text-decoration:none; font-weight:700; }
.btn-play { background:#fff; color:#000; }
.btn-play:hover { background:#ddd; color:#000; }
.btn-more { background:rgba(109,109,110,.72); color:#fff; }
.btn-more:hover { background:rgba(109,109,110,.9); color:#fff; }
.pill-row { margin:0 0 28px; gap:8px; overflow-x:auto; flex-wrap:nowrap; scrollbar-width:none; }
.pill-row::-webkit-scrollbar { display:none; }
.pill { background:#181818; border-color:#333; padding:7px 14px; }
.pill.active { background:#fff; color:#000; box-shadow:none; }
.pill.active:hover { background:#ddd; color:#000; }
.grid { grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:30px 16px; }
.card { min-width:0; }
.thumb { border-radius:4px; background:#181818; box-shadow:0 1px 0 rgba(255,255,255,.04) inset; }
.card:hover .thumb { box-shadow:0 10px 30px rgba(0,0,0,.7); transform:scale(1.02); }
.card .info { padding:10px 1px 0; }
.card .info h3 { font-size:.96rem; }
.card .info p { color:#888; }
.cat-badge { background:transparent; color:#aaa; padding:0; }
.duration-badge { background:rgba(0,0,0,.82); border-radius:3px; }
.empty-state { background:#111; border-color:#333; }
@media (max-width: 800px) {
  header.topbar { height:auto; min-height:64px; flex-wrap:wrap; padding:10px 4vw; gap:12px 18px; }
  .main-nav { order:3; width:100%; overflow-x:auto; padding-bottom:3px; }
  header.topbar .search-wrap { order:2; flex:1; min-width:150px; margin:0; }
  .hero { min-height:440px; }
  .grid { grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:24px 10px; }
}

/* ===== NayaNet YouTube-style home ===== */
.yt-app{background:#0f0f0f;color:#f1f1f1;min-height:100vh}
.yt-header{height:64px;position:sticky;top:0;z-index:100;background:#0f0f0f;border-bottom:1px solid #242424;display:flex;align-items:center;padding:0 20px;gap:24px}
.yt-left{display:flex;align-items:center;gap:18px;min-width:220px}
.icon-btn{border:0;background:transparent;color:#fff;font-size:23px;cursor:pointer;width:40px;height:40px;border-radius:50%}
.icon-btn:hover{background:#272727}
.yt-logo{display:flex;align-items:center;gap:7px;color:#fff;text-decoration:none;font-size:21px;font-weight:700;letter-spacing:-.7px}
.yt-logo-icon{width:32px;height:23px;border-radius:7px;background:#ff0033;display:inline-flex;align-items:center;justify-content:center;font-size:13px;color:white;padding-left:2px}
.yt-logo span span{font-weight:400}
.yt-search{height:42px;display:flex;max-width:640px;flex:1;margin:auto;border:1px solid #303030;border-radius:22px;overflow:hidden;background:#121212}
.yt-search:focus-within{border-color:#3ea6ff}
.yt-search input{flex:1;background:transparent;border:0;outline:0;color:#fff;padding:0 18px;font-size:16px}
.yt-search input::placeholder{color:#aaa}
.yt-search button{width:64px;border:0;border-left:1px solid #303030;background:#222;color:#fff;font-size:27px;cursor:pointer}
.yt-search button:hover{background:#303030}
.yt-actions{display:flex;align-items:center;gap:12px;min-width:180px;justify-content:flex-end}
.header-link{color:#fff;text-decoration:none;font-weight:600;padding:9px 12px;border-radius:20px}
.header-link:hover{background:#272727}
.avatar,.channel-avatar{background:#7b1fa2;color:#fff;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:700}
.avatar{width:34px;height:34px;font-size:14px;text-decoration:none}

.yt-sidebar{position:fixed;left:0;top:64px;bottom:0;width:235px;background:#0f0f0f;padding:14px 10px;overflow-y:auto;z-index:50}
.side-item{height:42px;border-radius:10px;display:flex;align-items:center;gap:22px;padding:0 16px;color:#f1f1f1;text-decoration:none;font-size:14px}
.side-item span{width:20px;text-align:center;font-size:20px;color:#ddd}
.side-item:hover,.side-item.active,.side-item.selected{background:#272727}
.side-title{border-top:1px solid #303030;margin:15px 10px 8px;padding:17px 8px 6px;font-size:15px;font-weight:600}

.yt-main{margin-left:235px;padding:18px 26px 50px}
.chip-bar{display:flex;gap:10px;overflow-x:auto;padding:0 0 18px;scrollbar-width:none;position:sticky;top:64px;background:#0f0f0f;z-index:20}
.chip{background:#272727;color:#f1f1f1;text-decoration:none;padding:9px 15px;border-radius:9px;white-space:nowrap;font-size:14px}
.chip:hover{background:#3a3a3a}
.chip.active{background:#f1f1f1;color:#111}

.video-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:38px 16px}
.yt-card{color:#fff;text-decoration:none;min-width:0}
.yt-thumb{aspect-ratio:16/9;background:#272727;border-radius:10px;overflow:hidden;position:relative}
.yt-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:filter .18s,transform .18s}
.yt-card:hover .yt-thumb img{filter:brightness(.78);transform:scale(1.015)}
.thumb-fallback{height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#242424,#111)}
.thumb-fallback span{width:55px;height:55px;border-radius:50%;background:#ff0033;display:flex;align-items:center;justify-content:center;padding-left:3px}
.duration-badge{position:absolute;right:6px;bottom:6px;background:rgba(0,0,0,.9);padding:3px 5px;border-radius:4px;font-size:12px}
.yt-details{display:grid;grid-template-columns:36px 1fr 20px;gap:10px;padding-top:10px}
.channel-avatar{width:36px;height:36px;font-size:13px}
.yt-copy h3{font-size:15px;line-height:1.35;margin:0 0 5px;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.channel-name,.stats{margin:0;color:#aaa;font-size:13px;line-height:1.45}
.channel-name span{display:inline-flex;background:#aaa;color:#0f0f0f;border-radius:50%;width:13px;height:13px;align-items:center;justify-content:center;font-size:9px}
.more-dots{color:#ddd;font-size:20px;opacity:0}
.yt-card:hover .more-dots{opacity:1}

.yt-empty{text-align:center;padding:120px 20px;color:#aaa}
.yt-empty>div{margin:auto;width:70px;height:70px;border-radius:50%;background:#272727;color:#fff;display:flex;align-items:center;justify-content:center;font-size:25px}
.yt-empty h2{color:#fff;margin:18px 0 6px}
.yt-empty p{margin:0}

@media(max-width:1100px){.video-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.yt-sidebar{width:80px}.side-item{flex-direction:column;height:70px;gap:5px;padding:8px 2px;font-size:10px}.side-item span{font-size:22px}.side-title{display:none}.yt-main{margin-left:80px}.yt-left{min-width:160px}}
@media(max-width:750px){.yt-header{padding:0 10px;gap:8px}.yt-left{min-width:auto;gap:5px}.yt-logo{font-size:18px}.yt-logo-icon{width:29px;height:21px}.yt-actions{min-width:auto}.header-link{display:none}.yt-search{order:3;position:absolute;left:10px;right:10px;top:70px;max-width:none}.yt-header{margin-bottom:55px}.yt-sidebar{display:none}.yt-main{margin-left:0;padding:14px 12px 35px}.chip-bar{top:119px}.video-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 10px}.yt-details{grid-template-columns:30px 1fr}.channel-avatar{width:30px;height:30px}.yt-copy h3{font-size:13px}.channel-name,.stats{font-size:11px}.more-dots{display:none}}
@media(max-width:480px){.video-grid{grid-template-columns:1fr}.yt-thumb{border-radius:8px}.yt-actions{display:none}}


/* ===== NayaNet YouTube-inspired Admin Studio ===== */
.admin-yt {
  background: #0f0f0f;
  background-image: none;
}
.admin-yt .admin-header {
  height: 64px;
  padding: 0 22px;
  gap: 18px;
  background: #0f0f0f;
  border-bottom: 1px solid #272727;
  position: sticky;
  top: 0;
  z-index: 30;
}
.admin-brand { display:flex; align-items:center; gap:14px; min-width:250px; }
.admin-menu {
  background: transparent;
  color: #fff;
  padding: 7px 10px;
  font-size: 20px;
  border-radius: 50%;
}
.admin-menu:hover { background:#272727; filter:none; }
.admin-logo {
  display:flex; align-items:center; gap:8px;
  color:#fff !important; text-decoration:none;
  font-size:20px; font-weight:800;
}
.admin-logo > span:last-child > span { font-weight:400; }
.admin-logo-mark {
  display:inline-flex; width:32px; height:23px; align-items:center; justify-content:center;
  background:#ff0033; border-radius:7px; color:#fff; font-size:14px;
}
.admin-page-title {
  color:#aaa; font-size:14px; border-left:1px solid #333; padding-left:14px;
}
.admin-yt .navlinks { margin-left:auto; gap:18px; }
.admin-yt .navlinks a {
  color:#f1f1f1; padding:8px 10px; border-radius:8px;
}
.admin-yt .navlinks a:hover { background:#272727; }

.admin-sidebar {
  position:fixed; left:0; top:64px; bottom:0; width:230px;
  background:#0f0f0f; border-right:1px solid #272727;
  padding:16px 10px; z-index:20; overflow-y:auto;
}
.admin-side {
  display:flex; align-items:center; gap:16px;
  padding:11px 14px; margin:2px 0;
  color:#ddd; text-decoration:none; border-radius:10px;
  font-size:14px;
}
.admin-side span { width:20px; text-align:center; font-size:18px; }
.admin-side:hover { background:#272727; color:#fff; }
.admin-side.active { background:#272727; color:#fff; font-weight:700; }
.admin-side-title {
  color:#8a8a8a; text-transform:uppercase; font-size:11px;
  letter-spacing:.08em; padding:20px 14px 7px;
}
.admin-main {
  max-width:none;
  margin:0;
  margin-left:230px;
  padding:28px 34px 60px;
}
.admin-yt h2 { color:#fff; }
.studio-heading {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:24px; gap:20px;
}
.studio-heading h2 { margin:0 0 5px; font-size:25px; }
.studio-heading p { margin:0; color:#aaa; font-size:13px; }
.studio-upload-btn {
  background:#ff0033; color:#fff; text-decoration:none; font-weight:700;
  padding:11px 17px; border-radius:9px;
}
.studio-upload-btn:hover { background:#e6002e; }

.admin-yt .stat-row { grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.admin-yt .stat-card {
  background:#181818; border:1px solid #303030; border-radius:12px;
  padding:18px; box-shadow:none;
}
.admin-yt .stat-card .stat-label { color:#aaa; }
.admin-yt .stat-card .stat-value {
  background:none; color:#fff; -webkit-text-fill-color:initial;
  font-size:26px;
}
.admin-yt .panel {
  background:#181818; border:1px solid #303030; border-radius:12px;
  box-shadow:none; padding:22px; margin-bottom:18px;
}
.admin-yt .resource-card,
.admin-yt .admin-video-row,
.admin-yt .rank-row,
.admin-yt .live-cat-row {
  background:#202020; border-color:#303030;
}
.admin-yt .badge { background:#272727; border-color:#3a3a3a; color:#bbb; }
.admin-yt .dropzone { background:#202020; border-color:#444; }
.admin-yt .dropzone:hover { background:#282828; }
.admin-yt .empty-state { background:#181818; border-color:#3a3a3a; }

@media (max-width: 900px) {
  .admin-sidebar { width:72px; }
  .admin-side { justify-content:center; padding:12px 8px; }
  .admin-side span { width:auto; }
  .admin-side:not(.active) { font-size:0; }
  .admin-side.active { font-size:0; }
  .admin-side-title { display:none; }
  .admin-main { margin-left:72px; padding:22px 18px 50px; }
  .admin-brand { min-width:auto; }
  .admin-page-title { display:none; }
  .admin-yt .stat-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .admin-yt .admin-header { padding:0 12px; }
  .admin-yt .navlinks a:nth-child(2) { display:none; }
  .admin-yt .navlinks a:nth-child(3) { display:none; }
  .admin-sidebar { display:none; }
  .admin-main { margin-left:0; padding:18px 12px 40px; }
  .studio-heading { align-items:flex-start; flex-direction:column; }
  .admin-yt .stat-row { grid-template-columns:1fr 1fr; }
}


/* ===== YouTube-inspired video watch page ===== */
.yt-watch-page {
  background:#fff;
  color:#0f0f0f;
  background-image:none;
}
.yt-watch-page .yt-header {
  background:#fff;
  border-bottom:1px solid #e5e5e5;
  color:#0f0f0f;
}
.yt-watch-page .yt-logo { color:#0f0f0f !important; }
.yt-watch-page .yt-search { background:#fff; border-color:#d3d3d3; }
.yt-watch-page .yt-search input { color:#0f0f0f; }
.yt-watch-page .yt-search button { color:#0f0f0f; background:#f8f8f8; border-left:1px solid #ddd; }
.yt-watch-page .header-link { color:#111 !important; }
.yt-watch-page .icon-btn { color:#111; }
.yt-watch-page .yt-sidebar { background:#fff; border-color:#e5e5e5; }
.yt-watch-page .side-item { color:#111; }
.yt-watch-page .side-item:hover, .yt-watch-page .side-item.active { background:#f2f2f2; }
.yt-watch-page .side-title { color:#666; }

.yt-watch-main {
  margin-left:230px;
  padding:24px 28px 50px;
  max-width:none;
}
.watch-layout {
  display:grid;
  grid-template-columns:minmax(0, 1fr) 390px;
  gap:28px;
  max-width:1450px;
  margin:0 auto;
}
.watch-primary { min-width:0; }
.watch-player {
  width:100%;
  background:#000;
  border-radius:10px;
  overflow:hidden;
}
.watch-player video {
  display:block;
  width:100%;
  aspect-ratio:16/9;
  object-fit:contain;
  border-radius:0;
  box-shadow:none;
}
.watch-title {
  margin:14px 0 10px;
  color:#0f0f0f;
  font-size:22px;
  line-height:1.3;
  letter-spacing:-.02em;
}
.watch-actions-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  border-bottom:1px solid #e5e5e5;
  padding-bottom:13px;
}
.channel-block {
  display:flex; align-items:center; gap:11px;
  min-width:0;
}
.channel-block strong { display:block; font-size:15px; }
.channel-block small { display:block; color:#666; margin-top:2px; }
.channel-avatar.large {
  width:44px; height:44px; border-radius:50%;
  background:#eee; color:#222;
  display:flex; align-items:center; justify-content:center;
  font-weight:700;
}
.subscribe-btn {
  background:#0f0f0f !important;
  color:#fff !important;
  border-radius:999px !important;
  padding:9px 16px !important;
  margin-left:6px;
}
.action-buttons { display:flex; gap:7px; align-items:center; }
.action-buttons button {
  background:#f2f2f2 !important;
  color:#111 !important;
  border:0;
  border-radius:999px;
  padding:9px 13px;
  font-size:14px;
}
.action-buttons button:hover { background:#e5e5e5 !important; filter:none; }
.watch-description {
  margin-top:14px;
  background:#f2f2f2;
  border-radius:10px;
  padding:13px 15px;
  color:#111;
}
.watch-stats { font-weight:700; font-size:14px; }
.watch-category {
  display:inline-block;
  margin-left:8px;
  font-weight:500;
  color:#555;
}
.watch-description p { margin:8px 0 6px; line-height:1.5; }
.show-more { font-size:13px; }
.comments-block { margin-top:24px; }
.comments-block h3 { margin:0 0 18px; font-size:18px; }
.comment-input {
  display:flex; align-items:center; gap:12px;
  padding-bottom:12px; border-bottom:1px solid #ddd;
  color:#666;
}
.comment-input .avatar {
  width:38px; height:38px; border-radius:50%;
  background:#eee; display:flex; align-items:center; justify-content:center;
  color:#333; font-weight:700;
}

.related-column { min-width:0; }
.related-heading {
  font-size:19px; font-weight:700;
  margin:2px 0 12px;
}
.related-card {
  display:grid;
  grid-template-columns:176px minmax(0,1fr);
  gap:11px;
  margin-bottom:14px;
  color:#0f0f0f !important;
  text-decoration:none;
}
.related-thumb {
  position:relative;
  aspect-ratio:16/9;
  background:#eee;
  border-radius:7px;
  overflow:hidden;
}
.related-thumb img {
  width:100%; height:100%; object-fit:cover; display:block;
}
.related-copy { min-width:0; padding-top:1px; }
.related-copy h3 {
  margin:0 0 6px;
  font-size:15px; line-height:1.25; font-weight:700;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.related-copy p { margin:0 0 5px; color:#555; font-size:13px; }
.related-copy span { color:#666; font-size:12px; }
.related-empty { color:#666; padding:20px 0; }

@media (max-width:1200px) {
  .watch-layout { grid-template-columns:minmax(0,1fr) 330px; gap:20px; }
  .related-card { grid-template-columns:145px minmax(0,1fr); }
}
@media (max-width:900px) {
  .yt-watch-main { margin-left:72px; padding:18px; }
  .watch-layout { grid-template-columns:1fr; }
  .related-column { border-top:1px solid #ddd; padding-top:18px; }
  .related-card { grid-template-columns:220px minmax(0,1fr); }
}
@media (max-width:600px) {
  .yt-watch-main { margin-left:0; padding:12px; }
  .watch-title { font-size:18px; }
  .watch-actions-row { align-items:flex-start; flex-direction:column; }
  .action-buttons { width:100%; overflow:auto; }
  .action-buttons button { white-space:nowrap; }
  .related-card { grid-template-columns:150px minmax(0,1fr); }
  .related-copy h3 { font-size:14px; }
}


/* ===== Light YouTube-style home/search theme ===== */
body.yt-app:not(.yt-watch-page) {
  background:#fff !important;
  color:#0f0f0f !important;
}
body.yt-app:not(.yt-watch-page) .yt-header {
  background:#fff !important;
  border-bottom:1px solid #e5e5e5 !important;
}
body.yt-app:not(.yt-watch-page) .icon-btn { color:#0f0f0f !important; }
body.yt-app:not(.yt-watch-page) .icon-btn:hover { background:#f2f2f2 !important; }
body.yt-app:not(.yt-watch-page) .yt-logo { color:#0f0f0f !important; }
body.yt-app:not(.yt-watch-page) .yt-search {
  background:#fff !important;
  border-color:#d3d3d3 !important;
}
body.yt-app:not(.yt-watch-page) .yt-search:focus-within {
  background:#fff !important;
  border-color:#777 !important;
  box-shadow:inset 0 1px 2px rgba(0,0,0,.05);
}
body.yt-app:not(.yt-watch-page) .yt-search input {
  background:#fff !important;
  color:#0f0f0f !important;
  -webkit-text-fill-color:#0f0f0f !important;
  caret-color:#0f0f0f !important;
}
body.yt-app:not(.yt-watch-page) .yt-search input:focus {
  background:#fff !important;
  color:#0f0f0f !important;
  -webkit-text-fill-color:#0f0f0f !important;
}
body.yt-app:not(.yt-watch-page) .yt-search input::placeholder { color:#606060 !important; }
body.yt-app:not(.yt-watch-page) .yt-search button {
  background:#f8f8f8 !important;
  color:#0f0f0f !important;
  border-left-color:#d3d3d3 !important;
}
body.yt-app:not(.yt-watch-page) .yt-search button:hover { background:#f0f0f0 !important; }
body.yt-app:not(.yt-watch-page) .header-link { color:#0f0f0f !important; }
body.yt-app:not(.yt-watch-page) .header-link:hover { background:#f2f2f2 !important; }
body.yt-app:not(.yt-watch-page) .yt-sidebar {
  background:#fff !important;
  border-right:1px solid #e5e5e5 !important;
}
body.yt-app:not(.yt-watch-page) .side-item { color:#0f0f0f !important; }
body.yt-app:not(.yt-watch-page) .side-item:hover,
body.yt-app:not(.yt-watch-page) .side-item.active,
body.yt-app:not(.yt-watch-page) .side-item.selected { background:#f2f2f2 !important; }
body.yt-app:not(.yt-watch-page) .side-item span { color:#333 !important; }
body.yt-app:not(.yt-watch-page) .side-title { color:#555 !important; border-top-color:#ddd !important; }
body.yt-app:not(.yt-watch-page) .yt-main { background:#fff !important; }
body.yt-app:not(.yt-watch-page) .chip-bar { background:#fff !important; }
body.yt-app:not(.yt-watch-page) .chip {
  background:#f2f2f2 !important;
  color:#0f0f0f !important;
}
body.yt-app:not(.yt-watch-page) .chip:hover { background:#e5e5e5 !important; }
body.yt-app:not(.yt-watch-page) .chip.active { background:#0f0f0f !important; color:#fff !important; }
body.yt-app:not(.yt-watch-page) .yt-card { color:#0f0f0f !important; }
body.yt-app:not(.yt-watch-page) .yt-thumb { background:#eee !important; }
body.yt-app:not(.yt-watch-page) .channel-name,
body.yt-app:not(.yt-watch-page) .stats { color:#606060 !important; }
body.yt-app:not(.yt-watch-page) .more-dots { color:#222 !important; }
body.yt-app:not(.yt-watch-page) .yt-empty { color:#606060 !important; }
body.yt-app:not(.yt-watch-page) .yt-empty h2 { color:#0f0f0f !important; }

/* All categories */
.category-chips, .chips {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  overflow:visible;
  max-width:100%;
}
.category-chips .chip, .chips .chip {
  flex:0 0 auto;
  white-space:nowrap;
}
@media (max-width:700px) {
  .category-chips, .chips { overflow-x:auto; flex-wrap:nowrap; padding-bottom:6px; }
}

/* FINAL SEARCH FIX: keep search white in every light YouTube-style page */
.yt-app .yt-search {
  background:#fff !important;
  border:1px solid #d3d3d3 !important;
  color:#0f0f0f !important;
}
.yt-app .yt-search:focus-within {
  background:#fff !important;
  border-color:#aaa !important;
  box-shadow:none !important;
}
.yt-app .yt-search input,
.yt-app .yt-search input:focus {
  background:#fff !important;
  color:#0f0f0f !important;
  -webkit-text-fill-color:#0f0f0f !important;
  caret-color:#0f0f0f !important;
  outline:none !important;
}
.yt-app .yt-search input::placeholder {
  color:#606060 !important;
  opacity:1 !important;
}
.yt-app .yt-search button {
  background:#f8f8f8 !important;
  color:#111 !important;
  border-left:1px solid #ddd !important;
}
.yt-app .yt-search button:hover {
  background:#eee !important;
}


/* FINAL YOUTUBE STYLE */
body { background:#fff !important; color:#0f0f0f !important; }
.yt-header { background:#fff !important; border-bottom:1px solid #e5e5e5 !important; }
.yt-logo { color:#0f0f0f !important; }
.yt-search, .yt-search:focus-within { background:#fff !important; border:1px solid #c6c6c6 !important; box-shadow:none !important; }
.yt-search input, .yt-search input:focus, .yt-search input:active {
  background:#fff !important; color:#0f0f0f !important; caret-color:#0f0f0f !important; outline:none !important;
}
.yt-search input::placeholder { color:#606060 !important; opacity:1 !important; }
.yt-search button { background:#f8f8f8 !important; color:#111 !important; }
.yt-sidebar { background:#fff !important; border-right:1px solid #e5e5e5 !important; }
.side-item { color:#0f0f0f !important; }
.side-item:hover, .side-item.selected { background:#f2f2f2 !important; }
.chip { background:#f2f2f2 !important; color:#0f0f0f !important; border:0 !important; }
.chip.active { background:#0f0f0f !important; color:#fff !important; }

/* Sidebar dark YouTube style */
.yt-sidebar{background:#181818!important;border-right:1px solid #303030!important}
.yt-sidebar .side-item{color:#f1f1f1!important}
.yt-sidebar .side-item:hover,.yt-sidebar .side-item.active,.yt-sidebar .side-item.selected{background:#303030!important;color:#fff!important}
.yt-sidebar .side-title{color:#aaa!important}

/* Premium YouTube-inspired sidebar accent */
.yt-sidebar{
  background:linear-gradient(180deg,#171717 0%,#101010 100%)!important;
  border-right:1px solid #2b2b2b!important;
}
.yt-sidebar .side-item{
  color:#e8e8e8!important;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
.yt-sidebar .side-item:hover{
  background:#252525!important;
  color:#fff!important;
}
.yt-sidebar .side-item.active,
.yt-sidebar .side-item.selected{
  background:linear-gradient(90deg,#ff0033 0%,#e91e4d 100%)!important;
  color:#fff!important;
  box-shadow:0 4px 14px rgba(255,0,51,.18);
}
.yt-sidebar .side-item.active span,
.yt-sidebar .side-item.selected span{
  color:#fff!important;
}
.yt-sidebar .side-title{
  color:#9d9d9d!important;
}

/* Related + Recent Videos */
.section-heading-row{
  display:flex;align-items:baseline;justify-content:space-between;
  gap:12px;margin:28px 0 14px;
}
.section-heading-row h2{margin:0;font-size:20px;color:#0f0f0f}
.section-heading-row span{font-size:12px;color:#666}
.recent-section{margin-top:10px;padding-top:8px;border-top:1px solid #e5e5e5}
.watch-recent-section{max-width:1450px;margin:8px auto 0}
.watch-recent-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.recent-mini-card{color:#0f0f0f!important;text-decoration:none;min-width:0}
.recent-mini-thumb{aspect-ratio:16/9;background:#eee;border-radius:8px;overflow:hidden;margin-bottom:8px}
.recent-mini-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.recent-mini-card h3{font-size:14px;line-height:1.3;margin:0 0 4px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.recent-mini-card p{font-size:12px;color:#666;margin:0}
@media(max-width:900px){.watch-recent-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.watch-recent-grid{grid-template-columns:1fr 1fr;gap:12px}.section-heading-row h2{font-size:18px}}

/* Professional category navigation */
.chip-bar{scrollbar-width:thin}
.chip{font-weight:600!important}
.yt-sidebar .side-title{
  margin-top:18px!important;
  margin-bottom:7px!important;
  padding-left:14px!important;
  text-transform:uppercase!important;
  letter-spacing:.08em!important;
  font-size:11px!important;
}
.yt-sidebar .side-item span{
  width:24px;display:inline-flex;justify-content:center;opacity:.9;
}

/* Open / spacious professional category buttons */
.chip-bar{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:12px!important;
  padding:12px 4px 16px!important;
}
.chip{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:42px!important;
  padding:9px 18px!important;
  border-radius:10px!important;
  background:#f4f4f4!important;
  border:1px solid #e1e1e1!important;
  color:#222!important;
  font-size:14px!important;
  font-weight:600!important;
  letter-spacing:.1px!important;
  box-shadow:0 1px 2px rgba(0,0,0,.05)!important;
  transition:all .18s ease!important;
}
.chip:hover{
  background:#fff!important;
  border-color:#c9c9c9!important;
  transform:translateY(-1px)!important;
  box-shadow:0 3px 10px rgba(0,0,0,.10)!important;
}
.chip.active{
  background:#ff0033!important;
  border-color:#ff0033!important;
  color:#fff!important;
  box-shadow:0 4px 12px rgba(255,0,51,.20)!important;
}
@media(max-width:700px){
  .chip-bar{flex-wrap:nowrap!important;overflow-x:auto!important;padding-bottom:12px!important}
  .chip{flex:0 0 auto!important}
}

/* Premium professional category buttons */
.chip-bar{
  gap:10px!important;
  padding:14px 4px 18px!important;
}
.chip{
  min-height:40px!important;
  padding:8px 17px!important;
  border-radius:8px!important;
  background:#fff!important;
  border:1px solid #d9d9d9!important;
  color:#202124!important;
  font-size:13px!important;
  font-weight:600!important;
  box-shadow:0 1px 3px rgba(0,0,0,.08)!important;
}
.chip:hover{
  background:#f8f8f8!important;
  border-color:#bdbdbd!important;
  transform:translateY(-1px)!important;
  box-shadow:0 3px 8px rgba(0,0,0,.12)!important;
}
.chip.active{
  background:#111!important;
  color:#fff!important;
  border-color:#111!important;
  box-shadow:0 3px 10px rgba(0,0,0,.18)!important;
}

/* Premium category button glow */
.chip{
  position:relative!important;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease,background .2s ease!important;
}
.chip:hover{
  transform:translateY(-2px)!important;
  border-color:#ff1744!important;
  box-shadow:
    0 0 0 1px rgba(255,23,68,.18),
    0 4px 14px rgba(255,23,68,.18),
    0 0 18px rgba(255,23,68,.12)!important;
}
.chip.active{
  background:linear-gradient(135deg,#ff1744,#d50000)!important;
  border-color:#ff1744!important;
  color:#fff!important;
  box-shadow:
    0 0 0 1px rgba(255,23,68,.25),
    0 4px 16px rgba(255,23,68,.32),
    0 0 24px rgba(255,23,68,.24)!important;
}
.chip.active:hover{
  box-shadow:
    0 0 0 2px rgba(255,23,68,.22),
    0 5px 20px rgba(255,23,68,.40),
    0 0 30px rgba(255,23,68,.28)!important;
}

/* Three-dot video menu */
.more-dots{
  position:relative!important;
  border:0!important;
  background:transparent!important;
  color:#606060!important;
  font-size:22px!important;
  line-height:1!important;
  cursor:pointer!important;
  padding:6px!important;
  flex:0 0 auto!important;
}
.more-dots:hover{color:#111!important;background:#f2f2f2!important;border-radius:50%!important}
.video-menu{
  display:none;
  position:absolute;
  right:0;
  top:34px;
  z-index:100;
  width:170px;
  padding:6px 0;
  background:#fff;
  color:#222;
  border:1px solid #e2e2e2;
  border-radius:10px;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
  text-align:left;
}
.video-menu.open{display:block}
.video-menu span{
  display:block;
  padding:10px 14px;
  font-size:13px;
  font-weight:500;
  white-space:nowrap;
}
.video-menu span:hover{background:#f3f3f3}
