/* Video Hub Core 1.1.3 — final polish: czytelność, zakładki, live TV, stopka, modale */
html, body { overflow-x: hidden !important; }
.tvm-video-hub,
.tvm-video-hub * { box-sizing: border-box; }
.tvm-video-hub {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow-x: clip !important;
  background: radial-gradient(circle at 80% 18%, rgba(0,166,214,.20), transparent 32%), linear-gradient(180deg,#053f48 0%,#052d36 40%,#031d28 100%) !important;
  color: #f6fbff !important;
  font-family: Inter, Roboto, "Open Sans", "Noto Sans", Arial, sans-serif !important;
}
.tvm-hero,
.tvm-hero__top {
  max-width: min(var(--tvm-header-max, 1240px), calc(100vw - 48px)) !important;
  width: calc(100% - 48px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transform: none !important;
  left: auto !important;
  right: auto !important;
  color: #fff !important;
}
.tvm-hero__top *, .tvm-hero * { color: #fff; }
.tvm-live-box,
.tvm-live-status,
.tvm-live-box * {
  color: #f5fbff !important;
}
.tvm-live-box,
.tvm-live-status {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 20px !important;
  text-align: left !important;
  background: linear-gradient(135deg, rgba(8,47,58,.96), rgba(7,78,82,.92)) !important;
  border: 1px solid rgba(118,232,255,.22) !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 18px 50px rgba(0,0,0,.25) !important;
}
.tvm-live-box strong, .tvm-live-status strong { color:#fff !important; }
.tvm-live-box p, .tvm-live-status p, .tvm-live-box span, .tvm-live-status span { color:#d4eef5 !important; }
.tvm-live-box__screen, .tvm-live-icon, .tvm-live-status__icon {
  flex: 0 0 auto !important;
  width: 72px !important;
  height: 72px !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg,#10a9be,#053640) !important;
  border: 3px solid rgba(174,244,255,.85) !important;
  position: relative !important;
}
.tvm-live-box__screen:after, .tvm-live-icon:after, .tvm-live-status__icon:after {
  content:""; position:absolute; left:50%; transform:translateX(-50%); bottom:-22px; width:42px; height:18px;
  border-top:5px solid #d5ac42; border-bottom:5px solid #d5ac42;
}
.tvm-live-box__screen:before, .tvm-live-icon:before, .tvm-live-status__icon:before {
  content:""; position:absolute; left:50%; transform:translateX(-50%); bottom:-31px; width:36px; border-top:5px solid #d5ac42;
}
.tvm-live-status__badge, .tvm-live-badge {
  color:#7feaff !important; border:1px solid rgba(127,234,255,.55) !important; background:rgba(0,166,214,.10) !important;
}
/* Zakładki */
.tvm-tabs-bar {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 14px max(22px, calc((100vw - var(--tvm-shell-max, 1240px))/2 + 22px)) !important;
  background: linear-gradient(90deg, rgba(3,24,35,.98), rgba(4,58,67,.98), rgba(3,24,35,.98)) !important;
  border-top: 1px solid rgba(105,224,242,.22) !important;
  border-bottom: 1px solid rgba(105,224,242,.18) !important;
  overflow: hidden !important;
}
.tvm-tabs-inner {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto !important;
  align-items: center !important;
  gap: 16px !important;
  overflow: visible !important;
}
.tvm-tabs-mobile-toggle {
  display: none !important;
}
.tvm-category-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  padding: 0 !important;
  margin: 0 !important;
  scrollbar-width: none !important;
}
.tvm-category-nav::-webkit-scrollbar { display:none !important; }
.tvm-category-nav a {
  min-width: auto !important;
  max-width: none !important;
  white-space: nowrap !important;
  flex: 0 1 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, rgba(21,57,68,.95), rgba(9,35,47,.95)) !important;
  border: 1px solid rgba(112,219,237,.26) !important;
  color: #f6fbff !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
.tvm-category-nav a.is-active,
.tvm-category-nav a:hover,
.tvm-category-nav a:focus-visible {
  color:#fff !important;
  background: linear-gradient(180deg,#0aa6c4,#087b97) !important;
  border-color: rgba(139,244,255,.66) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 10px 28px rgba(0,166,214,.18) !important;
}
.tvm-tabs-add-event {
  justify-self: end !important;
  white-space: nowrap !important;
  flex: 0 0 auto !important;
  height: 42px !important;
  border-radius: 999px !important;
}
/* Karty */
.tvm-card {
  background: linear-gradient(180deg, rgba(5,72,79,.96), rgba(4,54,64,.98)) !important;
  color:#f8fcff !important;
  border:1px solid rgba(117,236,247,.35) !important;
  box-shadow: 0 18px 46px rgba(0,0,0,.22) !important;
  overflow:hidden !important;
}
.tvm-card:hover { transform: translateY(-3px) scale(1.012) !important; }
.tvm-card:before, .tvm-card:after, .tvm-card__thumb:after, .tvm-card__image:after { background:transparent !important; display:none !important; }
.tvm-card__thumb, .tvm-card__image, .tvm-card img { background:#041723 !important; border-bottom:0 !important; }
.tvm-card__body, .tvm-card__content { background: transparent !important; color:#f8fcff !important; }
.tvm-card h2, .tvm-card h3, .tvm-card h4, .tvm-card__title { color:#fff !important; text-shadow:none !important; }
.tvm-card p, .tvm-card__description, .tvm-card__excerpt { color:#d7eef4 !important; }
.tvm-card__tag, .tvm-chip, .tvm-card .tvm-tag { color:#c9f7ff !important; background:rgba(11,151,171,.36) !important; border-color:rgba(117,236,247,.38) !important; }
.tvm-card__rating, .tvm-card__rating * { color:#ffbf43 !important; }
.tvm-card__share-icon { color:#062331 !important; background:linear-gradient(180deg,#ffd36d,#f2a72e) !important; border:0 !important; box-shadow:0 8px 18px rgba(255,191,67,.22) !important; }
/* Modale filmów */
.tvm-modal__dialog, .tvm-modal__content, .tvm-modal__glass { color:#f8fcff !important; }
.tvm-modal__glass h3, .tvm-modal__glass p, .tvm-modal__glass span, .tvm-modal__glass strong, .tvm-modal__glass div { color: inherit; }
.tvm-modal__glass h3, [data-video-title] { color:#fff !important; opacity:1 !important; }
.tvm-modal__glass p, [data-video-description] { color:#d9eef5 !important; opacity:1 !important; }
.tvm-rating__summary, .tvm-rating__summary * { color:#e8f9ff !important; }
.tvm-modal__share {
  width:44px !important; height:44px !important; min-width:44px !important; padding:0 !important; border-radius:14px !important;
  display:inline-flex !important; align-items:center !important; justify-content:center !important;
  color:#062331 !important; font-size:0 !important; background:linear-gradient(180deg,#ffd36d,#f2a72e) !important;
  border:1px solid rgba(255,225,140,.4) !important; box-shadow:0 12px 28px rgba(255,191,67,.22) !important;
}
.tvm-modal__share:before { content:"↗"; font-size:20px; font-weight:900; }
.tvm-rating { display:flex !important; flex-wrap:wrap !important; align-items:center !important; gap:12px !important; }
.tvm-rating__summary { flex:1 1 100% !important; margin:0 0 4px !important; }
.tvm-rating__stars { display:flex !important; gap:10px !important; align-items:center !important; }
.tvm-rating__star { transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease !important; }
.tvm-rating__star:hover { transform:translateY(-2px) scale(1.04) !important; }
.tvm-rating__star.is-selected,
.tvm-rating__star:hover,
.tvm-rating__stars:has(.tvm-rating__star:hover) .tvm-rating__star:hover,
.tvm-rating__stars:has(.tvm-rating__star:hover) .tvm-rating__star:hover ~ .tvm-rating__star { color:#ffbf43 !important; }
.tvm-rating__star.is-selected { background:rgba(255,191,67,.16) !important; border-color:rgba(255,191,67,.75) !important; box-shadow:0 0 18px rgba(255,191,67,.14) inset !important; }
.tvm-tags { display:flex !important; flex-wrap:wrap !important; gap:8px !important; }
.tvm-tags button, .tvm-tags a {
  color:#c9f7ff !important; background:rgba(11,151,171,.30) !important; border:1px solid rgba(117,236,247,.38) !important; border-radius:999px !important; padding:7px 10px !important;
  cursor:pointer !important; text-decoration:none !important;
}
.tvm-tags button:hover, .tvm-tags a:hover { color:#fff !important; background:rgba(10,166,196,.60) !important; }
.tvm-modal__related { flex:1 1 100%; margin-top:14px; padding-top:14px; border-top:1px solid rgba(139,244,255,.14); }
.tvm-modal__related > strong { color:#fff !important; display:block; margin-bottom:10px; }
.tvm-modal__related-list { display:grid; gap:8px; }
.tvm-modal__related-item { display:grid; grid-template-columns:72px 1fr; align-items:center; gap:10px; width:100%; background:rgba(255,255,255,.05); border:1px solid rgba(139,244,255,.16); border-radius:12px; padding:8px; color:#fff; text-align:left; cursor:pointer; }
.tvm-modal__related-item img { width:72px; height:46px; object-fit:cover; border-radius:8px; }
.tvm-modal__related-item span { color:#e7f8ff !important; font-weight:800; font-size:13px; line-height:1.2; }
/* Static modal legacy color block removed in 1.1.41; static-panel.css is the single source. */
/* Stopka */
.tvm-footer { width:100% !important; max-width:none !important; margin:0 !important; background:linear-gradient(90deg,#04131f,#052b35) !important; border-top:1px solid rgba(105,224,242,.18) !important; }
.tvm-footer__inner { max-width:var(--tvm-shell-max,1240px) !important; margin:0 auto !important; color:#eaf9ff !important; }
.tvm-footer__copy, .tvm-footer__copy * { color:#eaf9ff !important; }
.tvm-footer__rights { display:inline !important; }
.tvm-footer a { color:#dffaff !important; }
.tvm-footer__menu button { color:#f2fbff !important; background:rgba(255,255,255,.07) !important; }
/* Mobile */
@media (max-width: 780px) {
  .tvm-hero, .tvm-hero__top { width:calc(100% - 24px) !important; max-width:calc(100vw - 24px) !important; }
  .tvm-tabs-bar { padding: 10px 12px !important; }
  .tvm-tabs-inner { grid-template-columns: 1fr auto !important; gap:10px !important; }
  .tvm-tabs-mobile-toggle { display:inline-flex !important; align-items:center !important; justify-content:center !important; gap:6px !important; height:42px !important; min-width:0 !important; border-radius:999px !important; color:#fff !important; background:linear-gradient(180deg, rgba(21,57,68,.98), rgba(9,35,47,.98)) !important; border:1px solid rgba(112,219,237,.30) !important; font-weight:900 !important; }
  .tvm-category-nav { display:none !important; position:absolute !important; left:12px !important; right:12px !important; top:58px !important; z-index:50 !important; padding:12px !important; border-radius:18px !important; background:rgba(3,24,35,.98) !important; border:1px solid rgba(105,224,242,.28) !important; box-shadow:0 22px 50px rgba(0,0,0,.35) !important; flex-direction:column !important; align-items:stretch !important; }
  .tvm-category-nav.is-open { display:flex !important; }
  .tvm-category-nav a { width:100% !important; justify-content:flex-start !important; }
  .tvm-tabs-add-event { font-size:0 !important; width:42px !important; min-width:42px !important; padding:0 !important; }
  .tvm-tabs-add-event span:last-child { display:none !important; }
  .tvm-tabs-add-event .tvm-filter-add-event__icon { display:inline !important; font-size:18px !important; }
  .tvm-top10__list li:nth-child(n+2) { display:none !important; }
  .tvm-top10 { cursor:pointer; }
  .tvm-top10.is-expanded .tvm-top10__list li { display:list-item !important; }
  .tvm-modal__dialog { grid-template-columns:1fr !important; max-width:calc(100vw - 18px) !important; }
  .tvm-modal__related-list { grid-template-columns:1fr !important; }
}
@media (min-width: 781px) {
  .tvm-category-nav { position:static !important; }
}
.tvm-rating__star.is-hovered { color:#ffbf43 !important; background:rgba(255,191,67,.20) !important; border-color:rgba(255,191,67,.85) !important; box-shadow:0 0 22px rgba(255,191,67,.18) inset !important; }
