.tvla-channel-action {
  display: block;
  width: 100%;
  margin: 18px 0 6px;
}

.tvla-manage-channels {
  display: grid !important;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  width: 100%;
  min-height: 86px;
  padding: 16px 18px !important;
  border: 1px solid rgba(144, 127, 255, .46) !important;
  border-radius: 12px !important;
  background:
    radial-gradient(circle at 88% 14%, rgba(82, 157, 255, .28), transparent 34%),
    linear-gradient(135deg, #5d49e6 0%, #2573f0 100%) !important;
  color: #fff !important;
  text-align: left !important;
  cursor: pointer !important;
  box-shadow: 0 16px 38px rgba(48, 75, 220, .28) !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, filter .2s ease !important;
}

.tvla-manage-channels:hover {
  transform: translateY(-3px);
  border-color: rgba(206, 199, 255, .82) !important;
  filter: saturate(1.08);
  box-shadow: 0 22px 48px rgba(58, 83, 235, .4) !important;
}

.tvla-manage-channels:active {
  transform: translateY(-1px) scale(.995);
}

.tvla-manage-channels:disabled {
  cursor: not-allowed !important;
  opacity: .62 !important;
}

.tvla-manage-channels.is-loading {
  cursor: progress !important;
  opacity: .92 !important;
  transform: none !important;
}

.tvla-channel-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 14px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 10px 24px rgba(15, 23, 42, .18);
}

.tvla-manage-channels.is-loading .tvla-channel-icon {
  font-size: 0;
}

.tvla-manage-channels.is-loading .tvla-channel-icon::before {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tvlaSpin .75s linear infinite;
}

.tvla-channel-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.tvla-channel-copy strong {
  color: #fff;
  font-size: 15px;
  line-height: 1.18;
  letter-spacing: -.01em;
}

.tvla-channel-copy small {
  color: rgba(237, 241, 255, .76);
  font-size: 11px;
  line-height: 1.45;
}

.tvla-manage-channels > i {
  font-style: normal;
  font-size: 20px;
  opacity: .92;
  transition: transform .2s ease;
}

.tvla-manage-channels:hover > i {
  transform: translateX(4px);
}

.tvla-channels-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(3, 7, 18, .82);
  color: #eaf0ff;
  backdrop-filter: blur(17px);
  z-index: 999999;
}

.tvla-channels-modal::backdrop {
  background: rgba(3, 7, 18, .86);
  backdrop-filter: blur(15px);
}

.tvla-channels-shell {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(1220px, calc(100% - 42px));
  height: calc(100% - 42px);
  margin: 21px auto;
  border: 1px solid rgba(135, 118, 255, .28);
  border-radius: 26px;
  background:
    radial-gradient(circle at 80% 0%, rgba(113, 80, 255, .22), transparent 34%),
    radial-gradient(circle at 10% 15%, rgba(45, 114, 239, .14), transparent 28%),
    linear-gradient(145deg, rgba(15, 23, 49, .98), rgba(6, 11, 26, .99));
  box-shadow: 0 38px 100px rgba(0, 0, 0, .55);
  overflow: hidden;
}

.tvla-channels-shell > header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 32px 22px;
  border-bottom: 1px solid rgba(139, 152, 190, .11);
}

.tvla-channels-shell > header span {
  color: #9c8cff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.tvla-channels-shell h2 {
  margin: 6px 0 3px;
  color: #fff;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1;
  letter-spacing: -.045em;
}

.tvla-channels-service {
  margin: 0;
  color: #8792ac;
  font-size: 12px;
}

.tvla-channels-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(142, 153, 190, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  color: #c4cce0;
  font-size: 30px;
  cursor: pointer;
  transition: .18s ease;
}

.tvla-channels-close:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  transform: rotate(4deg);
}

.tvla-channels-toolbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 17px 32px;
  border-bottom: 1px solid rgba(139, 152, 190, .1);
  background: rgba(9, 15, 35, .96);
  backdrop-filter: blur(16px);
}

.tvla-channels-toolbar label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 320px;
  height: 46px;
  padding: 0 15px;
  border: 1px solid rgba(139, 152, 190, .18);
  border-radius: 13px;
  background: rgba(7, 13, 30, .7);
}

.tvla-channels-toolbar label i {
  color: #7f8aa5;
  font-style: normal;
}

.tvla-channels-toolbar input {
  width: 100%;
  height: 44px;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  color: #eef3ff !important;
  box-shadow: none !important;
}

.tvla-channels-toolbar input::placeholder {
  color: #68758f;
}

