/* «Самые обсуждаемые» по месяцам и «Лучшее за год» (16.11). Шапка и шар из «Моего вкуса» (me.css), здесь только своё */

/* месяц в заголовке золотой кнопкой */
.tm-pill { display: inline-flex; align-items: center; gap: .18em; padding: 0 .42em .04em .5em; margin-left: -.04em; border-radius: 999px;
  font: inherit; letter-spacing: inherit; color: var(--gold); background: rgba(233, 180, 92, .12); border: 1.5px solid rgba(233, 180, 92, .5);
  cursor: pointer; line-height: 1.06; white-space: nowrap; transition: background-color var(--d1), border-color var(--d1); }
.tm-pill svg { width: .42em; height: .42em; transition: transform var(--d2) var(--ease); }
.tm-pill[aria-expanded="true"] svg { transform: rotate(180deg); }
@media (hover: hover) { .tm-pill:hover { background: rgba(233, 180, 92, .18); border-color: rgba(233, 180, 92, .75); } }
.tm-cover .mx-cover-t { position: relative; }
.tm-cover .mx-cover-h { max-width: 11ch; }
.tm-n { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 560px; column-gap: var(--s5); }

/* окно выбора месяца поверх страницы */
.tm-sheet { position: absolute; z-index: 30; left: 0; margin-top: var(--s2); width: min(520px, calc(100vw - 2 * var(--gut))); padding: var(--s2);
  display: flex; flex-direction: column; gap: 6px; border-radius: var(--r3, 18px); background: #1c1814;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 40px rgba(0, 0, 0, .5); }
.tm-sheet[hidden] { display: none; }
.tm-sh-top { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tm-ms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tm-sheet a, .tm-sheet .dis { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; color: var(--ink);
  text-decoration: none; font: 600 var(--t-m)/20px var(--f-display); justify-content: flex-start; background: rgba(255, 255, 255, .035); transition: background-color var(--d1); }
.tm-sheet small { color: var(--muted); font-weight: 500; font-size: var(--t-xs); line-height: 16px; }
.tm-sheet a.on { background: rgba(233, 180, 92, .14); color: var(--gold); }
.tm-sheet a.best { color: var(--gold); background: rgba(233, 180, 92, .07); }
.tm-sheet .dis { opacity: .32; cursor: default; }
@media (hover: hover) { .tm-sheet a:hover { background: rgba(255, 255, 255, .07); } .tm-sheet a.on:hover, .tm-sheet a.best:hover { background: rgba(233, 180, 92, .18); } }
.tm-years { display: flex; gap: 4px; overflow-x: auto; padding: 4px 0 2px; scrollbar-width: none; }
.tm-years::-webkit-scrollbar { display: none; }
.tm-years button { flex: 0 0 auto; padding: 6px 11px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2);
  font: 600 var(--t-s)/1 var(--f-display); cursor: pointer; }
.tm-years button.on { background: var(--paper); color: var(--label-ink, #111); box-shadow: none; }

/* шар и то, что под ним */
.tm-sph { position: relative; }
.tm-sph .mx-tip { width: 250px; }
.tm-sph .mx-tip > span { grid-template-columns: 1fr; }
.tm-sph .mx-tip em { grid-column: 1; grid-row: auto; font: 600 var(--t-xs)/1.35 var(--f-display); margin-top: 2px; }
.tm-sph .mx-tip em.tm-tme { color: var(--ink-2); font-weight: 500; margin-top: 0; }
.tm-sph.tm-empty canvas { display: none; }
.tm-sph .tm-leg { flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.tm-sph .tm-leg .tm-szl { flex-basis: 100%; margin-top: 0; }
/* те же цвета, что у точек шара: красный ругают, серый в середине, зелёный хвалят */
.tm-sph .tm-leg i.tm-grad { display: block; width: 120px; height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, rgb(196, 98, 70), rgb(170, 160, 140) 50%, rgb(150, 184, 118) 75%, rgb(72, 178, 112)); }
.tm-ctl { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: var(--s4); }
/* 16.11, Леша: кнопки под шаром, а текст слева по центру высоты шара, чтобы снизу слева не было пусто */
@media (min-width: 861px) { .tm-cover { align-items: center; } .tm-cover > .mx-cover-t { align-self: center; } }
.tm-nw { white-space: nowrap; }
.tm-ctl .seg a { display: inline-flex; align-items: center; height: 34px; padding: 0 15px; border-radius: 999px; font: 500 14px/1 var(--f-display);
  color: var(--muted); text-decoration: none; transition: background-color var(--d1), color var(--d1); }
.tm-ctl .seg a.on { background: var(--glass-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2), 0 2px 8px rgba(0, 0, 0, .3); }
.tm-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
a.chip { text-decoration: none; }
.tm-x { margin-left: 4px; opacity: .6; font-weight: 500; }

/* заголовок списка и фильтр */
.tm-listh { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); margin: var(--s7) 0 var(--s4); }
.tm-lr { display: flex; align-items: center; gap: var(--s4); }
.tm-lr .meta { color: var(--muted); white-space: nowrap; }
.tm-fwrap { position: relative; }
.tm-fbtn svg { width: 16px; height: 16px; }
.tm-fpanel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: min(340px, calc(100vw - 2 * var(--gut))); padding: var(--s4);
  border-radius: var(--r3, 18px); background: #1c1814; box-shadow: inset 0 0 0 1px var(--line-2), 0 18px 40px rgba(0, 0, 0, .5); }
.tm-fpanel[hidden] { display: none; }
.tm-fh { color: var(--muted); font-size: var(--t-s); font-weight: 600; margin: var(--s4) 0 var(--s2); }
.tm-fh:first-child { margin-top: 0; }
.tm-fl { display: flex; flex-wrap: wrap; gap: 8px; }
.tm-fseg { display: flex; width: 100%; } .tm-fseg button { flex: 1; padding: 0 8px; }
.tm-fnote { color: var(--faint); font-size: var(--t-s); }
.tm-freset { margin-top: var(--s4); color: var(--muted); }

/* строки */
.tm-row .y .tm-cs { font-weight: 700; }
.tm-new { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 6px; background: rgba(233, 180, 92, .14); color: var(--gold);
  font-size: 11px; font-weight: 600; vertical-align: 1px; }
.tm-more { display: flex; margin: var(--s5) auto 0; }
.tm-gate { max-width: 520px; margin: 0 auto; text-align: center; }

/* вопросы и ответы, ссылки на архив: их же отдаёт сервер для поиска */
.tm-faq { margin-top: var(--s8); max-width: 760px; } .tm-faq h2 { margin-bottom: var(--s3); }
.tm-faq details { border-top: 1px solid var(--line); padding: var(--s4) 0; }
.tm-faq summary { font-weight: 600; cursor: pointer; font-size: var(--t-b); }
.tm-faq p { color: var(--ink-2); margin-top: var(--s2); line-height: 1.55; max-width: 64ch; }
.tm-links { margin-top: var(--s6); padding: var(--s5) 0 var(--s7); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--t-s); line-height: 2; }
.tm-links b { color: var(--ink-2); margin-right: 8px; }
.tm-links a { color: var(--ink-2); margin-right: 16px; white-space: nowrap; text-decoration: none; }
.tm-links a[aria-current] { color: var(--gold); }
@media (hover: hover) { .tm-links a:hover { color: var(--ink); } }

@media (max-width: 860px) {
  .tm-cover .mx-cover-h { max-width: none; }
  .tm-n { column-gap: var(--s4); }
  .tm-listh { margin-top: var(--s6); }
}
@media (max-width: 560px) {
  .tm-ms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tm-listh { flex-wrap: wrap; gap: var(--s2) var(--s4); }
  .tm-listh h2 { flex-basis: 100%; }
  .tm-lr { width: 100%; justify-content: space-between; }
  .tm-ctl .seg a { padding: 0 12px; }
  .tm-n span { font-size: var(--t-xs); }
  /* 16.11, Леша: на телефоне название и строка мнений видны целиком, переносятся, а не обрезаются */
  .tm-row .y, .tm-row .t { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
  .tm-row .y { line-height: 1.4; } .tm-row .t { line-height: 1.25; }
  .tm-row .r { flex: none; }
}
/* 16.11, Леша: две верхние строки вкладок одной ширины, кнопки делят её поровну */
.tm-ctl .seg { display: flex; width: min(100%, 400px); }
.tm-ctl .seg > * { flex: 1 1 0; justify-content: center; padding: 0 8px; white-space: nowrap; }
.tm-ctl .tm-line { flex-wrap: nowrap; width: min(100%, 400px); }
.tm-ctl .tm-line > .chip { flex: 1 1 0; justify-content: center; white-space: nowrap; }
/* «?» вместо процентов у гостя: та же плашка, только приглушённая */
.tm-q.pp.two { --c: var(--muted); --cf: var(--muted); --cl: var(--muted); border-color: var(--line-2); color: var(--muted); }
/* 16.11, Леша: кнопка месяца не прилипает к строке заголовка выше */
.tm-cover .mx-cover-h { line-height: 1.18; }
.tm-pill { vertical-align: .04em; }
/* 16.11, Леша: на телефоне плотнее, больше информации на экране */
@media (max-width: 860px) {
  .tm-cover { gap: 0; padding-top: var(--s3); }
  .tm-cover .mx-cover-k { margin-bottom: var(--s2); }
  .tm-cover .mx-cover-l { margin-top: var(--s3); }
  .tm-cover .tm-n { margin-top: var(--s4); padding-top: var(--s4); }
  .tm-cover .tm-n span { margin-top: 4px; }
  .tm-sph canvas { aspect-ratio: 1 / .62; margin-top: 0; }
  .tm-ctl { margin-top: var(--s3); gap: 8px; }
  .tm-listh { margin-top: var(--s5); margin-bottom: var(--s3); }
}
/* 16.11, Леша: на сайте всё выше, без пустоты над шаром */
@media (min-width: 861px) {
  .tm-cover { margin-top: 0; padding-top: var(--s4); }
  .tm-sph canvas { aspect-ratio: 1 / .76; }
  .tm-listh { margin-top: var(--s6); }
}
.page.tm-pg { padding-top: var(--s5); }
/* строка мнений: неразрывные куски с отступом, без висящих точек */
.tm-bits { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; white-space: normal; }
.tm-bits > span { white-space: nowrap; } .tm-bits .tm-new { margin-left: 0; }
.tm-one { white-space: nowrap; }
.tm-row .t .tm-new { vertical-align: 2px; }
@media (max-width: 560px) { .tm-row .y { white-space: nowrap !important; } }
.tm-f3 { color: var(--muted); font-weight: 600; font-size: var(--t-xs); }
/* 16.11, Леша: строка мнений всегда в одну строку. На узком телефоне строка списка плотнее, как в приложении */
@media (max-width: 420px) {
  .tm-row { gap: 10px; padding-right: 10px; }
  .tm-row .r { gap: 6px; }
  .tm-row .r > .rc, .tm-row .r > span[class*="rc"] { width: 38px; height: 38px; font-size: 14px; }
}
/* 16.11, тестирование: название фильма видно целиком на любой ширине */
.tm-row .t { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.25; }
