:root {
  --tvp-v5-navbar-bg-top: #576b8b;
  --tvp-v5-navbar-bg-bottom: #4f6281;
  --tvp-v5-navbar-bg-top-rgb: 87, 107, 139;
  --tvp-v5-navbar-bg-bottom-rgb: 79, 98, 129;
  --tvp-v5-navbar-main-from: #7e93b0;
  --tvp-v5-navbar-main-to: #7188a7;
  --tvp-v5-navbar-main-from-rgb: 126, 147, 176;
  --tvp-v5-navbar-main-to-rgb: 113, 136, 167;
  --tvp-v5-navbar-sub-from: #9dafc6;
  --tvp-v5-navbar-sub-to: #8fa2bb;
  --tvp-v5-navbar-sub-from-rgb: 157, 175, 198;
  --tvp-v5-navbar-sub-to-rgb: 143, 162, 187;
  --tvp-v5-navbar-sub-bg: #8fa2bb;
  --tvp-v5-navbar-surface: #111827;
  --tvp-v5-navbar-text: #e5e7eb;
  --tvp-v5-navbar-text-soft: rgba(229, 231, 235, 0.78);
  --tvp-v5-navbar-link: #ffffff;
  --tvp-v5-navbar-link-soft: rgba(255, 255, 255, 0.84);
  --tvp-v5-navbar-accent: #75a0b2;
  --tvp-v5-navbar-logo-family: var(--tvp-font-sans);
  --tvp-v5-navbar-logo-text: #f8fbff;
  --tvp-v5-navbar-logo-accent: #b8d6e2;
  --tvp-v5-navbar-logo-shadow: rgba(36, 55, 80, 0.24);
  --tvp-v5-navbar-border: rgba(229, 237, 247, 0.42);
  --tvp-v5-navbar-overlay: rgba(15, 23, 42, 0.56);
  --tvp-v5-navbar-width: min(300px, 86vw);
  --tvp-v5-offcanvas-bg: rgba(255, 255, 255, 0.95);
  --tvp-v5-offcanvas-header-bg: rgba(255, 255, 255, 0.95);
  --tvp-v5-offcanvas-border: rgba(148, 163, 184, 0.3);
  --tvp-v5-offcanvas-text: #374151;
  --tvp-v5-offcanvas-text-soft: #6b7280;
  --tvp-v5-offcanvas-text-muted: #9ca3af;
  --tvp-v5-offcanvas-hover-bg: #f3f4f6;
  --tvp-v5-offcanvas-input-bg: #ffffff;
  --tvp-v5-offcanvas-input-border: #d1d5db;
  --tvp-v5-offcanvas-highlight-bg: rgba(117, 160, 178, 0.1);
  --tvp-v5-offcanvas-highlight-hover-bg: rgba(117, 160, 178, 0.2);
  --tvp-v5-offcanvas-shadow: 0 22px 48px rgba(15, 23, 42, 0.28);
  --tvp-v5-offcanvas-focus: rgba(117, 160, 178, 0.5);
  --tvp-v5-offcanvas-live-active: rgba(117, 160, 178, 0.15);
  --tvp-v5-offcanvas-live-active-text: #355f72;
}

