/* Creators discovery (v1) — the Reels-shaped opening of the Creators tab.

   Three columns, portrait 3:4, zero radius and a 2px gutter on a phone so the grid runs
   edge to edge under the header. Every rule is namespaced `.mtv-disc__` or scoped under
   `.mtv-disc__grid`, so the older `.mtv-mediatile` styling on profile pages is untouched. */

.mtv-disc__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 12px;
}

.mtv-disc__head .mtv-page-title { margin: 0; flex: 0 0 auto; }

.mtv-disc__search { position: relative; display: flex; align-items: center; flex: 1 1 auto; min-width: 0; }

.mtv-disc__search input {
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  padding: 0 42px 0 14px;
  border: 1px solid var(--mtv-hairline);
  border-radius: 12px;
  background: #fff;
  color: var(--mtv-navy);
  font: 400 14px/1 var(--mtv-font-ui);
  -webkit-appearance: none;
  appearance: none;
}

.mtv-disc__search input::placeholder { color: rgba(0, 69, 116, .45); }
.mtv-disc__search input:focus-visible { outline: 2px solid rgba(216, 30, 91, .5); outline-offset: 1px; }

.mtv-disc__searchGo {
  position: absolute;
  right: 4px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--mtv-navy);
  cursor: pointer;
}

.mtv-disc__saved {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--mtv-hairline);
  border-radius: 12px;
  background: #fff;
  color: var(--mtv-navy);
}

.mtv-disc__saved:active { transform: scale(.96); }

.mtv-disc__rail {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
  padding: 2px 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.mtv-disc__rail::-webkit-scrollbar { display: none; }

.mtv-disc__chip {
  flex: 0 0 auto;
  padding: 8px 14px;
  border: 1px solid var(--mtv-hairline);
  border-radius: 999px;
  background: #fff;
  color: var(--mtv-navy);
  font: 600 12.5px/1.1 var(--mtv-font-ui);
  white-space: nowrap;
  text-decoration: none;
}

.mtv-disc__chip.is-now { border-color: transparent; background: var(--mtv-magenta); color: #fff; }

.mtv-disc__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 16px;
}

.mtv-disc__grid .mtv-mediatile {
  aspect-ratio: 3 / 4;
  border-radius: 0;
}

.mtv-disc__views {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #fff;
  font: 600 11px/1 var(--mtv-font-ui);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55);
  pointer-events: none;
}

.mtv-disc__views svg { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); }

.mtv-disc__dur {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(8, 27, 44, .72);
  color: #fff;
  font: 600 10.5px/1.2 var(--mtv-font-ui);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* Phone: the grid is the screen. The negative gutter cancels `.mtv-main`'s 14px padding. */
@media (max-width: 820px) {
  .mtv-disc__head { flex-wrap: wrap; gap: 8px; }
  .mtv-disc__head .mtv-page-title { flex: 1 0 100%; margin: 0 0 2px; font-size: 26px; }
  .mtv-disc__grid { gap: 2px; margin-inline: -14px; }
  .mtv-disc__views { font-size: 10.5px; }
}

:root[data-theme="dark"] .mtv-disc__search input,
:root[data-theme="dark"] .mtv-disc__saved { background: #14293b; border-color: rgba(255, 255, 255, .12); color: #EAF2F8; }
:root[data-theme="dark"] .mtv-disc__search input::placeholder { color: rgba(234, 242, 248, .45); }
:root[data-theme="dark"] .mtv-disc__chip { background: #14293b; border-color: rgba(255, 255, 255, .12); color: #EAF2F8; }
:root[data-theme="dark"] .mtv-disc__chip.is-now { background: var(--mtv-magenta); color: #fff; border-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  .mtv-disc__saved { transition: none; }
}
