:root {
  color-scheme: dark;
  --background: #050505;
  --surface: #0c0c0c;
  --surface-soft: #121212;
  --surface-bright: #17130c;
  --gold: #ffc21c;
  --gold-light: #ffd862;
  --orange: #ff9000;
  --purple: #8d3bd1;
  --text: #fffaf0;
  --muted: #aaa296;
  --line: #5b4106;
  --danger: #ff775e;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
}

body {
  margin: 0;
  min-height: 100vh;
  padding-bottom: 84px;
  color: var(--text);
  background:
    radial-gradient(circle at 75% -10%, rgba(255, 137, 0, 0.12), transparent 28%),
    var(--background);
  font-family: Inter, Arial, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.app-header {
  padding: 18px 0 16px;
  border-bottom: 1px solid rgba(255, 194, 28, 0.18);
  background: rgba(5, 5, 5, 0.98);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-button {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.brand-button img {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 18px rgba(255, 180, 0, 0.2));
}

.brand-button span {
  display: grid;
  gap: 5px;
}

.brand-button strong {
  color: var(--gold);
  font-size: 29px;
  letter-spacing: 0.04em;
}

.brand-button small {
  color: var(--muted);
  font-size: 17px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.round-button,
.admin-button {
  border: 1px solid var(--line);
  background: #090909;
  color: var(--gold-light);
}

.round-button {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 15px;
  font-size: 27px;
}

.admin-button {
  min-height: 50px;
  padding: 0 16px;
  border-radius: 13px;
  font-weight: 800;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 17px;
  padding: 0 17px;
  border: 1px solid #44350f;
  border-radius: 15px;
  background: #0d0d0d;
}

.search-field > span {
  color: #a0998d;
  font-size: 25px;
}

.search-field input {
  width: 100%;
  min-width: 0;
  padding: 15px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  font-size: 17px;
}

.search-field button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 25px;
}

.top-navigation {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin-top: 14px;
}

.top-navigation button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #40320e;
  border-radius: 13px;
  background: #0c0c0c;
  color: #f6ebd2;
  font-weight: 750;
}

.top-navigation button span {
  color: var(--gold);
  font-size: 23px;
}

.top-navigation button.active {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #180f00;
  box-shadow: 0 8px 25px rgba(255, 145, 0, 0.14);
}

.top-navigation button.active span {
  color: #180f00;
}

.top-navigation .random-tab {
  border-color: #7b35a7;
  background: linear-gradient(135deg, #251034, #622589);
  color: white;
  box-shadow: 0 0 26px rgba(137, 61, 197, 0.16);
}

.page-content {
  padding-top: 18px;
}

.featured-section {
  margin-bottom: 22px;
}

.featured-card {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border: 1px solid #8a6200;
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.76) 45%, rgba(0, 0, 0, 0.18) 100%),
    var(--featured-poster) center 20% / cover no-repeat;
  box-shadow: 0 24px 80px rgba(255, 137, 0, 0.11);
}

.featured-content {
  position: relative;
  z-index: 2;
  width: min(600px, 68%);
  min-height: 410px;
  padding: 35px 29px;
}

.featured-label,
.premium-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.featured-label {
  padding: 7px 11px;
  border: 1px solid #8f6504;
  background: rgba(20, 14, 3, 0.82);
  color: var(--gold);
}

.premium-badge {
  position: absolute;
  top: 25px;
  right: -46%;
  padding: 9px 13px;
  border: 1px solid #80600f;
  background: rgba(13, 13, 13, 0.83);
  color: var(--gold);
}

.featured-content h1 {
  margin: 17px 0 11px;
  color: white;
  font-family: Georgia, serif;
  font-size: clamp(42px, 6vw, 64px);
  line-height: 0.98;
}

.featured-information,
.featured-genres,
.featured-buttons {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.featured-information strong {
  color: var(--gold);
  font-size: 18px;
}

.featured-information span {
  color: #c3baaa;
}

.featured-information span + span::before {
  content: "•";
  margin-right: 9px;
  color: #756c5d;
}

.featured-genres {
  margin-top: 15px;
}

.featured-genres span {
  padding: 6px 9px;
  border: 1px solid #51400e;
  border-radius: 7px;
  background: rgba(10, 10, 10, 0.55);
  color: #d7c69f;
  font-size: 12px;
}

.featured-content > p {
  max-width: 510px;
  margin: 19px 0;
  color: #d7d0c5;
  font-size: 15px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-buttons a,
.featured-buttons button {
  min-width: 150px;
  padding: 13px 20px;
  border-radius: 11px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.featured-buttons a {
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #170e00;
}

.featured-buttons button {
  border: 1px solid #73520a;
  background: rgba(8, 8, 8, 0.8);
  color: white;
}

.featured-dots {
  display: flex;
  gap: 7px;
  margin-top: 25px;
}

.featured-dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #59544c;
}

.featured-dots i:first-child {
  background: var(--gold);
}

.featured-watermark {
  position: absolute;
  right: 3%;
  bottom: 6%;
  z-index: 1;
  width: 100px;
  opacity: 0.15;
  border-radius: 50%;
}

.home-section {
  margin: 25px 0 29px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.section-heading h2 {
  margin: 0;
  font-size: 25px;
}

.text-button {
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-weight: 800;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.collection-card {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border: 1px solid #685011;
  border-radius: 13px;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.08) 72%),
    var(--collection-cover) center / cover no-repeat;
  cursor: pointer;
}

.collection-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.62;
}

.collection-card.romance::before {
  background: linear-gradient(145deg, rgba(177, 42, 73, 0.55), transparent);
}

.collection-card.historical::before {
  background: linear-gradient(145deg, rgba(70, 51, 133, 0.53), transparent);
}

.collection-card.comedy::before {
  background: linear-gradient(145deg, rgba(49, 125, 131, 0.5), transparent);
}

.collection-card.new::before {
  background: linear-gradient(145deg, rgba(211, 89, 0, 0.55), transparent);
}

.collection-card.vertical::before {
  background: linear-gradient(145deg, rgba(17, 111, 194, 0.55), transparent);
}

.collection-card-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 15px 13px;
}

.collection-card h3 {
  margin: 0;
  font-size: 17px;
}

.collection-card p {
  margin: 5px 0 0;
  color: #eee1c3;
  font-size: 13px;
}

.random-feature {
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin: 27px 0;
  padding: 20px 25px;
  border: 1px solid #873eb6;
  border-radius: 17px;
  background:
    radial-gradient(circle at 10% 50%, rgba(167, 58, 255, 0.27), transparent 18%),
    linear-gradient(90deg, #1b0925, #130917);
  box-shadow: 0 0 30px rgba(145, 55, 203, 0.13);
}

.random-logo {
  display: grid;
  place-items: center;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(177, 74, 250, 0.38), transparent 65%);
}

.random-logo img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  border-radius: 50%;
}

.random-copy h2 {
  margin: 0 0 6px;
  color: #d58aff;
}

.random-copy p {
  margin: 0;
  color: #c6b6cc;
  line-height: 1.45;
}

.purple-button {
  min-width: 150px;
  padding: 13px 20px;
  border: 1px solid #a84bdc;
  border-radius: 11px;
  background: linear-gradient(135deg, #9e45d8, #65228f);
  color: white;
  font-weight: 900;
}

.admin-drafts-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 25px 0;
  padding: 17px 20px;
  border: 1px solid #91690b;
  border-radius: 15px;
  background: linear-gradient(110deg, rgba(255, 194, 28, 0.12), rgba(255, 138, 0, 0.04));
}

.admin-drafts-panel > div {
  display: flex;
  align-items: center;
  gap: 15px;
}

.admin-drafts-panel > div > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--gold);
  border-radius: 13px;
  font-size: 25px;
}

.admin-drafts-panel small {
  color: #cf9b2e;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.admin-drafts-panel h2 {
  margin: 3px 0;
  color: var(--gold-light);
}

.admin-drafts-panel p {
  margin: 0;
  color: var(--muted);
}

.admin-drafts-panel button {
  flex: 0 0 auto;
  padding: 12px 17px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #160e00;
  font-weight: 900;
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

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

.poster-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #56400c;
  border-radius: 13px;
  background: #0b0b0b;
}

.poster-card-image {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: white;
}

.poster-card-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poster-card-badges {
  position: absolute;
  left: 8px;
  top: 8px;
  display: grid;
  gap: 5px;
}

.poster-card-badges span {
  width: max-content;
  max-width: 150px;
  padding: 5px 7px;
  border: 1px solid var(--gold);
  border-radius: 6px;
  background: rgba(9, 9, 9, 0.86);
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
}

.favorite-card-button {
  position: absolute;
  right: 8px;
  top: 8px;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  padding: 0;
  border: 1px solid #806016;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.86);
  color: var(--gold);
  font-size: 22px;
}

.rating-chip {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 7px;
  border-radius: 7px;
  background: rgba(10, 10, 10, 0.87);
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.poster-card-body {
  display: flex;
  flex-direction: column;
  min-height: 154px;
  padding: 12px;
}

.poster-card-body h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.poster-card-body > p {
  margin: 8px 0 13px;
  color: var(--muted);
  font-size: 12px;
}

.poster-card-actions {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1fr);
  gap: 7px;
  margin-top: auto;
}

.poster-card-actions button,
.poster-card-actions a {
  min-width: 0;
  padding: 9px 7px;
  border-radius: 8px;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
}

.poster-card-actions .details-card-button {
  border: 1px solid #5e470f;
  background: #111;
  color: white;
}

.poster-card-actions a {
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #160e00;
}

.edit-card-button {
  border: 1px solid #6e500c;
  background: #1a1509;
  color: var(--gold);
}

.catalog-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  margin: 10px 0 18px;
}

.section-label {
  color: #c99220;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.catalog-toolbar h1,
.profile-heading h1 {
  margin: 4px 0 0;
  color: var(--gold-light);
}

.outline-button,
.danger-button {
  padding: 10px 13px;
  border-radius: 9px;
}

.outline-button {
  border: 1px solid #624a10;
  background: #111;
  color: white;
}

.danger-button {
  border: 1px solid #713224;
  background: #26110c;
  color: var(--danger);
}

.admin-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 17px;
}

.admin-filters button {
  padding: 9px 13px;
  border: 1px solid #56410e;
  border-radius: 9px;
  background: #111;
  color: white;
}

.admin-filters button.active {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #160e00;
  font-weight: 900;
}

.collection-playlists > p {
  color: var(--muted);
  line-height: 1.5;
}

.playlist-buttons {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 13px 0 18px;
}

.playlist-buttons a {
  padding: 10px 13px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #160e00;
  text-decoration: none;
  font-weight: 900;
}

.empty-state {
  padding: 70px 0;
  text-align: center;
}

.empty-state > span {
  font-size: 45px;
}

.empty-state h2 {
  color: var(--gold-light);
}

.empty-state p,
.empty-copy {
  color: var(--muted);
}

.profile-heading {
  display: flex;
  align-items: center;
  gap: 15px;
}

.profile-heading img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin: 22px 0 28px;
}

.profile-stats article {
  display: grid;
  gap: 5px;
  padding: 20px;
  border: 1px solid #48370d;
  border-radius: 13px;
  background: #10100e;
  text-align: center;
}

.profile-stats strong {
  color: var(--gold);
  font-size: 32px;
}

.profile-stats span {
  color: var(--muted);
}

.profile-section h2 {
  color: var(--gold-light);
}

.review-list {
  display: grid;
  gap: 10px;
}

.review-card {
  padding: 13px;
  border: 1px solid #3c3011;
  border-radius: 10px;
  background: #11110f;
}

.review-card p {
  margin: 7px 0 0;
  color: #d1c7b6;
  line-height: 1.5;
}

.bottom-navigation {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  padding: 8px max(8px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
  border-top: 1px solid rgba(255, 194, 28, 0.19);
  background: rgba(8, 8, 8, 0.97);
  backdrop-filter: blur(16px);
}

.bottom-navigation button {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: 5px 2px;
  border: 0;
  background: transparent;
  color: #8f8a81;
}

.bottom-navigation button span {
  font-size: 24px;
}

.bottom-navigation button small {
  font-size: 10px;
}

.bottom-navigation button.active {
  color: var(--gold);
}

.modal {
  width: min(940px, calc(100% - 24px));
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  border: 1px solid #654a0b;
  border-radius: 18px;
  background: #090909;
  color: white;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.86);
  backdrop-filter: blur(5px);
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 10;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  padding: 0;
  border: 1px solid #674b0b;
  border-radius: 50%;
  background: rgba(7, 7, 7, 0.92);
  color: white;
  font-size: 25px;
}

#detailsContent {
  max-height: 92vh;
  overflow: auto;
}

/* Карточка дорамы рассчитана на окно VK 1000 × 1150: используем почти
   всю доступную площадь, но сохраняем небольшую рамку вокруг диалога. */
#detailsDialog {
  width: min(984px, calc(100% - 12px));
  max-height: calc(100dvh - 12px);
}

#detailsDialog #detailsContent {
  max-height: calc(100dvh - 12px);
  scrollbar-gutter: stable;
}

#detailsDialog > .modal-close {
  position: fixed;
  right: max(14px, calc((100vw - 984px) / 2 + 14px));
  top: 14px;
  width: 39px;
  height: 39px;
  font-size: 22px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .5);
}

.details-layout {
  display: grid;
  grid-template-columns: minmax(270px, 32%) minmax(0, 1fr);
}

.details-poster-column {
  position: relative;
  min-height: 650px;
  padding: 16px;
  background:
    radial-gradient(circle at center, rgba(255, 149, 0, 0.08), transparent 55%),
    #0c0904;
}

.details-poster-column > img {
  width: 100%;
  height: auto;
  max-height: 570px;
  object-fit: contain;
  border-radius: 12px;
}

.details-poster-labels {
  position: absolute;
  left: 28px;
  top: 28px;
  display: grid;
  gap: 6px;
}

.details-poster-labels span {
  width: max-content;
  padding: 6px 8px;
  border: 1px solid var(--gold);
  border-radius: 7px;
  background: rgba(7, 7, 7, 0.9);
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.details-information {
  padding: 27px 28px 36px;
}

.details-information > h1 {
  margin: 7px 48px 11px 0;
  color: var(--gold-light);
  font-size: clamp(29px, 5vw, 43px);
  line-height: 1.06;
}

.details-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.details-chips span {
  padding: 6px 8px;
  border: 1px solid #4a380c;
  border-radius: 7px;
  background: #12110d;
  color: #e6c464;
  font-size: 12px;
}

.details-description {
  color: #e4dccf;
  line-height: 1.5;
  white-space: pre-wrap;
}

.details-actors {
  color: #dfa92f;
  line-height: 1.5;
}

.details-watch-button {
  display: inline-block;
  margin: 5px 0 22px;
  padding: 12px 21px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #170e00;
  text-decoration: none;
  font-weight: 900;
}

.details-watch-actions{display:flex;flex-wrap:wrap;gap:10px;margin:5px 0 22px}
.details-watch-actions .details-watch-button{margin:0}
.details-subscription-watch{background:linear-gradient(135deg,#ffd144,#d88a00)!important}
.details-free-watch{background:linear-gradient(135deg,var(--gold),var(--orange))!important}
@media(max-width:560px){.details-watch-actions{display:grid;grid-template-columns:1fr}.details-watch-actions .details-watch-button{width:100%;font-size:13px;padding:12px 9px}}

.rating-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px;
  border: 1px solid #4c390c;
  border-radius: 12px;
  background: #11100d;
}

.rating-section h2,
.rating-section p {
  margin: 0;
}

.rating-section p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.rating-stars {
  display: flex;
  gap: 6px;
}

.rating-stars button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #55400f;
  border-radius: 10px;
  background: #0b0b0b;
  color: #736039;
  font-size: 21px;
}

.rating-stars button:hover,
.rating-stars button.selected {
  border-color: var(--gold);
  color: var(--gold);
}

.review-form {
  display: grid;
  gap: 13px;
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #40320e;
  border-radius: 13px;
  background: #10100e;
}

.review-form h2 {
  margin: 0;
  color: var(--gold-light);
}

.review-form label,
.admin-form label {
  display: grid;
  gap: 7px;
  color: #e1d4ba;
  font-weight: 750;
}

.review-form input,
.review-form textarea,
.admin-form input,
.admin-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #40340f;
  border-radius: 9px;
  outline: 0;
  background: #080808;
  color: white;
}

.review-form input:focus,
.review-form textarea:focus,
.admin-form input:focus,
.admin-form textarea:focus {
  border-color: var(--gold);
}

.primary-button {
  justify-self: start;
  padding: 11px 17px;
  border: 1px solid var(--gold);
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #170e00;
  font-weight: 900;
}

.details-reviews {
  margin-top: 24px;
}

.details-reviews h2 {
  color: var(--gold-light);
}

.details-reviews h2 span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: #241b08;
  color: var(--gold);
  font-size: 12px;
}

.admin-modal {
  width: min(800px, calc(100% - 24px));
  overflow: auto;
  padding: 20px;
}

/* Открытая административная форма прокручивается сама. Страница под ней
   остаётся неподвижной, поэтому в окне VK больше нет второго ползунка. */
html:has(#adminDialog[open]),
body:has(#adminDialog[open]) {
  overflow: hidden !important;
  overscroll-behavior: none;
}

#adminDialog > .modal-close {
  position: sticky;
  top: 0;
  right: auto;
  margin: 0 0 -43px auto;
  z-index: 100;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .62);
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-right: 55px;
}

.admin-tabs button {
  padding: 9px 13px;
  border: 1px solid #4b3a0e;
  border-radius: 9px;
  background: #111;
  color: white;
}

.admin-tabs button.active {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #170e00;
  font-weight: 900;
}

.admin-form {
  display: grid;
  gap: 13px;
  margin-top: 20px;
}

.bulk-catalog-export {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid #5e470f;
  border-radius: 12px;
  background: #100e08;
}

/* Модальные окна используют единственный внутренний ползунок. Это исключает
   последовательную прокрутку формы, а затем всей страницы приложения. */
html.modal-viewport-lock,
body.modal-viewport-lock {
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden !important;
  overscroll-behavior: none;
}

#detailsDialog[open],
#adminDialog[open] {
  position: fixed;
  inset: 6px;
  width: auto;
  max-width: 984px;
  height: calc(100dvh - 12px);
  max-height: calc(100dvh - 12px);
  margin: auto;
  overscroll-behavior: contain;
}

#detailsDialog[open] {
  overflow: hidden;
}

#detailsDialog[open] #detailsContent {
  height: 100%;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
}

#adminDialog[open] {
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

#adminDialog[open] #dramaForm {
  padding-bottom: 82px;
}

#adminDialog[open] #dramaForm:not([hidden]) > button.primary-button[type="submit"] {
  position: fixed;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 120;
  width: min(390px, calc(100vw - 42px));
  min-height: 52px;
  transform: translateX(-50%);
  box-shadow: 0 7px 28px rgba(0, 0, 0, .82), 0 0 0 2px #080808;
}
.bulk-catalog-export div { display: grid; gap: 4px; }
.bulk-catalog-export strong { color: var(--gold-light); }
.bulk-catalog-export small { color: var(--muted); }
@media(max-width:700px){
  #homeView .featured-badges-row .premium-badge{
    width:auto!important;
    max-width:100%!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
    line-height:1.15!important;
    text-align:center;
  }
  .bulk-catalog-export { grid-template-columns: 1fr; }
  .bulk-catalog-export button { width: 100%; }
}

.details-lower-close{display:none}
.details-opening-state{display:grid;place-items:center;align-content:center;gap:14px;min-height:52vh;padding:40px;color:#ffd35a;text-align:center}
.details-opening-state span{width:42px;height:42px;border:4px solid rgba(255,194,28,.24);border-top-color:#ffc21c;border-radius:50%;animation:details-opening-spin .8s linear infinite}
@keyframes details-opening-spin{to{transform:rotate(360deg)}}
@media(max-width:700px){
  #detailsDialog>.modal-close{display:none!important}
  #detailsDialog .details-lower-close{
    position:static;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    width:max-content;
    min-width:112px;
    height:44px;
    margin:0 0 14px;
    padding:0 14px;
    border:1px solid #9b720c;
    border-radius:999px;
    background:rgba(7,7,7,.94);
    color:#fff;
    font-size:25px;
    font-weight:900;
    line-height:1;
    touch-action:manipulation;
    box-shadow:none;
  }
  #detailsDialog .details-lower-close span{
    color:#ffc21c;
    font-size:12px;
    line-height:1;
  }
}

.admin-form h2 {
  margin: 0;
  color: var(--gold-light);
}

.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.admin-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.admin-checks label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px;
  border: 1px solid #44350e;
  border-radius: 9px;
  background: #10100e;
}

.admin-checks input {
  width: auto;
  accent-color: var(--orange);
}

.featured-checkbox {
  grid-column: 1 / -1;
  border-color: #8a6209 !important;
  color: var(--gold-light) !important;
}

.playlist-row {
  display: grid;
  grid-template-columns: 1fr 2fr 42px;
  gap: 7px;
  margin-bottom: 7px;
}

.playlist-row button {
  border: 1px solid #63301f;
  border-radius: 8px;
  background: #25110c;
  color: var(--danger);
}

.drama-check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  max-height: 250px;
  padding: 8px;
  overflow: auto;
  border: 1px solid #3d310f;
  border-radius: 9px;
}

.drama-check-list label {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 7px;
  border-radius: 7px;
  background: #0c0c0c;
}

.drama-check-list input {
  width: auto;
}

.collection-admin-list {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}

.collection-admin-list article {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 7px;
  align-items: center;
  padding: 8px;
  border: 1px solid #3f320f;
  border-radius: 8px;
}

.toast {
  position: fixed;
  left: 50%;
  top: max(16px, env(safe-area-inset-top));
  z-index: 150;
  width: min(480px, calc(100% - 24px));
  padding: 12px 15px;
  transform: translateX(-50%);
  border: 1px solid var(--gold);
  border-radius: 11px;
  background: #161108;
  color: #ffe09a;
  text-align: center;
  font-weight: 850;
}

.state-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 25px;
  text-align: center;
  background: radial-gradient(circle at top, #2d1c00, #050505 50%);
}

.state-screen img {
  width: 115px;
  height: 115px;
  object-fit: contain;
  border-radius: 50%;
}

.state-screen p {
  max-width: 500px;
  color: var(--muted);
}

.loader {
  width: 45px;
  height: 45px;
  margin-top: 18px;
  border: 4px solid #49380e;
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .collection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .premium-badge {
    right: -20%;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: 78px;
  }

  .shell {
    width: min(100% - 20px, 1040px);
  }

  .brand-button img {
    width: 62px;
    height: 62px;
  }

  .brand-button strong {
    font-size: 23px;
  }

  .brand-button small {
    font-size: 14px;
  }

  .round-button {
    display: none;
  }

  .admin-button {
    min-height: 44px;
    padding: 0 11px;
    font-size: 13px;
  }

  .top-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-navigation .random-tab {
    grid-column: 1 / -1;
  }

  .featured-card {
    min-height: 500px;
    background:
      linear-gradient(0deg, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.73) 58%, rgba(0, 0, 0, 0.09) 100%),
      var(--featured-poster) center top / cover no-repeat;
  }

  .featured-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    min-height: 500px;
    padding: 24px 21px;
  }

  .premium-badge {
    right: 18px;
    top: 18px;
  }

  .featured-content h1 {
    max-width: 70%;
    font-size: 43px;
  }

  .featured-content > p {
    -webkit-line-clamp: 3;
  }

  .featured-watermark {
    display: none;
  }

  .collection-grid {
    display: flex;
    gap: 11px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
  }

  .collection-card {
    flex: 0 0 185px;
    min-height: 165px;
    scroll-snap-align: start;
  }

  .random-feature {
    grid-template-columns: 80px minmax(0, 1fr);
    padding: 17px;
  }

  .random-logo {
    width: 70px;
    height: 70px;
  }

  .random-logo img {
    width: 58px;
    height: 58px;
  }

  .random-feature .purple-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .admin-drafts-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-drafts-panel button {
    width: 100%;
  }

  .home-card-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poster-card-actions {
    grid-template-columns: 38px 1fr;
  }

  .poster-card-actions a {
    grid-column: 1 / -1;
  }

  .catalog-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .details-layout {
    grid-template-columns: 1fr;
  }

  .details-poster-column {
    min-height: auto;
    padding: 13px;
  }

  .details-poster-column > img {
    max-height: 62vh;
  }

  .details-information {
    padding: 24px 19px 34px;
  }

  .rating-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-columns,
  .admin-checks,
  .drama-check-list {
    grid-template-columns: 1fr;
  }

  .featured-checkbox {
    grid-column: auto;
  }
}

