* { 
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; 
}
body {
  text-align: center;
  background-color: black;
}
.light-background-1 {
  background-color: black;
  position: fixed;
  top: 0;
  height: 10000px;
  width: 100%;
  z-index: 1100;
  opacity: 0.6;
  display: grid;
}
.light-background {
  display: none;
}
header {
  background-color: black;
  
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: space-between;
  position: fixed;
  top: 0;
  color: white;
  transition: transform 0.5s, opacity 0.5s;
  z-index: 99999;
}
header div:nth-child(1) {
  display: flex;
  justify-content: left;
  /* gap: 10px; */
  margin-top: auto;
  margin-bottom: auto;
  margin-left: 5%;
  font-weight: bold;
  font-size: normal;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
}
.main-logo {
  width: 18px;
  height: 18px;
  padding: 2px;
  background-color: limegreen;
  /* border: 2px solid black; */
  border-radius: 5px;
  margin-right: 10px;
}
header div img:nth-child(1),
#sidebar-image svg.icon {
  height: 22px;
  width: 22px;
  margin-top: auto;
  margin-bottom: auto;
  margin-right: 15px;
  transition: transform 0.4s, opacity 0.4s;
}
header b {
  margin-top: auto;
  margin-bottom: auto;
}
header div:nth-child(2),
header div:nth-child(3) {
  display: flex;
  /* gap: 25%; */
  justify-content: right;
  margin-right: 5%;
  margin-top: auto;
  margin-bottom: auto;
  /* width: 20%; */
}
header div:nth-child(2) img,
header div:nth-child(2) svg.icon {
  height: 20px;
  width: 20px;
}
header button {
  background-color: transparent;
  border: 1px solid limegreen;
  outline: none;
  border-radius: 50px;
  padding: 5px 10px;
  font-weight: bold;
  font-size: x-small;
  color: limegreen;
  margin-left: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}
.all-progress {
  position: fixed;
  width: 100%;
  top: 40px;
  height: 10px;
  z-index: 99999;
  display: none;
}
.all-progress progress {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
}
::-webkit-progress-bar {
  -webkit-appearance: none;
  appearance: none;
  background-color: rgb(65, 65, 65);
}
::-webkit-progress-value {
  background-color: limegreen;
}
.Down-header {
  background-color: rgba(35, 35, 35);
  
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: space-around;
  position: fixed;
  bottom: 0;
  font-weight: bold;
  font-size: small;
  z-index: 1000;
  border-top: 1px solid rgba(128, 128, 128, 0.5);
}
.Down-header div {
  display: grid;
  height: 30px;
  margin-top: auto;
  margin-bottom: auto;
  color: white;
}
.Down-header img,
.Down-header svg.icon {
  height: 16px;
  width: 16px;
  margin-left: auto;
  margin-right: auto;
}
.sidebar {
  /* display: none; */
  position: fixed;
  width: 250px;
  top: 0;
  bottom: 0;
  z-index: 99998;
  background-color: rgb(30, 30, 30);
  text-align: left;
  overflow-y: scroll;
  overflow-x: hidden;
  transition: transform 0.5s, opacity 0.5s;
  /* opacity: 0; */
  /* visibility: hidden; */
  transform: translateX(-100%);
}
.sidebar.show {
  /* opacity: 1; */
  /* visibility: visible; */
  transform: translate(0);
}
.sidebar::-webkit-scrollbar {
  display: none;
}
.sidebar ul {
  width: 93%;
  margin-left: auto;
  margin-right: auto;
}
.sidebar li {
  list-style: none;
}
.sidebar li:nth-child(1) {
  height: 40px;
  /* border-bottom: 1px solid white; */
  display: flex;
  position: absolute;
  width: 250px;
  top: 0;
  left: 0;
  background-color: rgb(36, 35, 35);
  /* background-color: goldenrod; */
}
.sidebar li:nth-child(1) img,
.sidebar li:nth-child(1) svg.icon {
  height: 10px;
  width: 10px;
  margin-top: auto;
  margin-bottom: auto;
  margin-left: 5%;
}
.sidebar li:nth-child(2) {
  border-bottom: 1px solid rgba(128, 128, 128, 0.4);
  width: 100%;
  display: flex;
  margin-top: 40px;
}
.sidebar li:nth-child(2) div {
  width: 95%;
  display: grid;
  margin: 5% 0px;
  margin-left: auto;
  margin-right: auto;
  color: white;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.sidebar li:nth-child(2) b {
  font-size: normal;
  font-weight: normal;
  margin-top: auto;
  margin-bottom: auto;
  /* align-self: flex-end; */
}
.sidebar li:nth-child(2) div img,
.sidebar li:nth-child(2) div svg.icon {
  width: 40px;
  height: 40px;
}
.sidebar li:nth-child(2) div > div {
  display: flex;
  justify-content: left;
  gap: 10px;
}
.sidebar li:nth-child(2) div button {
  border: none;
  outline: none;
  color: rgba(255, 255, 255, 0.842);
  padding: 10px 2px;
  margin-bottom: 5%;
  width: 100%;
  border-radius: 100px;
  /* background-color: rgba(218, 165, 32, 0.41); */
  background-color: rgba(50, 205, 50, 0.211);
  font-weight: bold;
  /* text-shadow: 2px 2px 0px gray, 0 2px 1px gray; */
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-image: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.3),
    rgba(0, 0, 0, 0.3),
    rgba(255, 255, 255, 0.3),
    rgba(0, 0, 0, 0.3)
  );
}
.sidebar li:nth-child(3) {
  color: white;
  font-weight: bolder;
  margin: 6% 5%;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}