html[data-theme="dark"],
html.dark,
body.dark-mode,
body.dark-theme {
  --tvp-v5-navbar-bg-top: #0f172a;
  --tvp-v5-navbar-bg-bottom: #0b1220;
  --tvp-v5-navbar-bg-top-rgb: 15, 23, 42;
  --tvp-v5-navbar-bg-bottom-rgb: 11, 18, 32;
  --tvp-v5-navbar-main-from: #334155;
  --tvp-v5-navbar-main-to: #1e293b;
  --tvp-v5-navbar-main-from-rgb: 51, 65, 85;
  --tvp-v5-navbar-main-to-rgb: 30, 41, 59;
  --tvp-v5-navbar-sub-from: #1f2b42;
  --tvp-v5-navbar-sub-to: #17233b;
  --tvp-v5-navbar-sub-from-rgb: 31, 43, 66;
  --tvp-v5-navbar-sub-to-rgb: 23, 35, 59;
  --tvp-v5-navbar-sub-bg: #17233b;
  --tvp-v5-navbar-surface: #111827;
  --tvp-v5-navbar-text: #e2e8f0;
  --tvp-v5-navbar-text-soft: rgba(226, 232, 240, 0.82);
  --tvp-v5-navbar-link: #f8fafc;
  --tvp-v5-navbar-link-soft: rgba(248, 250, 252, 0.86);
  --tvp-v5-navbar-accent: #8cb0c2;
  --tvp-v5-navbar-logo-text: #f8fafc;
  --tvp-v5-navbar-logo-accent: #a3c7d5;
  --tvp-v5-navbar-logo-shadow: rgba(2, 6, 23, 0.42);
  --tvp-v5-navbar-border: rgba(148, 163, 184, 0.28);
  --tvp-v5-navbar-overlay: rgba(2, 6, 23, 0.62);
  --tvp-v5-offcanvas-bg: rgba(17, 24, 39, 0.95);
  --tvp-v5-offcanvas-header-bg: rgba(17, 24, 39, 0.95);
  --tvp-v5-offcanvas-border: rgba(75, 85, 99, 0.6);
  --tvp-v5-offcanvas-text: #e5e7eb;
  --tvp-v5-offcanvas-text-soft: #9ca3af;
  --tvp-v5-offcanvas-text-muted: #9ca3af;
  --tvp-v5-offcanvas-hover-bg: #1f2937;
  --tvp-v5-offcanvas-input-bg: #1f2937;
  --tvp-v5-offcanvas-input-border: #374151;
  --tvp-v5-offcanvas-highlight-bg: rgba(117, 160, 178, 0.2);
  --tvp-v5-offcanvas-highlight-hover-bg: rgba(117, 160, 178, 0.3);
  --tvp-v5-offcanvas-shadow: 10px 0 32px rgba(2, 6, 23, 0.55);
  --tvp-v5-offcanvas-focus: rgba(156, 186, 199, 0.55);
  --tvp-v5-offcanvas-live-active: rgba(117, 160, 178, 0.22);
  --tvp-v5-offcanvas-live-active-text: #9ec3d1;
}

.tvp-v5-container {
  width: 100%;
  max-width: var(--tvp-layout-max-width, 96rem);
  margin: 0 auto;
  padding-left: var(--tvp-layout-gutter-x, 1rem);
  padding-right: var(--tvp-layout-gutter-x, 1rem);
  box-sizing: border-box;
}

#navbar-header,
#navbar-main,
#navbar-sub,
#off-canvas-menu,
#overlay,
#navbar-header *,
#navbar-main *,
#navbar-sub *,
#off-canvas-menu *,
.footer,
.footer *,
.footer *::before,
.footer *::after,
#navbar-header *::before,
#navbar-main *::before,
#navbar-sub *::before,
#off-canvas-menu *::before,
#navbar-header *::after,
#navbar-main *::after,
#navbar-sub *::after,
#off-canvas-menu *::after {
  box-sizing: border-box;
}

#navbar-header button,
#navbar-main button,
#navbar-sub button,
#off-canvas-menu button {
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  border: 0 solid transparent;
  margin: 0;
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

#navbar-header,
#navbar-main,
#navbar-sub {
  position: sticky;
  width: 100%;
  color: var(--tvp-v5-navbar-text);
  font-family: var(--tvp-font-sans);
}

#navbar-header {
  top: 0;
  z-index: 1050;
  background: linear-gradient(
    to right,
    rgba(var(--tvp-v5-navbar-bg-top-rgb), 0.95),
    rgba(var(--tvp-v5-navbar-bg-bottom-rgb), 0.95)
  );
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

#navbar-main {
  top: 48px;
  z-index: 1040;
  background: linear-gradient(
    to right,
    rgba(var(--tvp-v5-navbar-main-from-rgb), 0.9),
    rgba(var(--tvp-v5-navbar-main-to-rgb), 0.9)
  );
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: none;
}

#navbar-sub {
  top: 88px;
  z-index: 1035;
  background: linear-gradient(
    to right,
    rgba(var(--tvp-v5-navbar-sub-from-rgb), 0.9),
    rgba(var(--tvp-v5-navbar-sub-to-rgb), 0.9)
  );
  overflow: hidden;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