@media (max-width: 440px) {
  .featured-content h1 {
    max-width: 82%;
    font-size: 37px;
  }

  .featured-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .featured-buttons a,
  .featured-buttons button {
    min-width: 0;
    padding: 12px 9px;
  }

  .home-card-grid {
    grid-template-columns: 1fr;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .poster-card {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
  }

  .poster-card-image {
    aspect-ratio: auto;
    min-height: 225px;
  }

  .poster-card-body {
    min-height: 225px;
  }

  .poster-card-actions {
    grid-template-columns: 1fr;
  }

  .poster-card-actions a {
    grid-column: auto;
  }

  .edit-card-button {
    display: none;
  }

  .profile-stats {
    grid-template-columns: 1fr;
  }

  .rating-stars {
    width: 100%;
    justify-content: space-between;
  }

  .rating-stars button {
    width: calc((100vw - 90px) / 5);
    max-width: 47px;
  }

  .playlist-row {
    grid-template-columns: 1fr 42px;
  }

  .playlist-row .playlist-url {
    grid-column: 1 / -1;
  }
}

[hidden] {
  display: none !important;
}


/* DUBLIK TV — drawer admin update */
body.drawer-open {
  overflow: hidden;
}

.admin-menu-trigger {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #0b0b0b;
  color: var(--gold);
  font-size: 25px;
}

.compact-navigation {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-grid,
.home-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.poster-card-body {
  min-height: 183px;
}

.card-rating-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.card-stars {
  overflow: hidden;
  color: var(--gold);
  font-size: 17px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.card-rating-row strong {
  color: #bdb7ad;
  font-size: 16px;
}

.poster-card-body h3 {
  min-height: 44px;
  font-size: 19px;
}

.poster-card-actions {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
}

.poster-card-actions button,
.poster-card-actions a {
  min-height: 43px;
  padding: 11px 8px;
  font-size: 13px;
}

.edit-card-floating {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #806016;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.9);
  color: var(--gold);
  font-size: 18px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}

.more-drawer {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 120;
  width: min(370px, 88vw);
  padding: 17px;
  overflow-y: auto;
  transform: translateX(-105%);
  border-right: 1px solid #5f460d;
  background:
    radial-gradient(circle at 0 0, rgba(255, 174, 0, 0.11), transparent 28%),
    #090909;
  box-shadow: 25px 0 80px rgba(0, 0, 0, 0.68);
  transition: transform 0.22s ease;
}

.more-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid #302509;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.drawer-brand img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
}

.drawer-brand div {
  display: grid;
  gap: 3px;
}

.drawer-brand strong {
  color: var(--gold);
  font-size: 20px;
}

.drawer-brand small {
  color: var(--muted);
}

.drawer-close {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #4a370c;
  border-radius: 11px;
  background: #111;
  color: white;
  font-size: 23px;
}

.drawer-navigation {
  display: grid;
  gap: 5px;
  margin: 14px 0;
}

.drawer-navigation button {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #eee5d2;
  text-align: left;
}

.drawer-navigation button:hover {
  border-color: #503b0c;
  background: #131008;
  color: var(--gold-light);
}

.drawer-navigation button > span {
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 19px;
}

.drawer-navigation button b {
  font-weight: 750;
}

.drawer-navigation button em {
  min-width: 28px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #24211b;
  color: #ddd5c7;
  text-align: center;
  font-size: 11px;
  font-style: normal;
}

.drawer-admin-section {
  padding-top: 5px;
  border-top: 1px solid #302509;
}

.drawer-admin-section > p {
  margin: 14px 10px 5px;
  color: #b7821a;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.drawer-statistics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.drawer-statistics article {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid #3f310d;
  border-radius: 10px;
  background: #10100e;
}

.drawer-statistics strong {
  color: var(--gold);
  font-size: 24px;
}

.drawer-statistics span {
  color: var(--muted);
  font-size: 11px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 28px 0 10px;
}

.pagination > button,
.page-buttons button {
  display: grid;
  place-items: center;
  min-width: 39px;
  height: 39px;
  padding: 0 9px;
  border: 1px solid #30280f;
  border-radius: 9px;
  background: #101010;
  color: #d8d1c5;
}

.pagination button:disabled {
  opacity: 0.35;
  cursor: default;
}

.page-buttons {
  display: flex;
  align-items: center;
  gap: 7px;
}

.page-buttons span {
  color: var(--muted);
}

.page-buttons button.active {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(255, 194, 28, 0.18);
}

.pagination-count {
  margin: 0 0 18px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 680px) {
  .compact-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-grid,
  .home-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .poster-card-body {
    min-height: 154px;
    padding: 9px;
  }

  .card-stars {
    font-size: 12px;
    letter-spacing: 0;
  }

  .card-rating-row strong {
    font-size: 12px;
  }

  .poster-card-body h3 {
    min-height: 36px;
    font-size: 14px;
  }

  .poster-card-body > p {
    font-size: 10px;
  }

  .poster-card-actions {
    grid-template-columns: 1fr !important;
  }

  .poster-card-actions button,
  .poster-card-actions a {
    min-height: 36px;
    padding: 8px 4px;
    font-size: 10px;
  }

  .edit-card-floating {
    width: 31px;
    height: 31px;
    font-size: 14px;
  }
}

@media (max-width: 430px) {
  .catalog-grid,
  .home-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .poster-card {
    display: flex !important;
    flex-direction: column;
  }

  .poster-card-image {
    min-height: 0 !important;
    aspect-ratio: 2 / 3 !important;
  }

  .poster-card-body {
    min-height: 150px !important;
  }

  .poster-card-badges span {
    max-width: 72px;
    padding: 4px;
    font-size: 8px;
  }

  .favorite-card-button {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
.poster-card-actions a {
    font-size: 9px;
  }
}


/* Featured carousel + manually managed monthly releases */
.featured-controls {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 23px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.featured-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 194, 28, 0.75);
  border-radius: 50%;
  background: rgba(7, 7, 7, 0.82);
  color: var(--gold);
  font-size: 34px;
  line-height: 1;
  pointer-events: auto;
  backdrop-filter: blur(8px);
}

.featured-arrow:hover {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #170e00;
}

.featured-arrow:disabled {
  visibility: hidden;
}

.featured-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.featured-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #716b62;
}

.featured-dots button.active {
  width: 26px;
  border-radius: 999px;
  background: var(--gold);
}

.month-new-checkbox {
  grid-column: 1 / -1;
  border-color: #426e37 !important;
  background: linear-gradient(110deg, rgba(72, 169, 64, 0.13), rgba(255, 194, 28, 0.04)) !important;
  color: #d9f0c8 !important;
}

@media (max-width: 680px) {
  .featured-controls {
    left: 17px;
    right: 17px;
    bottom: 16px;
  }

  .featured-arrow {
    width: 40px;
    height: 40px;
    font-size: 29px;
  }

  .featured-content {
    padding-bottom: 75px !important;
  }
}


/* Safe text badges instead of unsupported emoji */
.section-heading h2,
.random-copy h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 4px 8px;
  border: 1px solid currentColor;
  border-radius: 7px;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.1em;
  line-height: 1;
}

.badge-top {
  color: #ffb020;
  background: rgba(255, 132, 0, 0.11);
}

.badge-new {
  color: #171000;
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

.badge-vertical {
  color: #7fc7ff;
  border-color: #277ab4;
  background: rgba(21, 112, 180, 0.16);
}

.badge-collections {
  color: #e3beff;
  border-color: #8f4fb9;
  background: rgba(129, 57, 174, 0.14);
}

.badge-random {
  color: #f0c8ff;
  border-color: #a84bdc;
  background: rgba(136, 52, 188, 0.18);
}

.featured-label b {
  display: inline-flex;
  margin-right: 7px;
  padding: 3px 6px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #171000;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.drawer-code {
  width: auto !important;
  min-width: 28px;
  padding: 4px 5px;
  border: 1px solid #76550c;
  border-radius: 6px;
  color: var(--gold) !important;
  font-size: 9px !important;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.poster-card-badges span {
  font-family: Arial, sans-serif;
  letter-spacing: 0.04em;
}

@media (max-width: 440px) {
  .section-badge {
    min-height: 22px;
    padding: 3px 6px;
    font-size: 8px;
  }

  .section-heading h2,
  .random-copy h2 {
    gap: 7px;
  }
}


/* Bulk admin actions */
.bulk-admin select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #40340f;
  border-radius: 9px;
  background: #080808;
  color: white;
}

.bulk-help {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.bulk-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #d8c9aa;
}

.bulk-result {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  padding: 15px;
  border: 1px solid #4b390d;
  border-radius: 12px;
  background: #0d0d0c;
}

.bulk-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.bulk-kpis article {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid #3f310d;
  border-radius: 9px;
  background: #11100d;
  text-align: center;
}

.bulk-kpis strong {
  color: var(--gold);
  font-size: 25px;
}

.bulk-kpis span {
  color: var(--muted);
  font-size: 11px;
}

.bulk-result details {
  border: 1px solid #3c3010;
  border-radius: 9px;
  background: #10100e;
}

.bulk-result summary {
  padding: 11px 12px;
  color: var(--gold-light);
  cursor: pointer;
  font-weight: 800;
}

.bulk-unmatched {
  max-height: 260px;
  padding: 0 12px 12px;
  overflow: auto;
}

.bulk-unmatched p {
  margin: 6px 0;
  padding: 7px 8px;
  border-radius: 6px;
  background: #090909;
  color: #d8cdb8;
  font-size: 12px;
}

@media (max-width: 520px) {
  .bulk-kpis {
    grid-template-columns: 1fr;
  }
}


/* Card selection mode */
.selection-mode-button.active {
  border-color: var(--gold);
  background: #241a04;
  color: var(--gold);
}

.selection-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, auto) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
  padding: 13px;
  border: 1px solid #7c5909;
  border-radius: 12px;
  background: linear-gradient(110deg, rgba(255, 194, 28, 0.11), rgba(255, 138, 0, 0.03));
}

.selection-toolbar > div {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.selection-toolbar select {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #59430e;
  border-radius: 9px;
  background: #0b0b0b;
  color: white;
}

.card-selector {
  position: absolute;
  left: 9px;
  top: 9px;
  z-index: 12;
  width: 37px;
  height: 37px;
  padding: 0;
  border: 2px solid var(--gold);
  border-radius: 9px;
  background: rgba(5, 5, 5, 0.92);
  color: #150e00;
  font-size: 22px;
  font-weight: 950;
}

.card-selector.selected {
  background: linear-gradient(135deg, var(--gold), var(--orange));
}

.selection-enabled {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.selected-card {
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 2px rgba(255, 194, 28, 0.3), 0 15px 40px rgba(255, 145, 0, 0.12);
  transform: translateY(-2px);
}

/* Title cleanup */
.bulk-divider {
  width: 100%;
  height: 1px;
  margin: 10px 0;
  border: 0;
  background: #392c0d;
}

.title-cleanup-panel {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid #533d0c;
  border-radius: 12px;
  background: #10100e;
}

.title-cleanup-panel h3,
.title-cleanup-panel p {
  margin: 0;
}

.title-cleanup-panel p {
  color: var(--muted);
  line-height: 1.5;
}

.title-cleanup-panel code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #070707;
  color: var(--gold-light);
}

.cleanup-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cleanup-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #3c300f;
  border-radius: 8px;
  background: #0b0b0b;
}

.cleanup-options input {
  width: auto;
  accent-color: var(--orange);
}

.cleanup-preview {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #47360e;
  border-radius: 10px;
  background: #090909;
}

.cleanup-preview-header {
  color: var(--gold-light);
}

.cleanup-change-list {
  display: grid;
  gap: 7px;
  max-height: 390px;
  overflow: auto;
}

.cleanup-change-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 8px;
  border-radius: 7px;
  background: #111;
}

.cleanup-change-list del {
  color: #c28f81;
}

.cleanup-change-list ins {
  color: #bde49a;
  text-decoration: none;
}

.cleanup-change-list span {
  color: var(--gold);
}

@media (max-width: 650px) {
  .selection-toolbar {
    grid-template-columns: 1fr;
  }

  .selection-toolbar .primary-button {
    width: 100%;
  }

  .cleanup-options {
    grid-template-columns: 1fr;
  }

  .cleanup-change-list article {
    grid-template-columns: 1fr;
  }
}


/* Custom text removal from drama titles */
.custom-title-removal-box {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid #7b570b;
  border-radius: 12px;
  background:
    linear-gradient(110deg, rgba(255, 194, 28, 0.1), rgba(255, 138, 0, 0.025)),
    #0d0d0c;
}

.custom-title-removal-box > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.custom-title-removal-box code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #050505;
  color: var(--gold-light);
}

.custom-removal-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.custom-removal-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #3f310f;
  border-radius: 8px;
  background: #0a0a0a;
}

.custom-removal-options input {
  width: auto;
  accent-color: var(--orange);
}

@media (max-width: 560px) {
  .custom-removal-options {
    grid-template-columns: 1fr;
  }
}


/* DoramaLive source importer */
.source-import-panel {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid #5a410d;
  border-radius: 13px;
  background:
    radial-gradient(circle at 100% 0, rgba(147, 57, 204, 0.12), transparent 34%),
    #10100e;
}

.source-import-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.source-import-heading h3,
.source-import-heading p {
  margin: 0;
}

.source-import-heading h3 {
  margin-top: 4px;
  color: var(--gold-light);
}

.source-badge {
  padding: 5px 8px;
  border: 1px solid #8145a4;
  border-radius: 7px;
  background: rgba(126, 49, 173, 0.14);
  color: #deb5f7;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.1em;
}

.source-url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.source-html-fallback {
  padding: 11px;
  border: 1px solid #3f320f;
  border-radius: 9px;
  background: #0a0a0a;
}

.source-html-fallback summary {
  color: #e5c060;
  cursor: pointer;
  font-weight: 800;
}

.source-html-fallback p {
  color: var(--muted);
  line-height: 1.45;
}

.source-html-fallback textarea {
  width: 100%;
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid #40340f;
  border-radius: 8px;
  background: #050505;
  color: white;
}

.source-import-preview {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 12px;
  padding: 13px;
  border: 1px solid #4b390e;
  border-radius: 10px;
  background: #090909;
}

.source-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--gold-light);
}

.source-import-panel,
.source-import-panel > *,
.source-preview-header > *,
.source-preview-fields,
.source-preview-fields article,
.source-url-row,
.source-url-row > * {
  min-width: 0;
  max-width: 100%;
}

.source-preview-header strong,
.source-preview-header small,
.source-preview-fields p,
.source-url-row input {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.source-preview-header img {
  width: 70px;
  height: 100px;
  object-fit: contain;
  border: 1px solid #4a380d;
  border-radius: 7px;
  background: white;
}

.source-preview-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.source-preview-fields article {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 9px;
  border: 1px solid #33290f;
  border-radius: 8px;
  background: #111;
}

.source-preview-fields span {
  color: #ba8e2d;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.source-preview-fields p {
  max-height: 100px;
  margin: 5px 0 0;
  overflow-x: hidden;
  overflow-y: auto;
  color: #eee4d1;
  font-size: 12px;
  line-height: 1.4;
}

.source-preview-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .source-url-row,
  .source-preview-fields {
    grid-template-columns: 1fr;
  }

  .source-url-row button,
  .source-preview-actions button {
    width: 100%;
  }
}

/* The VK desktop iframe can be narrow while still reporting a viewport wider
   than a phone. Keep the importer and model selector inside the dialog there. */
@media (max-width: 900px) {
  #dramaForm,
  #dramaForm > *,
  .drama-model-selector,
  .drama-model-buttons,
  .drama-model-buttons button {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  .drama-model-buttons button {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .source-url-row {
    grid-template-columns: minmax(0, 1fr) minmax(130px, auto);
  }
  .source-url-row button {
    min-width: 0;
    white-space: normal;
  }
}


/* Subscription-only dramas */
.subscription-checkbox {
  grid-column: 1 / -1;
  border-color: #8e6710 !important;
  background:
    linear-gradient(110deg, rgba(255, 194, 28, 0.16), rgba(116, 72, 0, 0.06)) !important;
  color: #ffe095 !important;
}

.subscription-card-badge,
.subscription-detail-badge {
  border-color: #d39a12 !important;
  background: linear-gradient(135deg, #241806, #513307) !important;
  color: #ffd766 !important;
  letter-spacing: 0.08em;
}

.subscription-premium {
  border-color: #d39a12;
  background: linear-gradient(135deg, rgba(76, 46, 0, 0.95), rgba(15, 12, 7, 0.92));
  color: #ffd65f;
}

.poster-card:has(.subscription-card-badge) {
  border-color: #8a620d;
  box-shadow: inset 0 0 0 1px rgba(255, 194, 28, 0.07);
}

.poster-card:has(.subscription-card-badge) .poster-card-actions a,
.details-layout:has(.subscription-detail-badge) .details-watch-button {
  background: linear-gradient(135deg, #ffd144, #d88a00);
}


.source-preview-header > div {
  display: grid;
  gap: 4px;
}

.source-preview-header small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}


/* Large actor lists */
.actors-field textarea {
  min-height: 150px;
  max-height: 380px;
  resize: vertical;
  line-height: 1.5;
}

.actors-field small {
  color: var(--muted);
  text-align: right;
  font-size: 11px;
}

.actors-field:focus-within small {
  color: var(--gold);
}

.section-badge{white-space:nowrap}.badge-collections,.badge-random,.badge-top,.badge-new,.badge-vertical{letter-spacing:.04em}


/* Clear catalog navigation by direction */
.direction-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 0 0 18px;
}

.direction-filters button {
  min-height: 46px;
  padding: 9px 12px;
  border: 1px solid #503d10;
  border-radius: 11px;
  background: #10100e;
  color: #eee4d2;
  font-weight: 800;
}

.direction-filters button:hover,
.direction-filters button.active {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #170e00;
}

.access-type-field {
  grid-column: 1 / -1;
  padding: 13px;
  border: 1px solid #8b6510;
  border-radius: 10px;
  background: linear-gradient(110deg, rgba(255, 194, 28, 0.14), rgba(255, 138, 0, 0.03));
}

.access-type-field select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #5b430e;
  border-radius: 9px;
  background: #080808;
  color: white;
}

.subscription-card-badge {
  max-width: calc(100% - 16px) !important;
  white-space: normal;
  line-height: 1.2;
}

.poster-card-actions .watch-card-button {
  border: 1px solid var(--gold);
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #160e00;
}

.details-watch-button {
  border: 1px solid var(--gold);
  cursor: pointer;
}

.subscription-dialog {
  width: min(520px, calc(100% - 24px));
  max-height: min(88dvh, calc(100dvh - 96px));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.subscription-content {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 42px 26px 30px;
  text-align: center;
}

/* На телефонах с крупным системным шрифтом окно прокручивается внутри,
   нижние кнопки остаются доступны, а крестик не попадает под меню VK. */
@media (max-width: 700px) {
  #subscriptionDialog {
    width: calc(100% - 20px) !important;
    max-height: calc(100dvh - max(112px, env(safe-area-inset-top, 0px) + 88px)) !important;
    margin: auto 10px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
  }

  #subscriptionDialog > .modal-close {
    position: sticky !important;
    float: left;
    top: 8px !important;
    left: 8px !important;
    right: auto !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    margin: 8px 0 -52px 8px;
    font-size: 27px !important;
  }

  #subscriptionDialog .subscription-content {
    clear: both;
    gap: 8px;
    padding: 62px 16px max(20px, calc(env(safe-area-inset-bottom, 0px) + 14px));
  }

  #subscriptionDialog .subscription-dialog-icon {
    width: 62px;
    height: 62px;
    font-size: 30px;
  }

  #subscriptionDialog .subscription-content h2 {
    font-size: clamp(22px, 7vw, 28px);
    line-height: 1.12;
  }

  #subscriptionDialog .subscription-content > p:not(.section-label) {
    margin: 5px 0;
    font-size: clamp(14px, 4.2vw, 17px);
    line-height: 1.42;
  }

  #subscriptionDialog .donut-check-note {
    padding: 12px !important;
  }

  #subscriptionDialog .subscription-dialog-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding: 9px 0 2px;
    background: linear-gradient(180deg, transparent, #090909 16%);
  }
}

.subscription-dialog-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 194, 28, 0.18), transparent 70%);
  font-size: 38px;
}

.subscription-content h2 {
  margin: 0;
  color: var(--gold-light);
  font-size: 28px;
}

.subscription-content h3 {
  margin: 0;
  color: white;
}

.subscription-content > p:not(.section-label) {
  color: #d7cdbb;
  line-height: 1.55;
}

.subscription-dialog-actions {
  display: grid;
  width: 100%;
  gap: 9px;
  margin-top: 8px;
}

.subscription-dialog-actions a {
  padding: 13px 16px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: #170e00;
  text-decoration: none;
  font-weight: 900;
}

.subscription-dialog-actions .secondary-subscription-link {
  background: #111;
  color: white;
}

.subscription-content small {
  color: var(--muted);
  line-height: 1.45;
}

/* The old selection mode is intentionally removed from the catalog. */
.selection-toolbar,
.selection-mode-button,
.card-selector {
  display: none !important;
}

@media (max-width: 680px) {
  .direction-filters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 390px) {
  .direction-filters {
    grid-template-columns: 1fr;
  }
}


/* Filter by access type */
.access-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -4px 0 20px;
  overflow-x: auto;
  padding: 2px 0 5px;
  scrollbar-width: thin;
}

.format-filters {
  margin-bottom: 10px;
}

.access-filters > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.access-filters button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #44350f;
  border-radius: 999px;
  background: #0e0e0d;
  color: #ddd3c1;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.access-filters button:hover,
.access-filters button.active {
  border-color: var(--gold);
  background: rgba(255, 194, 28, 0.14);
  color: var(--gold-light);
}

@media (max-width: 560px) {
  .access-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
    overflow: visible;
    padding-bottom: 0;
  }

  .access-filters > span {
    grid-column: 1 / -1;
  }

  .access-filters button {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 7px 10px;
    font-size: 11px;
    white-space: normal;
    line-height: 1.2;
  }
}


