/* Tsukiro 2.9.6 — interaction fixes: shared search UI + player season switcher. */

/* Header search is one coherent pill instead of a rectangular field plus a detached round button. */
@media (min-width: 721px) {
  html[data-candy-ui="true"] [data-global-search].search-shell.is-open {
    width: min(360px, 38vw);
    height: 44px;
    border: 1px solid rgba(212, 105, 190, .28);
    border-radius: 999px !important;
    background: rgba(14, 13, 20, .94);
    box-shadow: 0 10px 34px rgba(0, 0, 0, .26), inset 0 0 0 1px rgba(255,255,255,.025);
  }
  html[data-candy-ui="true"] [data-global-search].search-shell.is-open .search-input {
    position: relative;
    inset: auto;
    width: 100% !important;
    height: 42px;
    opacity: 1;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 50px 0 16px;
  }
  html[data-candy-ui="true"] [data-global-search].search-shell.is-open .search-toggle {
    position: absolute;
    z-index: 3;
    right: 4px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, rgba(237,83,165,.16), rgba(145,91,238,.13));
    box-shadow: none;
    transform: none;
  }
  html[data-candy-ui="true"] [data-global-search].search-shell.is-open .search-results {
    top: 52px;
  }
}

/* Rooms search: icon + text live inside one continuous rounded control. */
html[data-candy-ui="true"] .room-title-search {
  display: flex !important;
  align-items: center;
  gap: 4px;
  height: 54px;
  padding: 0 7px;
  overflow: hidden;
  border-radius: 999px !important;
  border: 1px solid rgba(211, 102, 187, .24) !important;
  background: linear-gradient(180deg, rgba(23,20,30,.96), rgba(15,14,21,.96)) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02), 0 10px 32px rgba(0,0,0,.16);
}
html[data-candy-ui="true"] .room-title-search:focus-within {
  border-color: rgba(243, 82, 169, .56) !important;
  box-shadow: 0 0 0 3px rgba(238, 76, 166, .08), 0 12px 34px rgba(0,0,0,.2) !important;
}
html[data-candy-ui="true"] .room-title-search > span {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #dca5ca !important;
  background: rgba(235, 79, 164, .07);
}
html[data-candy-ui="true"] .room-title-search input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 12px 0 4px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 14px;
}
html[data-candy-ui="true"] .room-title-results {
  top: 88px !important;
  border-radius: 18px !important;
  background: rgba(15,14,21,.985) !important;
  border-color: rgba(211,102,187,.2) !important;
}
html[data-candy-ui="true"] .room-title-result {
  border-radius: 14px !important;
}
html[data-candy-ui="true"] .room-title-result:hover,
html[data-candy-ui="true"] .room-title-result:focus-visible {
  background: linear-gradient(90deg, rgba(238,76,166,.09), rgba(145,91,238,.05)) !important;
  outline: none;
}

/* The first selector can contain franchise titles, so give it enough room. */
html[data-candy-ui="true"] .watch-source-panel .watch-options-card {
  grid-template-columns: minmax(250px, 1.55fr) repeat(4, minmax(0, 1fr));
}
html[data-candy-ui="true"] #seasonSelect {
  border-color: rgba(218, 98, 188, .26);
  background-image: linear-gradient(180deg, rgba(28,22,34,.98), rgba(19,17,24,.98));
}
@media (max-width: 1100px) {
  html[data-candy-ui="true"] .watch-source-panel .watch-options-card {
    grid-template-columns: minmax(230px, 1.35fr) repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  html[data-candy-ui="true"] .watch-source-panel .watch-options-card {
    grid-template-columns: 1fr 1fr;
  }
  html[data-candy-ui="true"] .watch-source-panel .watch-option:first-child {
    grid-column: 1 / -1;
  }
}