#navbar-sub.is-hidden {
  display: none;
}

#navbar-main,
#navbar-sub {
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tvp-navbar__container {
  padding-left: 1rem;
  padding-right: 1rem;
}

.tvp-navbar__container--compact {
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}

.tvp-navbar__row {
  min-height: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  position: relative;
}

.tvp-navbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  flex-shrink: 0;
}

.tvp-nav-btn {
  -webkit-appearance: none;
  appearance: none;
  width: 2.05rem;
  height: 2.05rem;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid var(--tvp-v5-navbar-border);
  background: rgba(255, 255, 255, 0.08);
  color: var(--tvp-v5-navbar-link);
  font-size: 1rem;
  line-height: 1;
  overflow: visible;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.tvp-nav-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
}

.tvp-nav-btn:active {
  transform: translateY(0.5px);
}

#menu-button #menu-icon,
#theme-toggle #theme-icon,
#account-button #account-icon,
#back-icon {
  display: inline-block;
  width: 1.08rem;
  height: 1.08rem;
  line-height: 1;
}

#menu-button svg#menu-icon,
#theme-toggle svg#theme-icon,
#account-button svg#account-icon,
svg#back-icon {
  display: block;
}

.tvp-navbar__brand-wrap {
  position: absolute;
  right: 1rem;
  left: auto;
}

.tvp-navbar__brand-cluster,
.tvp-offcanvas__brand-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tvp-navbar__logo {
  color: var(--tvp-v5-navbar-logo-text);
  text-decoration: none;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: baseline;
  font-size: 1.05rem;
  white-space: nowrap;
  /* Enlarge click target without changing visual text size/layout. */
  padding: 0.28rem 0.42rem;
  margin: -0.28rem -0.42rem;
}

.tvp-navbar__logo-text {
  font-family: var(--tvp-v5-navbar-logo-family);
  color: var(--tvp-v5-navbar-logo-text);
  font-weight: 600;
  letter-spacing: -0.035em;
  text-shadow: 0 1px 1px var(--tvp-v5-navbar-logo-shadow);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.tvp-navbar__logo-accent {
  font-family: var(--tvp-v5-navbar-logo-family);
  color: var(--tvp-v5-navbar-logo-accent);
  font-weight: 500;
  letter-spacing: -0.028em;
  text-shadow: 0 1px 1px var(--tvp-v5-navbar-logo-shadow);
}

.tvp-navbar__logo-plus {
  font-family: var(--tvp-v5-navbar-logo-family);
  color: #ffd400;
  font-weight: 800;
  font-size: 1.28em;
  line-height: 0.75;
  margin-left: 0.08rem;
  transform: translateY(-0.03em);
}

.tvp-navbar__env-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.45rem;
  border: 1px solid rgb(255 244 204 / 0.72);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd861 0%, #ffbd2f 100%);
  color: #3f2a00;
  box-shadow: 0 8px 16px rgb(255 189 47 / 0.24);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0.22rem 0.52rem;
}

.tvp-navbar__env-badge--offcanvas {
  border-color: rgb(245 158 11 / 0.24);
  box-shadow: none;
}

.tvp-navbar__search-area {
  margin-left: auto;
}

.tvp-search-form {
  display: none;
  width: min(12rem, 52vw);
  position: relative;
}

#navbar-header .tvp-v5-search-wrap {
  width: min(12rem, 42vw);
  max-width: 100%;
}

.tvp-search-form__input {
  width: 100%;
  height: 2rem;
  border: 1px solid var(--tvp-v5-navbar-border);
  border-radius: 0.48rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--tvp-v5-navbar-link);
  padding: 0 2.15rem 0 0.6rem;
  font: 500 0.875rem/1.2 inherit;
  outline: none;
}

.tvp-search-form__input::placeholder {
  color: var(--tvp-v5-navbar-text-soft);
}