.catalog-search-box {
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  margin:0 0 14px;
  padding:0 13px;
  border:1px solid #5b4510;
  border-radius:13px;
  background:#10100e;
}
.catalog-search-box input {
  width:100%;
  min-height:48px;
  border:0;
  outline:0;
  background:transparent;
  color:white;
  font-size:15px;
}
.catalog-search-box input::placeholder { color:#8f887a; }
.catalog-search-box button {
  width:34px;
  height:34px;
  padding:0;
  border:0;
  border-radius:50%;
  background:#1a1813;
  color:#d5c7aa;
  font-size:19px;
}
.direction-filters { grid-template-columns:repeat(4,minmax(0,1fr)); }
.direction-filters button { min-height:52px; font-size:14px; }

.direction-card-badge,
.subscription-card-badge {
  display:inline-flex;
  align-items:center;
  width:auto;
  max-width:100%;
  min-height:28px;
  padding:5px 9px;
  border:1px solid;
  border-radius:8px;
  background:rgba(10,10,10,.88);
  font-size:10px;
  font-weight:900;
  line-height:1.15;
  white-space:nowrap;
}
.direction-china { border-color:#d39a12; color:#ffd76a; }
.direction-korea { border-color:#4e8fd7; color:#b7d8ff; }
.direction-vertical { border-color:#9d57db; color:#e0bcff; }
.direction-other { border-color:#6c6252; color:#ddd3c1; }
.subscription-card-badge {
  border-color:#d39a12;
  background:linear-gradient(135deg,rgba(74,43,0,.95),rgba(20,13,3,.95));
  color:#ffd76a;
}
.subscription-detail-badge { white-space:normal; }

@media (max-width:700px) {
  .direction-filters { grid-template-columns:1fr 1fr; }
}
@media (max-width:420px) {
  .direction-filters button { min-height:48px; padding:8px; font-size:12px; }
  .direction-card-badge,.subscription-card-badge { font-size:9px; padding:4px 7px; }
}


/* Subscription text moved below poster */
.card-subscription-line {
  margin: -2px 0 10px;
  padding: 8px 10px;
  border: 1px solid #8a620d;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(74, 43, 0, 0.72), rgba(20, 13, 3, 0.82));
  color: #ffd76a;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.3;
}

.details-poster-labels .subscription-detail-badge {
  display: none !important;
}


/* DUBLIK TV branded icon system */
.brand-icon,
.brand-heading-icon {
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
}

.brand-icon {
  width:18px;
  height:18px;
  margin-right:7px;
}

.brand-heading-icon {
  width:24px;
  height:24px;
  margin-right:9px;
  vertical-align:middle;
}

.brand-icon img,
.brand-heading-icon img {
  width:100%;
  height:100%;
  display:block;
}

.section-label {
  display:inline-flex;
  align-items:center;
  gap:4px;
  border-color:#8a620d !important;
  background:linear-gradient(135deg,rgba(255,194,28,.11),rgba(255,152,0,.05)) !important;
  color:#ffd45d !important;
}

.random-section .section-label,
.random-card .section-label,
.random-banner .section-label {
  border:0 !important;
  background:transparent !important;
  padding:0 !important;
}

.menu-item-label {
  display:flex;
  align-items:center;
  gap:12px;
}

.menu-item-label img {
  width:22px;
  height:22px;
  flex:0 0 auto;
}

/* Remove fallback square/question glyphs from old icon containers */
.menu-icon,
.section-icon,
.random-badge-icon {
  font-size:0 !important;
}

.menu-icon img,
.section-icon img,
.random-badge-icon img {
  width:22px;
  height:22px;
}

/* Firm palette only */
.section-heading,
.home-section-title,
.section-title {
  color:#f6f0e7;
}

.section-heading::before,
.home-section-title::before {
  color:#ffc21c;
}


/* Final branded icons in sections and drawer */
.section-badge {
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.section-badge img {
  width:16px;
  height:16px;
  display:block;
}
.random-tab {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
}
.random-tab img {
  width:22px;
  height:22px;
}
.drawer-brand-icon {
  display:grid;
  place-items:center;
  width:34px;
  height:28px;
  border:1px solid #7d5c0d;
  border-radius:7px;
  background:rgba(255,194,28,.05);
}
.drawer-brand-icon img {
  width:21px;
  height:21px;
  display:block;
}
.featured-label b { display:none !important; }
.featured-label {
  display:inline-flex;
  align-items:center;
  min-height:31px;
  padding:6px 12px;
  border:1px solid #d89800;
  border-radius:999px;
  background:rgba(255,174,0,.09);
  color:#ffc21c;
  font-size:11px;
  font-weight:900;
  letter-spacing:.03em;
}


/* =========================================================
   FINAL HOME REDESIGN — approved DUBLIK TV layout
   ========================================================= */

#homeView {
  display: grid;
  gap: 22px;
}

#homeView[hidden] {
  display: none;
}

/* Header/navigation */
.top-navigation {
  gap: 12px;
}

.top-navigation button {
  min-height: 58px;
  border-radius: 13px;
  font-size: 16px;
}

.top-navigation button.active {
  background: linear-gradient(135deg, #ffd342 0%, #ff9800 100%);
  color: #160e00;
  box-shadow: 0 10px 26px rgba(255, 163, 0, 0.16);
}

.top-nav-icon {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

.top-nav-home::before {
  content: "";
  position: absolute;
  inset: 4px 3px 2px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 2px;
}

.top-nav-home::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 2px;
  width: 10px;
  height: 10px;
  border-left: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.top-nav-catalog {
  background:
    linear-gradient(currentColor 0 0) 1px 1px/6px 6px no-repeat,
    linear-gradient(currentColor 0 0) 12px 1px/6px 6px no-repeat,
    linear-gradient(currentColor 0 0) 1px 12px/6px 6px no-repeat,
    linear-gradient(currentColor 0 0) 12px 12px/6px 6px no-repeat;
}

.top-nav-favorite::before {
  content: "♥";
  position: absolute;
  inset: -2px 0 0;
  font-size: 23px;
  line-height: 20px;
}

.top-random-icon {
  width: 23px;
  height: 23px;
  display: inline-grid;
  place-items: center;
}

.top-random-icon img {
  width: 100%;
  height: 100%;
}

/* Hero */
.featured-section {
  margin: 0;
}

.featured-card {
  min-height: 410px;
  overflow: hidden;
  border: 1px solid #9b6c08;
  border-radius: 20px;
  background-position: 63% center;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.featured-card::before {
  background:
    linear-gradient(90deg,
      rgba(0, 0, 0, 0.97) 0%,
      rgba(0, 0, 0, 0.86) 31%,
      rgba(0, 0, 0, 0.28) 64%,
      rgba(0, 0, 0, 0.08) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent 48%);
}

.featured-content {
  width: min(58%, 650px);
  padding: 34px 34px 25px;
}

.featured-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid #aa780b;
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.76);
  color: #ffc927;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.featured-label img {
  width: 18px;
  height: 18px;
}

.featured-content h1 {
  max-width: 570px;
  margin: 21px 0 13px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 67px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.75);
}

.featured-content > p {
  display: none;
}

.featured-genres {
  margin-top: 14px;
}

.featured-genres span {
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(4, 4, 4, 0.68);
}

.featured-buttons {
  margin-top: 30px;
}

.featured-watch-button,
.featured-buttons a {
  min-width: 184px;
  min-height: 53px;
  padding: 13px 22px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffd33c, #ff9800);
  color: #160e00;
  font-size: 17px;
  font-weight: 950;
  cursor: pointer;
}

.featured-details-button {
  min-width: 150px;
  min-height: 53px;
  border-radius: 12px;
  font-size: 16px;
}

.premium-badge {
  top: 25px;
  right: 25px;
}

.featured-controls {
  align-items: center;
}

.featured-watermark {
  width: 82px;
  height: 82px;
  right: 30px;
  bottom: 24px;
  opacity: 0.24;
}

/* Keep only one clean home section title */
.home-new-month-section {
  margin: 0;
}

.section-heading-single {
  align-items: center;
  margin-bottom: 13px;
}

.section-heading-single h2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #ffc927;
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0.015em;
}

.section-heading-single h2::after {
  display: none !important;
}

.section-heading-single .brand-heading-icon {
  width: 26px;
  height: 26px;
  margin: 0;
}

.section-heading-single .text-button {
  color: #ffc927;
  font-size: 15px;
}

/* New month carousel: compact, movie-service style */
.home-new-month-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 1fr);
  grid-template-columns: none;
  gap: 14px;
  overflow-x: auto;
  padding: 1px 1px 12px;
  scroll-snap-type: x proximity;
}

.home-new-month-grid .poster-card {
  min-width: 160px;
  scroll-snap-align: start;
  border-radius: 13px;
  overflow: hidden;
}

.home-new-month-grid .poster-card-image {
  aspect-ratio: 0.69;
}

.home-new-month-grid .poster-card-body {
  min-height: 116px;
  padding: 12px;
}

.home-new-month-grid .poster-card-body h3 {
  font-size: 14px;
  line-height: 1.25;
}

.home-new-month-grid .poster-card-actions {
  display: none;
}

/* Old home sections must never reappear */
#homeView #collections,
#homeView #popular,
#homeView #verticalHome,
#homeView .random-feature,
#homeView #adminHomePanel {
  display: none !important;
}

/* Mobile mini-app fit */
@media (max-width: 760px) {
  #homeView {
    gap: 16px;
  }

  .featured-card {
    min-height: 430px;
    background-position: 68% center;
  }

  .featured-card::before {
    background:
      linear-gradient(90deg,
        rgba(0,0,0,.96) 0%,
        rgba(0,0,0,.79) 55%,
        rgba(0,0,0,.22) 100%),
      linear-gradient(0deg, rgba(0,0,0,.58), transparent 58%);
  }

  .featured-content {
    width: 76%;
    padding: 25px 22px 20px;
  }

  .featured-content h1 {
    font-size: clamp(34px, 8vw, 52px);
  }

  .featured-information {
    flex-wrap: wrap;
  }

  .featured-buttons {
    gap: 9px;
  }

  .featured-watch-button,
  .featured-details-button {
    min-width: 0;
  }

  .home-new-month-grid {
    grid-auto-columns: minmax(145px, 43vw);
  }
}

@media (max-width: 460px) {
  .featured-card {
    min-height: 500px;
    background-position: 72% center;
  }

  .featured-content {
    width: 86%;
    padding: 22px 17px;
  }

  .featured-content h1 {
    font-size: 38px;
  }

  .featured-genres {
    display: none;
  }

  .featured-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .featured-watch-button,
  .featured-details-button {
    width: 100%;
    font-size: 14px;
    padding-inline: 10px;
  }

  .premium-badge {
    top: 16px;
    right: 16px;
    max-width: 46%;
  }

  .featured-watermark {
    width: 62px;
    height: 62px;
    right: 16px;
    bottom: 16px;
  }
}


/* Release availability and gold progress */
.release-progress-admin {
  margin: 14px 0;
  padding: 15px;
  border: 1px solid #77570c;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255, 194, 28, 0.09), rgba(255, 152, 0, 0.025));
}

.release-progress-admin h3 {
  margin: 0 0 5px;
  color: #ffd45d;
}

.release-progress-admin > p,
.release-progress-admin > small {
  color: #bfb5a3;
  line-height: 1.45;
}

.inline-number-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.inline-number-control button {
  min-width: 54px;
  border: 1px solid #b47c08;
  border-radius: 9px;
  background: linear-gradient(135deg, #ffd23b, #ff9800);
  color: #170e00;
  font-weight: 950;
}

.availability-progress {
  display: grid;
  gap: 12px;
  margin: 17px 0;
  padding: 14px;
  border: 1px solid #5d450d;
  border-radius: 13px;
  background: rgba(15, 13, 8, 0.9);
}

.availability-row {
  display: grid;
  gap: 7px;
}

.availability-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #c9bfad;
  font-size: 12px;
}

.availability-title span {
  color: #ffc927;
  font-weight: 900;
}

.availability-title strong {
  color: #f6f0e7;
  text-align: right;
}

.gold-progress-track {
  height: 9px;
  overflow: hidden;
  border: 1px solid #4f3b0d;
  border-radius: 999px;
  background: #17140d;
}

.gold-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffc21c, #ff9800);
  box-shadow: 0 0 14px rgba(255, 178, 0, 0.32);
}

.free-track span {
  background: linear-gradient(90deg, #ffe06c, #ffb000);
}

.availability-progress-compact {
  margin: 10px 0 12px;
  padding: 10px;
  gap: 8px;
}

.availability-progress-compact .availability-title {
  display: grid;
  gap: 2px;
  font-size: 10px;
}

.availability-progress-compact .availability-title strong {
  text-align: left;
  line-height: 1.3;
}

.availability-progress-compact .gold-progress-track {
  height: 6px;
}

.quick-access-increments{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:0 0 10px}
.quick-free-increment,
.quick-paid-increment {
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 1px dashed #b47c08;
  border-radius: 9px;
  background: rgba(255, 194, 28, 0.08);
  color: #ffd45d;
  font-weight: 900;
}

.quick-free-increment:hover,
.quick-paid-increment:hover {
  background: rgba(255, 194, 28, 0.16);
}

@media (max-width: 520px) {
  .availability-title {
    display: grid;
  }

  .availability-title strong {
    text-align: left;
  }
}


/* Collections button beside “What to watch?” */
.top-navigation {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#collectionsTopBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.top-collections-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.top-collections-icon img {
  display: block;
  width: 100%;
  height: 100%;
}

@media (max-width: 820px) {
  .top-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #collectionsTopBtn,
  #randomTopBtn {
    grid-column: span 1;
  }
}

@media (max-width: 560px) {
  .top-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-navigation button {
    min-height: 50px;
    padding-inline: 9px;
    font-size: 13px;
  }

  #randomTopBtn {
    grid-column: auto;
  }
}


/* VK playlist synchronization */
.vk-sync-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 14px;
}

.vk-sync-actions button {
  min-height: 42px;
  border: 1px solid #9a6a08;
  border-radius: 10px;
  background: #11100c;
  color: #ffd45d;
  font-weight: 900;
}

.vk-sync-actions button:first-child {
  background: linear-gradient(135deg, #ffd23b, #ff9800);
  color: #170e00;
}

.vk-sync-actions button:disabled {
  opacity: .6;
  cursor: wait;
}

.vk-sync-status {
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #5f4a17;
  border-radius: 9px;
  background: #11100d;
  color: #d9d0c0;
  font-size: 12px;
  line-height: 1.45;
}

.vk-sync-success {
  border-color: #92700d;
  color: #ffe27b;
}

.vk-sync-warning {
  border-color: #a66b08;
  color: #ffd096;
}

.vk-sync-error {
  border-color: #a63b20;
  color: #ffb29c;
}

@media (max-width: 520px) {
  .vk-sync-actions {
    grid-template-columns: 1fr;
  }
}


/* UI polish v2.1 */

/* Верхняя строка: Главная, Каталог, Что посмотреть, Подборки.
   Избранное остаётся в постоянной нижней навигации. */
.top-navigation {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Убираем фиолетовый цвет */
#randomBtn,
#randomTopBtn {
  background: #10100e !important;
  border-color: #5a430e !important;
  color: #f6f0e7 !important;
  box-shadow: none !important;
}

#randomBtn:hover,
#randomBtn:focus-visible,
#randomTopBtn:hover,
#randomTopBtn:focus-visible {
  border-color: #ffc21c !important;
  background: rgba(255, 194, 28, 0.08) !important;
}

/* Возвращаем действия в «Новинках месяца» */
.home-new-month-grid .poster-card-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.home-new-month-grid .poster-card-actions button,
.home-new-month-grid .poster-card-actions a {
  min-height: 38px;
  padding: 8px 9px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 900;
}

.home-new-month-grid .poster-card-body {
  min-height: 166px;
}

@media (max-width: 820px) {
  .top-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .top-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-navigation button {
    min-height: 50px;
    font-size: 13px;
  }

  .home-new-month-grid .poster-card-actions {
    grid-template-columns: 1fr;
  }
}

.catalog-grid{align-items:stretch}.poster-card{display:flex;flex-direction:column;height:100%}.poster-card-image{flex:0 0 auto;aspect-ratio:2/3;overflow:hidden}.poster-card-image > img{width:100%;height:100%;object-fit:cover}.poster-card-body{display:flex;flex-direction:column;flex:1}.poster-card-body .poster-card-actions{margin-top:auto}.availability-progress-compact{min-height:112px}.direction-card-badge{display:inline-flex!important}.details-genres{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0 16px}.details-genres span{padding:6px 10px;border:1px solid #7d5c0d;border-radius:999px;background:rgba(255,194,28,.07);color:#ffd45d;font-size:12px}.details-creator{color:#d9cfbd}.subscription-dialog-actions button.secondary-subscription-link{width:100%;padding:13px 16px;border:1px solid #ffc21c;border-radius:10px;background:#111;color:#fff;font-weight:900}@media(min-width:900px){.poster-card-badges .direction-card-badge{visibility:visible!important;opacity:1!important}}

/* DUBLIK TV v2.3 */
.catalog-grid, #grid { align-items:stretch !important; }
.catalog-grid .poster-card, #grid .poster-card { display:flex !important; flex-direction:column !important; height:100% !important; }
.catalog-grid .poster-card-image, #grid .poster-card-image { width:100% !important; aspect-ratio:2/3 !important; flex:0 0 auto !important; overflow:hidden !important; }
.catalog-grid .poster-card-image > img, #grid .poster-card-image > img { width:100% !important; height:100% !important; object-fit:cover !important; }
.catalog-grid .poster-card-body, #grid .poster-card-body { display:flex !important; flex-direction:column !important; flex:1 !important; min-height:360px !important; }
.poster-card h3 { min-height:54px; }
.poster-card-body > p { min-height:22px; }
.card-subscription-line { min-height:44px !important; display:flex; align-items:center; }
.card-subscription-line-empty { visibility:hidden; }
.availability-progress-compact { min-height:126px !important; }
.poster-card-actions { margin-top:auto !important; }
.poster-card-actions .details-card-button { font-size:12px !important; }
.poster-card-actions .details-card-button::after { content:none !important; display:none !important; }
.poster-card-badges, .poster-card-badges .direction-card-badge, .direction-card-badge { visibility:visible !important; opacity:1 !important; display:inline-flex !important; }
#profileStats button { width:100%; border:1px solid #74550d; border-radius:13px; background:#11100d; color:#f7f0e4; cursor:pointer; text-align:left; }
#profileStats button:hover, #profileStats button:focus-visible { border-color:#ffc21c; background:rgba(255,194,28,.08); }
#profileStats button strong, #profileStats button span { display:block; }
@media (max-width:700px) {
  .catalog-grid .poster-card-body, #grid .poster-card-body { min-height:330px !important; }
  .poster-card h3 { min-height:auto; }
}


/* v2.3.1 — mobile details button fix */
.poster-card-actions .details-card-button,
.home-new-month-grid .details-card-button {
  font-size: 12px !important;
  white-space: nowrap;
}
.poster-card-actions .details-card-button::before,
.poster-card-actions .details-card-button::after,
.home-new-month-grid .details-card-button::before,
.home-new-month-grid .details-card-button::after {
  content: none !important;
  display: none !important;
}

/* v2.3.4 — автоматическое количество из поля «Серии» */
#dTotalUnits[readonly],
#dSubscriberUnits[readonly] {
  opacity: .82;
  cursor: not-allowed;
  background: #17140e;
  color: #ffd45d;
}

.playlist-access-sync {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.playlist-access-sync button {
  width: auto;
}

.playlist-access-sync span {
  flex: 1 1 260px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.playlist-access-sync-prominent {
  padding: 12px;
  border: 1px solid #c99100;
  border-radius: 12px;
  background: rgba(255, 183, 0, .08);
}

.playlist-access-sync-prominent button {
  min-height: 44px;
  padding: 10px 18px;
  border-color: #ffb000;
  background: linear-gradient(135deg, #ffd32a, #ff9900);
  color: #111;
  font-weight: 800;
}


/* DoramaLive blocked-source fallback */
.source-html-help {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid #6f520d;
  border-radius: 10px;
  background: rgba(255,194,28,.06);
  color: #d9cfbd;
  line-height: 1.45;
}
.source-html-help strong { color: #ffd45d; }
.source-html-help ol { margin: 8px 0 0 20px; padding: 0; }
.source-html-help li + li { margin-top: 5px; }


/* DUBLIK TV v2.4.1 — реальные исправления подборок */

.home-collections-section {
  scroll-margin-top: 18px;
}

.home-collections-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.home-collections-grid .collection-card {
  min-height: 230px;
  cursor: pointer;
}

.collections-empty {
  padding: 22px;
  border: 1px dashed #6b4e0c;
  border-radius: 12px;
  color: #c9bfae;
  text-align: center;
}

.collection-search-label {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  color: #f4ead9;
  font-weight: 900;
}

.collection-search-label input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #72530d;
  border-radius: 10px;
  background: #11100d;
  color: #fff;
  font-size: 16px;
}

.collection-search-label input:focus {
  outline: none;
  border-color: #ffc21c;
  box-shadow: 0 0 0 3px rgba(255, 194, 28, .12);
}

#collectionDramaList label[hidden] {
  display: none !important;
}

/* Внутри подборки карточки остаются такими же, как в каталоге */
#catalogView .catalog-grid {
  align-items: stretch;
}

#catalogView .catalog-grid .poster-card {
  height: 100%;
}

@media (max-width: 760px) {
  .home-collections-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .home-collections-grid {
    grid-template-columns: 1fr;
  }
}


/* DUBLIK TV v2.4.2 — крупные обложки подборок */

.home-collections-grid {
  grid-template-columns: repeat(3, minmax(260px, 1fr)) !important;
  gap: 18px !important;
}

.home-collections-grid .collection-card {
  min-height: 340px !important;
  aspect-ratio: 4 / 3;
  border-radius: 18px !important;
  overflow: hidden;
  position: relative;
}

.home-collections-grid .collection-card img,
.home-collections-grid .collection-card-image,
.home-collections-grid .collection-cover {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
}

.home-collections-grid .collection-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,.04) 35%,
    rgba(0,0,0,.82) 100%
  );
  pointer-events: none;
}

.home-collections-grid .collection-card > * {
  position: relative;
  z-index: 1;
}

.home-collections-grid .collection-card h3,
.home-collections-grid .collection-card .collection-card-title {
  font-size: 24px !important;
  line-height: 1.15 !important;
  max-width: 90%;
}

.home-collections-grid .collection-card p,
.home-collections-grid .collection-card .collection-card-meta {
  font-size: 15px !important;
}

@media (max-width: 900px) {
  .home-collections-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .home-collections-grid {
    grid-template-columns: 1fr !important;
  }

  .home-collections-grid .collection-card {
    min-height: 320px !important;
    aspect-ratio: 16 / 11;
  }
}


/* DUBLIK TV v2.4.3 — Netflix стиль подборок */

.home-collections-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(420px,1fr));
    gap:24px;
}

.home-collections-grid .collection-card{
    position:relative;
    aspect-ratio:16/9;
    min-height:320px;
    border-radius:20px;
    overflow:hidden;
    transition:.25s;
}

.home-collections-grid .collection-card:hover{
    transform:translateY(-4px);
}

.home-collections-grid .collection-card img,
.home-collections-grid .collection-cover,
.home-collections-grid .collection-card-image{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
}

.home-collections-grid .collection-card::before{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(to top,
        rgba(0,0,0,.88) 10%,
        rgba(0,0,0,.35) 55%,
        rgba(0,0,0,.05) 100%);
    z-index:1;
}

.home-collections-grid .collection-card>*{
    position:relative;
    z-index:2;
}

.home-collections-grid .collection-card h3,
.home-collections-grid .collection-card .collection-card-title{
    font-size:30px;
    font-weight:800;
}

.home-collections-grid .collection-card p,
.home-collections-grid .collection-card .collection-card-meta{
    font-size:17px;
}

@media(max-width:900px){
  .home-collections-grid{
    grid-template-columns:1fr;
  }
  .home-collections-grid .collection-card{
    aspect-ratio:16/10;
    min-height:280px;
  }
}


/* DUBLIK TV v2.4.4 — адаптивные вертикальные и горизонтальные обложки */

.home-collections-grid .collection-card {
  isolation: isolate;
  background: #090806 !important;
}

/* Размытая копия обложки заполняет пустое пространство */
.home-collections-grid .collection-card::before {
  content: "" !important;
  position: absolute !important;
  inset: -24px !important;
  z-index: -2 !important;
  display: block !important;
  opacity: .48 !important;
  background: var(--collection-cover) center / cover no-repeat !important;
  filter: blur(20px) saturate(.85) brightness(.62);
  transform: scale(1.08);
  pointer-events: none;
}

/* Затемнение для читаемого текста */
.home-collections-grid .collection-card::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  display: block !important;
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,.02) 35%,
      rgba(0,0,0,.28) 60%,
      rgba(0,0,0,.92) 100%
    ) !important;
  pointer-events: none;
}

.home-collections-grid .collection-card-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.home-collections-grid .collection-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-position: center;
}

/* Горизонтальная обложка заполняет баннер */
.home-collections-grid .collection-cover-landscape .collection-card-media img {
  object-fit: cover !important;
}

/* Вертикальная обложка показывается целиком */
.home-collections-grid .collection-cover-portrait .collection-card-media img {
  object-fit: contain !important;
  padding: 0 !important;
}