.sidebar li:nth-child(4),
.sidebar li:nth-child(5),
.sidebar li:nth-child(6),
.sidebar li:nth-child(7),
.sidebar li:nth-child(8),
.sidebar li:nth-child(9),
.sidebar li:nth-child(10),
.sidebar li:nth-child(11),
.sidebar li:nth-child(12),
.sidebar li:nth-child(13),
.sidebar li:nth-child(14),
.sidebar li:nth-child(15),
.sidebar li:nth-child(16) {
  margin: 0 5%;
  padding: 2% 5%;
  color: rgb(214, 202, 202);
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}
.sidebar li:nth-child(4):hover,
.sidebar li:nth-child(5):hover,
.sidebar li:nth-child(6):hover,
.sidebar li:nth-child(7):hover,
.sidebar li:nth-child(8):hover,
.sidebar li:nth-child(9):hover,
.sidebar li:nth-child(10):hover,
.sidebar li:nth-child(11):hover,
.sidebar li:nth-child(12):hover,
.sidebar li:nth-child(13):hover,
.sidebar li:nth-child(14):hover,
.sidebar li:nth-child(15):hover,
.sidebar li:nth-child(16):hover {
  background-color: rgba(50, 205, 50, 0.211);
  border-radius: 50px;
  cursor: pointer;
}
.sidebar li:nth-child(18) {
  font-weight: bolder;
  padding: 6% 5%;
  color: white;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}
.sidebar li:nth-child(19),
.sidebar li:nth-child(20),
.sidebar li:nth-child(21),
.sidebar li:nth-child(22),
.sidebar li:nth-child(23),
.sidebar li:nth-child(24),
.sidebar li:nth-child(25) {
  margin: 0 5%;
  padding: 2% 5%;
  color: rgb(214, 202, 202);
  /* color: rgb(34, 172, 34); */
  font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
}
.sidebar li:nth-child(19):hover,
.sidebar li:nth-child(20):hover,
.sidebar li:nth-child(21):hover,
.sidebar li:nth-child(22):hover,
.sidebar li:nth-child(23):hover,
.sidebar li:nth-child(24):hover,
.sidebar li:nth-child(25):hover {
  background-color: rgba(50, 205, 50, 0.211);
  border-radius: 50px;
  cursor: pointer;
}
.sidebar li:nth-child(27),
.sidebar li:nth-child(28),
.sidebar li:nth-child(29),
.sidebar li:nth-child(30),
.sidebar li:nth-child(31) {
  font-weight: bolder;
  padding: 6% 5%;
  color: white;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}