.tvp-search-form__submit {
  width: 1.7rem;
  height: 1.7rem;
  border: 0;
  border-radius: 0.35rem;
  background: transparent;
  color: var(--tvp-v5-navbar-link-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 0.2rem;
  top: 0.15rem;
  cursor: pointer;
}

.tvp-search-form__submit:hover {
  color: #fff;
}

.tvp-search-form__submit .tvp-nav-search-icon {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  line-height: 1;
}

.tvp-search-form__submit svg.tvp-nav-search-icon {
  display: block;
  width: 100%;
  height: 100%;
}

#navbar-main .tvp-navbar__sections {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  min-height: 2.5rem;
}

#navbar-sub .tvp-navbar__subtabs {
  display: flex;
  align-items: center;
  gap: 0.12rem;
  min-height: calc(2.45rem - 3px);
  overflow-x: auto;
  overflow-y: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#navbar-sub .tvp-navbar__subtabs::-webkit-scrollbar {
  display: none;
}

#navbar-main .nav-section,
#navbar-sub .sub-tab {
  border: 0;
  color: var(--tvp-v5-navbar-link-soft);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
}

#navbar-main .nav-section {
  min-height: 2.5rem;
  border-bottom: 2px solid transparent;
  font-size: 10px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 0 0.35rem;
  text-align: center;
}

#navbar-main .nav-section:hover,
#navbar-main .nav-section.is-active,
#navbar-main .nav-section.active {
  color: #fff;
}

#navbar-main .nav-section.is-active,
#navbar-main .nav-section.active {
  border-bottom-color: rgba(255, 255, 255, 0.86);
}

#navbar-sub .sub-tab {
  min-height: 2rem;
  padding: 0 0.56rem;
  border-radius: 999px;
  font-size: 0.79rem;
}

#navbar-sub .sub-tab.tvp-sub-tab--admin {
  color: #dc2626;
  border: 1px dashed rgba(220, 38, 38, 0.95);
  background: rgba(127, 29, 29, 0.08);
}

#navbar-sub .sub-tab:hover,
#navbar-sub .sub-tab.is-active,
#navbar-sub .sub-tab.active {
  color: #fff;
}

#navbar-sub .sub-tab.is-active,
#navbar-sub .sub-tab.active {
  background: rgba(255, 255, 255, 0.24);
  border-radius: 0.58rem;
  min-height: 1.52rem;
}

#navbar-sub .sub-tab.tvp-sub-tab--admin:hover,
#navbar-sub .sub-tab.tvp-sub-tab--admin.is-active,
#navbar-sub .sub-tab.tvp-sub-tab--admin.active {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.98);
  background: rgba(127, 29, 29, 0.18);
}

#navbar-sub .tvp-v5-sub-separator {
  color: rgba(255, 255, 255, 0.66);
  padding-inline: 0.15rem;
  font-size: 0.9rem;
  line-height: 1;
  user-select: none;
}

@media (min-width: 640px) {
  #navbar-main .nav-section {
    font-size: 0.75rem;
  }
}

#overlay {
  position: fixed;
  inset: 0;
  z-index: 1080;
  background: var(--tvp-v5-navbar-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  will-change: opacity;
}

#overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

#off-canvas-menu {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1085;
  width: var(--tvp-v5-navbar-width);
  max-width: 100vw;
  padding-right: 0;
  scrollbar-gutter: auto;
  background: var(--tvp-v5-offcanvas-bg);
  color: var(--tvp-v5-offcanvas-text);
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: var(--tvp-v5-offcanvas-shadow);
  display: flex;
  flex-direction: column;
  font-family: var(--tvp-font-sans);
  will-change: transform;
}

#off-canvas-menu.is-open {
  transform: translateX(0);
}

.tvp-offcanvas__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--tvp-v5-offcanvas-border);
  gap: 0.5rem;
  position: sticky;
  top: 0;
  background: linear-gradient(
    to right,
    rgba(var(--tvp-v5-navbar-bg-top-rgb), 0.95),
    rgba(var(--tvp-v5-navbar-bg-bottom-rgb), 0.95)
  );
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  z-index: 2;
}

.tvp-offcanvas__brand-text {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.05rem;
  font-family: var(--tvp-v5-navbar-logo-family);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  white-space: nowrap;
  color: var(--tvp-v5-navbar-logo-text);
  text-decoration: none;
  text-shadow: 0 1px 1px var(--tvp-v5-navbar-logo-shadow);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.tvp-offcanvas__brand-dot {
  color: var(--tvp-v5-navbar-logo-accent);
  font-weight: 500;
  letter-spacing: -0.028em;
  text-shadow: 0 1px 1px var(--tvp-v5-navbar-logo-shadow);
}

.tvp-offcanvas__section {
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--tvp-v5-offcanvas-border);
}