/* Текст всегда поверх изображения и градиента */
.home-collections-grid .collection-card-overlay {
  z-index: 3 !important;
  inset: auto 0 0 !important;
  padding: 22px 24px !important;
}

.home-collections-grid .collection-card-overlay h3 {
  margin: 0 !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.9);
}

.home-collections-grid .collection-card-overlay p {
  text-shadow: 0 2px 8px rgba(0,0,0,.9);
}

/* Убираем старые тематические заливки поверх обложек */
.home-collections-grid .collection-card.romance::before,
.home-collections-grid .collection-card.historical::before,
.home-collections-grid .collection-card.comedy::before,
.home-collections-grid .collection-card.new::before,
.home-collections-grid .collection-card.vertical::before {
  background: var(--collection-cover) center / cover no-repeat !important;
}

@media (max-width: 560px) {
  .home-collections-grid .collection-card-overlay {
    padding: 18px !important;
  }
}


/* DUBLIK TV v2.4.5 — подборки без фотографий */

.home-collections-grid {
  grid-template-columns: repeat(3, minmax(250px, 1fr)) !important;
  gap: 18px !important;
}

.home-collections-grid .collection-card {
  min-height: 210px !important;
  aspect-ratio: auto !important;
  padding: 24px !important;
  display: flex !important;
  align-items: flex-end !important;
  border: 1px solid #8a650c !important;
  border-radius: 18px !important;
  background:
    radial-gradient(circle at 85% 18%, rgba(255, 169, 0, .18), transparent 34%),
    linear-gradient(145deg, #171207 0%, #080806 68%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 210, 65, .08),
    0 16px 30px rgba(0, 0, 0, .22);
  overflow: hidden;
}

/* Полностью скрываем загруженную обложку */
.home-collections-grid .collection-card-media,
.home-collections-grid .collection-card-media img {
  display: none !important;
}

/* Убираем фон, создаваемый из изображения */
.home-collections-grid .collection-card::before {
  content: "" !important;
  position: absolute !important;
  inset: auto -40px -60px auto !important;
  width: 190px !important;
  height: 190px !important;
  display: block !important;
  border: 1px solid rgba(255, 194, 28, .16) !important;
  border-radius: 50% !important;
  background:
    radial-gradient(circle, rgba(255, 161, 0, .18), transparent 66%) !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
  z-index: 0 !important;
}

.home-collections-grid .collection-card::after {
  content: "▤" !important;
  position: absolute !important;
  top: 22px !important;
  right: 24px !important;
  bottom: auto !important;
  left: auto !important;
  display: grid !important;
  place-items: center !important;
  width: 48px !important;
  height: 48px !important;
  border: 1px solid #8a650c !important;
  border-radius: 14px !important;
  background: rgba(255, 194, 28, .07) !important;
  color: #ffc21c !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  z-index: 2 !important;
}

.home-collections-grid .collection-card-overlay {
  position: relative !important;
  inset: auto !important;
  z-index: 3 !important;
  width: 100%;
  padding: 0 !important;
  background: none !important;
}

.home-collections-grid .collection-card-overlay h3 {
  max-width: calc(100% - 64px);
  margin: 0 0 12px !important;
  color: #fff !important;
  font-size: 27px !important;
  line-height: 1.12 !important;
  text-shadow: none !important;
}

.home-collections-grid .collection-card-overlay p {
  margin: 0 !important;
  color: #d1c5b2 !important;
  font-size: 15px !important;
  text-shadow: none !important;
}

.home-collections-grid .collection-card:hover {
  transform: translateY(-3px);
  border-color: #ffc21c !important;
  background:
    radial-gradient(circle at 85% 18%, rgba(255, 169, 0, .25), transparent 36%),
    linear-gradient(145deg, #1d1608 0%, #0b0906 68%) !important;
}

@media (max-width: 900px) {
  .home-collections-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .home-collections-grid {
    grid-template-columns: 1fr !important;
  }

  .home-collections-grid .collection-card {
    min-height: 185px !important;
    padding: 20px !important;
  }

  .home-collections-grid .collection-card-overlay h3 {
    font-size: 24px !important;
  }
}


/* DUBLIK TV v2.4.6 — чистые карточки подборок */

.home-collections-grid .collection-card .brand-watermark,
.home-collections-grid .collection-card .collection-logo,
.home-collections-grid .collection-card .logo-watermark,
.home-collections-grid .collection-card > img:not(.collection-card-media img) {
  display: none !important;
}

/* Маленький декоративный значок не перекрывает название */
.home-collections-grid .collection-card::after {
  top: 18px !important;
  right: 18px !important;
  width: 42px !important;
  height: 42px !important;
  font-size: 21px !important;
  border-radius: 12px !important;
}

/* Название получает безопасную ширину */
.home-collections-grid .collection-card-overlay {
  width: 100% !important;
  padding-right: 0 !important;
}

.home-collections-grid .collection-card-overlay h3 {
  max-width: calc(100% - 64px) !important;
  padding-right: 0 !important;
  overflow-wrap: anywhere;
}

.collection-playlists-help {
  margin: -2px 0 14px;
  color: #c9bfae;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .home-collections-grid .collection-card-overlay h3 {
    max-width: calc(100% - 58px) !important;
  }
}


/* DUBLIK TV v2.4.7 — фирменные карточки подборок без обложек */

.home-collections-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
  gap: 14px !important;
}

.home-collections-grid .collection-card {
  position: relative !important;
  min-height: 170px !important;
  aspect-ratio: auto !important;
  padding: 20px !important;
  display: flex !important;
  align-items: flex-end !important;
  overflow: hidden !important;
  border: 1px solid #80600f !important;
  border-radius: 16px !important;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 164, 0, .17), transparent 32%),
    linear-gradient(145deg, #171205 0%, #080806 72%) !important;
}

/* Убираем любые изображения и логотипы из карточки */
.home-collections-grid .collection-card-media,
.home-collections-grid .collection-card-media img,
.home-collections-grid .collection-card img,
.home-collections-grid .collection-card .brand-watermark,
.home-collections-grid .collection-card .collection-logo,
.home-collections-grid .collection-card .logo-watermark {
  display: none !important;
}

/* Убираем старые псевдоэлементы с картинками и крупными логотипами */
.home-collections-grid .collection-card::before,
.home-collections-grid .collection-card::after {
  content: none !important;
  display: none !important;
}

/* Небольшой тематический значок */
.home-collections-grid .collection-brand-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #8a650c;
  border-radius: 12px;
  background: rgba(255, 194, 28, .08);
  font-size: 21px;
  line-height: 1;
  z-index: 2;
}

.home-collections-grid .collection-card-overlay {
  position: relative !important;
  inset: auto !important;
  z-index: 3 !important;
  width: 100% !important;
  padding: 0 !important;
  background: none !important;
}