.sidebar li:nth-child(32) {
  padding: 6% 5%;
  display: flex;
  justify-content: space-between;
}
.sidebar li:nth-child(32) img,
.sidebar li:nth-child(32) svg.icon {
  height: 20px;
  width: 20px;
}

input:focus,
button:focus {
  outline: 0;
}

button {
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}
.sec-header {
  color: white;
  margin-left: 5%;
  font-size: small;
  display: flex;
  text-align: left;
  border-left: 5px solid limegreen;
  padding-left: 10px;
  margin-bottom: 7px;
}
.seperate{
  display: flex;
  height: 30px;
}
.search-bar{
    width: 100%;
}
.search-bar input{
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    background-color: rgb(40, 40, 40);
    padding: 10px 15px;
    color: white;
    width: 90%;
}
.search-bar input::-webkit-input-placeholder{
    font-style: italic;
}
.popular-search{
    width: 100%;
    padding: 0 5%;
    border-top: 1px solid rgba(128, 128, 128, 0.5);
    border-bottom: 1px solid rgba(128, 128, 128, 0.5);
    background-color: rgb(40, 40, 40);
}
.popular-search > div{
    display: flex;
    justify-content: left;
    margin: 15px 0;
}
.popular-search > div img,
.popular-search > div svg.icon{
    height: 20px;
    width: 20px;
    margin-right: 10px;
}
.popular-search > div b{
    color: white;
    font-weight: normal;
    margin: auto 0;
    margin-right: 10px;
}
.popular-search > div b:nth-child(3){
    font-weight: bold;
    color: silver;
}
.visit{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-flow: wrap;
  
    margin-left: auto;
    margin-right: auto;
    background-color: rgb(40, 40, 40);
    padding: 15px 0;
}
.visit > div{
    display: inline-block;
    margin: 5px;
    white-space: normal;
    text-align: left;
    width: 30vw;
    height: 20vh;
    overflow-x: hidden;
    vertical-align: top;
    border: 1px solid rgba(255, 255, 255, 0.514) ;
    border-radius: 5px;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}