.tvla-channels-toolbar button {
  height: 46px;
  padding: 0 17px;
  border: 1px solid rgba(139, 152, 190, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  color: #b4bed4;
  font-weight: 800;
  cursor: pointer;
  transition: .18s ease;
}

.tvla-channels-toolbar button:hover {
  border-color: rgba(149, 130, 255, .45);
  background: rgba(111, 92, 243, .14);
  color: #fff;
}

.tvla-channels-toolbar > strong {
  margin-left: auto;
  padding: 10px 13px;
  border-radius: 12px;
  background: rgba(112, 93, 247, .15);
  color: #c7beff;
  font-size: 12px;
  white-space: nowrap;
}

.tvla-channels-toolbar > strong.is-pulsing {
  animation: tvlaCountPulse .32s ease;
}

.tvla-channels-body {
  position: relative;
  min-height: 0;
  padding: 26px 32px;
  overflow: auto;
  scroll-behavior: smooth;
}

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

.tvla-channels-grid[hidden],
.tvla-channels-skeleton[hidden],
.tvla-channels-empty[hidden] {
  display: none !important;
}

.tvla-channels-skeleton {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  min-height: 310px;
  color: #8d99b3;
  font-size: 12px;
  text-align: center;
}

.tvla-channels-skeleton i {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(132, 116, 255, .18);
  border-top-color: #826cff;
  border-radius: 50%;
  animation: tvlaSpin .78s linear infinite;
}

.tvla-bouquet-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 36px;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 17px;
  border: 1px solid rgba(139, 152, 190, .14);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(21, 31, 61, .9), rgba(11, 18, 39, .93));
  color: #e0e6f5;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.tvla-bouquet-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(158, 171, 216, .2);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .025));
  color: #f7f9ff;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 22px rgba(0, 0, 0, .16);
}

.tvla-bouquet-icon.is-country {
  background: linear-gradient(145deg, rgba(57, 111, 255, .2), rgba(119, 93, 255, .18));
  border-color: rgba(128, 148, 255, .34);
}

.tvla-bouquet-icon.is-media {
  background: linear-gradient(145deg, rgba(236, 72, 153, .22), rgba(124, 58, 237, .18));
  border-color: rgba(236, 72, 153, .3);
}

.tvla-bouquet-icon.is-sport {
  background: linear-gradient(145deg, rgba(34, 197, 94, .2), rgba(14, 165, 233, .16));
  border-color: rgba(52, 211, 153, .3);
}

.tvla-bouquet-icon.is-lock {
  background: linear-gradient(145deg, rgba(251, 113, 133, .22), rgba(124, 58, 237, .18));
  border-color: rgba(251, 113, 133, .34);
}

.tvla-bouquet-icon.is-badge {
  background: linear-gradient(145deg, rgba(132, 116, 255, .2), rgba(55, 75, 130, .18));
}

.tvla-bouquet-card:hover {
  transform: translateY(-2px);
  border-color: rgba(144, 126, 255, .46);
  box-shadow: 0 15px 32px rgba(0, 0, 0, .2);
}

.tvla-bouquet-card.is-selected {
  border-color: rgba(134, 111, 255, .68);
  background: linear-gradient(145deg, rgba(78, 59, 177, .48), rgba(21, 30, 67, .96));
  box-shadow: inset 0 0 0 1px rgba(173, 161, 255, .12), 0 14px 34px rgba(76, 57, 186, .22);
  animation: tvlaCardGlow .28s ease;
}

.tvla-bouquet-check {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(147, 158, 194, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .04);
  color: #fff;
  font-size: 17px;
  font-weight: 950;
  transition: .2s ease;
}

.tvla-bouquet-card.is-selected .tvla-bouquet-check {
  border-color: transparent;
  background: linear-gradient(135deg, #7c68ff, #3575f0);
  animation: tvlaCheckPop .3s cubic-bezier(.2, .8, .2, 1.35);
}

.tvla-bouquet-card div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.tvla-bouquet-card strong {
  overflow: hidden;
  color: #f0f4ff;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tvla-bouquet-card small {
  overflow: hidden;
  color: #7f8ba6;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tvla-bouquet-card > b {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: #78849d;
  font-size: 9px;
  font-weight: 900;
}

.tvla-bouquet-card.is-selected > b {
  background: rgba(52, 211, 153, .12);
  color: #58e0b2;
}

.tvla-channels-empty {
  padding: 78px 20px;
  color: #8793ad;
  text-align: center;
}

.tvla-channels-shell > footer {
  position: sticky;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 32px;
  border-top: 1px solid rgba(139, 152, 190, .12);
  background: rgba(5, 10, 24, .96);
  backdrop-filter: blur(16px);
}

.tvla-channels-shell > footer p {
  margin: 0;
  color: #6f7b94;
  font-size: 10px;
  text-align: center;
}

.tvla-channels-cancel {
  min-height: 48px;
  padding: 0 22px !important;
  border: 1px solid rgba(151, 162, 194, .2) !important;
  border-radius: 13px !important;
  background: transparent !important;
  color: #aeb8ce !important;
  font-weight: 850 !important;
  cursor: pointer;
  transition: .18s ease;
}

.tvla-channels-cancel:hover {
  border-color: rgba(166, 150, 255, .48) !important;
  background: rgba(122, 101, 245, .09) !important;
  color: #fff !important;
}

.tvla-channels-save {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 250px;
  min-height: 52px;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg, #765cff, #2874f0) !important;
  color: #fff !important;
  font-weight: 900 !important;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(76, 72, 226, .32) !important;
  transition: .2s ease !important;
}

.tvla-channels-save:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 19px 42px rgba(76, 72, 226, .43) !important;
}