.home-collections-grid .collection-card-overlay h3 {
  display: -webkit-box;
  max-width: calc(100% - 54px) !important;
  margin: 0 0 10px !important;
  overflow: hidden;
  color: #fff !important;
  font-size: 21px !important;
  font-weight: 900 !important;
  line-height: 1.16 !important;
  letter-spacing: -.2px;
  text-shadow: none !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-collections-grid .collection-card-overlay p {
  margin: 0 !important;
  color: #d5cab8 !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  text-shadow: none !important;
}

.home-collections-grid .collection-card:hover {
  transform: translateY(-3px);
  border-color: #ffc21c !important;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 164, 0, .25), transparent 34%),
    linear-gradient(145deg, #1c1507 0%, #0a0805 72%) !important;
}

@media (max-width: 900px) {
  .home-collections-grid {
    grid-template-columns: repeat(2, minmax(210px, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .home-collections-grid {
    grid-template-columns: 1fr !important;
  }

  .home-collections-grid .collection-card {
    min-height: 155px !important;
    padding: 18px !important;
  }

  .home-collections-grid .collection-card-overlay h3 {
    font-size: 20px !important;
    max-width: calc(100% - 50px) !important;
  }

  .home-collections-grid .collection-brand-icon {
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}


/* v2.5: карточки, ответы и награды */
.poster-card-badges { position:absolute; top:10px; left:10px; right:58px; display:flex!important; flex-wrap:wrap!important; gap:6px!important; align-items:flex-start; z-index:4; }
.poster-card-badges span { max-width:100%; padding:6px 9px!important; font-size:11px!important; line-height:1.1!important; white-space:normal!important; }
.poster-card-badges .draft-card-badge { order:-10; background:#2a2110!important; border-color:#ffc21c!important; color:#ffd35a!important; }
.poster-card-body h3 { display:-webkit-box; min-height:48px; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; line-height:1.2; }
.catalog-grid .poster-card, #grid .poster-card { height:100%; }
.admin-review-reply { margin-top:12px; padding:12px 14px; border-left:3px solid #ffc21c; border-radius:8px; background:rgba(255,194,28,.08); }
.admin-review-reply b { color:#ffc21c; }
.admin-review-reply p { margin:6px 0 0; }
.admin-reply-input { width:100%; margin-top:12px; }
.review-admin-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.profile-achievements { margin:22px 0; }
.achievement-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.achievement-card { display:flex; gap:12px; align-items:center; padding:14px; border:1px solid #4c4028; border-radius:12px; background:#11100d; }
.achievement-card>span { font-size:28px; filter:grayscale(1); opacity:.45; }
.achievement-card.unlocked { border-color:#9a710e; background:rgba(255,194,28,.06); }
.achievement-card.unlocked>span { filter:none; opacity:1; }
.achievement-card div { flex:1; display:grid; gap:4px; }
.achievement-card small { color:#bcb09e; }
.achievement-card i { display:block; height:5px; overflow:hidden; border-radius:99px; background:#342b1b; }
.achievement-card i em { display:block; height:100%; background:linear-gradient(90deg,#ffc21c,#ff8a00); }
@media(max-width:560px){.achievement-grid{grid-template-columns:1fr}.poster-card-badges{right:52px}}


/* v2.6 — заметные направления, история и сортировка избранного */
.direction-filters button{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:3px!important;text-align:center!important}
.direction-filters button b{font-size:15px!important;color:inherit}
.direction-filters button small{display:block!important;font-size:10px!important;opacity:.72;font-weight:700}
.direction-filters button.active small{opacity:.95}
.view-tools{margin:14px 0 18px;padding:12px 14px;border:1px solid #6e510d;border-radius:12px;background:#0d0b07;color:#d7cdbb}
.view-tools label{display:flex;align-items:center;gap:12px;font-weight:800}
.view-tools select{min-height:42px;padding:0 12px;border:1px solid #7d5c0d;border-radius:9px;background:#111;color:#fff;font:inherit}
.view-tools p{margin:0;line-height:1.45}
.catalog-grid:has(.history-card){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.history-card{display:grid;grid-template-columns:150px 1fr;min-height:225px;border:1px solid #6e510d;border-radius:16px;overflow:hidden;background:linear-gradient(145deg,#151007,#080706)}
.history-card>img{width:100%;height:100%;min-height:225px;object-fit:cover;cursor:pointer}
.history-card-content{display:flex;flex-direction:column;padding:18px}
.history-card-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.history-card-heading small{color:#ffc21c;font-weight:800}.history-card-heading h3{margin:5px 0 0;font-size:21px;line-height:1.18}.history-card-heading strong{color:#ffc21c;font-size:20px}
.history-card-content>p{color:#bcb2a1;font-size:13px}
.history-progress{height:9px;margin:8px 0 16px;border:1px solid #6e510d;border-radius:999px;background:#050505;overflow:hidden}.history-progress span{display:block;height:100%;background:linear-gradient(90deg,#ffd23f,#ff9f0a)}
.history-card-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:auto}.history-card-actions button{min-height:40px;padding:8px 12px;border:1px solid #79590d;border-radius:9px;background:#0d0c09;color:#fff;font-weight:800}.history-card-actions .history-continue{background:linear-gradient(90deg,#ffc82e,#ff9f0a);color:#090909;border:0}
@media(max-width:760px){.catalog-grid:has(.history-card){grid-template-columns:1fr}.history-card{grid-template-columns:110px 1fr;min-height:190px}.history-card>img{min-height:190px}.history-card-content{padding:14px}.history-card-heading h3{font-size:18px}.view-tools label{align-items:stretch;flex-direction:column}.view-tools select{width:100%}}


/* DUBLIK Design System 1.0 */
.dublik-icon{width:14px;height:14px;display:inline-block;flex:0 0 14px;object-fit:contain;vertical-align:-2px}
.poster-card-badges span,.details-poster-labels span{display:inline-flex!important;align-items:center!important;gap:5px!important}
.poster-card-badges span>span,.details-poster-labels span>span{display:inline!important}
.dublik-filter-icon{width:23px;height:23px;display:block;object-fit:contain;margin-bottom:2px}
.direction-filters button{gap:2px!important}
.direction-filters button.active .dublik-filter-icon{filter:brightness(0)}
.direction-card-badge,.subscription-card-badge,.draft-card-badge{min-height:28px;box-sizing:border-box}
.direction-card-badge .dublik-icon,.subscription-card-badge .dublik-icon,.draft-card-badge .dublik-icon{width:13px;height:13px;flex-basis:13px}
.details-poster-labels .dublik-icon{width:15px;height:15px}
@media(max-width:560px){.dublik-filter-icon{width:20px;height:20px}.poster-card-badges span{gap:4px!important}.direction-card-badge .dublik-icon,.subscription-card-badge .dublik-icon,.draft-card-badge .dublik-icon{width:12px;height:12px;flex-basis:12px}}


/* v2.7 — VK Donut */
.donut-admin-box{margin-top:18px;padding:16px;border:1px solid #76570c;border-radius:14px;background:#0c0a06}.donut-admin-box h3{margin:0 0 8px;color:#ffc21c}.donut-admin-box p{color:#bfb39f;font-size:13px}.donut-admin-box input{width:100%;min-height:42px;margin:8px 0 10px;padding:0 12px;border:1px solid #674b0b;border-radius:9px;background:#111;color:#fff}.donut-admin-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.donut-admin-actions button{min-height:38px;border:1px solid #8a650c;border-radius:9px;background:#151108;color:#ffc21c;font-weight:800}.donut-admin-result{display:grid;gap:4px;margin-top:10px;padding:10px;border-radius:9px;background:#171207;color:#ddd}.donut-admin-result b{color:#ffc21c}.donut-admin-result span,.donut-admin-result small{font-size:12px}.donut-profile-status.active{border-color:#ffc21c;background:rgba(255,194,28,.08)}.donut-profile-status.active strong{color:#ffc21c}.donut-check-note{padding:10px;border:1px solid #62490c;border-radius:10px;background:rgba(255,194,28,.06);font-size:13px}


/* v2.7.1 — компактные фирменные значки */
.poster-card-badges > span,.details-poster-labels > span{display:inline-flex!important;align-items:center!important;width:max-content!important;height:auto!important;max-width:100%!important;gap:4px!important}
.poster-card-badges > span > span,.details-poster-labels > span > span{display:inline!important;width:auto!important;height:auto!important;padding:0!important;margin:0!important;border:0!important;background:none!important;font:inherit!important;color:inherit!important}
.poster-card-badges img.dublik-icon,.details-poster-labels img.dublik-icon,.card-subscription-line img.dublik-icon{display:block!important;width:11px!important;min-width:11px!important;max-width:11px!important;height:11px!important;min-height:11px!important;max-height:11px!important;flex:0 0 11px!important;padding:0!important;margin:0!important;object-fit:contain!important;object-position:center!important}
.poster-card-badges > span{min-height:24px!important;padding:4px 7px!important;font-size:9px!important;line-height:1!important}
.direction-filters img.dublik-filter-icon{width:18px!important;min-width:18px!important;max-width:18px!important;height:18px!important;object-fit:contain!important}
.donut-admin-box input[type="text"]{font-size:15px}.donut-admin-result span{overflow-wrap:anywhere}
@media(max-width:560px){.poster-card-badges img.dublik-icon,.details-poster-labels img.dublik-icon{width:10px!important;min-width:10px!important;max-width:10px!important;height:10px!important;min-height:10px!important;max-height:10px!important;flex-basis:10px!important}.poster-card-badges > span{padding:4px 6px!important;font-size:8px!important;min-height:22px!important}}


/* v2.7.2 — заявки на ручную проверку VK Donut */
.donut-request-section { border: 1px solid #72530d; border-radius: 16px; padding: 18px; background: linear-gradient(145deg,#171205,#090806); }
.donut-request-status { display: grid; gap: 5px; margin: 12px 0; padding: 14px; border: 1px solid #58420d; border-radius: 12px; background: #0d0c09; }
.donut-request-status b { color: #ffc21c; font-size: 17px; }
.donut-request-status span { color: #cec4b3; line-height: 1.4; }
.donut-request-status.active { border-color: #c79212; box-shadow: inset 0 0 0 1px rgba(255,194,28,.14); }
.donut-request-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.donut-request-access-types { display: grid; gap: 8px; margin: 12px 0; padding: 12px; border: 1px solid #58420d; border-radius: 12px; }
.donut-request-access-types legend { padding: 0 7px; color: #ffc21c; font-weight: 800; }
.donut-request-access-types label { display: flex; align-items: center; gap: 9px; min-height: 34px; color: #f2eadc; cursor: pointer; }
.donut-request-access-types input { width: 20px; height: 20px; accent-color: #ffb400; }
.donut-request-access-types label.is-active { opacity: .55; cursor: default; }
.donut-request-access-types .request-state-note { margin-left: auto; color: #caa847; font-size: 11px; font-style: normal; }
.donut-admin-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.donut-admin-heading h3 { margin: 0; }
.donut-request-admin-list { display: grid; gap: 10px; max-height: 440px; overflow: auto; margin-top: 12px; }
.donut-request-admin-card { display: grid; gap: 10px; padding: 13px; border: 1px solid #5f470d; border-radius: 12px; background: #0d0c09; }
.donut-request-admin-card > div:first-child { display: grid; gap: 4px; }
.donut-request-admin-card b { color: #fff; }
.donut-request-admin-card span { color: #bdb3a3; font-size: 13px; }
.donut-request-admin-card a { color: #ffc21c; font-size: 13px; text-decoration: none; }
.donut-request-current { padding: 8px 10px; border-radius: 9px; background: #211707; color: #ffc21c; font-size: 13px; }
.donut-request-current.active { background: #172011; color: #d7f3b0; }
.donut-request-card-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.donut-request-card-actions button { min-height: 38px; padding: 0 11px; }
.donut-request-empty, .donut-request-error { padding: 14px; border: 1px dashed #62490d; border-radius: 10px; color: #c9bfae; text-align: center; }
.donut-request-error { color: #ffb29b; border-color: #843d25; }


/* DUBLIK TV v2.7.4 — фирменный китайский фонарь и компактные значки */
.dublik-glyph {
  display:inline-block!important;
  width:12px!important;
  min-width:12px!important;
  max-width:12px!important;
  height:12px!important;
  min-height:12px!important;
  max-height:12px!important;
  flex:0 0 12px!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background-color:currentColor!important;
  vertical-align:-2px;
  -webkit-mask-repeat:no-repeat;
  -webkit-mask-position:center;
  -webkit-mask-size:contain;
  mask-repeat:no-repeat;
  mask-position:center;
  mask-size:contain;
}
.dublik-glyph-china{-webkit-mask-image:url("assets/icons/dublik/china.svg");mask-image:url("assets/icons/dublik/china.svg")}
.dublik-glyph-korea{-webkit-mask-image:url("assets/icons/dublik/korea.svg");mask-image:url("assets/icons/dublik/korea.svg")}
.dublik-glyph-vertical{-webkit-mask-image:url("assets/icons/dublik/vertical.svg");mask-image:url("assets/icons/dublik/vertical.svg")}
.dublik-glyph-movie{-webkit-mask-image:url("assets/icons/dublik/movie.svg");mask-image:url("assets/icons/dublik/movie.svg")}
.dublik-glyph-episodes{-webkit-mask-image:url("assets/icons/dublik/episodes.svg");mask-image:url("assets/icons/dublik/episodes.svg")}
.dublik-glyph-subscription{-webkit-mask-image:url("assets/icons/dublik/subscription.svg");mask-image:url("assets/icons/dublik/subscription.svg")}
.dublik-glyph-free{-webkit-mask-image:url("assets/icons/dublik/free.svg");mask-image:url("assets/icons/dublik/free.svg")}
.dublik-glyph-draft{-webkit-mask-image:url("assets/icons/dublik/draft.svg");mask-image:url("assets/icons/dublik/draft.svg")}
.dublik-glyph-new{-webkit-mask-image:url("assets/icons/dublik/new.svg");mask-image:url("assets/icons/dublik/new.svg")}
.dublik-glyph-popular{-webkit-mask-image:url("assets/icons/dublik/popular.svg");mask-image:url("assets/icons/dublik/popular.svg")}
.dublik-glyph-collection{-webkit-mask-image:url("assets/icons/dublik/collection.svg");mask-image:url("assets/icons/dublik/collection.svg")}
.dublik-glyph-all{-webkit-mask-image:url("assets/icons/dublik/all.svg");mask-image:url("assets/icons/dublik/all.svg")}

.poster-card-badges{right:52px!important;display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;gap:5px!important}
.poster-card-badges>span{display:inline-flex!important;align-items:center!important;gap:5px!important;width:auto!important;max-width:100%!important;min-height:22px!important;height:auto!important;padding:4px 7px!important;font-size:9px!important;line-height:1!important;white-space:nowrap!important}
.poster-card-badges>span>span:not(.dublik-glyph){display:inline!important;width:auto!important;height:auto!important;padding:0!important;margin:0!important;border:0!important;background:none!important;color:inherit!important;font:inherit!important}
.poster-card-badges img.dublik-icon,.details-poster-labels img.dublik-icon,.card-subscription-line img.dublik-icon{display:none!important}
.details-poster-labels .dublik-glyph,.card-subscription-line .dublik-glyph{width:14px!important;min-width:14px!important;max-width:14px!important;height:14px!important;min-height:14px!important;max-height:14px!important;flex-basis:14px!important}

/* Фильтры: фонарь и дворец находятся над подписью и не прыгают */
.direction-filter-grid button .dublik-filter-icon{display:block!important;width:22px!important;height:22px!important;margin:0 auto 4px!important;object-fit:contain!important}
.direction-filter-grid button[data-direction="korea"] .dublik-filter-icon{transform:translateY(2px)}

@media(max-width:560px){
  .dublik-glyph{width:11px!important;min-width:11px!important;max-width:11px!important;height:11px!important;min-height:11px!important;max-height:11px!important;flex-basis:11px!important}
  .poster-card-badges>span{min-height:21px!important;padding:4px 6px!important;font-size:8px!important}
  .direction-filter-grid button .dublik-filter-icon{width:20px!important;height:20px!important}
}


/* DUBLIK TV v2.7.5 — финальные компактные теги */

.poster-card-badges {
  top: 10px !important;
  left: 10px !important;
  right: 54px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  gap: 4px !important;
  z-index: 8 !important;
}

.poster-card-badges > span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 20px !important;
  height: 20px !important;
  padding: 2px 6px !important;
  margin: 0 !important;
  border: 1px solid #d99a00 !important;
  border-radius: 6px !important;
  background: rgba(10, 9, 6, .9) !important;
  color: #ffc21c !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.poster-card-badges .dublik-glyph {
  display: inline-block !important;
  width: 10px !important;
  min-width: 10px !important;
  max-width: 10px !important;
  height: 10px !important;
  min-height: 10px !important;
  max-height: 10px !important;
  flex: 0 0 10px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: currentColor !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.poster-card-badges > span > span:not(.dublik-glyph) {
  display: inline !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
  box-shadow: none !important;
}

.poster-card-badges .draft-card-badge {
  order: -10 !important;
}

.favorite-card-button {
  z-index: 10 !important;
}

.details-poster-labels > span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.details-poster-labels .dublik-glyph {
  width: 12px !important;
  min-width: 12px !important;
  max-width: 12px !important;
  height: 12px !important;
  min-height: 12px !important;
  max-height: 12px !important;
  flex: 0 0 12px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background-color: currentColor !important;
}

@media (max-width: 560px) {
  .poster-card-badges {
    top: 8px !important;
    left: 8px !important;
    right: 48px !important;
    gap: 3px !important;
  }

  .poster-card-badges > span {
    min-height: 19px !important;
    height: 19px !important;
    padding: 2px 5px !important;
    gap: 3px !important;
    font-size: 8px !important;
    border-radius: 5px !important;
  }

  .poster-card-badges .dublik-glyph {
    width: 9px !important;
    min-width: 9px !important;
    max-width: 9px !important;
    height: 9px !important;
    min-height: 9px !important;
    max-height: 9px !important;
    flex-basis: 9px !important;
  }
}


/* DUBLIK TV v2.8 — управление главными администраторами */
.administrators-heading { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; }
.administrators-heading h2 { margin-bottom:6px; }
.administrators-heading p, .administrator-help { color:#bdb3a4; line-height:1.45; }
.administrator-add-form { margin:18px 0 12px; }
.administrator-add-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(180px,auto) auto; gap:10px; margin-top:7px; }
.administrators-list { display:grid; gap:10px; margin-top:16px; }
.administrator-card { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:15px; border:1px solid #6d510d; border-radius:14px; background:#0d0b07; }
.administrator-card > div:first-child { display:grid; gap:4px; }
.administrator-card strong { color:#fff; }
.administrator-card span { color:#c8bda9; font-size:13px; }
.administrator-owner { width:max-content; padding:3px 7px; border:1px solid #b9870c; border-radius:999px; color:#ffc21c !important; font-weight:800; }
.administrator-actions { display:flex; flex-wrap:wrap; gap:8px; }
.administrator-actions a { text-decoration:none; }
.administrator-empty, .administrator-error { padding:18px; border:1px dashed #6d510d; border-radius:12px; color:#c8bda9; }
.administrator-error { color:#ff9a86; }
@media(max-width:620px){.administrators-heading,.administrator-card{align-items:stretch;flex-direction:column}.administrator-add-row{grid-template-columns:1fr}.administrator-actions>*{flex:1;text-align:center}}


/* DUBLIK TV 3.0 RC1 — отзывы VK и статусы подписок */
.review-vk-author {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 194, 28, .35);
  border-radius: 12px;
  background: rgba(255, 194, 28, .06);
}
.review-vk-author img,
.review-avatar {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}
.review-vk-author div { display: grid; gap: 2px; }
.review-vk-author small { opacity: .7; }
.review-card { display: flex; align-items: flex-start; gap: 10px; }
.review-card .review-body { min-width: 0; flex: 1; }
.donut-profile-status { border-color: rgba(255,255,255,.12) !important; }
.donut-profile-status.active { border-color: rgba(255,194,28,.65) !important; background: rgba(255,194,28,.08) !important; }
.subscription-dialog-actions .free-watch-link {
  border: 1px solid rgba(255,194,28,.6);
  background: transparent;
  color: #ffc21c;
}


/* DUBLIK TV 3.0 RC1.1 — видимые разделы профиля и админки */
.profile-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.profile-level{display:grid;gap:9px}.profile-level>div{display:flex;justify-content:space-between;align-items:end}.profile-level strong{font-size:26px;color:#ffc21c}.profile-level i{height:12px;border:1px solid #8c6500;border-radius:999px;overflow:hidden;background:#111;display:block}.profile-level em{height:100%;display:block;background:linear-gradient(90deg,#ffd23f,#ff9700)}.profile-history-preview{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.profile-history-preview button{display:flex;align-items:center;text-align:left;gap:10px;padding:8px;background:#111;border:1px solid #6e5200;border-radius:12px;color:#fff}.profile-history-preview img{width:48px;height:68px;object-fit:cover;border-radius:7px}.profile-history-preview span{display:grid;gap:6px}.profile-history-preview small{color:#bfb6a2}.subscription-history{margin-top:16px;display:grid;gap:6px}.subscription-history>div{display:grid;grid-template-columns:1fr auto;gap:2px 12px;padding:8px;border-bottom:1px solid #372d12}.subscription-history b{color:#999}.subscription-history b.active{color:#ffc21c}.subscription-history small{grid-column:1/-1;color:#918a7c}.subscriber-libraries,.libraries-admin-list,.library-audit-list{display:grid;gap:10px}.subscriber-library,.libraries-admin-list article,.library-audit-list article{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px;border:1px solid #6e5200;border-radius:14px;background:#0e0d09}.subscriber-library>div{display:grid;gap:5px}.subscriber-library small,.subscriber-library span{color:#bfb6a2}.subscriber-library a,.subscriber-library button{padding:9px 12px;border-radius:9px;border:1px solid #d99a00;background:#ffb000;color:#050505;font-weight:800;text-decoration:none}.subscriber-library.locked{opacity:.75}.library-form{display:grid;gap:12px;margin-bottom:22px}.libraries-admin-list article div{display:grid;gap:4px}.libraries-admin-list button{padding:7px 10px}.subscriber-center-actions{margin-top:14px}.donut-dialog-result{margin-top:12px}.library-audit-list article{display:grid;grid-template-columns:1fr auto}.library-audit-list small{grid-column:1/-1;color:#aaa}@media(max-width:560px){.subscriber-library{align-items:stretch;flex-direction:column}.subscriber-library a,.subscriber-library button{width:100%;text-align:center}.profile-history-preview{grid-template-columns:1fr}}


/* DUBLIK TV 3.0 FINAL */

.profile-identity-card {
  grid-column: 1 / -1;
  display: flex !important;
  align-items: center;
  gap: 14px;
  text-align: left !important;
}
.profile-identity-card img {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 194, 28, .7);
}
.profile-identity-card div {
  display: grid;
  gap: 3px;
}
.profile-identity-card small {
  color: #a99b83;
  font-size: 10px;
  letter-spacing: .12em;
}
.profile-identity-card strong {
  font-size: 20px;
  color: #fff;
}
.profile-identity-card span {
  color: #ffc21c;
  font-weight: 800;
}

.independent-subscriptions {
  display: grid;
  gap: 10px;
}
.donut-profile-status {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 84px;
  padding: 14px !important;
}
.donut-profile-status > div {
  display: grid;
  gap: 4px;
}
.donut-profile-status span {
  color: #fff;
  font-weight: 800;
}
.donut-profile-status strong {
  font-size: 14px;
  color: #c9c1b2;
}
.donut-profile-status small {
  color: #918876;
  font-size: 11px;
}
.donut-profile-status button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #82620f;
  border-radius: 8px;
  background: #171207;
  color: #ffc21c;
  font-size: 11px;
  font-weight: 900;
}
.donut-profile-status.active strong {
  color: #ffc21c;
}

.card-subscription-line {
  min-height: 26px !important;
  height: auto !important;
  width: fit-content;
  max-width: 100%;
  padding: 4px 7px !important;
  border: 1px solid rgba(217,154,0,.75);
  border-radius: 7px;
  background: rgba(10,9,6,.78);
  color: #ffc21c;
  font-size: 9px !important;
  line-height: 1.15;
}
.card-subscription-line-empty {
  border: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

.achievement-card {
  min-height: 86px;
}
.achievement-card > span {
  font-size: 25px;
}
.achievement-card small {
  line-height: 1.35;
}

@media (max-width: 560px) {
  .profile-identity-card img {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }
  .profile-identity-card strong {
    font-size: 17px;
  }
  .donut-profile-status {
    min-height: 76px;
    padding: 11px !important;
  }
  .donut-profile-status button {
    min-height: 32px;
    padding: 0 8px;
    font-size: 10px;
  }
  .card-subscription-line {
    min-height: 23px !important;
    padding: 3px 6px !important;
    font-size: 8px !important;
  }
}


/* DUBLIK TV 3.0 — polish after visual review */
.featured-controls{left:18px;right:18px;bottom:14px}
.featured-arrow{width:38px;height:38px;font-size:27px}
.card-subscription-line{font-size:8px!important;min-height:22px!important;padding:3px 6px!important;line-height:1.15!important}
.watch-card-button{font-size:11px!important;padding:8px 9px!important;white-space:normal!important;line-height:1.15!important}
.poster-card-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:7px!important}
.availability-title strong{font-size:11px;line-height:1.25}
.history-card-simple{grid-template-columns:95px minmax(0,1fr);min-height:145px}
.history-card-simple>img{min-height:145px}
.history-card-simple .history-card-content{padding:13px;min-width:0}
.history-card-simple h3{margin:5px 0;font-size:17px;line-height:1.18}
.history-card-simple p{margin:4px 0 12px;font-size:12px}
.history-card-simple .history-card-actions{margin-top:auto}
.admin-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-right:48px;align-items:stretch}
.admin-tabs button{min-width:0;padding:9px 7px;white-space:normal;line-height:1.15}
.admin-modal{overflow-x:hidden!important}
.bulk-admin{overflow-x:hidden}
.request-admin-access{border:1px solid #8a6710!important;background:#171207!important;color:#ffc21c!important}
@media(max-width:680px){
 .admin-tabs{grid-template-columns:repeat(2,minmax(0,1fr));margin-right:42px}
 .featured-arrow{width:34px;height:34px;font-size:24px}
 .history-card-simple{grid-template-columns:78px minmax(0,1fr);min-height:125px}
 .history-card-simple>img{min-height:125px}
 .poster-card-actions{grid-template-columns:1fr 1fr!important}
 .watch-card-button,.details-card-button{font-size:10px!important;padding:7px 5px!important}
}


/* DUBLIK TV 3.0.2 */
#search::-webkit-search-cancel-button,
#search::-webkit-search-decoration { -webkit-appearance:none; appearance:none; display:none; }
#search::-ms-clear { display:none; width:0; height:0; }
#drawerCatalogAdminBtn { display:none !important; }
.catalog-toolbar-actions { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
.user-rating-line { color:#ffc21c; font-size:12px; font-weight:800; }
.activity-leaderboard { display:grid; gap:10px; }
.activity-current { margin:0; padding:11px 13px; border:1px solid #6f5207; border-radius:12px; background:#151006; }
.activity-current b { color:#ffc21c; font-size:20px; }
.activity-ranking-list { display:grid; gap:6px; }
.activity-ranking-list > div { display:grid; grid-template-columns:34px minmax(0,1fr) auto; gap:9px; align-items:center; padding:9px 11px; border:1px solid #3f330f; border-radius:10px; background:#0d0d0d; }
.activity-ranking-list > div.is-current { border-color:#ffc21c; background:#1c1608; }
.activity-ranking-list > div > b,.activity-ranking-list > div > strong { color:#ffc21c; }
.poster-card-badges .draft-card-badge { background:#ffc21c !important; color:#090909 !important; border-color:#ffc21c !important; box-shadow:0 2px 9px #000; }
.poster-card-badges .soon-card-badge{background:#ffc21c!important;color:#090909!important;border-color:#ffc21c!important;font-weight:1000!important;box-shadow:0 2px 9px #000}

.wall-sync-admin{display:grid;gap:16px;min-width:0}.wall-sync-import{display:grid;gap:9px;min-width:0;padding:14px;border:1px solid #4b3b15;border-radius:13px;background:#0d0b07}.wall-sync-import textarea,.wall-sync-import button{width:100%;max-width:100%}.wall-sync-toolbar{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:9px;align-items:stretch;min-width:0}.wall-sync-toolbar>*{width:100%;min-width:0;max-width:100%}.wall-sync-toolbar #wallSyncSetSelectedBtn{grid-column:1/-1;min-height:44px}.wall-sync-table-wrap{overflow-y:auto;overflow-x:hidden;max-width:100%;max-height:58vh;border:1px solid #4b3b15;border-radius:13px}.wall-sync-table{width:100%;max-width:100%;border-collapse:collapse;table-layout:fixed}.wall-sync-table th{position:sticky;top:0;z-index:2;background:#171208;color:#ffc21c;text-align:left;padding:11px 7px;border-bottom:1px solid #5d4715}.wall-sync-table td{padding:9px 7px;border-bottom:1px solid #2c2518;vertical-align:middle;min-width:0}.wall-sync-table th:nth-child(1),.wall-sync-table td:nth-child(1){width:36px;text-align:center}.wall-sync-table th:nth-child(2),.wall-sync-table td:nth-child(2){width:40%}.wall-sync-table th:nth-child(3),.wall-sync-table td:nth-child(3){width:27%}.wall-sync-table th:nth-child(4),.wall-sync-table td:nth-child(4){width:20%}.wall-sync-table td strong,.wall-sync-table td small{display:block;overflow-wrap:anywhere;word-break:break-word}.wall-sync-table td small{margin-top:4px;color:#aaa08d}.wall-sync-table select{display:block;width:100%;min-width:0;max-width:100%;text-overflow:ellipsis}.wall-sync-footer{position:sticky;bottom:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid #4b3b15;border-radius:12px;background:#100d08}.wall-sync-footer strong{color:#ffc21c}.wall-sync-footer button{max-width:100%}@media(max-width:1100px){.wall-sync-table th:nth-child(5),.wall-sync-table td:nth-child(5){display:none}.wall-sync-table th:nth-child(2),.wall-sync-table td:nth-child(2){width:43%}.wall-sync-table th:nth-child(3),.wall-sync-table td:nth-child(3){width:31%}.wall-sync-table th:nth-child(4),.wall-sync-table td:nth-child(4){width:26%}}@media(max-width:650px){.wall-sync-toolbar{grid-template-columns:1fr}.wall-sync-toolbar #wallSyncSetSelectedBtn{grid-column:auto}.wall-sync-table-wrap{overflow:visible;max-height:none;border:0}.wall-sync-table,.wall-sync-table tbody{display:block}.wall-sync-table thead{display:none}.wall-sync-table tr{display:grid;grid-template-columns:34px minmax(0,1fr);gap:8px;margin-bottom:10px;padding:11px;border:1px solid #4b3b15;border-radius:12px;background:#0d0b07}.wall-sync-table td{display:block!important;width:auto!important;padding:0;border:0}.wall-sync-table td:nth-child(1){grid-row:1/4;align-self:start;padding-top:4px}.wall-sync-table td:nth-child(n+2){grid-column:2}.wall-sync-table td:nth-child(5){display:none!important}.wall-sync-footer{align-items:stretch;flex-direction:column}.wall-sync-footer button{width:100%}}
.wall-sync-control{display:grid!important;gap:5px!important;margin:0!important}.wall-sync-control>span{color:#d8cda9;font-size:12px;font-weight:800}.wall-sync-bulk-control{padding-top:8px;border-top:1px solid #4b3b15}.wall-sync-bulk-control>span{color:#ffc21c}

@media(min-width:900px){
  .catalog-grid:has(.history-card-simple){grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:680px){
  .catalog-grid:has(.history-card-simple){grid-template-columns:1fr!important}
  .history-card-simple{grid-template-columns:92px minmax(0,1fr);min-height:132px}
  .history-card-simple>img{min-height:132px;object-fit:cover}
}
.profile-stats > button,
.profile-stats > article:not(.profile-identity-card) {
  text-align: center !important;
  align-items: center !important;
  justify-content: center !important;
}
.profile-stats > button strong,
.profile-stats > button span {
  width: 100%;
  text-align: center !important;
}
.donut-request-access-choice { display:grid; gap:6px; color:#d7cbb6; font-weight:800; }
.donut-request-access-choice select { width:100%; min-height:38px; border:1px solid #76570b; border-radius:8px; background:#111; color:#fff; padding:0 9px; }
.library-audit-results { display:grid; gap:10px; margin-top:12px; }
.library-audit-summary { display:flex; flex-wrap:wrap; gap:8px; }
.library-audit-summary span { border:1px solid #654b0d; border-radius:999px; padding:5px 9px; background:#171207; color:#e8dcc8; font-size:12px; }
.library-audit-candidates { display:grid; gap:6px; max-height:330px; overflow:auto; padding-right:4px; }
.library-audit-person { display:grid; grid-template-columns:auto 38px 1fr; align-items:center; gap:9px; padding:8px; border:1px solid #4f3b0d; border-radius:9px; background:#0d0c09; }
.library-audit-person img { width:38px; height:38px; border-radius:50%; object-fit:cover; }
.library-audit-person span { display:grid; gap:2px; }
.library-audit-person small { color:#a99d89; }
.library-audit-actions { display:flex; flex-wrap:wrap; gap:8px; }
.library-audit-actions button { min-height:36px; }
.library-audit-danger { border-color:#9b430e !important; color:#ffb16f !important; }
@media (max-width:560px){.library-audit-person{grid-template-columns:auto 34px 1fr}.library-audit-person img{width:34px;height:34px}}


/* DUBLIK TV 3.1 Admin Edition */
.library-center-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}.library-center-summary article{padding:14px;border:1px solid #3c321d;border-radius:12px;background:#100d08;text-align:center}.library-center-summary strong{display:block;color:#ffc21c;font-size:24px}.library-center-summary span{font-size:11px;color:#aaa08d}.library-center-summary .attention strong{color:#ff796f}.library-center-toolbar{display:flex;gap:8px;margin-bottom:14px}.library-center-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:14px!important;border:1px solid #332a18!important;border-radius:12px!important;background:#0d0b07!important}.library-center-card.hidden-library{opacity:.6}.library-card-main{display:grid;gap:5px}.library-card-main strong{font-size:16px}.library-card-main small,.library-card-main em{color:#9e9585;font-style:normal;font-size:11px}.library-access-badge{width:max-content;padding:4px 7px;border-radius:999px;border:1px solid #66501b;color:#ffc21c;font-size:10px;font-weight:900}.access-free{color:#9fe3aa;border-color:#37683e}.library-card-stats{display:flex;gap:8px;align-items:center;grid-column:1/-1}.library-card-stats span{padding:7px 9px;border-radius:8px;background:#17130c;font-size:11px}.library-card-stats .danger{color:#ff8a80}.library-card-actions{display:flex;gap:6px;align-items:start}.library-inline-audit{grid-column:1/-1}.library-audit-person{display:grid!important;grid-template-columns:42px minmax(0,1fr) auto auto;gap:9px;align-items:center;padding:9px!important}.library-audit-person img{width:42px;height:42px;border-radius:50%;object-fit:cover}.library-audit-person a,.library-audit-person button{padding:7px 9px;border:1px solid #66501b;border-radius:7px;background:#17130c;color:#ffc21c;text-decoration:none;font-size:10px}.user-passport-search{margin:18px 0;padding:14px;border:1px solid #332a18;border-radius:12px}.user-passport-search>div:first-of-type{display:flex;gap:8px}.user-passport-search input{flex:1}.user-passport{margin-top:12px;padding:14px;border-radius:12px;background:#0d0b07;border:1px solid #3a2f19}.user-passport header{display:flex;align-items:center;gap:12px}.user-passport header img{width:64px;height:64px;border-radius:50%;object-fit:cover;border:2px solid #ffc21c}.user-passport header div{display:grid;gap:4px}.user-passport header a{color:#ffc21c;font-size:11px}.user-passport section{margin-top:13px;padding-top:10px;border-top:1px solid #2c2518}.user-passport section>div:not(.passport-stats){display:grid;grid-template-columns:1fr auto;gap:3px 10px;padding:6px 0}.user-passport section small{grid-column:1/-1;color:#8d8576}.user-passport b.active{color:#8ee59a}.passport-stats{display:flex;gap:8px}.passport-stats span{flex:1;padding:9px;border-radius:8px;background:#17130c;text-align:center;font-size:11px}.passport-stats b{display:block;color:#ffc21c;font-size:18px}@media(max-width:700px){.library-center-summary{grid-template-columns:repeat(2,1fr)}.library-center-card{grid-template-columns:1fr}.library-card-actions,.library-card-stats{grid-column:1;flex-wrap:wrap}.library-audit-person{grid-template-columns:38px 1fr}.library-audit-person a,.library-audit-person button{grid-column:auto}.user-passport-search>div:first-of-type{flex-direction:column}}


/* DUBLIK TV 3.1.1 — библиотеки и быстрый переход к странице */

.library-card-actions button,
.library-center-toolbar button,
.library-audit-list > article > button,
.user-passport-search button,
.library-audit-person button {
  border: 1px solid #d99a00 !important;
  background: linear-gradient(135deg, #f7b800, #ff9417) !important;
  color: #090806 !important;
  font-weight: 900 !important;
  box-shadow: none !important;
}

.library-card-actions button:disabled,
.library-center-toolbar button:disabled,
.library-audit-list > article > button:disabled,
.user-passport-search button:disabled {
  opacity: .58;
  cursor: wait;
}

.library-check-error {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px dashed #b64c2b;
  border-radius: 10px;
  background: rgba(86, 25, 13, .22);
  color: #ffd3c8;
}
.library-check-error strong {
  color: #ff8c72;
  font-size: 15px;
}
.library-check-error p,
.library-check-error small {
  margin: 0;
  line-height: 1.45;
}
.library-check-error small {
  color: #d8c6bb;
}
.library-check-error code {
  color: #ffc21c;
}

.page-jump-form {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: 8px;
  padding-left: 10px;
  border-left: 1px solid #54400f;
}
.page-jump-form label {
  color: #b9ad97;
  font-size: 11px;
  font-weight: 800;
}
.page-jump-form input {
  width: 68px;
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid #76570b;
  border-radius: 8px;
  background: #11100d;
  color: #fff;
  text-align: center;
  font-weight: 900;
}
.page-jump-form button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #d99a00;
  border-radius: 8px;
  background: linear-gradient(135deg, #f7b800, #ff9417);
  color: #090806;
  font-weight: 900;
}

@media (max-width: 700px) {
  .pagination {
    flex-wrap: wrap;
  }
  .page-jump-form {
    width: 100%;
    justify-content: center;
    margin: 8px 0 0;
    padding: 8px 0 0;
    border-left: 0;
    border-top: 1px solid #33280d;
  }
}


/* DUBLIK TV 3.1.2 — подключение VK для библиотек */

.library-vk-connection {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  padding: 9px;
  border: 1px solid #4b3b12;
  border-radius: 9px;
  background: #0e0d09;
}
.library-vk-connection span {
  margin-right: auto;
  color: #b9ad97;
  font-size: 12px;
  font-weight: 900;
}
.library-vk-connection.connected span {
  color: #ffc21c;
}
.library-vk-connection button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid #d99a00;
  border-radius: 8px;
  background: linear-gradient(135deg, #f7b800, #ff9417);
  color: #090806;
  font-size: 11px;
  font-weight: 900;
}
.library-vk-connection .secondary-library-button {
  background: #15130e;
  color: #ffc21c;
}
@media (max-width: 560px) {
  .library-vk-connection {
    align-items: stretch;
  }
  .library-vk-connection span {
    width: 100%;
  }
  .library-vk-connection button {
    flex: 1 1 140px;
  }
}


/* DUBLIK TV 3.1.3 — мастер настройки */

.setup-admin {
  display: grid;
  gap: 18px;
}
.setup-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
}
.setup-heading h2,
.setup-heading p {
  margin-top: 0;
}
.setup-heading p {
  color: #c7bcaa;
  line-height: 1.5;
}
.setup-overall {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid #6e5412;
  border-radius: 13px;
  background: #151108;
}
.setup-overall strong {
  color: #ffc21c;
  font-size: 19px;
}
.setup-overall span {
  color: #c9bfaf;
}
.setup-overall.ok {
  border-color: #7e6d12;
}
.setup-overall.warning {
  border-color: #a26b10;
}
.setup-overall.error {
  border-color: #a8422a;
}
.setup-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.setup-status-card {
  display: flex;
  gap: 12px;
  min-height: 105px;
  padding: 14px;
  border: 1px solid #40350f;
  border-radius: 12px;
  background: #0e0d09;
}
.setup-status-card.ok {
  border-color: #645711;
}
.setup-status-card.warning {
  border-color: #9b6511;
}
.setup-status-card.error {
  border-color: #9d3e29;
}
.setup-status-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  background: #241d09;
  color: #ffc21c;
  font-size: 17px;
  font-weight: 900;
}
.setup-status-card.error .setup-status-icon {
  background: #42190f;
  color: #ff9076;
}
.setup-status-card strong {
  color: #fff;
}
.setup-status-card p {
  margin: 5px 0;
  color: #d4c9b7;
  line-height: 1.4;
}
.setup-status-card small {
  color: #998f80;
  line-height: 1.4;
}
.setup-key-generator,
.setup-next-steps {
  padding: 17px;
  border: 1px solid #5b460f;
  border-radius: 13px;
  background: #100e08;
}
.setup-key-generator h3,
.setup-next-steps h3 {
  margin-top: 0;
  color: #ffc21c;
}
.setup-key-generator code {
  color: #ffc21c;
}
.setup-key-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}
.setup-key-row input {
  min-width: 0;
  font-family: monospace;
}
.setup-key-row button,
.setup-heading button {
  border: 1px solid #d99a00;
  background: linear-gradient(135deg, #f7b800, #ff9417);
  color: #090806;
  font-weight: 900;
}
.setup-key-generator ol {
  color: #d4c9b7;
  line-height: 1.7;
}
.setup-key-generator > small {
  color: #ff9e82;
}
.setup-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #2e270e;
}
.setup-step:last-child {
  border-bottom: 0;
}
.setup-step b {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border-radius: 50%;
  background: #ffc21c;
  color: #090806;
}
.setup-step span {
  color: #fff;
}
.setup-complete {
  color: #ffc21c;
  font-weight: 900;
}

@media (max-width: 700px) {
  .setup-heading,
  .setup-overall {
    flex-direction: column;
  }
  .setup-heading button {
    width: 100%;
  }
  .setup-checklist {
    grid-template-columns: 1fr;
  }
  .setup-key-row {
    grid-template-columns: 1fr 1fr;
  }
  .setup-key-row input {
    grid-column: 1 / -1;
  }
}


/* DUBLIK TV 3.1.5 — бесплатные библиотеки */

.free-library-stats .free-status {
  color: #ffc21c;
}
.free-library-stats span {
  min-height: 40px;
}
.library-vk-connection small {
  color: #ad9f88;
}


/* DUBLIK TV 3.1.6 — единый Центр библиотек */

.library-center-card {
  display: grid;
  gap: 12px;
}
.library-inline-results {
  margin-top: 3px;
  padding: 13px;
  border: 1px solid #4d3b0e;
  border-radius: 11px;
  background: #0b0a07;
}
.library-connect-error {
  display: grid;
  gap: 7px;
  width: 100%;
}
.library-connect-error strong {
  color: #ff9278;
}
.library-connect-error p {
  margin: 0;
  color: #d7c9bb;
  line-height: 1.45;
}
.library-connect-error button,
.library-manual-token-form button {
  min-height: 38px;
  border: 1px solid #d99a00;
  border-radius: 8px;
  background: linear-gradient(135deg, #f7b800, #ff9417);
  color: #090806;
  font-weight: 900;
}
.library-manual-token-form {
  display: grid;
  gap: 9px;
  width: 100%;
}
.library-manual-token-form textarea {
  width: 100%;
  resize: vertical;
  font-family: monospace;
}
.library-manual-token-form small {
  color: #afa18e;
  line-height: 1.4;
}
.library-manual-token-form > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.library-manual-token-form > div button:last-child {
  background: #15130e;
  color: #ffc21c;
}
.library-vk-connection.connection-error {
  border-color: #98432d;
}
@media (max-width: 600px) {
  .library-manual-token-form > div {
    grid-template-columns: 1fr;
  }
}


/* DUBLIK TV 3.1.7 — открытие ссылок библиотек */

.subscriber-library button[data-library-link] {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #d99a00;
  border-radius: 9px;
  background: linear-gradient(135deg, #f7b800, #ff9417);
  color: #090806;
  font-weight: 900;
  cursor: pointer;
}
.subscriber-library button[data-library-link]:active {
  transform: translateY(1px);
}


/* DUBLIK TV 3.1.9 — безопасная проверка старых донов */
.library-center-summary button.attention{display:grid;place-items:center;gap:4px;border:1px solid #a8422a;border-radius:12px;background:#100d09;color:#fff;cursor:pointer;padding:16px}.library-center-summary button.attention strong{color:#ff6e65;font-size:28px}.library-center-summary button.attention small{color:#c7b7a4}.library-card-stats .unknown,.library-audit-summary .unknown{color:#ffc21c}.library-card-stats .danger,.library-audit-summary .danger{color:#ff7167}.legacy-donors-panel{padding:15px;border:1px solid #5e470f;border-radius:12px;background:#100e08}.legacy-donors-panel summary{color:#ffc21c;font-weight:900;cursor:pointer;font-size:17px}.legacy-donors-panel textarea{width:100%;font-family:monospace}.library-unknown-list{margin-top:12px;padding:12px;border:1px solid #71550d;border-radius:10px;background:#151107}.library-unknown-list summary{color:#ffc21c;font-weight:900;cursor:pointer}.library-unknown-list>p{color:#d6c7b5}.library-center-card[hidden]{display:none!important}


/* DUBLIK TV 3.2.0 — первичная синхронизация VK Donut */

.legacy-donor-file-box {
  display: grid;
  gap: 10px;
  margin-top: 13px;
  padding: 14px;
  border: 1px solid #6b5010;
  border-radius: 11px;
  background: #0c0b07;
}
.legacy-donor-file-box input[type="file"] {
  width: 100%;
  margin-top: 7px;
}
.legacy-donor-file-box small {
  color: #b9ac98;
  line-height: 1.45;
}
.legacy-donor-file-box progress {
  width: 100%;
  height: 14px;
  accent-color: #ffc21c;
}
.legacy-donor-manual {
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #3f330f;
  border-radius: 10px;
}
.legacy-donor-manual summary {
  font-size: 13px;
}
#legacyDonorImportResult pre {
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  color: #d9cdbd;
}


/* DUBLIK TV 3.2.1 — подсказка повторного импорта */
#legacyDonorImportResult details summary {
  cursor: pointer;
}


/* DUBLIK TV 3.2.2 — прямой импорт Excel VK Donut */
.legacy-donor-file-box input[type="file"]::file-selector-button {
  margin-right: 10px;
  padding: 8px 11px;
  border: 1px solid #d99a00;
  border-radius: 8px;
  background: #19150a;
  color: #ffc21c;
  font-weight: 800;
}


/* DUBLIK TV 3.2.3 — отозванные ключи и устаревшая статистика */

.library-center-card.stale-library-token {
  border-color: #9f482f;
}
.library-center-card.stale-library-token .library-card-main em {
  color: #ff9278;
}
.library-vk-connection.revoked {
  border-color: #b3472d;
  background: rgba(87, 25, 14, .22);
}
.library-vk-connection.revoked span {
  color: #ff9278;
}
.library-card-stats .stale-stat {
  color: #ff9278;
}

.library-audit-results small{
  display:block;
  margin-top:8px;
  color:#bfb19d;
  line-height:1.45;
}

.library-exclusion-journal{margin:18px 0;padding:16px;border:1px solid #6c5010;border-radius:13px;background:#0e0c07}
.journal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.journal-heading h3{margin:0 0 5px;color:#ffc21c}.journal-heading p{margin:0;color:#c4b7a3;line-height:1.45}
.journal-filters{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}
.journal-summary{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:12px;color:#cdbfa9}.journal-summary b{color:#ffc21c}
.journal-list{display:grid;gap:9px;max-height:620px;overflow:auto}
.library-journal-item{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;padding:14px;border:1px solid rgba(255,190,0,.32);border-radius:14px;background:rgba(255,255,255,.025)}
.library-journal-item>div:first-child{display:grid;gap:5px;min-width:0}.library-journal-item small{display:block;color:#c9c1b1;line-height:1.45}.library-journal-item .library-card-actions{display:flex;gap:7px;flex-wrap:wrap;flex:0 0 auto}.library-journal-item a{color:#ffc328;text-decoration:none;border:1px solid rgba(255,190,0,.4);border-radius:10px;padding:8px 10px}
@media(max-width:700px){.library-journal-item{display:grid}.library-journal-item .library-card-actions{width:100%}.library-journal-item .library-card-actions>*{flex:1;text-align:center}}
.journal-person{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:11px;align-items:center;padding:11px;border:1px solid #4a390d;border-radius:10px;background:#090806}
.journal-person.resolved{opacity:.58}.journal-person img{width:46px;height:46px;object-fit:cover;border-radius:50%}
.journal-person>div:nth-child(2){display:grid;gap:3px}.journal-person strong{color:#fff}.journal-person small,.journal-person time{color:#978b7a}.journal-person span{color:#ff997e}
.journal-actions{display:grid;grid-template-columns:repeat(3,auto);gap:6px}
.journal-actions a,.journal-actions button{padding:8px 10px;border:1px solid #b57f00;border-radius:8px;background:#17130a;color:#ffc21c;font-weight:800;text-decoration:none}
@media(max-width:700px){.journal-heading{flex-direction:column}.journal-filters{grid-template-columns:1fr}.journal-person{grid-template-columns:42px 1fr}.journal-actions{grid-column:1/-1;grid-template-columns:1fr}}


/* DUBLIK TV 3.2.6 — понятный журнал и рабочий паспорт */

.journal-person-name{
  color:#fff;
  font-weight:900;
  text-decoration:none;
}
.journal-person-name:hover{
  color:#ffc21c;
  text-decoration:underline;
}
.journal-summary small{
  flex-basis:100%;
  padding:8px 10px;
  border:1px solid #55400e;
  border-radius:8px;
  color:#c9bba7;
  line-height:1.45;
}
.admin-passport-dialog{
  width:min(680px,calc(100vw - 28px));
  max-height:85vh;
  padding:0;
  border:1px solid #9f7300;
  border-radius:14px;
  background:#080704;
  color:#fff;
  overflow:auto;
}
.admin-passport-dialog::backdrop{
  background:rgba(0,0,0,.78);
}
.passport-dialog-head{
  position:sticky;
  top:0;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:13px 16px;
  border-bottom:1px solid #5a430c;
  background:#0d0b06;
}
.passport-dialog-head h3{
  margin:0;
  color:#ffc21c;
}
.passport-dialog-head button{
  width:40px;
  height:40px;
  border:1px solid #b68100;
  border-radius:50%;
  background:#151108;
  color:#ffc21c;
  font-size:25px;
}
#userPassportDialogResult{
  padding:16px;
}
.user-passport{
  display:grid;
  gap:14px;
}
.user-passport header{
  display:flex;
  align-items:center;
  gap:12px;
}
.user-passport header img{
  width:70px;
  height:70px;
  object-fit:cover;
  border-radius:50%;
}
.user-passport header div{
  display:grid;
  gap:5px;
}
.user-passport header strong{
  font-size:21px;
}
.user-passport header a{
  color:#ffc21c;
}
.user-passport section{
  padding:12px;
  border:1px solid #4e3b0d;
  border-radius:10px;
  background:#0c0a06;
}
.user-passport section h4{
  margin:0 0 10px;
  color:#ffc21c;
}
.passport-subscription-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  gap:10px;
  align-items:center;
  padding:8px 0;
  border-bottom:1px solid #2d250d;
}
.passport-subscription-row:last-child{
  border-bottom:0;
}
.passport-subscription-row .active{color:#8ed67c}
.passport-subscription-row .inactive{color:#ff9278}
.passport-subscription-row small{color:#9d917f}
@media(max-width:560px){
  .passport-subscription-row{
    grid-template-columns:1fr auto;
  }
  .passport-subscription-row small{
    grid-column:1/-1;
  }
}

.journal-person small{word-break:break-word}

.journal-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:12px}
.journal-pagination button,.journal-pagination select{min-height:38px;border:1px solid #a87800;border-radius:8px;background:#151108;color:#ffc21c;font-weight:800}
.journal-pagination button{padding:0 14px}.journal-pagination button:disabled{opacity:.4}
.journal-pagination label{display:flex;align-items:center;gap:7px;color:#c7b9a4}
.candidate-diagnostic-dialog{width:min(720px,calc(100vw - 28px));max-height:88vh;padding:0;border:1px solid #9f7300;border-radius:14px;background:#080704;color:#fff;overflow:auto}
.candidate-diagnostic-dialog::backdrop{background:rgba(0,0,0,.8)}
#candidateDiagnosticResult{padding:16px}.candidate-diagnostic-card{display:grid;gap:14px}
.candidate-diagnostic-card header{display:flex;align-items:center;gap:12px}
.candidate-diagnostic-card header img{width:64px;height:64px;object-fit:cover;border-radius:50%}
.candidate-diagnostic-card header div{display:grid;gap:3px}
.candidate-diagnostic-card section{padding:12px;border:1px solid #4d3a0c;border-radius:10px;background:#0c0a06}
.candidate-diagnostic-card h4{margin:0 0 10px;color:#ffc21c}
.diagnostic-row{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid #29210b}
.candidate-diagnostic-card .ok{color:#8ed67c}.candidate-diagnostic-card .bad{color:#ff9278}
.diagnostic-aliases{margin-top:8px;color:#b9ad9b;word-break:break-word}
.diagnostic-callback{display:grid;grid-template-columns:1fr auto auto;gap:10px;padding:7px 0;border-bottom:1px solid #29210b}
.diagnostic-decision{padding:10px;border:1px solid currentColor;border-radius:8px;font-weight:900}
@media(max-width:620px){.diagnostic-callback{grid-template-columns:1fr}.journal-actions{grid-template-columns:1fr}}


/* DUBLIK TV 3.3.3 — автоматическое исправление журнала */
.diagnostic-fixed{
  margin-top:10px;
  padding:9px 11px;
  border:1px solid #5e9c52;
  border-radius:8px;
  background:rgba(58,120,48,.16);
  color:#9be08d;
  font-weight:800;
}


/* DUBLIK TV 3.3.4 — разделение статусов журнала */
.journal-summary small{
  border-color:#6e5311;
}


/* DUBLIK TV 3.3.5 — массовая диагностика журнала */

.journal-heading-actions{
  display:grid;
  gap:8px;
  min-width:220px;
}
.bulk-journal-diagnostics-status{
  display:flex;
  flex-wrap:wrap;
  gap:10px 16px;
  margin:12px 0;
  padding:11px 13px;
  border:1px solid #6d520f;
  border-radius:9px;
  background:#0a0905;
  color:#c9bca8;
}
.bulk-journal-diagnostics-status b{
  flex-basis:100%;
  color:#ffc21c;
}
@media(max-width:700px){
  .journal-heading-actions{
    width:100%;
  }
}

/* DUBLIK TV 3.13.3 — balanced recommendation content */
#homeView .featured-content{
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  padding:26px 24px!important;
}
#homeView .featured-content h1{
  width:100%!important;
  max-width:680px!important;
  font-size:clamp(42px,4.5vw,62px)!important;
  line-height:1.02!important;
}
#homeView .featured-content>p{
  display:-webkit-box!important;
  width:100%!important;
  max-width:650px!important;
  margin:18px 0 0!important;
  -webkit-line-clamp:3!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
  color:#cfc5b5!important;
  font-size:14px!important;
  line-height:1.5!important;
}
#homeView .featured-buttons{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  margin-top:22px!important;
}
#homeView .featured-watch-button,#homeView .featured-details-button{
  width:auto!important;
  min-width:170px!important;
}
#homeView .featured-controls{
  position:static!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:13px!important;
  width:auto!important;
  margin-top:18px!important;
  pointer-events:auto!important;
}
#homeView .featured-dots{margin:0!important}
@media(max-width:700px){
  #homeView .featured-content{padding:12px 5px 6px!important}
  #homeView .featured-content h1{font-size:clamp(34px,10vw,48px)!important}
  #homeView .featured-buttons{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;width:100%!important}
  #homeView .featured-watch-button,#homeView .featured-details-button{width:100%!important;min-width:0!important;padding:10px 7px!important;font-size:13px!important}
  #homeView .featured-controls{justify-content:center!important;margin-top:14px!important}
}

.bulk-journal-diagnostics-status details{flex-basis:100%;padding-top:5px}
.bulk-journal-diagnostics-status summary{cursor:pointer;color:#ffc21c;font-weight:800}
.bulk-diagnostic-library-row{display:grid;grid-template-columns:minmax(180px,1fr) repeat(3,auto);gap:8px 14px;align-items:center;padding:8px 0;border-bottom:1px solid #30270e}
.bulk-diagnostic-library-row strong{color:#fff}
.bulk-diagnostic-library-row .error{grid-column:2/-1;color:#ff9278}
@media(max-width:760px){.bulk-diagnostic-library-row{grid-template-columns:1fr}.bulk-diagnostic-library-row .error{grid-column:auto}}

.bulk-diagnostic-library-row small{
  grid-column:2/-1;
  color:#9f927f;
}
.bulk-journal-diagnostics-status>.error{
  flex-basis:100%;
  color:#ff9278;
  font-weight:800;
}

.bulk-diagnostic-library-row{
  grid-template-columns:minmax(180px,1fr) repeat(4,auto);
}
@media(max-width:900px){
  .bulk-diagnostic-library-row{grid-template-columns:1fr}
}


/* DUBLIK TV 3.3.9 — действия без сброса прокрутки */
.journal-person{
  transition:opacity .18s ease,transform .18s ease,max-height .18s ease,margin .18s ease,padding .18s ease;
}
.journal-person.journal-card-removing{
  opacity:0;
  transform:translateX(16px);
  pointer-events:none;
}
.journal-actions button:disabled{
  opacity:.62;
  cursor:wait;
}


/* DUBLIK TV 3.4.0 — ручное подтверждение дона */
.journal-actions [data-mark-manual-donor]{
  background:#1a2a12;
  border-color:#6fa85c;
  color:#a9e894;
}
.passport-remove-manual-donor{
  margin-top:10px;
  padding:9px 12px;
  border:1px solid #b46f3f;
  border-radius:8px;
  background:#24130b;
  color:#ffb38a;
  font-weight:800;
}


/* DUBLIK TV 3.4.1 — реестр подписчиков и массовое исключение */

.subscriber-registry-heading,
.mass-vk-removal-heading{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
}
.subscriber-registry-heading h2,
.mass-vk-removal h3{margin:0 0 6px;color:#ffc21c}
.subscriber-registry-heading p,
.mass-vk-removal p{margin:0;color:#c3b6a2;line-height:1.45}

.subscriber-registry-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin:18px 0;
}
.subscriber-registry-summary article{
  display:grid;
  place-items:center;
  min-height:104px;
  padding:12px;
  border:1px solid #5b450e;
  border-radius:12px;
  background:#0d0b06;
  text-align:center;
}
.subscriber-registry-summary strong{font-size:28px;color:#ffc21c}
.subscriber-registry-summary span{color:#bbae9a}

.subscriber-registry-filters{
  display:grid;
  grid-template-columns:1fr 1fr minmax(220px,2fr) auto;
  gap:10px;
  align-items:end;
  margin-bottom:14px;
}
.subscriber-registry-list{display:grid;gap:8px;max-height:650px;overflow:auto}
.subscriber-registry-person{
  display:grid;
  grid-template-columns:52px minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:11px;
  border:1px solid #4c3a0d;
  border-radius:10px;
  background:#0a0906;
}
.subscriber-registry-person.active{border-color:#4f7c3d}
.subscriber-registry-person.manual{border-color:#7b6a24}
.subscriber-registry-person.reserve{border-color:#6d6250}
.subscriber-registry-person.inactive{border-color:#7c392c}
.subscriber-registry-person img{width:52px;height:52px;object-fit:cover;border-radius:50%}
.subscriber-registry-person>div:nth-child(2){display:grid;gap:3px}
.subscriber-registry-person strong{color:#fff}
.subscriber-registry-person small,
.subscriber-registry-person em{color:#9f927f}
.subscriber-registry-person em{font-style:normal}
.subscriber-status{font-weight:900}
.subscriber-registry-person.active .subscriber-status{color:#98df86}
.subscriber-registry-person.manual .subscriber-status{color:#ffd35c}
.subscriber-registry-person.reserve .subscriber-status{color:#d2c19e}
.subscriber-registry-person.inactive .subscriber-status{color:#ff9278}
.subscriber-registry-actions{display:flex;gap:7px}
.subscriber-registry-actions a,
.subscriber-registry-actions button{
  padding:9px 11px;
  border:1px solid #a97800;
  border-radius:8px;
  background:#161209;
  color:#ffc21c;
  font-weight:800;
  text-decoration:none;
}
.subscriber-registry-pagination{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  margin:12px 0 22px;
}

.mass-vk-removal{
  margin-top:22px;
  padding:16px;
  border:1px solid #7b351f;
  border-radius:13px;
  background:#100906;
}
.mass-vk-removal-controls{
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto auto;
  gap:10px;
  align-items:end;
  margin:14px 0;
}
.danger-button{
  min-height:44px;
  border:1px solid #d05b37;
  border-radius:9px;
  background:#7c2412;
  color:#fff;
  font-weight:900;
  padding:0 15px;
}
.danger-button:disabled{opacity:.45}
.mass-removal-preview{
  padding:12px;
  border:1px solid #4f351c;
  border-radius:9px;
  background:#090704;
  color:#c8baa7;
}
.mass-removal-numbers{
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
}
.mass-removal-numbers b{font-size:21px}
.mass-removal-numbers .safe{color:#9de28b}
.mass-removal-numbers .danger{color:#ff9278}
.safe-text{color:#9de28b!important}
.error-text{color:#ff9278!important}
.mass-removal-complete{display:grid;gap:6px;color:#9de28b}

@media(max-width:800px){
  .subscriber-registry-summary{grid-template-columns:1fr 1fr}
  .subscriber-registry-filters,
  .mass-vk-removal-controls{grid-template-columns:1fr}
  .subscriber-registry-person{grid-template-columns:45px 1fr}
  .subscriber-registry-actions{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}
}


/* DUBLIK TV 3.4.2 — официальный VK ID и компактный журнал */
.vk-admin-connection-card{
  display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:14px;align-items:center;
  margin:18px 0;padding:14px;border:1px solid #5b450e;border-radius:12px;background:#0c0a06;
}
.vk-admin-connection-card .vk-admin-connection-help{grid-column:1/-1}
.vk-admin-connection-card h3{margin:0 0 5px;color:#ffc21c}
.vk-admin-connection-card p{margin:0;color:#bcae99;line-height:1.4}
.vk-admin-connection-status{display:grid;gap:3px;min-width:210px;padding:10px;border:1px solid #4a390d;border-radius:9px}
.vk-admin-connection-status.connected{border-color:#5b914b;color:#9ce58b}
.vk-admin-connection-status.disconnected{border-color:#834331;color:#ff9a7f}
.vk-admin-connection-status span{font-size:12px;color:#ad9f8b}
.vk-admin-connection-actions{display:grid;gap:7px}

.journal-list{gap:6px}
.journal-person{
  grid-template-columns:38px minmax(150px,1fr) minmax(300px,auto);
  gap:8px;padding:8px 9px;border-radius:8px;min-height:0;
}
.journal-person img{width:38px;height:38px}
.journal-person>div:nth-child(2){gap:1px;line-height:1.15}
.journal-person-name{font-size:14px;line-height:1.15}
.journal-person small,.journal-person time,.journal-person span{font-size:11px;line-height:1.2}
.journal-actions{display:grid;grid-template-columns:repeat(3,minmax(88px,1fr));gap:5px;align-items:center}
.journal-actions a,.journal-actions button{
  min-height:30px;padding:4px 7px;border-radius:6px;font-size:11px;line-height:1.1;
}
@media(max-width:760px){
  .vk-admin-connection-card{grid-template-columns:1fr}
  .vk-admin-connection-status{min-width:0}
  .journal-person{grid-template-columns:34px 1fr;padding:7px}
  .journal-person img{width:34px;height:34px}
  .journal-actions{grid-column:1/-1;grid-template-columns:repeat(2,1fr)}
}


/* DUBLIK TV 3.4.3 — подключение VK и ручной дон */
.vk-admin-connection-help{
  padding:11px 13px;
  border:1px solid #675018;
  border-radius:9px;
  background:#0b0905;
  color:#c8baa7;
  line-height:1.45;
}
.vk-admin-connection-help b{color:#ffc21c}
.vk-admin-connection-help ol{margin:8px 0;padding-left:22px}
.vk-admin-connection-status.pending{
  border-color:#a97900;
  color:#ffd257;
}
.manual-donor-dialog{
  width:min(560px,calc(100vw - 28px));
  padding:0;
  border:1px solid #83a84f;
  border-radius:14px;
  background:#080704;
  color:#fff;
}
.manual-donor-dialog::backdrop{background:rgba(0,0,0,.8)}
.manual-donor-dialog form{
  display:grid;
  gap:13px;
  padding:16px;
}
.manual-donor-dialog label{display:grid;gap:6px;color:#d5c7b3;font-weight:700}
.manual-donor-dialog select,
.manual-donor-dialog textarea{
  width:100%;
  border:1px solid #6b5318;
  border-radius:8px;
  background:#050504;
  color:#fff;
  padding:10px;
}
.manual-donor-user-summary{
  display:grid;
  gap:4px;
  padding:11px;
  border:1px solid #496f39;
  border-radius:9px;
  background:#0d170a;
}
.manual-donor-user-summary b{color:#a9e894}
.manual-donor-dialog-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}


/* DUBLIK TV 3.4.4 — доверенные источники донов */
.subscriber-registry-summary{
  grid-template-columns:repeat(5,minmax(0,1fr));
}
.subscriber-registry-person.suspicious{
  border-color:#8b6421;
  background:#151006;
}
.subscriber-registry-person.suspicious .subscriber-status{
  color:#ffc45c;
}
.subscriber-registry-heading-actions{
  display:grid;
  gap:8px;
}
.danger-outline-button{
  min-height:40px;
  padding:0 12px;
  border:1px solid #b85a3c;
  border-radius:8px;
  background:#180c08;
  color:#ff9a78;
  font-weight:800;
}
@media(max-width:800px){
  .subscriber-registry-summary{grid-template-columns:1fr 1fr}
  .subscriber-registry-heading-actions{width:100%}
}


/* DUBLIK TV 3.4.5 — стабильное подключение VK */
.admin-version-badge{
  display:inline-flex;
  margin-left:8px;
  padding:2px 7px;
  border:1px solid #6d5313;
  border-radius:999px;
  color:#d9c89f;
  font-size:11px;
  letter-spacing:normal;
  vertical-align:middle;
}

/* v3.4.6 safe cleanup */
.database-cleanup-panel{margin:22px 0;padding:16px;border:1px solid #8a4a2e;border-radius:13px;background:#100a06}.database-cleanup-heading{display:flex;justify-content:space-between;gap:15px}.database-cleanup-heading h3{margin:0 0 6px;color:#ffc21c}.database-cleanup-controls{display:grid;grid-template-columns:minmax(180px,1fr) auto auto;gap:10px;align-items:end;margin:15px 0}.database-cleanup-report{padding:13px;border:1px solid #50361d;border-radius:10px;background:#080604}.cleanup-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.cleanup-summary-grid article{display:grid;place-items:center;min-height:92px;padding:10px;border:1px solid #4a3b17;border-radius:9px;text-align:center}.cleanup-summary-grid strong{color:#9de28b;font-size:25px}.cleanup-summary-grid .warning strong{color:#ffd05e}.cleanup-summary-grid .danger strong{color:#ff8d70}.cleanup-protection-note{display:grid;gap:4px;margin:12px 0;padding:10px;border:1px solid #426d35;border-radius:8px;background:#0c1609}.cleanup-protection-note b{color:#9de28b}.cleanup-table-wrap{overflow:auto}.cleanup-table{width:100%;border-collapse:collapse;min-width:760px}.cleanup-table th,.cleanup-table td{padding:8px;border-bottom:1px solid #3d3015;text-align:left}.cleanup-table th{color:#ffc21c}.cleanup-confirmation-hint{color:#ffab8d}.cleanup-confirmation-hint code{color:#fff;font-weight:900}.cleanup-complete{display:grid;gap:7px;padding:12px;border:1px solid #4b803d;border-radius:9px;color:#9de28b}@media(max-width:760px){.database-cleanup-heading{display:grid}.database-cleanup-controls{grid-template-columns:1fr}.cleanup-summary-grid{grid-template-columns:1fr 1fr}}

/* DUBLIK TV 3.4.7 */
.vk-admin-connection-status.connected{border-color:#4e873d;background:#0d180a}

/* DUBLIK TV 3.4.8 */
#connectVkAdminBtn:active{transform:translateY(1px)}

/* DUBLIK TV 3.4.9 */
.subscriber-registry-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:800px){.subscriber-registry-summary{grid-template-columns:1fr 1fr}}


/* DUBLIK TV 3.5.0 — VKWebAppCallAPIMethod */
.mass-removal-complete details{
  margin-top:8px;
  color:#d8cbb8;
}
.mass-removal-complete summary{
  cursor:pointer;
  color:#ffc21c;
  font-weight:800;
}
.mass-removal-complete ul{
  margin:7px 0 0;
  padding-left:20px;
}

/* DUBLIK TV 3.5.4 */
#testMassRemovalPermissionBtn:disabled{opacity:.45;cursor:not-allowed}

/* DUBLIK TV 3.6.0 — ручной сценарий исключения */
.manual-removal-workflow{
  display:grid;
  gap:5px;
  margin:12px 0;
  padding:11px 13px;
  border:1px solid #665018;
  border-radius:9px;
  background:#0c0904;
  color:#d8c9b3;
}
.manual-removal-workflow b{color:#ffc21c}
.manual-removal-workflow small{color:#9f927f}
.journal-card-removing{
  opacity:0;
  transform:translateX(10px);
  transition:opacity .16s ease,transform .16s ease;
}

/* DUBLIK TV 3.6.1 */
.journal-person.manual-donor-confirmed{
  opacity:.55;
}

/* DUBLIK TV 3.6.3 — экспорт журнала */
.journal-export-actions{
  display:inline-flex;
  gap:6px;
  flex-wrap:wrap;
}
.journal-export-actions button{
  min-width:58px;
  min-height:34px;
  padding:5px 10px;
  font-size:12px;
  font-weight:800;
}
@media(max-width:700px){
  .journal-heading-actions{flex-wrap:wrap}
  .journal-export-actions{display:flex;width:100%}
  .journal-export-actions button{flex:1}
}
.bulk-dorama-import{margin-top:28px}.bulk-dorama-import progress{width:100%;height:14px;margin:14px 0}.bulk-dorama-import select{width:100%;margin-top:8px}

/* DUBLIK TV 3.7.3 — unified hero row and mobile catalogue grid */
.featured-badges-row{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:nowrap;
  width:max-content;
  max-width:100%;
}
.featured-badges-row .featured-label,
.featured-badges-row .premium-badge{
  position:static!important;
  inset:auto!important;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  min-height:38px;
  margin:0!important;
  white-space:nowrap;
}

/* The bottom navigation and the catalogue now switch at the same width. */
@media(max-width:1024px){
  #catalogView .catalog-grid,
  #grid.catalog-grid{
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:10px!important;
  }
  #catalogView .catalog-grid>.poster-card,
  #grid.catalog-grid>.poster-card{
    grid-column:span 2;
  }
  #catalogView .catalog-grid.catalog-balance-remainder-one>.poster-card:nth-last-child(-n+4),
  #grid.catalog-grid.catalog-balance-remainder-one>.poster-card:nth-last-child(-n+4){
    grid-column:span 3;
  }
  #catalogView .poster-card-body h3,
  #grid .poster-card-body h3{
    min-height:58px!important;
    font-size:clamp(15px,2.2vw,19px)!important;
    line-height:1.18!important;
    -webkit-line-clamp:3!important;
    overflow-wrap:anywhere;
  }
  #catalogView .poster-card-image,
  #grid .poster-card-image{
    aspect-ratio:16/7!important;
    background:#050505!important;
  }
  #catalogView .poster-card-image::before,
  #grid .poster-card-image::before{
    content:"";
    position:absolute;
    inset:-12px;
    z-index:0;
    background-image:linear-gradient(rgba(0,0,0,.38),rgba(0,0,0,.38)),var(--poster-background);
    background-position:center;
    background-size:cover;
    filter:blur(10px);
  }
  #catalogView .poster-card-image>img,
  #grid .poster-card-image>img{
    position:relative;
    z-index:1;
    object-fit:contain!important;
    object-position:center!important;
  }
  #catalogView .poster-card-image .favorite-card-button,
  #grid .poster-card-image .favorite-card-button,
  #catalogView .poster-card-image .edit-card-floating,
  #grid .poster-card-image .edit-card-floating{
    z-index:5;
  }
  #catalogView .poster-card-body,
  #grid .poster-card-body{
    min-height:0!important;
    padding:12px!important;
  }
  #catalogView .availability-progress-compact,
  #grid .availability-progress-compact{
    min-height:0!important;
  }
}

@media(max-width:560px){
  .featured-badges-row{
    gap:8px;
    flex-wrap:wrap;
    width:100%;
  }
  .featured-badges-row .featured-label,
  .featured-badges-row .premium-badge{
    min-height:34px;
    padding:7px 10px;
    font-size:10px;
  }
  #catalogView .catalog-grid,
  #grid.catalog-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  #catalogView .catalog-grid>.poster-card,
  #grid.catalog-grid>.poster-card{
    grid-column:auto!important;
  }
  #catalogView .poster-card-body,
  #grid .poster-card-body{
    min-height:0!important;
    padding:10px!important;
  }
  #catalogView .poster-card-body h3,
  #grid .poster-card-body h3{
    min-height:51px!important;
    font-size:15px!important;
  }
}

@media(max-width:390px){
  #catalogView .catalog-grid,
  #grid.catalog-grid{
    grid-template-columns:1fr!important;
  }
  #catalogView .poster-card-body h3,
  #grid .poster-card-body h3{
    min-height:auto!important;
    font-size:18px!important;
  }
}

/* DUBLIK TV 3.7.9 — compact two-column phone cards; desktop stays unchanged */
@media(max-width:640px){
  #catalogView .catalog-grid,
  #grid.catalog-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
  }
  #catalogView .catalog-grid>.poster-card,
  #grid.catalog-grid>.poster-card{
    grid-column:auto!important;
    border-radius:11px!important;
  }
  #catalogView .poster-card-image,
  #grid .poster-card-image{
    aspect-ratio:16/7!important;
  }
  #catalogView .poster-card-image .subscription-card-badge,
  #grid .poster-card-image .subscription-card-badge,
  #catalogView .card-subscription-line,
  #grid .card-subscription-line{
    display:none!important;
  }
  #catalogView .poster-card-badges,
  #grid .poster-card-badges{
    top:6px!important;
    left:6px!important;
    right:42px!important;
    gap:3px!important;
  }
  #catalogView .poster-card-badge,
  #grid .poster-card-badge{
    min-height:17px!important;
    padding:2px 5px!important;
    border-radius:5px!important;
    font-size:7px!important;
    line-height:1!important;
  }
  #catalogView .favorite-card-button,
  #grid .favorite-card-button{
    top:6px!important;
    right:6px!important;
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    font-size:18px!important;
  }
  #catalogView .edit-card-floating,
  #grid .edit-card-floating{
    left:6px!important;
    bottom:6px!important;
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
  }
  #catalogView .poster-card-body,
  #grid .poster-card-body{
    min-height:0!important;
    padding:8px!important;
  }
  #catalogView .poster-card-rating,
  #grid .poster-card-rating{
    min-height:0!important;
    margin:2px 0 5px!important;
    font-size:11px!important;
    line-height:1!important;
  }
  #catalogView .poster-card-body h3,
  #grid .poster-card-body h3{
    min-height:46px!important;
    margin:0 0 5px!important;
    font-size:13px!important;
    line-height:1.15!important;
    -webkit-line-clamp:3!important;
  }
  #catalogView .poster-card-meta,
  #grid .poster-card-meta{
    min-height:0!important;
    margin:0 0 7px!important;
    font-size:9px!important;
    line-height:1.25!important;
  }
  #catalogView .availability-progress-compact,
  #grid .availability-progress-compact{
    min-height:0!important;
    margin:5px 0 7px!important;
    padding:7px!important;
    gap:5px!important;
    border-radius:9px!important;
  }
  #catalogView .availability-progress-compact .availability-row,
  #grid .availability-progress-compact .availability-row{
    gap:3px!important;
  }
  #catalogView .availability-progress-compact .availability-row-title,
  #grid .availability-progress-compact .availability-row-title{
    font-size:8px!important;
    line-height:1!important;
  }
  #catalogView .availability-progress-compact strong,
  #grid .availability-progress-compact strong{
    font-size:9px!important;
    line-height:1.2!important;
  }
  #catalogView .availability-progress-compact .availability-track,
  #grid .availability-progress-compact .availability-track{
    height:4px!important;
  }
  #catalogView .quick-free-increment,
  #grid .quick-free-increment,
  #catalogView .quick-paid-increment,
  #grid .quick-paid-increment{
    min-height:31px!important;
    margin:0 0 6px!important;
    padding:5px 3px!important;
    font-size:9px!important;
    line-height:1.1!important;
  }
  #catalogView .quick-access-increments,#grid .quick-access-increments{gap:4px!important;margin-bottom:6px!important}
  #catalogView .poster-card-actions,
  #grid .poster-card-actions{
    gap:4px!important;
  }
  #catalogView .poster-card-actions button,
  #grid .poster-card-actions button{
    min-width:0!important;
    min-height:34px!important;
    padding:5px 2px!important;
    font-size:8.5px!important;
    line-height:1.1!important;
    white-space:normal!important;
    overflow-wrap:normal!important;
  }
}

/* DUBLIK TV 3.13.4 — admin and home cards fit mobile viewport */
@media(max-width:700px){
  .admin-modal{
    width:calc(100% - 12px)!important;
    max-width:calc(100% - 12px)!important;
    padding:12px!important;
    margin:6px!important;
    box-sizing:border-box!important;
    overflow-x:hidden!important;
  }
  .admin-modal>* ,.admin-modal form,.admin-modal section,.admin-form{
    min-width:0!important;
    max-width:100%!important;
    box-sizing:border-box!important;
  }
  .collection-admin-list article{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:8px!important;
    padding:10px!important;
  }
  .collection-admin-list article>span{
    grid-column:1/-1!important;
    min-width:0!important;
    overflow-wrap:anywhere!important;
    font-size:16px!important;
    line-height:1.2!important;
  }
  .collection-admin-list article>button{
    grid-column:auto!important;
    width:100%!important;
    min-width:0!important;
    padding:9px 5px!important;
    font-size:13px!important;
    white-space:normal!important;
  }
  #catalogView .admin-filters{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    width:100%!important;
    max-width:100%!important;
    overflow:visible!important;
  }
  #catalogView .admin-filters button{
    width:100%!important;
    min-width:0!important;
    padding:9px 5px!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
  #homeView .home-coming-soon-grid>.poster-card,
  #homeView .home-new-month-grid>.poster-card{
    min-width:0!important;
    overflow:hidden!important;
  }
  #homeView .home-coming-soon-grid .quick-access-increments,
  #homeView .home-new-month-grid .quick-access-increments{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:4px!important;
    width:100%!important;
    min-width:0!important;
    margin-bottom:7px!important;
  }
  #homeView .home-coming-soon-grid .quick-access-increments button,
  #homeView .home-new-month-grid .quick-access-increments button{
    width:100%!important;
    min-width:0!important;
    min-height:36px!important;
    margin:0!important;
    padding:5px 2px!important;
    font-size:10px!important;
    line-height:1.08!important;
    white-space:normal!important;
    overflow-wrap:anywhere!important;
  }
  #homeView .home-coming-soon-grid .poster-card-actions,
  #homeView .home-new-month-grid .poster-card-actions{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:4px!important;
  }
  #homeView .home-coming-soon-grid .poster-card-actions button,
  #homeView .home-new-month-grid .poster-card-actions button{
    width:100%!important;
    min-width:0!important;
    padding:7px 2px!important;
    font-size:9px!important;
    white-space:normal!important;
  }
}
@media(max-width:380px){
  #catalogView .admin-filters{grid-template-columns:1fr!important}
}

/* DUBLIK TV 3.13.41 — служебные фильтры каталога не должны
   возвращаться у зрителей из-за адаптивного display:grid!important. */
#catalogView .admin-filters[hidden]{
  display:none!important;
}

/* DUBLIK TV 3.13.0 — portrait recommendation and coming-soon shelf */
#homeView .featured-card{
  display:grid!important;
  grid-template-columns:minmax(0,1.15fr) minmax(220px,.62fr)!important;
  gap:18px!important;
  min-height:520px!important;
  padding:22px!important;
  overflow:hidden!important;
  background:
    radial-gradient(circle at 78% 24%,rgba(119,70,13,.22),transparent 34%),
    linear-gradient(135deg,#050403 0%,#120b05 58%,#211006 100%)!important;
  background-image:
    radial-gradient(circle at 78% 24%,rgba(119,70,13,.22),transparent 34%),
    linear-gradient(135deg,#050403 0%,#120b05 58%,#211006 100%)!important;
  background-position:center!important;
}
#homeView .featured-card::before{background:linear-gradient(90deg,rgba(0,0,0,.28),transparent 62%)!important}
#homeView .featured-content{position:relative!important;z-index:2!important;max-width:none!important;align-self:center!important}
#homeView .featured-poster-frame{position:relative;z-index:2;align-self:stretch;min-height:470px;border:1px solid #8a650b;border-radius:18px;overflow:hidden;background:#050505;box-shadow:0 18px 42px rgba(0,0,0,.48)}
#homeView .featured-poster-image{display:block;width:100%;height:100%;object-fit:contain;object-position:center;background:#050505}
#homeView .featured-watermark{z-index:3!important}
#homeView .home-coming-soon-grid{display:flex!important;align-items:stretch!important;gap:14px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:2px 2px 14px!important;scroll-snap-type:x mandatory!important;scrollbar-width:thin}
#homeView .home-coming-soon-grid>.poster-card{display:flex!important;flex:0 0 calc((100% - 28px)/3)!important;width:calc((100% - 28px)/3)!important;height:auto!important;min-width:0!important;scroll-snap-align:start!important}
#homeView .home-coming-soon-grid>.poster-card>.poster-card-body{display:flex!important;flex:1 1 auto!important;flex-direction:column!important}
#homeView .home-coming-soon-grid>.poster-card>.poster-card-body>.poster-card-actions{margin-top:auto!important}
.coming-soon-meme-button{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:8px 13px;border:1px solid #ffc21c;border-radius:999px;background:#0b0a08;color:#ffc21c;font-weight:900;cursor:pointer;box-shadow:0 7px 18px rgba(0,0,0,.28);transition:transform .18s ease,background .18s ease,color .18s ease}.coming-soon-meme-button:hover{transform:translateY(-2px);background:#ffc21c;color:#090806}.coming-soon-meme-button b{font-size:19px}.coming-soon-button-short{display:none}
@media(max-width:700px){
  #homeView .featured-card{grid-template-columns:1fr!important;gap:12px!important;min-height:0!important;padding:12px!important}
  #homeView .featured-poster-frame{grid-row:1;min-height:0;aspect-ratio:3/4;max-height:70vh}
  #homeView .featured-content{grid-row:2;padding:8px 3px 4px!important}
  #homeView .featured-content>p{display:-webkit-box!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  #homeView .home-coming-soon-grid{gap:9px!important}
  #homeView .home-coming-soon-grid>.poster-card{flex-basis:calc((100% - 9px)/2)!important;width:calc((100% - 9px)/2)!important}
  .home-coming-soon-section .section-heading-single{display:flex;align-items:center;gap:8px}.home-coming-soon-section .section-heading-single h2{font-size:18px;min-width:0}.coming-soon-meme-button{margin-left:auto;min-height:34px;padding:7px 10px;font-size:12px;white-space:nowrap}.coming-soon-button-full{display:none}.coming-soon-button-short{display:inline}
}

/* DUBLIK TV 3.11.0 — selective hourly wall synchronization */
.wall-sync-schedule-field{display:grid;gap:7px;margin:12px 0;padding:13px 14px;border:1px solid #80600d;border-radius:12px;background:#100d06;color:#ffd04b;font-weight:800}.wall-sync-schedule-field select{width:100%}.wall-sync-schedule-field small{color:#d6cba9;font-size:12px;font-weight:500;line-height:1.4}

/* DUBLIK TV 3.12.0 — distinct series, movie and vertical-release models */
.drama-model-selector{display:grid;gap:9px;margin:4px 0 18px;padding:14px;border:1px solid #8b680d;border-radius:14px;background:linear-gradient(135deg,#171105,#090806)}.drama-model-selector>strong{color:#ffd044;font-size:17px}.drama-model-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.drama-model-buttons button{min-height:48px;padding:8px;border:1px solid #6e5411;border-radius:10px;background:#090909;color:#fff;font-weight:800;cursor:pointer}.drama-model-buttons button.active{border-color:#ffc21c;background:#ffae0b;color:#080600;box-shadow:0 0 0 2px rgba(255,194,28,.18)}.drama-model-selector small{color:#d9ceb1;line-height:1.4}.vertical-full-movie-field{align-content:start;padding:10px!important;border:1px solid #8b680d!important;border-radius:10px;background:#171105}.vertical-full-movie-toggle{display:flex;align-items:center;gap:8px;min-height:38px;color:#ffd044;font-weight:900}.vertical-full-movie-toggle input{width:22px!important;height:22px!important;margin:0!important}
@media(max-width:700px){.drama-model-buttons{grid-template-columns:1fr}.drama-model-buttons button{min-height:42px;text-align:left}}
.bulk-create-confirm-button{width:100%;margin-top:14px}.bulk-result details small{overflow-wrap:anywhere}

/* DUBLIK TV 3.8.6 */
.subscriber-manual-access{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(180px,1fr) minmax(170px,.7fr);gap:10px;align-items:end;margin:14px 0;padding:14px;border:1px solid #72540d;border-radius:14px;background:#100d07}
.subscriber-manual-access h3,.subscriber-manual-access p{margin:0}.subscriber-manual-access p{margin-top:4px;color:#aaa08e;font-size:12px}.subscriber-manual-access input,.subscriber-manual-access select{min-height:42px}.subscriber-manual-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px}.donut-admin-result{grid-column:1/-1;display:grid;gap:5px;padding:10px;border-radius:9px;background:#191308;color:#eee}.donut-admin-result[hidden]{display:none}
.annual-quick-access{border-color:#b8860b;background:linear-gradient(135deg,#151006,#0d0c09)}
.annual-quick-access>div:first-child{grid-column:1/-1}
.annual-quick-access form{grid-column:1/-1;display:grid;grid-template-columns:minmax(220px,1fr) minmax(300px,1.4fr) auto;gap:12px;align-items:end}
.annual-quick-access .donut-request-access-types{margin:0}
.annual-quick-access form>button{min-height:46px}
.catalog-grid:has(.history-catalog-card){grid-template-columns:repeat(3,minmax(0,1fr))!important}
.history-catalog-card{height:100%!important}
@media(max-width:700px){
 .subscriber-manual-access{grid-template-columns:1fr}.subscriber-manual-actions{grid-column:1}.subscriber-manual-actions button{flex:1 1 45%}.annual-quick-access form{grid-template-columns:1fr}
 .catalog-grid:has(.history-catalog-card){grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .home-new-month-grid .poster-card-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
 .home-new-month-grid .poster-card-actions button{min-width:0!important;width:100%!important;padding:5px 2px!important;font-size:9px!important;white-space:normal!important;overflow-wrap:anywhere!important}
}
@media(max-width:390px){.catalog-grid:has(.history-catalog-card){grid-template-columns:1fr!important}}
.search-match-reason{margin:5px 0 2px;padding:5px 7px;border-left:2px solid #ffc21c;background:#171207;color:#d9cdaF;font-size:10px;line-height:1.3;overflow-wrap:anywhere}

/* DUBLIK TV 3.8.8 */
.catalog-grid.history-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.catalog-grid.history-grid>.poster-card{grid-column:auto!important}
.activity-ranking-list>div{grid-template-columns:30px 38px minmax(0,1fr) auto!important}
.activity-ranking-list>div>img,.activity-avatar-placeholder{width:36px;height:36px;border-radius:50%;object-fit:cover;display:grid;place-items:center;background:#262014;border:1px solid #73570f}
.rating-stars.rating-locked{opacity:.82}.rating-stars button:disabled{cursor:not-allowed}.rating-stars.rating-locked button.selected{color:#ffc21c!important}
.draft-lock-overlay{position:absolute;inset:0;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:rgba(30,30,30,.72);backdrop-filter:grayscale(1);color:#ddd;pointer-events:none}.draft-lock-overlay span{font-size:clamp(42px,7vw,78px);filter:grayscale(1);text-shadow:0 3px 12px #000}.draft-lock-overlay b{padding:6px 11px;border:1px solid #aaa;border-radius:8px;background:rgba(0,0,0,.7);font-size:12px;letter-spacing:.14em}

.year-filter-box{display:flex;align-items:center;gap:10px;margin:12px 0 18px;color:#d8c9a5;font-weight:800}.year-filter-box select{min-width:150px;padding:10px 36px 10px 12px;border:1px solid #805f00;border-radius:10px;background:#111;color:#fff;font:inherit}.my-dramas-view{padding:22px 0 110px}.my-dramas-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.my-dramas-heading h1{margin:4px 0}.my-dramas-heading>strong{padding:9px 14px;border:1px solid #8a6800;border-radius:999px;color:#ffc400;background:#171207}.my-dramas-folders{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:22px 0}.my-dramas-folders button{padding:13px 10px;border:1px solid #554200;border-radius:12px;background:#111;color:#ddd;font-weight:800}.my-dramas-folders button.active{background:#ffb000;color:#090909;border-color:#ffb000}.my-dramas-folders b{margin-left:5px}.my-dramas-actions{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:16px}.danger-button{padding:10px 14px;border:1px solid #ad3c36;border-radius:10px;background:#661d19;color:#fff;font-weight:800}.danger-button:disabled{opacity:.45}.my-dramas-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.my-drama-card{position:relative;display:grid;grid-template-columns:105px 1fr;gap:13px;padding:11px;border:1px solid #4e3c08;border-radius:15px;background:linear-gradient(145deg,#17140d,#0b0b0b);min-width:0}.my-drama-card>img{width:105px;height:150px;object-fit:cover;border-radius:10px;background:#222}.my-drama-card h3{margin:8px 0 5px;font-size:16px}.my-drama-card p{margin:0;color:#aaa;font-size:12px}.my-drama-status{display:inline-block;padding:5px 8px;border-radius:999px;background:#302506;color:#ffc400;font-size:11px;font-weight:900}.my-drama-card-actions{display:flex;align-items:center;gap:8px;margin-top:14px}.my-drama-details,.my-drama-menu summary{padding:8px 10px;border:1px solid #735800;border-radius:9px;background:#17130a;color:#fff;font-weight:800;cursor:pointer}.my-drama-menu{position:relative}.my-drama-menu summary{list-style:none;font-size:18px;line-height:1}.my-drama-menu[open]{z-index:8}.my-drama-menu[open]::before{content:"";position:fixed;inset:0;z-index:-1}.my-drama-menu button{display:block;width:170px;padding:9px;border:0;border-bottom:1px solid #3c310e;background:#15120b;color:#fff;text-align:left}.my-drama-menu button:last-child{border:0}.my-drama-menu>button:first-of-type{border-radius:10px 10px 0 0}.my-drama-menu{background:#15120b;border-radius:10px}.my-drama-check{position:absolute;right:10px;top:10px;z-index:3}.my-drama-check input{width:24px;height:24px;accent-color:#ffb000}.recent-dramas-section{margin-top:30px;padding-top:20px;border-top:1px solid #3e310d}.recent-drama-card{display:grid;grid-template-columns:58px 1fr;align-items:center;gap:10px;padding:8px;border:1px solid #332a12;border-radius:12px;background:#101010;color:#fff;text-align:left}.recent-drama-card img{width:58px;height:78px;object-fit:cover;border-radius:8px}.recent-drama-card span{font-weight:800}.my-dramas-add-button{border:1px solid #735800!important;background:#191407!important;color:#ffc400!important}
@media(max-width:900px){.my-dramas-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.my-dramas-folders{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.my-dramas-grid{grid-template-columns:1fr}.my-drama-card{grid-template-columns:88px 1fr}.my-drama-card>img{width:88px;height:126px}.my-dramas-folders button{font-size:12px;padding:11px 6px}.year-filter-box{align-items:stretch;flex-direction:column}.year-filter-box select{width:100%}}

/* 3.13.111 — более лёгкое и цельное управление «Моими дорамами». */
.my-dramas-folders{gap:12px}.my-dramas-folders button{display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:9px;min-height:58px;padding:9px 12px;border-color:rgba(255,183,0,.28);border-radius:16px;background:linear-gradient(145deg,rgba(31,28,21,.96),rgba(12,12,12,.98));box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 8px 22px rgba(0,0,0,.16);text-align:left;transition:transform .16s ease,border-color .16s ease,background .16s ease}.my-dramas-folders button:hover{transform:translateY(-1px);border-color:rgba(255,183,0,.72)}.my-dramas-folders button i{display:grid;place-items:center;width:32px;height:32px;border-radius:11px;background:rgba(255,183,0,.11);color:#ffc21a;font-style:normal;font-size:18px}.my-dramas-folders button span{min-width:0}.my-dramas-folders button b{display:grid;place-items:center;min-width:27px;height:27px;margin:0;padding:0 7px;border-radius:999px;background:rgba(255,255,255,.065);color:#ffe28d;font-size:12px}.my-dramas-folders button.active{border-color:#ffb400;background:linear-gradient(135deg,#ffc21a,#f59d00);color:#100b00;box-shadow:0 10px 26px rgba(255,174,0,.18)}.my-dramas-folders button.active i{background:rgba(0,0,0,.13);color:#111}.my-dramas-folders button.active b{background:rgba(0,0,0,.14);color:#111}.my-dramas-actions{align-items:center}.my-dramas-actions .outline-button{min-height:42px;padding:9px 15px;border-radius:12px}.my-dramas-actions #myDramasSelectBtn::before{content:'✓';display:inline-grid;place-items:center;width:21px;height:21px;margin-right:7px;border:1px solid #7a600d;border-radius:7px;color:#ffc21a}.my-drama-card{overflow:visible;border-color:rgba(255,183,0,.23);box-shadow:0 12px 30px rgba(0,0,0,.18)}.my-drama-details{flex:1;min-height:39px;border-color:#b88900;background:linear-gradient(135deg,#2a2108,#17130a);color:#fff}.my-drama-details:hover{border-color:#ffc21a;color:#ffc21a}.my-drama-menu{position:relative;background:transparent}.my-drama-menu summary{display:grid;place-items:center;width:41px;height:39px;padding:0;border-color:#9e7900;border-radius:11px;background:#17130a;font-size:22px;letter-spacing:2px}.my-drama-menu[open] summary{border-color:#ffc21a;background:#2b2208;color:#ffc21a}.my-drama-menu[open]{z-index:30}.my-drama-menu[open] button{position:absolute;right:0;z-index:32;width:190px;padding:11px 13px;border:1px solid #43350b;border-bottom:0;background:#17140d;box-shadow:0 14px 34px rgba(0,0,0,.44);font-weight:700}.my-drama-menu[open] button:hover{background:#302506;color:#ffc21a}.my-drama-menu[open] button:nth-of-type(1){top:46px;border-radius:13px 13px 0 0}.my-drama-menu[open] button:nth-of-type(2){top:87px}.my-drama-menu[open] button:nth-of-type(3){top:128px}.my-drama-menu[open] button:nth-of-type(4){top:169px;border-bottom:1px solid #43350b;border-radius:0 0 13px 13px}.my-drama-status{border:1px solid rgba(255,193,20,.2);background:rgba(255,193,20,.09)}
@media(max-width:700px){.my-dramas-folders{grid-template-columns:1fr 1fr;gap:8px}.my-dramas-folders button{grid-template-columns:27px 1fr auto;min-height:52px;padding:8px;font-size:11px}.my-dramas-folders button i{width:27px;height:27px;border-radius:9px;font-size:15px}.my-dramas-folders button b{min-width:23px;height:23px;padding:0 5px}.my-drama-menu[open] button{right:-4px}}
@media(max-width:700px){.catalog-grid.history-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.activity-ranking-list>div{grid-template-columns:25px 34px minmax(0,1fr) auto!important}.activity-ranking-list>div>img,.activity-avatar-placeholder{width:32px;height:32px}.draft-lock-overlay span{font-size:44px}}
@media(max-width:390px){.catalog-grid.history-grid{grid-template-columns:1fr!important}}

/* DUBLIK TV 3.8.9 */
#catalogView #grid.catalog-grid.history-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}#catalogView #grid.catalog-grid.history-grid>.poster-card{grid-column:auto!important;min-width:0!important}.donut-admin-result .error-text{color:#ff796f}
@media(max-width:700px){#catalogView #grid.catalog-grid.history-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:390px){#catalogView #grid.catalog-grid.history-grid{grid-template-columns:1fr!important}}

/* DUBLIK TV 3.9.0 — native mobile library links */
.subscriber-library a[data-library-native-link]{position:relative;z-index:3;display:inline-flex;align-items:center;justify-content:center;min-height:42px;touch-action:manipulation;-webkit-tap-highlight-color:rgba(255,194,28,.25)}.subscriber-library button:disabled{opacity:.6;cursor:not-allowed}
@media(max-width:560px){.subscriber-library a[data-library-native-link]{width:100%;min-height:48px;font-size:14px}}
.library-join-actions{display:flex!important;grid-auto-flow:unset;flex-wrap:wrap;justify-content:flex-end;gap:7px}.subscriber-library .library-join-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;touch-action:manipulation;-webkit-tap-highlight-color:rgba(255,194,28,.25)}.subscriber-library .library-join-actions a[data-library-invite-link]{background:#111;color:#ffc21c;border-style:dashed}@media(max-width:560px){.library-join-actions{display:grid!important;grid-template-columns:1fr;width:100%}.subscriber-library .library-join-actions a{width:100%;min-height:48px;text-align:center}}

/* DUBLIK TV 3.9.1 — hero faces and stable new-month grid */
#homeView .featured-card{background-position:center,center top!important}
#homeView #newMonth.home-card-grid.home-new-month-grid{display:flex!important;gap:14px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:2px 2px 14px!important;scroll-snap-type:x mandatory!important;scrollbar-width:thin}
#homeView #newMonth.home-card-grid.home-new-month-grid{align-items:stretch!important}
#homeView #newMonth.home-new-month-grid>.poster-card{display:flex!important;flex:0 0 calc((100% - 28px)/3)!important;align-self:stretch!important;width:calc((100% - 28px)/3)!important;height:auto!important;min-width:0!important;scroll-snap-align:start!important}
#homeView #newMonth.home-new-month-grid>.poster-card>.poster-card-body{display:flex!important;flex:1 1 auto!important;flex-direction:column!important;height:auto!important}
#homeView #newMonth.home-new-month-grid>.poster-card>.poster-card-body>.poster-card-actions{margin-top:auto!important}
@media(max-width:700px){#homeView #newMonth.home-card-grid.home-new-month-grid{gap:9px!important}#homeView #newMonth.home-new-month-grid>.poster-card{flex-basis:calc((100% - 9px)/2)!important;width:calc((100% - 9px)/2)!important}}

#homeView,.home-section,.home-new-month-section,#homeView #newMonth{min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box!important}
#homeView #newMonth{overscroll-behavior-inline:contain!important}
html,body,#app{max-width:100%!important;overflow-x:hidden!important}
#app>.app-header,#app>main,#app>.bottom-navigation{min-width:0!important;max-width:100%!important}
.shell{min-width:0!important}

/* DUBLIK TV 3.9.2 — clearer releases and lighter mobile posters */
.new-month-meme-button{position:relative;width:auto!important;min-height:42px;padding:8px 15px!important;border:1px solid #ffbd16!important;border-radius:14px!important;background:#ffad08!important;color:#090700!important;font-size:13px!important;font-weight:900!important;box-shadow:0 5px 0 #785300;transform:rotate(-1deg);cursor:pointer}
.new-month-meme-button span{display:inline-block;margin-right:3px;padding:2px 6px;border-radius:999px;background:#080706;color:#ffca32}.new-month-meme-button b{font-size:19px}.new-month-meme-button:hover{transform:rotate(0deg) translateY(-1px);box-shadow:0 6px 0 #785300}
@media(max-width:700px){.poster-card-image{--poster-background:none!important}.new-month-meme-button{font-size:10px!important;padding:7px 8px!important;line-height:1.2}.new-month-meme-button span{padding:1px 4px}.new-month-meme-button b{font-size:15px}}

@media(max-width:700px){#homeView #newMonth.home-new-month-grid>.poster-card .availability-progress-compact{min-height:174px!important}#homeView #newMonth.home-new-month-grid>.poster-card h3{min-height:2.5em!important}}

/* DUBLIK TV 3.8.0 — full vertical 3:4 covers without blurred background */
#catalogView .poster-card-image,
#grid .poster-card-image{
  aspect-ratio:3/4!important;
  background:#050505!important;
}
#catalogView .poster-card-image::before,
#grid .poster-card-image::before{
  content:none!important;
  display:none!important;
  background-image:none!important;
  filter:none!important;
}
#catalogView .poster-card-image>img,
#grid .poster-card-image>img{
  position:relative;
  z-index:1;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  background:#050505!important;
}

@media(max-width:640px){
  #catalogView .poster-card-image,
  #grid .poster-card-image{
    aspect-ratio:3/4!important;
  }
}
.vertical-manual-access-actions{display:grid;gap:10px;padding:14px;border:1px solid #8a6900;border-radius:14px;background:#151105;color:#ddd}.vertical-manual-access-actions[hidden]{display:none}.vertical-manual-access-actions strong{color:#ffc21c}.vertical-manual-access-buttons{display:flex;flex-wrap:wrap;gap:10px}.vertical-manual-access-buttons button{flex:1 1 230px;min-height:44px}@media(max-width:600px){.vertical-manual-access-buttons{display:grid}.vertical-manual-access-buttons button{width:100%}}
.vertical-manual-part-field{display:grid;flex:2 1 340px;gap:7px;color:#ffe39a;font-weight:800}.vertical-manual-part-field>span{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.vertical-manual-part-field input{width:100%;min-width:0}.vertical-manual-part-field button{min-width:120px}@media(max-width:600px){.vertical-manual-part-field>span{grid-template-columns:1fr}.vertical-manual-part-field button{width:100%}}
.library-bulk-recheck-button{background:linear-gradient(135deg,#ffd231,#ff9d00)!important;color:#090600!important}.library-center-toolbar{flex-wrap:wrap}.library-center-toolbar button{min-height:48px}.library-bulk-recheck-button{flex:1 1 360px}@media(max-width:600px){.library-center-toolbar{display:grid}.library-center-toolbar button{width:100%}}
.diagnostic-source-note{margin:2px 0 10px;color:#bdb29e;font-size:12px;line-height:1.4}
.admin-tab-count{display:inline-grid;place-items:center;min-width:22px;height:22px;margin-left:5px;padding:0 6px;border-radius:999px;background:#e53935;color:#fff;font-size:11px;font-weight:1000}.admin-tab-count[hidden]{display:none}.playlist-alerts-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.playlist-alerts-heading h2,.playlist-alerts-heading p{margin:0}.playlist-alerts-heading p{margin-top:5px;color:#aaa}.playlist-alerts-list{display:grid;gap:11px;margin-top:16px}.playlist-alert-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;padding:15px;border:1px solid #70520d;border-radius:14px;background:#100d07}.playlist-alert-card>div:first-child{display:grid;gap:7px}.playlist-alert-card h3{margin:0;color:#ffd044}.playlist-alert-card a{color:#ffc21c;overflow-wrap:anywhere}.playlist-alert-card small{color:#9e9585}.playlist-alert-actions{display:flex;align-items:center;gap:8px}.playlist-alerts-empty{padding:25px;border:1px dashed #6e5200;border-radius:14px;text-align:center;color:#d8cdae}@media(max-width:650px){.playlist-alerts-heading{align-items:stretch;flex-direction:column}.playlist-alert-card{grid-template-columns:1fr}.playlist-alert-actions{display:grid}.playlist-alert-actions button{width:100%}}

.wall-sync-journal{display:grid;gap:12px;padding:14px;border:1px solid #4b3b15;border-radius:13px;background:#0d0b07}
.wall-sync-journal-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.wall-sync-journal-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.wall-sync-journal-actions button{width:auto}
.wall-sync-journal-heading h3{margin:2px 0;color:#ffc928}
.wall-sync-journal-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.wall-sync-journal-stats span{padding:9px;border:1px solid #4b3b15;border-radius:10px;text-align:center}
.wall-sync-journal-stats b{display:block;color:#ffc21c;font-size:20px}
.wall-sync-journal-stats .error{border-color:#b73535}.wall-sync-journal-stats .skipped{border-color:#b97819}.wall-sync-journal-stats .success{border-color:#397b3b}
.wall-sync-journal-list{display:grid;gap:9px}
.wall-sync-journal-item{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.45fr);gap:12px;padding:12px;border:1px solid #4b3b15;border-left:5px solid #3f8a43;border-radius:11px;background:#090806}
.wall-sync-journal-item.error{border-left-color:#e53935}.wall-sync-journal-item.skipped{border-left-color:#f39a20}.wall-sync-journal-item.overdue{border-left-color:#ffd028}.wall-sync-journal-item.waiting{border-left-color:#8d8370}
.wall-sync-journal-item h4{margin:4px 0;color:#fff}.wall-sync-journal-item p{margin:0;color:#bbb1a0;overflow-wrap:anywhere}
.wall-sync-journal-time{display:grid;gap:6px}.wall-sync-journal-time span{color:#aaa08d;font-size:12px}.wall-sync-journal-time button{width:100%}
.wall-sync-journal-empty{padding:20px;border:1px dashed #5d4715;border-radius:11px;text-align:center;color:#aaa08d}
@media(max-width:750px){.wall-sync-journal-heading{align-items:stretch;flex-direction:column}.wall-sync-journal-actions{display:grid;width:100%}.wall-sync-journal-heading button{width:100%}.wall-sync-journal-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.wall-sync-journal-item{grid-template-columns:1fr}}

.featured-admin{display:grid;gap:14px}.featured-admin-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}.featured-admin-toolbar label{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid #5a4514;border-radius:11px;background:#0d0b07}.featured-admin-count{color:#ffc928;font-weight:900}.featured-admin-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.featured-admin-item{display:grid;grid-template-columns:64px minmax(0,1fr) 30px;gap:12px;align-items:center;padding:10px;border:1px solid #4b3b15;border-radius:13px;background:#0c0a06;cursor:pointer}.featured-admin-item.selected{border-color:#f0ad00;background:#171105}.featured-admin-item img{width:64px;height:82px;border-radius:9px;object-fit:cover;background:#050505}.featured-admin-item span,.featured-admin-item b,.featured-admin-item small{display:block;min-width:0}.featured-admin-item b{color:#fff;overflow-wrap:anywhere}.featured-admin-item small{margin-top:5px;color:#a99f8c}.featured-admin-item input{width:23px;height:23px;accent-color:#ffb300}.featured-admin-empty{grid-column:1/-1;padding:30px;border:1px dashed #5a4514;border-radius:13px;text-align:center;color:#aaa08d}.featured-admin-footer{position:sticky;bottom:0;z-index:3;padding:10px;border:1px solid #5a4514;border-radius:12px;background:#0b0905}.featured-admin-footer button{width:100%}@media(max-width:750px){.featured-admin-toolbar{grid-template-columns:1fr}.featured-admin-list{grid-template-columns:1fr}}
.featured-month-setting{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #5c8a22;border-radius:12px;background:#111807}.featured-month-setting input{width:22px;height:22px;accent-color:#ffb300}.featured-month-setting span,.featured-month-setting b,.featured-month-setting small{display:block}.featured-month-setting b{color:#ffe16a}.featured-month-setting small{margin-top:4px;color:#b6ad99}

.poster-storage-admin{display:grid;gap:15px}.poster-storage-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.poster-storage-stats>div{display:grid;gap:6px;padding:15px;border:1px solid #59430d;border-radius:13px;background:#0d0b07;text-align:center}.poster-storage-stats b{color:#ffc21c;font-size:26px}.poster-storage-stats span{color:#b9af9d}.poster-storage-actions{display:flex;gap:12px;flex-wrap:wrap}.poster-storage-warning{padding:12px;border-left:4px solid #ffb300;background:#171105;color:#d8cdb9}.poster-storage-list{display:grid;gap:8px;max-height:360px;overflow:auto}.poster-storage-list article{display:grid;gap:5px;padding:11px;border:1px solid #49370c;border-radius:10px;background:#090806}.poster-storage-list small{color:#9f9685;overflow-wrap:anywhere}.poster-storage-result{display:grid;gap:8px;padding:14px;border:1px solid #5e4813;border-radius:13px;background:#0c0a06}.poster-storage-result h3,.poster-storage-result p{margin:0}.poster-storage-result>div{display:grid;gap:4px;padding:9px;border-radius:8px;background:#111}.poster-storage-result>div.success{border-left:4px solid #3f9b49}.poster-storage-result>div.error{border-left:4px solid #e53935}.poster-storage-result span{color:#b8ae9b}.poster-storage-empty{padding:22px;border:1px dashed #5b4512;border-radius:12px;text-align:center;color:#aaa08d}@media(max-width:750px){.poster-storage-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.poster-storage-actions{display:grid}.poster-storage-actions button{width:100%}}

/* DUBLIK TV 3.13.53 — readable phone titles and a safe in-app close target. */
@media(max-width:700px){
  #homeView .featured-content h1{
    max-width:100%!important;
    font-size:clamp(25px,7vw,36px)!important;
    line-height:1.05!important;
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
    hyphens:auto;
  }
  #homeView .featured-content{min-width:0!important;overflow:hidden!important}
  #detailsDialog{width:calc(100% - 16px)!important;margin-inline:8px!important}
  #detailsDialog>.modal-close,
  #adminDialog>.modal-close{
    position:fixed!important;
    top:max(18px,calc(env(safe-area-inset-top,0px) + 12px))!important;
    right:54px!important;
    width:52px!important;
    height:52px!important;
    min-width:52px!important;
    min-height:52px!important;
    font-size:30px!important;
    line-height:1!important;
    touch-action:manipulation;
    box-shadow:0 6px 22px rgba(0,0,0,.75)!important;
  }
  #catalogView .poster-card-body h3,
  #grid .poster-card-body h3,
  #homeView .home-coming-soon-grid .poster-card h3,
  #homeView .home-new-month-grid .poster-card h3{
    display:-webkit-box!important;
    min-height:3.6em!important;
    max-height:3.6em!important;
    overflow:hidden!important;
    -webkit-box-orient:vertical!important;
    -webkit-line-clamp:3!important;
    white-space:normal!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
    font-size:14px!important;
    line-height:1.2!important;
  }
}
.wall-sync-error-groups{display:grid;gap:10px;margin:0 0 14px;padding:14px;border:1px solid rgba(255,77,91,.65);border-radius:14px;background:rgba(90,8,15,.18)}
.wall-sync-error-groups h3{margin:0;color:#ffcc33;font-size:16px}
.wall-sync-error-group{border:1px solid rgba(255,184,0,.35);border-radius:10px;padding:10px;background:rgba(0,0,0,.28)}
.wall-sync-error-group summary{display:flex;justify-content:space-between;gap:12px;cursor:pointer;color:#fff}
.wall-sync-error-group summary span{color:#ff7d86;white-space:nowrap}
.wall-sync-error-group p{margin:9px 0;color:#d5c9ba}
.wall-sync-error-group>div{display:flex;flex-wrap:wrap;gap:7px}
.wall-sync-error-group button{border:1px solid rgba(255,184,0,.45);border-radius:999px;background:#0b0a08;color:#f4e7cf;padding:7px 10px;cursor:pointer}
