/* ElseTube Music, Radio & Live TV. Spotify-style dark UI. Elsetube theme only. */

#main-container.etm-host {
  padding: 0 !important;
  max-width: none;
}
#main-container.etm-host > .ads-placment:empty { display: none; }

.etm,
.etm-player,
.etm-pop,
.etm-modal,
.etm-toast {
  --etm-bg: #121212;
  --etm-bg-rgb: 18, 18, 18;
  --etm-el: #1a1a1a;
  --etm-card: #181818;
  --etm-card-hover: #282828;
  --etm-hi: #2a2a2a;
  --etm-text: #ffffff;
  --etm-muted: #b3b3b3;
  --etm-faint: #7a7a7a;
  --etm-line: rgba(255, 255, 255, 0.1);
  --etm-accent: #1ed760;
  --etm-accent-press: #1fdf64;
  --etm-pad: clamp(16px, 2.6vw, 32px);
  --etm-top: 56px;
  --et-text: #ffffff;
  --et-text-secondary: #b3b3b3;
  --et-muted: #b3b3b3;
  --et-surface: #1f1f1f;
  --et-line: rgba(255, 255, 255, 0.1);
  --color-dark: #ffffff;
  --color-primary: #ffffff;
  font-family: var(--et-font, "Roboto", Arial, sans-serif);
  color: var(--etm-text);
}
.etm {
  position: relative;
  min-height: calc(100vh - var(--etm-top));
  background: var(--etm-bg);
  padding-bottom: 48px;
  overflow-x: clip;
  isolation: isolate;
}
.etm a, .etm-player a, .etm-pop a { color: inherit; text-decoration: none; }
.etm a:hover { text-decoration: none; }
.etm h1, .etm h2, .etm h3 { color: var(--etm-text); font-family: inherit; margin: 0; }
.etm svg, .etm-player svg { flex-shrink: 0; }
.etm button, .etm-player button, .etm-pop button, .etm-modal button { font-family: inherit; }
.etm :focus-visible, .etm-player :focus-visible, .etm-pop :focus-visible, .etm-modal :focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.etm-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.etm-muted { color: var(--etm-muted); }
.etm-i { width: 24px; height: 24px; display: block; }

/* ---------------------------------------------------------------- nav */

