/* Y011: Swap logo and Home in Video watch header; both return to /video/ home.
 * Loaded after existing watch.css, so no change to legacy player CSS. */
.tn-watch-head .tn-watch-brand-home {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin-left: 0 !important;
  margin-right: 2px;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  cursor: pointer;
  touch-action: manipulation;
  min-height: 44px;
}
.tn-watch-head .tn-watch-brand-home img { pointer-events: none; }
.tn-watch-head .tn-watch-brand-home:hover { opacity: .88; }
.tn-watch-head .tn-watch-brand-home:focus-visible {
  outline: 3px solid var(--focus, #36c9f0);
  outline-offset: 3px;
  border-radius: 8px;
}
.tn-watch-head .tn-watch-back { flex: 0 0 auto; }
@media (max-width: 700px) {
  /* Earlier watch.css hides the logo here: explicitly keep it visible. */
  .tn-watch-head .tn-watch-brand-home { display: inline-flex !important; min-height: 40px; }
  .tn-watch-head .tn-watch-brand-home img { width: 88px; height: 33px; max-width: 88px; }
  .tn-watch-head .tn-watch-back { min-width: 39px; min-height: 39px; }
  .tn-watch-head .tn-watch-search-row { min-width: 0; }
}
@media (max-width: 360px) {
  .tn-watch-head .tn-watch-brand-home img { width: 72px; max-width: 72px; height: 29px; }
  .tn-watch-head { gap: 4px; }
}

/* Y019: icon-only circular Home button in the video player header.
   Original action, aria-label and remote focus handling are unchanged. */
.tn-watch-head #tn-watch-back.tn-watch-back {
  box-sizing: border-box;
  display: inline-grid !important;
  place-items: center;
  flex: 0 0 44px !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  padding: 0 !important;
  margin: 0;
  border: 1px solid #2386b4 !important;
  border-radius: 50% !important;
  background: #0b3154 !important;
  color: #eefbff !important;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.tn-watch-head #tn-watch-back.tn-watch-back > span {display:none !important;}
.tn-watch-head #tn-watch-back.tn-watch-back svg {
  width: 22px !important;
  height: 22px !important;
  display: block;
  margin: auto;
}
.tn-watch-head #tn-watch-back.tn-watch-back:hover {
  background: #124e76 !important;
  border-color: #40d9f0 !important;
}
.tn-watch-head #tn-watch-back.tn-watch-back:focus-visible {
  outline: 3px solid #40d9f0 !important;
  outline-offset: 3px;
}
html[data-theme="light"] .tn-watch-head #tn-watch-back.tn-watch-back {
  background: #e3f2fc !important;
  border-color: #8dc0df !important;
  color: #123d5d !important;
}