.visit > div button{
    position: absolute;
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background-color: rgb(40, 40, 40);
    color: white;
    border-radius: 5px;
    width: 90%;
    height: 25px;
    bottom: 10px;
    left: 5%;
    right: 5%;
}
.downloader-head {
  width: 90%;
  margin-right: auto;
  margin-left: auto;
  padding: 1px;
  border-radius: 5px;
  background-color: rgb(40,40,40);
}
.downloader-head > b {
  color: red;
  width: 90%;
  display: flex;
  justify-content: left;
  margin: 5px auto;
  text-align: left;
}
.downloader-head > small{
    display: flex;
  color: silver;
  text-align: left;
  margin: 5px 5%;
}
.downloader-head > div {
  width: 96%;
  display: grid;
  margin: auto;
  border-radius: 5px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid rgba(128, 128, 128, 0.219);
  background-color: black;
}
.downloader-head > div > small{
    color: white;
    white-space: nowrap;
    text-align: left;
    margin-left: 2px;
    margin-bottom: 5px;
}
.downloader-head > div > input{
    outline: none;
    background-color: black;
    border: 1px solid gray;
    border-radius: 5px;
    height: 30px;
    padding: 0 10px;
    color: white;
    margin-bottom: 10px;
    caret-color: limegreen;
}
.downloader-head > div > input::-webkit-input-placeholder{
    font-style: italic;
}
.downloader-head > div > select{
    outline: none;
    background-color: black;
    border: 1px solid gray;
    border-radius: 5px;
    height: 30px;
    width: 50%;
    padding: 0 10px;
    color: white;
    margin-bottom: 10px;
}
.downloader-head > div > div{
    width: 90%;
    display: flex;
    justify-content: center;
    margin: 0 auto;
    margin-bottom: 5px;
}
.downloader-head > div > div b{
    height: 1px;
    background-color: gray;
    width: 40%;
    margin: auto 0;
}
.downloader-head > div > div small{
    color: silver;
    margin: auto 5px;
}
.downloader-head > div > section{
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-top: 10px;
    margin-top: 5px;
    border-top: 1px solid gray;
}
.downloader-head > div > section button{
    height: 30px;
    color: white;
    background-color: transparent;
    width: 35%;
    border-radius: 5px;
    border: 2px solid limegreen;
}
.downloader-head > div > section button:nth-child(2){
    border: 2px solid red;
}
.category {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  vertical-align: middle;
  position: relative;
  border-bottom: 2px solid gray;
  text-align: left;

  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
}
.category::-webkit-scrollbar {
  display: none;
}
.category > div {
  display: inline-block;
  white-space: normal;
  text-align: center;
  overflow: hidden;
  vertical-align: top;
  padding: 5px 15px;
  justify-content: center;
  gap: 10px;
  margin: 8px 2%;
  border-radius: 100px;
  color: rgb(224, 222, 222);
  border: 1px solid rgba(128, 128, 128, 0.288);
  background-color: rgb(40, 40, 40);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
.search-body{
  width: 100vw;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 10px;
  margin-top: 20px;
}
.search-body::-webkit-scrollbar{
  display: none;
}
.search-body > div{
  flex: 0 0 100vw;
  scroll-snap-align: center;

  border: 1px dotted darkgreen;
  height: 20vh;
}
/* ------------------------------------------------------------------
   Search page — live search bar, results list, status, request form
   ------------------------------------------------------------------ */
#searchMic.is-listening { background: #39ff6a; background: var(--tc-primary, #39FF6A); color: #06210f; }
#searchMic { position: relative; }
#searchMic.is-listening::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 50%; border: 2px solid rgba(57,255,106,0.5); pointer-events: none;  }
@keyframes tc-mic-pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(1.45); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #searchMic.is-listening::after { animation: none; display: none; } }

.search-status { margin: 10px 4%; font-size: 13px; color: rgba(245, 247, 246, 0.62); color: var(--tc-text-muted, #9a9a9a); text-align: left; min-height: 1em; }
.search-results { display: flex; flex-direction: column; gap: 8px; width: 92%; margin: 0 auto; }
.search-result {
  display: flex; align-items: center; gap: 12px; padding: 8px; text-align: left;
  border-radius: 14px; border-radius: var(--tc-radius-md, 12px); border: 1px solid rgba(255, 255, 255, 0.09); border: 1px solid var(--tc-border, rgba(255,255,255,0.08));
  background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01)); background-image: var(--tc-gradient-glass); text-decoration: none; color: inherit;
  transition: transform var(--tc-duration, .2s) var(--tc-ease, ease);
}
.search-result:hover, .search-result:focus-visible { transform: translateY(-2px); border-color: #22c955; border-color: var(--tc-primary-dim, #22c955); outline: none; }
.search-result-thumb { flex: 0 0 64px; height: 64px; border-radius: 10px; background: #1d1d1d center/cover no-repeat; display: flex; align-items: center; justify-content: center; }
.search-result-thumb .icon { width: 22px; height: 22px; opacity: 0.5; }
.search-result-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.search-result-title { color: #f5f7f6; color: var(--tc-text, #fff); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-title mark { background: none; color: #39ff6a; color: var(--tc-primary, #39FF6A); }
.search-result-meta { font-size: 12px; color: rgba(245, 247, 246, 0.62); color: var(--tc-text-muted, #9a9a9a); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.search-result-badge { color: #39ff6a; color: var(--tc-primary, #39FF6A); font-weight: 600; }
.popular-search > div { cursor: pointer; }
.request-message { font-size: 13px; min-height: 1em; margin: 6px 0 0; }
.request-message.is-error { color: #ff6b6b; }
.request-message.is-success { color: #39ff6a; color: var(--tc-primary, #39FF6A); }

/* ==========================================================================
   Search page — modern theme (matches the glass style used site-wide)
   ========================================================================== */

/* Search bar: one pill. The input takes whatever space is left beside the
   buttons (flex: 1 + min-width: 0), so it can never slide under them. */
.search-bar {
  box-sizing: border-box; display: flex; align-items: center; gap: 6px;
  width: 92%; max-width: 720px; margin: 12px auto 0; padding: 6px 6px 6px 16px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.09); border: 1px solid var(--tc-border);
  background-color: rgba(255, 255, 255, 0.03); background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01)); background-image: var(--tc-gradient-glass);
  
  
}
.search-bar:focus-within { border-color: #22c955; border-color: var(--tc-primary-dim); box-shadow: 0 0 0 3px rgba(57, 255, 106, 0.15); }
.search-bar .search-bar-icon { flex: 0 0 18px; width: 18px; height: 18px; color: rgba(245, 247, 246, 0.62); color: var(--tc-text-muted, #9a9a9a); }
.search-bar input {
  flex: 1 1 auto; min-width: 0; width: auto; box-sizing: border-box;
  padding: 10px 4px; border: none; border-radius: 0; outline: none;
  background: transparent; color: #f5f7f6; color: var(--tc-text, #fff); font-size: 15px;
}
.search-bar input::placeholder { color: rgba(245, 247, 246, 0.62); color: var(--tc-text-muted, #9a9a9a); }
.search-bar input::-webkit-search-cancel-button { display: none; }
.search-bar-btn {
  flex: 0 0 38px; width: 38px; height: 38px; margin: 0; padding: 0; border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  background: rgba(255, 255, 255, 0.07); color: #fff;
}
.search-bar-btn[hidden] { display: none; }
.search-bar-btn .icon { width: 16px; height: 16px; }
#searchMic { background: linear-gradient(135deg, #39ff6a, #22c955); background: linear-gradient(135deg, var(--tc-primary), var(--tc-primary-dim)); }
#searchMic .icon { color: #06210f; }

/* Section headings */
#searchIdle .sec-header, #searchResultsSection .sec-header {
  border-left-color: #39ff6a; border-left-color: var(--tc-primary); font-family: "Space Grotesk", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; font-family: var(--tc-font-display, inherit); letter-spacing: 0.04em;
}

/* Popular searches: tappable chips */
.popular-search {
  display: flex; flex-wrap: wrap; gap: 8px; width: 92%; margin: 4px auto 0; padding: 0;
  border: none; background: none;
}
.popular-search > div {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.09); border: 1px solid var(--tc-border);
  background-color: rgba(255, 255, 255, 0.03); background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01)); background-image: var(--tc-gradient-glass);
  transition: transform 0.2s ease;
}
.popular-search > div:hover, .popular-search > div:focus-visible { transform: translateY(-2px); border-color: #22c955; border-color: var(--tc-primary-dim); outline: none; }
.popular-search > div svg.icon { width: 14px; height: 14px; margin: 0; color: #39ff6a; color: var(--tc-primary); }
.popular-search > div b { margin: 0; color: #f5f7f6; color: var(--tc-text, #fff); font-size: 13px; font-weight: 500; }
.popular-search > div b:nth-child(3) {
  color: rgba(245, 247, 246, 0.62); color: var(--tc-text-muted, #9a9a9a); font-size: 11px; font-weight: 600;
  padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.07);
}

/* Visit: image tiles with a readable label */
.visit {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: 10px; gap: 10px;
  width: 92%; margin: 4px auto 0; padding: 0; background: none;
}
.visit > div {
  width: auto; height: auto; aspect-ratio: 4 / 3; margin: 0; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09); border: 1px solid var(--tc-border); border-radius: 14px; border-radius: var(--tc-radius-md, 12px);
  background-size: cover; background-position: center;
}
.visit > div::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.75));
}
.visit > div button {
  z-index: 1; left: 8px; right: 8px; bottom: 8px; width: auto; height: auto; padding: 7px 4px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(18, 18, 18, 0.9); 
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; cursor: pointer;
}
.visit > div button[data-href]:hover { border-color: #39ff6a; border-color: var(--tc-primary); color: #39ff6a; color: var(--tc-primary); }
@media (min-width: 700px) { .visit { grid-template-columns: repeat(5, 1fr); } }

/* "Not found" request form: glass card */
.downloader-head {
  box-sizing: border-box; width: 92%; max-width: 560px; margin: 12px auto 0; padding: 18px;
  border-radius: 20px; border-radius: var(--tc-radius-lg, 18px); border: 1px solid rgba(255, 255, 255, 0.09); border: 1px solid var(--tc-border);
  background-color: rgba(255, 255, 255, 0.03); background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01)); background-image: var(--tc-gradient-glass);
  
}
.downloader-head > b { color: #39ff6a; color: var(--tc-primary); font-family: "Space Grotesk", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif; font-family: var(--tc-font-display, inherit); }
.downloader-head > small { color: rgba(245, 247, 246, 0.62); color: var(--tc-text-muted, #9a9a9a); line-height: 1.5; }
.downloader-head > div > small { color: #f5f7f6; color: var(--tc-text, #fff); }
.downloader-head > div > input,
.downloader-head > div > select {
  box-sizing: border-box; width: 100%; padding: 11px 14px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09); border: 1px solid var(--tc-border); background: rgba(0, 0, 0, 0.35); color: #fff; outline: none;
}
.downloader-head > div > input:focus,
.downloader-head > div > select:focus { border-color: #22c955; border-color: var(--tc-primary-dim); box-shadow: 0 0 0 3px rgba(57, 255, 106, 0.12); }
.downloader-head > div > section { gap: 10px; }
.downloader-head > div > section button {
  flex: 1; padding: 10px; border-radius: 999px; border: none; font-weight: 700; cursor: pointer;
  background: linear-gradient(135deg, #39ff6a, #22c955); background: linear-gradient(135deg, var(--tc-primary), var(--tc-primary-dim)); color: #06210f;
}
.downloader-head > div > section button:nth-child(2) {
  background: transparent; color: #f5f7f6; color: var(--tc-text, #fff); border: 1px solid rgba(255, 255, 255, 0.09); border: 1px solid var(--tc-border);
}
.downloader-head > div > section button:disabled { opacity: 0.6; cursor: default; }

/* VISIT tiles: an illustration per category (SVG, no stock photos) */
.visit { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-gap: 10px !important; gap: 10px !important; width: 92% !important; margin: 10px auto 0 !important; }
.visit .visit-tile { position: relative; display: flex; align-items: flex-end; min-height: 96px; padding: 12px 14px; border-radius: 16px; overflow: hidden; isolation: isolate;
  text-decoration: none; color: #fff; border: 1px solid rgba(255,255,255,0.1); transition: transform .2s; }
.visit .visit-tile span { position: relative; z-index: 1; font-size: 15px; font-weight: 800; letter-spacing: .02em; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.visit .visit-art { position: absolute; right: -10px; top: -8px; width: 92px; height: 92px; fill: rgba(255,255,255,0.28); z-index: 0; transform: rotate(-10deg); }
.visit .visit-tile:hover, .visit .visit-tile:focus-visible { transform: translateY(-2px); border-color: #39ff6a; border-color: var(--tc-primary, #39ff6a); outline: none; }
.visit .is-music   { background: linear-gradient(135deg, #0f9d58, #0b3d2a); }
.visit .is-album   { background: linear-gradient(135deg, #7b2ff7, #2a0f5c); }
.visit .is-mix     { background: linear-gradient(135deg, #ff6a00, #6b1d00); }
.visit .is-beat    { background: linear-gradient(135deg, #00b4d8, #023e58); }
.visit .is-movie   { background: linear-gradient(135deg, #e53935, #4a0d0c); }
.visit .is-series  { background: linear-gradient(135deg, #3949ab, #121a4a); }
.visit .is-mv      { background: linear-gradient(135deg, #d81b60, #4a0a22); }
.visit .is-comedy  { background: linear-gradient(135deg, #f9a825, #5c3b00); }
.visit .is-cartoon { background: linear-gradient(135deg, #26c6da, #0b4a52); }
.visit .is-reels   { background: linear-gradient(135deg, #ec407a, #6a1b9a); }
.visit .is-blog    { background: linear-gradient(135deg, #546e7a, #1c262b); }
.visit .is-charts  { background: linear-gradient(135deg, #c0a000, #3d3300); }
@media (min-width: 700px) { .visit { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } .visit .visit-tile { min-height: 120px; } }
@media (min-width: 1100px) { .visit { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; } }

/* "Not found" request form */
.req-wrap { width: 92%; max-width: 640px; margin: 14px auto 6px; }
.req-card { display: grid; grid-gap: 14px; gap: 14px; padding: 18px; border-radius: 18px; border: 1px solid rgba(255, 255, 255, 0.09); border: 1px solid var(--tc-border, rgba(255,255,255,0.12));
  background: linear-gradient(180deg, rgba(30,34,31,0.85), rgba(18,21,19,0.9)); text-align: left; }
.req-head { display: flex; gap: 12px; align-items: flex-start; }
.req-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(57,255,106,0.12); }
.req-ic svg { width: 22px; height: 22px; fill: #39ff6a; fill: var(--tc-primary, #39ff6a); }
.req-head b { display: block; margin-bottom: 4px; font-size: 16.5px; color: #fff; }
.req-head small { display: block; font-size: 13.5px; line-height: 1.5; color: #bdbdbd; }
.req-grid { display: grid; grid-gap: 12px; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.req-field { display: grid; grid-gap: 6px; gap: 6px; min-width: 0; }
.req-field.is-wide { grid-column: 1 / -1; }
.req-field > span { font-size: 13px; font-weight: 700; color: #e6e6e6; }
.req-field input, .req-field select { width: 100%; box-sizing: border-box; height: 46px; padding: 0 13px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.16);
  background: rgba(10,13,11,0.7); color: #fff; font: 15px inherit; }
.req-field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2339ff6a'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 22px; }
.req-field select option { background: #151815; color: #fff; }
.req-field input::placeholder { color: #8a8a8a; }
.req-field input:focus, .req-field select:focus { outline: none; border-color: #39ff6a; border-color: var(--tc-primary, #39ff6a); box-shadow: 0 0 0 3px rgba(57,255,106,0.15); }
.req-card .request-message { margin: 0; font-size: 14px; min-height: 0; }
.req-card .request-message:empty { display: none; }
.req-actions { display: flex; gap: 10px; justify-content: flex-end; }
.req-btn { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06); color: #fff; font: 700 14px/1 inherit; cursor: pointer; }
.req-btn.is-primary { background: #39ff6a; background: var(--tc-primary, #39ff6a); border-color: #39ff6a; border-color: var(--tc-primary, #39ff6a); color: #06210f; }
.req-btn:disabled { opacity: .55; cursor: not-allowed; }
@media (max-width: 420px) { .req-grid { grid-template-columns: 1fr; } .req-actions .req-btn { flex: 1; } }

/* Accounts and Hashtags tabs (9 Nov, part 2) */
.st-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; text-align: left; font: inherit; color: inherit;
  border-radius: 14px; border-radius: var(--tc-radius-md, 12px); border: 1px solid rgba(255, 255, 255, 0.09); border: 1px solid var(--tc-border, rgba(255,255,255,0.08)); background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01)); background-image: var(--tc-gradient-glass); }
button.st-row { cursor: pointer; }
.st-row:hover, .st-row:focus-within { border-color: #22c955; border-color: var(--tc-primary-dim, #22c955); }
.st-ic { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 800;
  background: rgba(57,255,106,0.1); color: #39ff6a; color: var(--tc-primary, #39FF6A); border: 1px solid rgba(57,255,106,0.25); }
.st-main { display: grid; grid-gap: 2px; gap: 2px; min-width: 0; flex: 1; }
.st-main b { display: flex; align-items: center; gap: 5px; font-size: 15px; color: #f5f7f6; color: var(--tc-text, #fff); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-main b mark { background: none; color: #39ff6a; color: var(--tc-primary, #39FF6A); }
.st-main small { font-size: 12.5px; color: rgba(245, 247, 246, 0.62); color: var(--tc-text-muted, #9a9a9a); }
.st-main .st-bio { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-go { flex: none; width: 20px; height: 20px; opacity: .6; }
.st-acc-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.st-acc img { flex: none; width: 50px; height: 50px; border-radius: 50%; object-fit: cover; background: #1d1d1d; }
.st-tick { flex: none; width: 16px; height: 16px; fill: #39ff6a; fill: var(--tc-primary, #39FF6A); }
.st-follow.tc-follow { min-height: 36px; padding: 0 14px 0 11px; font-size: 13px; flex: none; }
.st-tag-head b { color: #39ff6a; color: var(--tc-primary, #39FF6A); font-size: 15px; }
.st-back { margin-left: 8px; border: 1px solid rgba(255, 255, 255, 0.09); border: 1px solid var(--tc-border, rgba(255,255,255,0.15)); background: none; color: inherit; border-radius: 999px; padding: 4px 12px; font: inherit; font-size: 12.5px; cursor: pointer; }
#searchTabs { overflow-x: auto; scrollbar-width: none; }
#searchTabs::-webkit-scrollbar { display: none; }
.st-main b { display: block; }
.st-tick { display: inline-block; vertical-align: -3px; margin-left: 4px; }

/* compat:rich:start — capable devices only (html.tc-rich, set in the head): glass blur, big soft shadows,
   filters. Weak phones and old browsers use the lighter look in the rules above. */
.tc-rich header { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tc-rich .Down-header { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tc-rich .search-bar { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.tc-rich .visit > div button { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); background: rgba(18, 18, 18, 0.55); }
.tc-rich .downloader-head { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
/* compat:rich:end */

/* compat:motion:start — decorative movement, only when the phone isn't set to reduce motion */
@media (prefers-reduced-motion: no-preference) {
  #searchMic.is-listening::after { animation: tc-mic-pulse 1s ease-out infinite; }
}
/* compat:motion:end */
/* compat:aspect — browsers without aspect-ratio (Chrome < 88, Safari < 15): fixed sizes that match
   the mobile layout, so boxes with a background picture or absolutely placed contents don't collapse. */
@supports not (aspect-ratio: 1 / 1) {
  .visit > div { height: 22vw; max-height: 180px; }
}

/* compat:no-flexgap:start — rebuilt by tools/css_compat.py: spacing for engines without flex gap
   (html.no-flexgap, set in the head). Edit the gap in the rule above, then run the tool. */
.no-flexgap .sidebar li:nth-child(2) div > div > :not(:last-child) { margin-right: 10px; }
.no-flexgap .search-results > :not(:last-child) { margin-bottom: 8px; }
.no-flexgap .search-result > :not(:last-child) { margin-right: 12px; }
.no-flexgap .search-result-body > :not(:last-child) { margin-bottom: 3px; }
.no-flexgap .search-result-meta > * { margin-right: 6px; margin-bottom: 6px; }
.no-flexgap .search-bar > :not(:last-child) { margin-right: 6px; }
.no-flexgap .popular-search > * { margin-right: 8px; margin-bottom: 8px; }
.no-flexgap .popular-search > div > :not(:last-child) { margin-right: 8px; }
.no-flexgap .downloader-head > div > section > :not(:last-child) { margin-right: 10px; }
.no-flexgap .req-head > :not(:last-child) { margin-right: 12px; }
.no-flexgap .req-actions > :not(:last-child) { margin-right: 10px; }
.no-flexgap .st-row > :not(:last-child) { margin-right: 12px; }
.no-flexgap .st-main b > :not(:last-child) { margin-right: 5px; }
.no-flexgap .st-acc-link > :not(:last-child) { margin-right: 12px; }
/* compat:no-flexgap:end */