.tvp-offcanvas__search-form {
  width: 100%;
  position: relative;
}

.tvp-offcanvas__search-input {
  width: 100%;
  height: 2.1rem;
  border-radius: 0.45rem;
  border: 1px solid var(--tvp-v5-offcanvas-input-border);
  background: var(--tvp-v5-offcanvas-input-bg);
  color: var(--tvp-v5-offcanvas-text);
  padding: 0 2rem 0 0.65rem;
  outline: none;
  font-size: 0.9rem;
}

.tvp-offcanvas__search-input::placeholder {
  color: var(--tvp-v5-offcanvas-text-soft);
}

.tvp-offcanvas__search-submit {
  position: absolute;
  right: 0.2rem;
  top: 0.2rem;
  width: 1.7rem;
  height: 1.7rem;
  border: 0;
  border-radius: 0.3rem;
  background: transparent;
  color: var(--tvp-v5-offcanvas-text-soft);
  cursor: pointer;
}

.tvp-offcanvas__search-submit:hover {
  color: var(--tvp-v5-navbar-accent);
}

.tvp-offcanvas__mobile-theme-btn {
  width: 100%;
  border: 1px solid var(--tvp-v5-offcanvas-input-border);
  border-radius: 0.48rem;
  color: var(--tvp-v5-offcanvas-text);
  background: transparent;
  min-height: 2.1rem;
  padding: 0 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}

.tvp-offcanvas__mobile-theme-btn:hover {
  background: var(--tvp-v5-offcanvas-hover-bg);
}

#theme-icon-mobile {
  color: var(--tvp-v5-navbar-accent);
}

#theme-text-mobile {
  font-weight: 600;
}

.tvp-offcanvas__highlight {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--tvp-v5-offcanvas-text);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.3;
  width: 100%;
  border-radius: 0.42rem;
  padding: 0.4rem 0.35rem;
  background: var(--tvp-v5-offcanvas-highlight-bg);
}

.tvp-offcanvas__highlight:hover {
  background: var(--tvp-v5-offcanvas-highlight-hover-bg);
}

.tvp-offcanvas__group-label,
.tvp-offcanvas__live-label-group,
.tvp-offcanvas__group-title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}

.tvp-offcanvas__group-title-row {
  min-height: 2.05rem;
  padding: 0.42rem 0.55rem;
}

.tvp-offcanvas__group-title {
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--tvp-v5-offcanvas-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tvp-offcanvas__group-btn {
  width: 100%;
  border: 0;
  border-radius: 0.42rem;
  color: var(--tvp-v5-offcanvas-text);
  background: transparent;
  min-height: 2.05rem;
  padding: 0.42rem 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 0.6rem;
  cursor: pointer;
}

.tvp-offcanvas__group-btn:hover,
.tvp-offcanvas__group-btn[aria-expanded="true"] {
  background: var(--tvp-v5-offcanvas-hover-bg);
}

.tvp-offcanvas__caret {
  transition: transform 0.16s ease;
}

.tvp-offcanvas__toggle[aria-expanded="true"] .tvp-offcanvas__caret,
.dropdown-toggle[aria-expanded="true"] .tvp-offcanvas__caret {
  transform: rotate(180deg);
}

.tvp-offcanvas__dropdown {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.22s ease, opacity 0.22s ease;
}

.dropdown-content.open {
  max-height: 384px !important;
  opacity: 1 !important;
}

.tvp-offcanvas__dropdown-list {
  margin: 0;
  padding: 0.18rem 0;
  list-style: none;
}

.tvp-offcanvas__dropdown-list--services .tvp-offcanvas__link {
  padding-left: calc(0.55rem + 1em + 0.45rem);
}

.tvp-offcanvas__dropdown-list .tvp-offcanvas__link:not(:has(.tvp-offcanvas__icon)) {
  padding-left: calc(0.55rem + 1em + 0.45rem);
}

.tvp-offcanvas__section--channels {
  padding-top: 0.55rem;
  padding-bottom: 0.6rem;
}

.tvp-offcanvas__channels-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.38rem;
  margin: 0 0 0.45rem;
  padding: 0;
  list-style: none;
}

