/* MMTV v2 — extras on top of the shared MMTV stylesheet */

/* Brand v2 tag */
.brand-tag { font-style: normal; font-size: .62rem; font-weight: 700; letter-spacing: .04em; padding: 2px 6px; border-radius: 6px; background: rgba(22,214,196,.16); color: var(--brand-2); vertical-align: middle; margin-left: 2px; }
.side-num { margin-left: auto; font-size: .7rem; font-weight: 700; color: var(--muted); background: rgba(255,255,255,.06); padding: 1px 7px; border-radius: 999px; }

/* Flags */
.flag { width: 20px; height: 14px; object-fit: cover; border-radius: 3px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255,255,255,.1); }
.card-info { display: flex; align-items: center; gap: 8px; }
.sched-day-head h2 .flag { width: 24px; height: 17px; margin-right: 4px; }
.sched-day-head h2 { display: flex; align-items: center; }

/* Channels view layout (mirrors schedule view) */
.channels-view { padding: 18px 32px 60px; max-width: 1180px; margin-inline: auto; }

/* Channels directory grid */
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ch-tile { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 16px 12px; border-radius: 14px; cursor: pointer; background: var(--card); border: 1px solid var(--stroke); color: var(--text); transition: all .2s var(--ease); text-align: center; }
.ch-tile:hover { background: var(--card-hover); transform: translateY(-3px); border-color: rgba(109,94,252,.45); }
.ch-tile.offline { opacity: .5; }
.ch-logo { display: grid; place-items: center; width: 100%; height: 56px; }
.ch-logo img { max-width: 92%; max-height: 56px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.ch-logo.noimg::after { content: "TV"; font-family: var(--font-head); font-weight: 700; color: var(--muted); font-size: 1.1rem; }
.ch-name { font-size: .82rem; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ch-status { font-size: .64rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; letter-spacing: .03em; }
.ch-status.on { background: rgba(22,214,196,.16); color: var(--brand-2); }
.ch-status.off { background: rgba(255,255,255,.08); color: var(--muted); }

/* Channel picker on the watch page (mirrors stream-row) */
.ch-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.ch-row { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: 12px; cursor: pointer; background: rgba(255,255,255,.025); border: 1px solid var(--stroke); color: var(--text); transition: all .2s var(--ease); text-align: left; }
.ch-row:hover { background: var(--card-hover); transform: translateY(-2px); border-color: rgba(109,94,252,.4); }
.ch-row.active { border-color: var(--brand-2); background: rgba(22,214,196,.12); box-shadow: 0 0 0 3px rgba(22,214,196,.12); }
.ch-logo.sm { width: 40px; height: 30px; flex-shrink: 0; }
.ch-logo.sm img { max-height: 30px; }
.ch-logo.sm.noimg::after { content: "TV"; font-size: .7rem; }
.ch-row .s-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.ch-row .s-name { font-weight: 700; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-row .s-lang { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-row .s-views { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; color: #ff8a4a; font-weight: 600; white-space: nowrap; }
.ch-row .s-views svg { width: 13px; height: 13px; flex-shrink: 0; }

@media (max-width: 900px) {
  .channels-view { padding-left: 16px; padding-right: 16px; padding-bottom: 70px; }
}
@media (max-width: 600px) {
  .ch-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .ch-picker { grid-template-columns: 1fr; }
}