.tvla-channels-save:disabled {
  cursor: not-allowed;
  opacity: .55;
  box-shadow: none !important;
}

.tvla-channels-save.is-loading > span {
  display: none;
}

.tvla-channels-save.is-loading::before {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: tvlaSpin .72s linear infinite;
}

.tvla-channels-toast,
.tvla-page-toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 9999999;
  max-width: 390px;
  padding: 14px 18px;
  border: 1px solid rgba(52, 211, 153, .26);
  border-radius: 14px;
  background: linear-gradient(145deg, #102d29, #0d211f);
  color: #88ffd2;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
  white-space: pre-line;
  box-shadow: 0 24px 62px rgba(0, 0, 0, .4);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: .22s ease;
}

.tvla-channels-toast.show,
.tvla-page-toast.show {
  opacity: 1;
  transform: none;
}

.tvla-channels-toast.error,
.tvla-page-toast.error {
  border-color: rgba(251, 113, 133, .36);
  background: linear-gradient(145deg, #381525, #24101b);
  color: #ffb1bf;
}

body.wp-admin .tvla-service-actions .tvla-manage-channels {
  display: inline-grid !important;
  grid-template-columns: 30px auto;
  width: auto;
  min-height: 44px;
  padding: 8px 14px !important;
  border-radius: 11px !important;
}

body.wp-admin .tvla-service-actions .tvla-manage-channels .tvla-channel-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 13px;
}

body.wp-admin .tvla-service-actions .tvla-manage-channels .tvla-channel-copy small,
body.wp-admin .tvla-service-actions .tvla-manage-channels > i {
  display: none;
}

body.wp-admin .tvla-service-actions .tvla-manage-channels .tvla-channel-copy strong {
  font-size: 12px;
}

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

@keyframes tvlaCheckPop {
  0% { transform: scale(.7) rotate(-12deg); }
  100% { transform: scale(1.06) rotate(0); }
}

@keyframes tvlaCardGlow {
  0% { box-shadow: 0 0 0 rgba(112, 91, 255, 0); }
  100% { box-shadow: inset 0 0 0 1px rgba(173, 161, 255, .12), 0 14px 34px rgba(76, 57, 186, .22); }
}

@keyframes tvlaCountPulse {
  50% { transform: scale(1.06); background: rgba(116, 95, 255, .25); }
}

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

  .tvla-channels-toolbar {
    flex-wrap: wrap;
  }

  .tvla-channels-toolbar label {
    flex: 1 1 100%;
    min-width: 0;
  }

  .tvla-channels-toolbar > strong {
    margin-left: 0;
  }

  .tvla-channels-shell > footer {
    grid-template-columns: auto 1fr;
  }

  .tvla-channels-shell > footer p {
    display: none;
  }

  .tvla-channels-save {
    justify-self: end;
  }
}

@media (max-width: 560px) {
  .tvla-manage-channels {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    min-height: 76px;
    padding: 13px !important;
  }

  .tvla-channel-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 18px;
  }

  .tvla-channel-copy strong {
    font-size: 13px;
  }

  .tvla-channel-copy small {
    font-size: 10px;
  }

  .tvla-channels-shell {
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 0;
  }

  .tvla-channels-shell > header,
  .tvla-channels-toolbar,
  .tvla-channels-body,
  .tvla-channels-shell > footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .tvla-channels-grid {
    grid-template-columns: 1fr;
  }

  .tvla-channels-toolbar button {
    flex: 1 1 auto;
  }

  .tvla-channels-shell > footer {
    grid-template-columns: 1fr 1.7fr;
    gap: 10px;
  }

  .tvla-channels-cancel,
  .tvla-channels-save {
    width: 100%;
    min-width: 0;
    padding-left: 10px !important;
    padding-right: 10px !important;
    font-size: 11px !important;
  }
}