.tvp-offcanvas__channels-grid-item {
  margin: 0;
  display: flex;
}

.tvp-offcanvas__channel-tile {
  min-height: 2.25rem;
  width: 100%;
  border: 1px solid var(--tvp-v5-offcanvas-input-border);
  border-radius: 0.4rem;
  background: var(--tvp-v5-offcanvas-input-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  overflow: hidden;
  box-sizing: border-box;
}

.tvp-offcanvas__channel-tile:hover {
  background: var(--tvp-v5-offcanvas-hover-bg);
  border-color: var(--tvp-v5-offcanvas-focus);
}

.tvp-offcanvas__channel-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 1.1rem;
  object-fit: contain;
}

.tvp-offcanvas__all-channels-btn {
  width: 100%;
  min-height: 2.05rem;
  border-radius: 0.42rem;
  border: 1px solid var(--tvp-v5-offcanvas-input-border);
  color: var(--tvp-v5-offcanvas-text);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.42rem 0.55rem;
}

.tvp-offcanvas__all-channels-btn:hover {
  background: var(--tvp-v5-offcanvas-hover-bg);
}

.tvp-offcanvas__link {
  border-radius: 0.38rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  color: var(--tvp-v5-offcanvas-text);
  text-decoration: none;
  padding: 0.43rem 0.55rem;
  margin: 0;
  line-height: 1.25;
  font-size: 0.9rem;
}

.tvp-offcanvas__link:hover {
  background: var(--tvp-v5-offcanvas-hover-bg);
  color: var(--tvp-v5-offcanvas-text);
}

.tvp-offcanvas__nested {
  margin-left: 0.55rem;
  padding-left: 0.22rem;
  border-left: 1px dashed var(--tvp-v5-offcanvas-border);
}

.tvp-offcanvas__link--live {
  justify-content: space-between;
}

.tvp-offcanvas__link--cta-history {
  margin-top: 0.2rem;
  font-weight: 600;
  color: var(--tvp-v5-navbar-accent);
  background: var(--tvp-v5-offcanvas-highlight-bg);
}

.tvp-offcanvas__link--cta-history:hover {
  background: var(--tvp-v5-offcanvas-highlight-hover-bg);
}

.tvp-offcanvas__link--live.is-active {
  background: var(--tvp-v5-offcanvas-live-active);
  color: var(--tvp-v5-offcanvas-live-active-text);
}

.tvp-offcanvas__live-pill {
  background: #ef4444;
  color: #fff;
  border-radius: 999px;
  padding: 0.03rem 0.45rem;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tvp-offcanvas__icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tvp-offcanvas__group-label .tvp-offcanvas__icon,
.tvp-offcanvas__link .tvp-offcanvas__icon,
.tvp-offcanvas__group-btn .tvp-offcanvas__caret {
  color: var(--tvp-v5-offcanvas-text-muted);
}

.tvp-offcanvas__highlight .tvp-offcanvas__icon {
  color: var(--tvp-v5-navbar-accent);
}

#off-canvas-menu #close-menu {
  border: 0;
  background: transparent;
  color: #fff;
}

#off-canvas-menu #close-menu:hover {
  background: var(--tvp-v5-offcanvas-hover-bg);
  color: var(--tvp-v5-offcanvas-text);
}

.tvp-v5-hide-mobile {
  display: none !important;
}

.tvp-v5-hide-desktop {
  display: inline-flex !important;
}

#navbar-main a,
#navbar-main a:hover,
#navbar-main a:focus,
#navbar-sub a,
#navbar-sub a:hover,
#navbar-sub a:focus,
#navbar-header a,
#navbar-header a:hover,
#navbar-header a:focus,
#off-canvas-menu a,
#off-canvas-menu a:hover,
#off-canvas-menu a:focus {
  text-decoration: none;
  color: inherit;
}