.etm-nav {
  position: sticky;
  top: var(--etm-top);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px var(--etm-pad);
  background: rgba(var(--etm-bg-rgb), 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.etm-nav__tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 0 1 auto;
  min-width: 0;
}
.etm-nav__tabs::-webkit-scrollbar { display: none; }
.etm-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--etm-text) !important;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s;
}
.etm-tab .etm-i { width: 18px; height: 18px; opacity: 0.85; }
.etm-tab:hover { background: rgba(255, 255, 255, 0.14); }
.etm-tab.is-active { background: #fff; color: #000 !important; }
.etm-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 260px;
  max-width: 420px;
  margin-left: auto;
}
.etm-search .etm-i { position: absolute; left: 12px; width: 20px; height: 20px; color: var(--etm-muted); pointer-events: none; }
.etm-search input {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #242424 !important;
  color: #fff !important;
  font-size: 14px;
  box-shadow: none !important;
  transition: border-color 0.15s, background 0.15s;
}
.etm-search input::placeholder { color: #8a8a8a; }
.etm-search input:hover { background: #2a2a2a !important; border-color: #3a3a3a; }
.etm-search input:focus { border-color: #fff; outline: none; }
.etm-search--wide { max-width: 520px; margin: 0 0 16px; }
.etm-nav__up { flex-shrink: 0; }

.etm-body { padding: 18px var(--etm-pad) 0; }

/* ------------------------------------------------------------ buttons */

.etm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.1s, background 0.15s, border-color 0.15s;
}
.etm-btn .etm-i { width: 18px; height: 18px; }
.etm-btn:hover { transform: scale(1.03); }
.etm-btn:active { transform: scale(0.98); }
.etm-btn--light { background: #fff; color: #000 !important; }
.etm-btn--green { background: var(--etm-accent); color: #000 !important; }
.etm-btn--green:hover { background: var(--etm-accent-press); }
.etm-btn--outline { background: transparent; color: #fff !important; border: 1px solid #7c7c7c; }
.etm-btn--outline:hover { border-color: #fff; }
.etm-btn--outline.is-on { border-color: #fff; }
.etm-btn--danger { background: transparent; color: #f15e6c !important; border: 1px solid #f15e6c; margin-left: auto; }
.etm-btn--sm { height: 32px; padding: 0 14px; font-size: 13px; }
.etm-btn:disabled { opacity: 0.6; cursor: wait; }

.etm-ibtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--etm-muted);
  cursor: pointer;
  position: relative;
  transition: color 0.15s, transform 0.1s;
}
.etm-ibtn:hover { color: #fff; transform: scale(1.06); }
.etm-ibtn .etm-i { width: 20px; height: 20px; }
.etm-ibtn--lg { width: 44px; height: 44px; }
.etm-ibtn--lg .etm-i { width: 28px; height: 28px; }
.etm-ibtn.is-on { color: var(--etm-accent); }
.etm-like .etm-i--heart { fill: none; }
.etm-like .etm-i--heart path { fill: transparent; stroke: currentColor; stroke-width: 1.8; }
.etm-like.is-on .etm-i--heart path { fill: var(--etm-accent); stroke: var(--etm-accent); }
.etm-like.is-on { color: var(--etm-accent); }

.etm-fab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--etm-accent);
  color: #000;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
  transition: transform 0.12s, background 0.15s;
}
.etm-fab:hover { transform: scale(1.06); background: var(--etm-accent-press); }
.etm-fab .etm-i { width: 24px; height: 24px; }
.etm-fab--lg { width: 56px; height: 56px; }
.etm-fab--lg .etm-i { width: 28px; height: 28px; }
.etm-fab .etm-i--pause,
.etm-fab.is-playing .etm-i--play,
.etm-row__play .etm-i--pause,
.etm-row.is-playing .etm-row__play .etm-i--play { display: none; }
.etm-fab.is-playing .etm-i--pause,
.etm-row.is-playing .etm-row__play .etm-i--pause { display: block; }
.etm-fab.is-loading { opacity: 0.7; pointer-events: none; }

/* -------------------------------------------------------- home blocks */

.etm-greet {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 8px 0 18px !important;
}
.etm-quickgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}
.etm-quick {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding-right: 64px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: background 0.2s;
}
.etm-quick:hover { background: rgba(255, 255, 255, 0.18); }
.etm-quick .etm-cover { width: 64px; height: 64px; border-radius: 0; flex-shrink: 0; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
.etm-quick b { font-size: 14px; font-weight: 700; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.etm-quick .etm-fab { position: absolute; right: 10px; width: 40px; height: 40px; opacity: 0; transition: opacity 0.2s, transform 0.12s; }
.etm-quick .etm-fab .etm-i { width: 20px; height: 20px; }
.etm-quick:hover .etm-fab, .etm-quick .etm-fab.is-playing, .etm-quick:focus-within .etm-fab { opacity: 1; }

.etm-shelf { margin: 0 0 30px; }
.etm-shelf__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.etm-shelf__head h2 { font-size: clamp(19px, 2vw, 24px); font-weight: 800; letter-spacing: -0.01em; }
.etm-shelf__head h2 a:hover { text-decoration: underline; }
.etm-shelf__more { color: var(--etm-muted) !important; font-size: 13px; font-weight: 700; white-space: nowrap; }
.etm-shelf__more:hover { text-decoration: underline !important; }
.etm-shelf__row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(150px, 1fr);
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 -12px;
  padding: 0 0 4px;
}
.etm-shelf__row::-webkit-scrollbar { display: none; }
.etm-shelf__row > .etm-card { scroll-snap-align: start; }

.etm-card {
  position: relative;
  min-width: 0;
  padding: 12px;
  border-radius: 8px;
  transition: background 0.25s;
}
.etm-card:hover { background: var(--etm-card-hover); }
.etm-card__art {
  position: relative;
  margin-bottom: 10px;
  aspect-ratio: 1;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.etm-card__art > a { display: block; width: 100%; height: 100%; }
.etm-card__art .etm-cover { width: 100%; height: 100%; border-radius: 6px; }
.etm-card.is-round .etm-card__art, .etm-card.is-round .etm-cover { border-radius: 50%; }
.etm-card__art .etm-fab {
  position: absolute;
  right: 8px;
  bottom: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, background 0.15s;
}
.etm-card:hover .etm-fab, .etm-card:focus-within .etm-fab, .etm-card .etm-fab.is-playing { opacity: 1; transform: translateY(0); }
.etm-card__title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.etm-card__title::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.etm-card__art { z-index: 1; }
.etm-card__sub {
  margin-top: 4px;
  color: var(--etm-muted);
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.etm-card.is-round .etm-card__title, .etm-card.is-round .etm-card__sub { text-align: left; }

.etm-cover {
  display: block;
  object-fit: cover;
  background: #282828;
  border-radius: 4px;
}
.etm-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, hsl(var(--h, 220), 55%, 38%), hsl(calc(var(--h, 220) + 40), 60%, 18%));
  color: rgba(255, 255, 255, 0.85);
}
.etm-ph .etm-i { width: 38%; height: 38%; max-width: 64px; max-height: 64px; }
.etm-mosaic { display: grid !important; grid-template-columns: 1fr 1fr; overflow: hidden; }
.etm-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 1; }
.etm-liked-art {
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #450af5, #8e8ee5 100%);
  color: #fff;
}
.etm-liked-art .etm-i { width: 40%; height: 40%; }

.etm-genres {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.etm-genre {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  padding: 14px;
  border-radius: 8px;
  background: var(--g);
  overflow: hidden;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 0.15s, filter 0.15s;
}
.etm-genre:hover { filter: brightness(1.08); }
.etm-genre span { position: relative; z-index: 1; display: block; max-width: 75%; line-height: 1.15; }
.etm-genre i {
  position: absolute;
  right: -10px;
  bottom: -6px;
  width: 84px;
  height: 84px;
  transform: rotate(25deg);
  color: rgba(0, 0, 0, 0.28);
}
.etm-genre i .etm-i { width: 100%; height: 100%; }
.etm-genre-hero {
  margin: -18px calc(var(--etm-pad) * -1) 0;
  padding: 80px var(--etm-pad) 28px;
  background: linear-gradient(180deg, var(--g) 0%, color-mix(in srgb, var(--g) 55%, var(--etm-bg)) 100%);
}
.etm-genre-hero h1 { font-size: clamp(40px, 7vw, 88px); font-weight: 900; letter-spacing: -0.04em; line-height: 1; margin-top: 8px; }

.etm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.etm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #2a2a2a;
  color: #fff !important;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s;
}
.etm-chip small { color: var(--etm-muted); font-size: 11px; }
.etm-chip:hover { background: #3a3a3a; }
.etm-chip.is-active { background: #fff; color: #000 !important; }
.etm-chip.is-active small { color: #555; }

.etm-banner { margin: 6px 0 30px; display: flex; justify-content: center; }
.etm-banner:empty { display: none; }

/* -------------------------------------------------------------- hero */

.etm-hero {
  --hc: hsl(var(--h, 220), 45%, 38%);
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin: -18px calc(var(--etm-pad) * -1) 0;
  padding: 64px var(--etm-pad) 24px;
  background: linear-gradient(180deg, var(--hc) 0%, color-mix(in srgb, var(--hc) 45%, #121212) 100%);
}
.etm-hero__art { flex-shrink: 0; width: clamp(140px, 18vw, 232px); aspect-ratio: 1; box-shadow: 0 4px 60px rgba(0, 0, 0, 0.5); border-radius: 6px; }
.etm-hero__art .etm-cover { width: 100%; height: 100%; border-radius: 6px; }
.etm-hero.is-round .etm-hero__art, .etm-hero.is-round .etm-cover { border-radius: 50%; }
.etm-hero__text { min-width: 0; padding-bottom: 4px; }
.etm-hero__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}
.etm-hero__label .etm-i { width: 18px; height: 18px; color: #3d91f4; }
.etm-hero__title {
  margin: 6px 0 10px !important;
  font-size: clamp(32px, 6.2vw, 92px) !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em;
  line-height: 1;
  overflow-wrap: anywhere;
}
.etm-hero__title.is-mid { font-size: clamp(28px, 4.4vw, 64px) !important; }
.etm-hero__title.is-long { font-size: clamp(24px, 3vw, 40px) !important; letter-spacing: -0.02em; }
.etm-hero__desc { color: rgba(255, 255, 255, 0.72); font-size: 14px; margin: 0 0 8px; }
.etm-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.82);
}
.etm-hero__meta b, .etm-hero__meta b a { color: #fff; font-weight: 700; }
.etm-hero__meta a:hover { text-decoration: underline; }
.etm-hero__meta i { font-style: normal; color: rgba(255, 255, 255, 0.6); }
.etm-hero__avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.etm-actions {
  --hc: hsl(var(--h, 220), 45%, 38%);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 0 calc(var(--etm-pad) * -1) 18px;
  padding: 22px var(--etm-pad);
  background: linear-gradient(180deg, color-mix(in srgb, var(--hc) 28%, #121212) 0%, #121212 220px);
}
.etm-pend { color: #f5a623; font-style: normal; font-weight: 700; }

/* ------------------------------------------------------------ tracks */

.etm-tracks { --cols: 40px minmax(0, 1fr) 36px 70px 40px; margin-bottom: 24px; }
.etm-tracks.has-album { --cols: 40px minmax(0, 6fr) minmax(0, 4fr) 36px 70px 40px; }
.etm-tracks.has-date { --cols: 40px minmax(0, 6fr) minmax(0, 2fr) 36px 70px 40px; }
.etm-tracks.has-album.has-date { --cols: 40px minmax(0, 6fr) minmax(0, 3fr) minmax(0, 2fr) 36px 70px 40px; }
.etm-tracks__head, .etm-row {
  display: grid;
  grid-template-columns: var(--cols);
  align-items: center;
  gap: 12px;
  padding: 0 12px;
}
.etm-tracks__head {
  height: 36px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--etm-line);
  color: var(--etm-muted);
  font-size: 13px;
}
.etm-tracks__head .etm-i { width: 16px; height: 16px; }
.etm-tracks__head > span:first-child { text-align: center; }
.etm-c-dur { text-align: right; color: var(--etm-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.etm-tracks__head .etm-c-dur { display: flex; justify-content: flex-end; }
.etm-c-dur small { display: block; font-size: 11px; color: var(--etm-faint); }
.etm-row {
  min-height: 56px;
  border-radius: 4px;
  transition: background 0.1s;
}
.etm-row:hover, .etm-row:focus-within { background: rgba(255, 255, 255, 0.1); }
.etm-row__n { position: relative; display: flex; align-items: center; justify-content: center; height: 40px; color: var(--etm-muted); font-variant-numeric: tabular-nums; }
.etm-row__n b { font-weight: 400; font-size: 15px; }
.etm-row__play {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}
.etm-row__play .etm-i { width: 18px; height: 18px; }
.etm-row:hover .etm-row__n b, .etm-row:focus-within .etm-row__n b { visibility: hidden; }
.etm-row:hover .etm-row__play, .etm-row:focus-within .etm-row__play { display: flex; }
.etm-eq { display: none; position: absolute; gap: 2px; align-items: flex-end; height: 14px; }
.etm-eq i { width: 3px; background: var(--etm-accent); animation: etm-eq 0.9s ease-in-out infinite; }
.etm-eq i:nth-child(2) { animation-delay: -0.3s; }
.etm-eq i:nth-child(3) { animation-delay: -0.6s; }
@keyframes etm-eq { 0%, 100% { height: 3px; } 50% { height: 14px; } }
.etm-row.is-current .etm-row__title { color: var(--etm-accent) !important; }
.etm-row.is-current .etm-row__n b { color: var(--etm-accent); }
.etm-row.is-playing .etm-row__n b { visibility: hidden; }
.etm-row.is-playing:not(:hover):not(:focus-within) .etm-eq { display: flex; }
.etm-row__main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.etm-row__cover { width: 40px !important; height: 40px !important; flex-shrink: 0; border-radius: 4px; }
.etm-row__cover.etm-ph .etm-i { width: 20px; height: 20px; }
.etm-row__text { display: flex; flex-direction: column; min-width: 0; }
.etm-row__title {
  color: #fff !important;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.etm-row__title:hover { text-decoration: underline !important; }
.etm-row__by {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--etm-muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.etm-row__by a:hover, .etm-c-album a:hover { color: #fff; text-decoration: underline !important; }
.etm-row:has(.etm-row__desc) { padding-top: 10px; padding-bottom: 10px; }
.etm-row__desc { color: var(--etm-faint); font-size: 13px; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.etm-e {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.6);
  color: #121212;
  font-size: 9px;
  font-weight: 700;
  font-style: normal;
  flex-shrink: 0;
}
.etm-row .etm-pend { font-size: 12px; }
.etm-c-album, .etm-c-date { color: var(--etm-muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etm-row__like .etm-like:not(.is-on), .etm-row__more { opacity: 0; }
.etm-row:hover .etm-like, .etm-row:focus-within .etm-like, .etm-row:hover .etm-row__more, .etm-row:focus-within .etm-row__more { opacity: 1; }
.etm-tracks.is-compact { --cols: 40px minmax(0, 1fr) 36px 60px 40px; }

/* ----------------------------------------------------------- columns */

.etm-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; margin-bottom: 28px; }
.etm-cols__main:empty + .etm-cols__side { grid-column: 1 / -1; max-width: 420px; }
.etm-about h2, .etm-lyrics h2 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.etm-about p { color: var(--etm-muted); font-size: 15px; line-height: 1.6; margin: 0 0 20px; }
.etm-lyrics div { font-size: clamp(18px, 2vw, 24px); font-weight: 700; line-height: 1.5; color: rgba(255, 255, 255, 0.9); margin-bottom: 24px; }
.etm-channel {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px 14px;
  align-items: center;
  padding: 16px;
  border-radius: 8px;
  background: var(--etm-el);
}
.etm-channel img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: block; }
.etm-channel > div { min-width: 0; }
.etm-channel__label { display: block; color: var(--etm-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.etm-channel__name { display: block; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etm-channel__name:hover { text-decoration: underline !important; }
.etm-channel__subs { display: block; color: var(--etm-muted); font-size: 13px; }
.etm-channel .etm-btn { grid-column: 1 / -1; }

.etm-empty {
  max-width: 560px;
  margin: 40px auto 48px;
  text-align: center;
}
.etm-empty__art {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #242424;
  color: var(--etm-muted);
}
.etm-empty__art .etm-i { width: 40px; height: 40px; }
.etm-empty h2 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.etm-empty p { color: var(--etm-muted); font-size: 15px; line-height: 1.55; }
.etm-empty__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }

.etm-search-top { display: grid; grid-template-columns: minmax(260px, 2fr) minmax(0, 3fr); gap: 24px; margin-bottom: 30px; }
.etm-search-top h2 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.etm-topresult .etm-card { background: var(--etm-el); padding: 20px; }
.etm-topresult .etm-card:hover { background: var(--etm-card-hover); }
.etm-topresult .etm-card__art { width: 92px; height: 92px; }
.etm-topresult .etm-card__title { font-size: 28px; font-weight: 800; margin-top: 14px; }

/* ----------------------------------------------------------- library */

.etm-libhead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 8px; }
.etm-libhead .etm-greet { margin-right: auto !important; }
.etm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 0 -12px; }
.etm-card--liked {
  grid-column: span 2;
  display: flex;
  align-items: flex-end;
  min-height: 240px;
  padding: 20px;
  background: linear-gradient(135deg, #450af5, #8e8ee5);
  border-radius: 8px;
}
.etm-card--liked:hover { background: linear-gradient(135deg, #5a1ff9, #9d9dec); }
.etm-card--liked a { flex: 1; }
.etm-card--liked b { display: block; font-size: 32px; font-weight: 800; }
.etm-card--liked small { color: rgba(255, 255, 255, 0.85); font-size: 15px; }
.etm-card--liked .etm-fab { position: absolute; right: 20px; bottom: 20px; }

/* ------------------------------------------------------------- forms */

.etm-form { max-width: 920px; }
.etm-form--narrow { max-width: 640px; }
.etm-form__grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
.etm-form__fields { min-width: 0; }
.etm-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; flex: 1 1 0; min-width: 0; }
.etm-field--sm { flex: 0 0 110px; }
.etm-field-row { display: flex; flex-wrap: wrap; gap: 16px; }
.etm-field > label, .etm-field-row .etm-field > label { color: #fff; font-size: 13px; font-weight: 700; }
.etm-field label small { color: var(--etm-muted); font-weight: 400; }
.etm-form input:not([type=radio]):not([type=checkbox]):not([type=file]),
.etm-form select,
.etm-form textarea,
.etm-modal input:not([type=radio]):not([type=checkbox]):not([type=file]),
.etm-modal select,
.etm-modal textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #3e3e3e;
  border-radius: 6px;
  background: #242424 !important;
  color: #fff !important;
  font-size: 14px;
  font-family: inherit;
  box-shadow: none !important;
}
.etm-form textarea, .etm-modal textarea { resize: vertical; }
.etm-form input:focus, .etm-form select:focus, .etm-form textarea:focus,
.etm-modal input:focus, .etm-modal select:focus, .etm-modal textarea:focus { border-color: #fff; outline: none; }
.etm-form select option, .etm-modal select option { background: #242424; color: #fff; }
.etm-radios { display: flex; flex-wrap: wrap; gap: 8px; }
.etm-radios label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #2a2a2a;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.etm-radios label:has(input:checked) { background: #fff; color: #000; }
.etm-radios input { accent-color: #000; margin: 0; }
.etm-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #fff; margin: 4px 0 14px; cursor: pointer; }
.etm-check input { width: 18px; height: 18px; accent-color: var(--etm-accent); margin: 0; }
.etm-note { color: var(--etm-muted); font-size: 13px; line-height: 1.55; }
.etm-drop {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: 8px;
  background: #282828;
  border: 1px dashed #4a4a4a;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  color: var(--etm-muted);
  font-size: 14px;
  font-weight: 700;
}
.etm-drop span { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px; }
.etm-drop small { font-weight: 400; font-size: 12px; }
.etm-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.etm-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.etm-drop:hover { border-color: #fff; color: #fff; }
.etm-drop--sm { width: 180px; }
.etm-file {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 16px;
  border: 1px dashed #4a4a4a;
  border-radius: 8px;
  background: #1f1f1f;
  color: var(--etm-muted);
  font-size: 14px;
  cursor: pointer;
}
.etm-file:hover { border-color: #fff; color: #fff; }
.etm-file span { display: flex; align-items: center; gap: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etm-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.etm-or { margin-top: 8px; font-size: 13px; color: var(--etm-muted); }
.etm-or summary { cursor: pointer; margin-bottom: 8px; }
.etm-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 10px; }
.etm-form__msg { color: var(--etm-muted); font-size: 14px; }
.etm-progress { flex: 1 1 160px; max-width: 260px; height: 6px; border-radius: 3px; background: #333; overflow: hidden; }
.etm-progress i { display: block; height: 100%; width: 0; background: var(--etm-accent); transition: width 0.2s; }
.etm-seg { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 22px; border-radius: 999px; background: #242424; }
.etm-seg button { height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--etm-muted); font-size: 14px; font-weight: 700; cursor: pointer; }
.etm-seg button.is-active { background: #fff; color: #000; }
.etm [hidden], .etm-player[hidden], .etm-player [hidden], .etm-modal [hidden] { display: none !important; }

.etm-studio { overflow-x: auto; }
.etm-studio table { width: 100%; border-collapse: collapse; font-size: 14px; }
.etm-studio th { text-align: left; color: var(--etm-muted); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--etm-line); white-space: nowrap; }
.etm-studio td { padding: 8px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); color: var(--etm-muted); white-space: nowrap; }
.etm-studio tr:hover td { background: rgba(255, 255, 255, 0.05); }
.etm-studio__t { display: flex; align-items: center; gap: 12px; color: #fff; }
.etm-studio__t a:hover { text-decoration: underline; }
.etm-studio__act { text-align: right; }
.etm-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: rgba(245, 166, 35, 0.16); color: #f5a623; font-size: 12px; font-weight: 700; }
.etm-badge.is-ok { background: rgba(30, 215, 96, 0.14); color: var(--etm-accent); }
.etm-badge.is-bad { background: rgba(241, 94, 108, 0.14); color: #f15e6c; }

.etm-finder { margin: 8px 0 30px; padding-top: 24px; border-top: 1px solid var(--etm-line); }
.etm-finder h2 { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.etm-finder__res .etm-fr { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 4px; }
.etm-finder__res .etm-fr:hover { background: rgba(255, 255, 255, 0.08); }
.etm-finder__res .etm-fr img, .etm-finder__res .etm-fr .etm-ph { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; }
.etm-finder__res b { display: block; font-weight: 400; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etm-finder__res small { color: var(--etm-muted); font-size: 13px; }

/* ---------------------------------------------------- popover / modal */

.etm-pop {
  position: absolute;
  z-index: 100050;
  min-width: 220px;
  max-width: 300px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 4px;
  border-radius: 6px;
  background: #282828;
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.3), 0 6px 8px rgba(0, 0, 0, 0.2);
}
.etm-pop__head { padding: 10px 12px 6px; color: var(--etm-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.etm-pop__body { min-height: 40px; }
.etm-pop__body > .etm-spin { margin: 10px auto; }
.etm-pop__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.etm-pop__item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.etm-pop__item small { color: var(--etm-muted); font-size: 12px; }
.etm-pop__item .etm-i { width: 18px; height: 18px; color: var(--etm-muted); }
.etm-pop__item:hover { background: #3e3e3e; }
.etm-pop__item.is-danger { color: #f15e6c !important; }
.etm-pop hr { margin: 4px 0; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); }

.etm-modal {
  position: fixed;
  inset: 0;
  z-index: 100060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.7);
}
.etm-modal__box {
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 24px;
  border-radius: 8px;
  background: #282828;
  box-shadow: 0 4px 60px rgba(0, 0, 0, 0.5);
}
.etm-modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.etm-modal__head h2 { font-size: 24px; font-weight: 800; color: #fff; margin: 0; }
.etm-modal__grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; margin-bottom: 10px; }
.etm-modal .etm-field > label { color: #fff; font-size: 13px; font-weight: 700; }
.etm-modal .etm-check { color: #fff; }

.etm-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--etm-player-h, 0px) + 24px);
  z-index: 100070;
  max-width: calc(100vw - 32px);
  padding: 10px 18px;
  border-radius: 8px;
  background: #2e77d0;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.etm-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
body.etm-has-player { --etm-player-h: 80px; }

.etm-spin {
  display: block;
  width: 26px;
  height: 26px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: etm-spin 0.8s linear infinite;
}
@keyframes etm-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------- player bar */

body.etm-has-player { padding-bottom: 80px; }
.etm-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--etm-bottom, 0px);
  z-index: 10040;
  display: grid;
  grid-template-columns: minmax(180px, 30%) minmax(0, 40%) minmax(180px, 30%);
  align-items: center;
  gap: 12px;
  height: 80px;
  padding: 0 16px;
  background: #000;
  border-top: 1px solid #1f1f1f;
  color: #fff;
}
.etm-player__now { display: flex; align-items: center; gap: 12px; min-width: 0; }
.etm-player__art { position: relative; flex-shrink: 0; width: 56px; height: 56px; border-radius: 4px; overflow: hidden; background: linear-gradient(135deg, #333, #1a1a1a); }
.etm-player__art img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }
.etm-player__art.is-empty img { opacity: 0; }
.etm-player__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55); }
.etm-player__ph svg { width: 24px; height: 24px; fill: currentColor; }
.etm-player__meta { display: flex; flex-direction: column; min-width: 0; }
.etm-player__title { font-size: 14px; font-weight: 500; color: #fff !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etm-player__sub { font-size: 12px; color: var(--etm-muted) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etm-player__title[data-load]:hover, .etm-player__sub[data-load]:hover { text-decoration: underline !important; color: #fff !important; }
.etm-player__center { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.etm-player__controls { display: flex; align-items: center; gap: 12px; }
.etm-player__controls .etm-ibtn { width: 32px; height: 32px; }
.etm-player__controls .etm-ibtn .etm-i { width: 18px; height: 18px; }
.etm-ibtn--play { width: 36px !important; height: 36px !important; background: #fff; color: #000 !important; }
.etm-ibtn--play:hover { transform: scale(1.06); }
.etm-ibtn--play .etm-i { width: 20px !important; height: 20px !important; }
.etm-ibtn--play .etm-i--pause, .etm-player.is-playing .etm-ibtn--play .etm-i--play { display: none; }
.etm-player.is-playing .etm-ibtn--play .etm-i--pause { display: block; }
.etm-one { display: none; position: absolute; top: 3px; right: 3px; font-size: 9px; font-style: normal; font-weight: 700; }
.etm-player[data-repeat="2"] .etm-one { display: block; }
.etm-player__controls .etm-ibtn.is-on::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--etm-accent); }
.etm-player__bar { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 620px; }
.etm-t { min-width: 40px; color: var(--etm-muted); font-size: 11px; text-align: center; font-variant-numeric: tabular-nums; }
.etm-live { display: none; align-items: center; gap: 6px; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.etm-live .etm-i { width: 18px; height: 18px; color: #f15e6c; }
.etm-range {
  --p: 0%;
  -webkit-appearance: none;
  appearance: none;
  flex: 1;
  height: 4px;
  margin: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #fff var(--p), #4d4d4d var(--p));
  cursor: pointer;
}
.etm-range:hover { background: linear-gradient(90deg, var(--etm-accent) var(--p), #4d4d4d var(--p)); }
.etm-range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; opacity: 0; }
.etm-range:hover::-webkit-slider-thumb { opacity: 1; }
.etm-range::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
.etm-player__right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 0; }
.etm-player__adslot { flex: 0 1 auto; min-width: 0; max-height: 64px; overflow: hidden; margin-right: 8px; }
.etm-player__adcode { display: flex; align-items: center; justify-content: center; }
.etm-player__adcode .et-ad-placeholder, .etm-player__adcode img { max-height: 60px; }
.etm-ad-m { display: none !important; }
.etm-vol { display: flex; align-items: center; gap: 4px; width: 130px; }
.etm-player.is-muted [data-etm-vol] { opacity: 0.4; }
.etm-player__like { width: 32px; height: 32px; }
.etm-player__like .etm-i { width: 18px; height: 18px; }
.etm-player__like path { fill: transparent; stroke: currentColor; stroke-width: 1.8; }
.etm-player__like.is-on { color: var(--etm-accent); }
.etm-player__like.is-on path { fill: var(--etm-accent); stroke: var(--etm-accent); }

.etm-player.is-live .etm-t, .etm-player.is-live [data-etm-seek],
.etm-player.is-live [data-etm-cmd="shuffle"], .etm-player.is-live [data-etm-cmd="repeat"],
.etm-player.is-live [data-etm-cmd="prev"], .etm-player.is-live [data-etm-cmd="next"] { display: none; }
.etm-player.is-live .etm-live { display: inline-flex; }
.etm-player.is-ad [data-etm-cmd="prev"], .etm-player.is-ad [data-etm-cmd="next"],
.etm-player.is-ad [data-etm-cmd="shuffle"], .etm-player.is-ad [data-etm-cmd="repeat"],
.etm-player.is-ad [data-etm-cmd="close"] { opacity: 0.3; pointer-events: none; }
.etm-player.is-ad [data-etm-seek] { pointer-events: none; }
.etm-player.is-ad .etm-player__title { color: #f5a623 !important; }
.etm-player__ad {
  position: absolute;
  left: 16px;
  bottom: calc(100% + 10px);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: min(520px, calc(100vw - 32px));
  padding: 10px 12px;
  border-radius: 8px;
  background: #282828;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.etm-player__ad b { display: block; color: #f5a623; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.etm-player__ad span { display: block; font-size: 13px; color: #fff; }
.etm-player__adimg img { width: 56px; height: 56px; border-radius: 4px; object-fit: cover; display: block; }
.etm-player__adtime { color: var(--etm-muted) !important; font-size: 12px !important; font-variant-numeric: tabular-nums; margin-left: 4px; }
.etm-queue {
  position: absolute;
  right: 12px;
  bottom: calc(100% + 10px);
  width: 340px;
  max-width: calc(100vw - 24px);
  max-height: min(60vh, 520px);
  overflow-y: auto;
  border-radius: 8px;
  background: #1f1f1f;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
}
.etm-queue__head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 8px 16px; background: #1f1f1f; font-size: 16px; }
.etm-queue ol { list-style: none; margin: 0; padding: 0 8px 8px; }
.etm-queue li { display: flex; flex-direction: column; padding: 8px; border-radius: 4px; cursor: pointer; }
.etm-queue li:hover { background: rgba(255, 255, 255, 0.08); }
.etm-queue li b { font-weight: 400; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etm-queue li span { color: var(--etm-muted); font-size: 12px; }
.etm-queue li.is-cur b { color: var(--etm-accent); }
.etm-queue__empty { color: var(--etm-muted); cursor: default !important; }

/* ------------------------------------------------------- radio & tv */

.etm-livehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.etm-livehead .etm-greet { margin: 6px 0 6px !important; }
.etm-livehead p { margin: 0; font-size: 14px; }
.etm-livehead .etm-hero__label { color: var(--etm-muted); }
.etm-livehead .etm-hero__label .etm-i { color: #f15e6c; }
.etm-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 16px; }
.etm-sel { position: relative; display: flex; align-items: center; flex: 0 1 240px; min-width: 0; margin: 0; }
.etm-sel__ico { position: absolute; left: 13px; display: flex; color: var(--etm-muted); pointer-events: none; }
.etm-sel__ico .etm-i { width: 18px; height: 18px; }
.etm-sel select {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 40px;
  border: 1px solid #3e3e3e;
  border-radius: 999px;
  background: #242424 !important;
  color: #fff !important;
  font-size: 14px;
  text-overflow: ellipsis;
  cursor: pointer;
}
.etm-sel select:focus { outline: none; border-color: #1ed760; }
.etm-sel select option { background: #242424; color: #fff; }
.etm-filters__clear { font-size: 13px; color: var(--etm-muted) !important; text-decoration: underline; padding: 0 4px; }
.etm-filters__clear:hover { color: #fff !important; }
.etm-filters__spin { display: none; width: 22px; height: 22px; }
.etm-filters.is-loading .etm-filters__spin { display: inline-block; }
.etm-filters.is-loading .etm-sel { opacity: .6; pointer-events: none; }
.etm-filter { margin-left: 0; }
.etm-grid--live { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.etm-grid__ad { grid-column: 1 / -1; padding: 0 12px; }
.etm-logo { background: #fff !important; overflow: hidden; border-radius: 8px; position: relative; }
.etm-logo > a { position: relative; }
.etm-logo img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; }
.etm-logo .etm-ph { position: absolute; inset: 0; }
.etm-hero__art .etm-logo { width: 100%; height: 100%; display: block; }
.etm-livedot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #f15e6c; box-shadow: 0 0 0 0 rgba(241, 94, 108, 0.6); animation: etm-pulse 1.6s infinite; vertical-align: middle; }
@keyframes etm-pulse { 0% { box-shadow: 0 0 0 0 rgba(241, 94, 108, 0.6); } 70% { box-shadow: 0 0 0 8px rgba(241, 94, 108, 0); } 100% { box-shadow: 0 0 0 0 rgba(241, 94, 108, 0); } }
.etm-credit { margin: 28px 0 0; color: var(--etm-faint); font-size: 12px; }
.etm-credit a { text-decoration: underline !important; }

.etm-tvgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.etm-tvcard { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 10px; border-radius: 8px; transition: background 0.2s; }
.etm-tvcard:hover, .etm-tvcard.is-active { background: var(--etm-card-hover); }
.etm-tvcard__logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  margin-bottom: 6px;
  border-radius: 6px;
  background: radial-gradient(circle at 30% 20%, hsl(var(--h, 220), 40%, 30%), #1b1b1b 75%);
  overflow: hidden;
}
.etm-tvcard__logo img { position: absolute; inset: 14% 18%; width: 64%; height: 72%; object-fit: contain; z-index: 1; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5)); }
.etm-tvcard__logo b { font-size: 26px; font-weight: 900; color: rgba(255, 255, 255, 0.6); text-transform: uppercase; }
.etm-tvcard__name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.etm-tvcard__sub { color: var(--etm-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.etm-tv { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; }
.etm-tv__stage { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.etm-tv__stage video { position: absolute; inset: 0; width: 100%; height: 100%; background: #000; }
.etm-tv__state {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  background: #000;
  text-align: center;
  color: #fff;
}
.etm-tv__state.is-hidden { display: none; }
.etm-tv__state b { font-size: 16px; }
.etm-tv__state span { color: var(--etm-muted); font-size: 14px; max-width: 420px; }
.etm-tv__state .etm-i { width: 40px; height: 40px; color: #f5a623; }
.etm-tv__unmute {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #000;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.etm-tv__unmute .etm-i { width: 18px; height: 18px; }
.etm-tv__ad {
  position: absolute;
  left: 50%;
  bottom: 56px;
  z-index: 3;
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
  padding: 0;
  background: none;
  animation: etm-up 0.35s ease-out;
}
@keyframes etm-up { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
.etm-tv__adx { position: absolute; top: 0; right: 0; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; }
.etm-tv__adx .etm-i { width: 18px; height: 18px; margin: auto; }
.etm-tv__ad > .etm-tv__adx { top: -10px; right: -10px; z-index: 1; display: flex; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, 0.6); }
.etm-tv__ad > .etm-tv__adx .etm-i { width: 14px; height: 14px; }
.etm-tv__adcode { display: flex; justify-content: center; max-width: 728px; overflow: hidden; }
.etm-tv__ad.is-under { visibility: hidden; }
.etm-tv__pause { position: absolute; inset: 0 0 48px; z-index: 5; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, 0.45); }
.etm-tv__pause[hidden] { display: none; }
.etm-tv__pausebox { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.85); animation: etm-fade 0.25s ease-out; }
.etm-tv__pausehead { position: relative; align-self: stretch; height: 18px; color: rgba(255, 255, 255, 0.75); font-size: 11px; }
.etm-tv__pausehead .etm-tv__adx { top: -4px; right: -4px; }
.etm-tv__pauseslot { overflow: hidden; }
.etm-tv__resume { height: 36px; padding: 0 18px; border: 0; border-radius: 999px; background: #6366F1; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.etm-tv__resume:hover { background: #4F46E5; }
@keyframes etm-fade { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.etm-tv__info { display: flex; align-items: center; gap: 14px; margin: 16px 0 20px; }
.etm-tv__logo { width: 96px; flex-shrink: 0; margin: 0; }
.etm-tv__info h1 { font-size: clamp(20px, 2.4vw, 28px); font-weight: 800; margin-bottom: 4px; }
.etm-tv__info .etm-muted { font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.etm-tv__info .etm-muted a:hover { color: #fff; text-decoration: underline; }
.etm-tv__act { margin-left: auto; }
.etm-tv__side { min-width: 0; }
.etm-tv__sidehead h2 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.etm-tv__side .etm-search { max-width: none; margin: 0 0 10px; }
.etm-tvlist { display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 220px); overflow-y: auto; padding-right: 4px; }
.etm-tvlist .etm-tvcard { display: grid; grid-template-columns: 88px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 6px; }
.etm-tvlist .etm-tvcard__logo { grid-row: 1 / 3; margin: 0; }
.etm-tvlist .etm-tvcard__logo b { font-size: 16px; }
.etm-tvlist .etm-tvcard__name { align-self: end; }
.etm-tvlist .etm-tvcard__sub { align-self: start; }

/* --------------------------------------------------------- responsive */

@media (max-width: 1200px) {
  .etm-quickgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etm-player__adslot { display: none !important; }
}
@media (max-width: 1024px) {
  .etm-cols { grid-template-columns: minmax(0, 1fr); }
  .etm-tv { grid-template-columns: minmax(0, 1fr); }
  .etm-tvlist { max-height: none; }
  .etm-tracks.has-album.has-date { --cols: 40px minmax(0, 6fr) minmax(0, 3fr) 36px 70px 40px; }
  .etm-tracks.has-album.has-date .etm-c-date { display: none; }
  .etm-search-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .etm-nav { flex-wrap: wrap; gap: 10px; }
  .etm-nav__tabs { flex: 1 1 0; }
  .etm-search { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
  .etm-nav__up { margin-left: auto; }
  .etm-nav__up span { display: none; }
  .etm-nav__up { width: 40px; padding: 0; }
  .etm-tracks.has-album, .etm-tracks.has-date { --cols: 32px minmax(0, 1fr) 36px 56px 36px; }
  .etm-tracks .etm-c-album, .etm-tracks .etm-c-date { display: none; }
  .etm-form__grid { grid-template-columns: minmax(0, 1fr); }
  .etm-form__cover { max-width: 200px; }
  .etm-player { grid-template-columns: minmax(0, 1fr) auto auto; height: 64px; padding: 0 8px 0 8px; gap: 8px; }
  body.etm-has-player { padding-bottom: 64px; --etm-player-h: 64px; }
  .etm-player__art { width: 48px; height: 48px; }
  .etm-player__center { flex-direction: row; }
  .etm-player__controls [data-etm-cmd="shuffle"], .etm-player__controls [data-etm-cmd="repeat"], .etm-player__controls [data-etm-cmd="prev"] { display: none; }
  .etm-player__bar { position: absolute; left: 8px; right: 8px; bottom: 0; max-width: none; }
  .etm-player__bar .etm-t, .etm-player__bar .etm-live { display: none !important; }
  .etm-player__bar .etm-range { height: 2px; pointer-events: none; background: linear-gradient(90deg, #fff var(--p), rgba(255, 255, 255, 0.25) var(--p)); }
  .etm-player.is-live .etm-player__bar { display: none; }
  .etm-player__right .etm-vol { display: none; }
  .etm-player__right { gap: 0; }
  .etm-player__now .etm-player__like { margin-left: auto; }
}
@media (max-width: 640px) {
  .etm-nav { position: relative; top: auto; }
  .etm-body { padding-top: 14px; }
  .etm-actions { gap: 8px; }
  .etm-quickgrid { gap: 8px; }
  .etm-quick { height: 56px; padding-right: 8px; }
  .etm-quick .etm-cover { width: 56px; height: 56px; }
  .etm-quick b { font-size: 13px; }
  .etm-quick .etm-fab { display: none; }
  .etm-shelf__row { grid-auto-columns: 42%; grid-template-columns: none; }
  .etm-hero { flex-direction: column; align-items: center; text-align: center; padding-top: 28px; gap: 16px; }
  .etm-hero__art { width: min(60vw, 240px); }
  .etm-hero__meta { justify-content: center; }
  .etm-actions { padding-top: 14px; }
  .etm-genres { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .etm-genre { font-size: 16px; }
  .etm-genre i { width: 60px; height: 60px; }
  .etm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etm-card--liked { min-height: 180px; }
  .etm-card--liked b { font-size: 24px; }
  .etm-row { gap: 8px; padding: 0 4px; }
  .etm-row__n { display: none; }
  .etm-tracks, .etm-tracks.has-album, .etm-tracks.has-date, .etm-tracks.is-compact { --cols: minmax(0, 1fr) 36px 44px 32px; }
  .etm-tracks__head > span:first-child { display: none; }
  .etm-row__like .etm-like, .etm-row__more { opacity: 1 !important; }
  .etm-row__like .etm-like:not(.is-on) { opacity: 0.6 !important; }
  .etm-c-dur { font-size: 12px; }
  .etm-row__main { cursor: pointer; }
  .etm-tvgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .etm-grid--live { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .etm-sel { flex: 1 1 100%; }
  .etm-livehead { align-items: stretch; }
  .etm-modal__grid { grid-template-columns: minmax(0, 1fr); }
  .etm-drop--sm { width: 140px; }
  .etm-tv { margin: -14px calc(var(--etm-pad) * -1) 0; }
  .etm-tv__stage { border-radius: 0; }
  .etm-tv__info, .etm-tv__main > .etm-banner, .etm-tv__side { padding: 0 var(--etm-pad); }
  .etm-tv__ad { bottom: 44px; }
  .etm-ad-d { display: none !important; }
  .etm-ad-m { display: flex !important; }
  .etm-player__ad { left: 8px; right: 8px; }
  .etm-player__adslot { display: none; }
}
@media (max-width: 530px) {
  .etm { --etm-top: 0px; }
  .yp_side_menu.has_side_menu:has(> .etm-host) { overflow: clip; }
  .yp_side_menu.has_side_menu:has(> .etm-host) .etm { --etm-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .etm *, .etm-player * { animation: none !important; transition: none !important; }
}