#off-canvas-menu .tvp-offcanvas__brand-text,
#off-canvas-menu .tvp-offcanvas__brand-text:hover,
#off-canvas-menu .tvp-offcanvas__brand-text:focus {
  color: var(--tvp-v5-navbar-logo-text);
}

#off-canvas-menu .tvp-offcanvas__brand-dot {
  color: var(--tvp-v5-navbar-logo-accent);
}

#navbar-header :focus,
#navbar-main :focus,
#navbar-sub :focus,
#off-canvas-menu :focus,
#navbar-header :focus-visible,
#navbar-main :focus-visible,
#navbar-sub :focus-visible,
#off-canvas-menu :focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.icon {
  width: 20px;
  height: 20px;
}

.icon-small {
  width: 16px;
  height: 16px;
}

.footer {
  margin-top: 1.5rem;
  background: linear-gradient(to right, var(--tvp-v5-navbar-bg-top), var(--tvp-v5-navbar-bg-bottom));
  color: #fff;
  backdrop-filter: blur(12px);
}

.footer > .tvp-v5-container {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-title .icon {
  color: var(--tvp-v5-navbar-accent);
}

.footer-title .footer-title-text {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}

.footer-links,
.footer-apps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li,
.footer-apps li {
  margin-bottom: 0.5rem;
}

.footer-links a,
.footer-apps a,
.footer-legal a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-apps a:hover,
.footer-legal a:hover {
  color: var(--tvp-v5-navbar-accent);
}

.footer-apps a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-apps .icon-small {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-right: 0;
  vertical-align: middle;
}

.footer-section {
  margin-bottom: 2rem;
}

.footer-section:last-child {
  margin-bottom: 0;
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s;
}

.footer-social a:hover {
  background: var(--tvp-v5-navbar-accent);
  color: #fff;
  transform: scale(1.1);
}

.footer-social a .footer-icon {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-social a .footer-icon--fill {
  fill: currentColor;
}

.footer-legal .footer-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.footer-bottom .tvp-v5-container {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.875rem;
}

.footer-legal span {
  color: rgba(255, 255, 255, 0.4);
}

.footer a,
html[data-theme="dark"] .footer a,
html[data-theme="light"] .footer a {
  color: inherit;
}

@media (min-width: 768px) {
  #navbar-main .nav-section {
    font-size: 0.875rem;
  }

  .tvp-navbar__brand-wrap {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .tvp-search-form {
    display: inline-flex;
    width: min(12rem, 36vw);
  }

  .tvp-v5-hide-mobile {
    display: inline-flex !important;
  }

  .tvp-v5-hide-desktop {
    display: none !important;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-bottom-content {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  #navbar-header .tvp-v5-search-wrap {
    width: min(16rem, 32vw);
  }

  .tvp-search-form {
    width: min(16rem, 32vw);
  }

  #navbar-main .nav-section {
    padding-inline: 0.72rem;
  }

  #navbar-sub .sub-tab {
    font-size: 0.8rem;
    padding-inline: 0.72rem;
  }

  .tvp-offcanvas__section--mobile-theme {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 575.98px) {
  .tvp-navbar__container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .tvp-nav-btn {
    width: 1.95rem;
    height: 1.95rem;
  }

  #menu-button #menu-icon,
  #theme-toggle #theme-icon,
  #account-button #account-icon,
  #back-icon {
    width: 1.02rem;
    height: 1.02rem;
  }

  .tvp-navbar__brand-wrap {
    right: 0;
  }

  .tvp-navbar__logo {
    padding-right: 0;
    margin-right: 0;
  }

  .tvp-navbar__logo-text {
    letter-spacing: -0.065em;
  }

  .tvp-navbar__logo-accent {
    letter-spacing: -0.055em;
  }

  .tvp-navbar__brand-cluster {
    gap: 0.35rem;
  }

  .tvp-navbar__env-badge {
    min-height: 1.3rem;
    font-size: 0.58rem;
    padding: 0.18rem 0.42rem;
  }

  #navbar-main .nav-section {
    padding-inline: 0.35rem;
  }
}

@media print {
  #navbar-header,
  #navbar-main,
  #navbar-sub,
  #off-canvas-menu,
  #overlay {
    display: none !important;
  }
}
