/* Video Hub Core 1.1.64 — TV Kętrzyn static modals + clean contact/privacy
   Zakres: jeden czysty plik dla modali statycznych. Bez SEO — SEO obsługuje WordPress/Yoast. */

.tvm-modal--static-clean,
.tvm-modal--static-clean * {
  box-sizing: border-box;
}

.tvm-modal--static-clean {
  display: grid;
  place-items: center;
  padding: clamp(10px, 2vw, 22px);
  font-family: Inter, Roboto, "Open Sans", "Noto Sans", Arial, sans-serif;
}

.tvm-modal--static-clean[hidden] {
  display: none;
}

.tvm-modal--static-clean .tvm-modal__backdrop {
  background: rgba(1, 10, 20, .70);
  backdrop-filter: blur(14px) saturate(.95);
}

.tvm-modal--static-clean .tvm-modal__dialog--static,
.tvm-static-panel-shell {
  position: relative;
  z-index: 2;
  width: min(94vw, 1180px);
  height: min(90dvh, 900px);
  max-height: min(90dvh, 900px);
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(270px, 390px) minmax(0, 1fr);
  color: #f5fbff;
  background:
    radial-gradient(circle at 70% 0%, rgba(49, 199, 242, .22), transparent 38%),
    radial-gradient(circle at 0% 15%, rgba(0, 97, 126, .30), transparent 42%),
    linear-gradient(145deg, rgba(3, 17, 31, .98), rgba(6, 39, 58, .96));
  border: 1px solid rgba(84, 207, 242, .26);
  border-radius: 26px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, .56), inset 0 1px 0 rgba(255,255,255,.055);
}

.tvm-modal--static-clean .tvm-static-panel-shell:has(.tvm-static-panel--privacy-clean:not([hidden])),
.tvm-modal--static-clean .tvm-static-panel-shell:has(.tvm-static-panel--contact-clean:not([hidden])) {
  grid-template-columns: minmax(0, 1fr);
  width: min(92vw, 900px);
  height: auto;
  min-height: min(620px, 88dvh);
}

.tvm-modal--static-clean .tvm-static-panel-shell:has(.tvm-static-panel--privacy-clean:not([hidden])) .tvm-static-panel-rail,
.tvm-modal--static-clean .tvm-static-panel-shell:has(.tvm-static-panel--contact-clean:not([hidden])) .tvm-static-panel-rail,
.tvm-modal--static-clean .tvm-static-panel-shell:has(.tvm-static-panel--privacy-clean:not([hidden])) .tvm-static-panel__close,
.tvm-modal--static-clean .tvm-static-panel-shell:has(.tvm-static-panel--contact-clean:not([hidden])) .tvm-static-panel__close {
  display: none;
}

.tvm-static-panel-rail {
  min-height: 0;
  padding: 34px 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-right: 1px solid rgba(84, 207, 242, .20);
  background:
    radial-gradient(circle at 0 0, rgba(40, 199, 242, .10), transparent 44%),
    linear-gradient(180deg, rgba(1, 18, 33, .42), rgba(4, 43, 61, .24));
}

.tvm-static-panel-rail__title {
  margin: 0;
  color: #fff;
  font-size: 21px;
  line-height: 1.12;
  font-weight: 920;
  letter-spacing: -.015em;
}

.tvm-static-panel-rail__list {
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tvm-static-panel-rail__button {
  appearance: none;
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 13px;
  border-radius: 16px;
  border: 1px solid rgba(84, 207, 242, .20);
  background: rgba(4, 43, 61, .50);
  color: #f5fbff;
  text-align: left;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.tvm-static-panel-rail__button:hover,
.tvm-static-panel-rail__button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(100, 222, 255, .46);
  background: rgba(7, 66, 88, .62);
  outline: none;
}

.tvm-static-panel-rail__thumb {
  width: 88px;
  aspect-ratio: 16 / 10;
  border-radius: 11px;
  object-fit: cover;
  background: rgba(0,0,0,.35);
}

.tvm-static-panel-rail__copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.tvm-static-panel-rail__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  line-height: 1.22;
  font-weight: 860;
}

.tvm-static-panel-rail__rating {
  color: #ffd36a;
  font-size: 14px;
  font-weight: 850;
}

.tvm-static-panel-rail__empty {
  margin: 0;
  color: rgba(229, 247, 255, .72);
  line-height: 1.5;
}

.tvm-modal--static-clean .tvm-modal__close,
.tvm-modal--static-clean .tvm-static-panel__close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 50;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  padding: 0 0 2px;
  border-radius: 999px;
  background: rgba(5, 48, 70, .80);
  color: #fff;
  border: 1px solid rgba(84, 207, 242, .35);
  box-shadow: 0 14px 32px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08);
  line-height: 1;
  font-size: 23px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.tvm-modal--static-clean .tvm-modal__close:hover,
.tvm-modal--static-clean .tvm-static-panel__close:hover,
.tvm-modal--static-clean .tvm-modal__close:focus-visible,
.tvm-modal--static-clean .tvm-static-panel__close:focus-visible {
  transform: translateY(-1px);
  background: rgba(8, 83, 112, .90);
  border-color: rgba(127, 229, 255, .62);
  outline: none;
}

.tvm-static-panel-stage {
  min-width: 0;
  min-height: 0;
  position: relative;
  display: flex;
  justify-content: center;
}

.tvm-static-panel {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #f5fbff;
  background: transparent;
}

.tvm-static-panel[hidden],
.tvm-submit-choice__panel[hidden] {
  display: none;
}

.tvm-static-panel__header {
  flex: 0 0 auto;
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 34px 78px 18px;
  text-align: center;
}

.tvm-static-panel__header h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.1;
  font-weight: 920;
  letter-spacing: -.025em;
}

.tvm-static-panel__header--with-tabs {
  display: grid;
  gap: 16px;
}

.tvm-static-panel__tabs,
.tvm-submit-choice__tabs.tvm-static-panel__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
}

.tvm-static-panel__tabs button,
.tvm-submit-choice__tabs.tvm-static-panel__tabs button {
  appearance: none;
  min-height: 42px;
  min-width: 142px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(84, 207, 242, .28);
  background: rgba(3, 24, 41, .64);
  color: #f5fbff;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.tvm-static-panel__tabs button.is-active,
.tvm-submit-choice__tabs.tvm-static-panel__tabs button.is-active {
  color: #03111f;
  background: linear-gradient(135deg, #7be6ff, #28c7f2);
  border-color: rgba(158, 239, 255, .90);
}

.tvm-static-panel__body {
  flex: 1 1 auto;
  min-height: 0;
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 14px 34px 34px;
  overflow: auto;
  scrollbar-color: rgba(86, 213, 247, .55) rgba(0,0,0,.24);
}

.tvm-static-panel__body > .tvm-submit-choice__panel,
.tvm-static-panel .tvm-form-panel,
.tvm-static-panel .tvm-event-submit-body,
.tvm-static-panel .tvm-contact-grid,
.tvm-static-panel .tvm-static-prose,
.tvm-static-panel .tvm-tag-results {
  width: min(100%, 820px);
  margin-inline: auto;
}

.tvm-static-panel .tvm-form-panel,
.tvm-static-panel .tvm-event-submit-body {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.tvm-static-panel .tvm-contact-grid,
.tvm-static-panel .tvm-event-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.tvm-contact-info,
.tvm-static-panel .tvm-contact-form,
.tvm-static-panel .tvm-event-submit-form,
.tvm-static-panel .tvm-video-submit-form,
.tvm-static-panel .tvm-event-form-note {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(84, 207, 242, .22);
  background: rgba(3, 31, 50, .62);
  color: #f5fbff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}

.tvm-static-panel .tvm-contact-form,
.tvm-static-panel .tvm-event-submit-form,
.tvm-static-panel .tvm-video-submit-form {
  display: grid;
  gap: 15px;
}

.tvm-static-panel label,
.tvm-static-panel label span,
.tvm-static-panel p,
.tvm-static-panel strong,
.tvm-static-panel div {
  color: #f5fbff;
}

.tvm-static-panel label span,
.tvm-contact-info strong {
  display: inline-block;
  margin-bottom: 7px;
  color: rgba(229, 247, 255, .90);
  font-weight: 820;
}

.tvm-static-panel input,
.tvm-static-panel textarea,
.tvm-static-panel select {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border-radius: 14px;
  border: 1px solid rgba(84, 207, 242, .28);
  color: #fff;
  background: rgba(1, 13, 24, .58);
  outline: none;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.tvm-static-panel textarea {
  min-height: 136px;
  resize: vertical;
}

.tvm-static-panel select,
.tvm-static-panel select option {
  color: #fff;
  background-color: #08263b;
}

.tvm-static-panel input::placeholder,
.tvm-static-panel textarea::placeholder {
  color: rgba(229, 247, 255, .46);
}

.tvm-static-panel input:focus,
.tvm-static-panel textarea:focus,
.tvm-static-panel select:focus {
  border-color: rgba(94, 220, 255, .66);
  box-shadow: 0 0 0 4px rgba(40, 199, 242, .10), inset 0 1px 0 rgba(255,255,255,.055);
}

.tvm-static-panel__button,
.tvm-static-panel .tvm-contact-form button,
.tvm-static-panel .tvm-event-submit-form button,
.tvm-static-panel .tvm-video-submit-form button {
  appearance: none;
  min-height: 50px;
  padding: 13px 26px;
  border-radius: 15px;
  border: 1px solid rgba(119, 224, 255, .32);
  color: #fff;
  background: linear-gradient(135deg, #126fa1, #28c7f2);
  font-size: 14px;
  font-weight: 920;
  letter-spacing: .025em;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(0, 49, 86, .28);
}

.tvm-static-panel .tvm-event-form-note,
.tvm-static-panel .tvm-contact-form__notice {
  margin: 0 0 14px;
  line-height: 1.55;
}

/* Contact + privacy — clean TV Kętrzyn layout */
.tvm-modal--static-clean .tvm-static-panel--privacy-clean,
.tvm-modal--static-clean .tvm-static-panel--contact-clean {
  min-height: min(620px, 88dvh);
  max-height: min(88dvh, 860px);
  padding: clamp(22px, 3vw, 42px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tvm-static-panel--privacy-clean[hidden],
.tvm-static-panel--contact-clean[hidden] {
  display: none;
}

.tvm-static-clean__header {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 0 0 6px;
  text-align: center;
}

.tvm-static-clean__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin-bottom: 10px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(40, 199, 242, .10);
  border: 1px solid rgba(40, 199, 242, .24);
  color: #89e7ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tvm-static-clean__header h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(27px, 3.2vw, 42px);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.tvm-static-clean__header p {
  max-width: 640px;
  margin: 12px auto 0;
  color: rgba(229, 247, 255, .76);
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.5;
  font-weight: 620;
}

.tvm-static-clean__body {
  flex: 1 1 auto;
  min-height: 0;
  width: min(100%, 790px);
  margin: 0 auto;
  padding: clamp(17px, 2vw, 24px);
  overflow: auto;
  border-radius: 22px;
  background: rgba(1, 17, 31, .56);
  border: 1px solid rgba(84, 207, 242, .16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.tvm-static-clean__body--text {
  max-height: min(54vh, 520px);
}

.tvm-static-clean__prose {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(245, 251, 255, .90);
  font-size: 15.5px;
  line-height: 1.74;
  font-weight: 550;
}

.tvm-static-clean__prose h1,
.tvm-static-clean__prose h2,
.tvm-static-clean__prose h3,
.tvm-static-clean__prose h4 {
  margin: 1.25em 0 .55em;
  color: #fff;
  line-height: 1.18;
  font-weight: 900;
}

.tvm-static-clean__prose h1:first-child,
.tvm-static-clean__prose h2:first-child,
.tvm-static-clean__prose h3:first-child,
.tvm-static-clean__prose h4:first-child,
.tvm-static-clean__prose p:first-child {
  margin-top: 0;
}

.tvm-static-clean__prose p,
.tvm-static-clean__prose ul,
.tvm-static-clean__prose ol {
  margin: 0 0 1em;
}

.tvm-static-clean__prose a {
  color: #89e7ff;
  font-weight: 800;
}

.tvm-contact-clean {
  display: grid;
  grid-template-columns: minmax(230px, .78fr) minmax(320px, 1.22fr);
  gap: clamp(16px, 2vw, 24px);
  align-items: start;
}

.tvm-contact-clean__details {
  display: grid;
  gap: 12px;
}

.tvm-contact-clean__details p {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-areas: "icon label" "icon value";
  gap: 4px 12px;
  margin: 0;
  padding: 16px;
  border-radius: 18px;
  background: rgba(5, 48, 70, .62);
  border: 1px solid rgba(84, 207, 242, .17);
}

.tvm-contact-clean__details p > span {
  grid-area: icon;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #89e7ff;
  background: rgba(40, 199, 242, .12);
  border: 1px solid rgba(40, 199, 242, .20);
  font-style: normal;
}

.tvm-contact-clean__details strong {
  grid-area: label;
  margin: 0;
  color: rgba(183, 238, 255, .92);
  font-size: 11px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tvm-contact-clean__details em {
  grid-area: value;
  color: #fff;
  font-size: 15px;
  line-height: 1.36;
  font-style: normal;
  font-weight: 720;
  overflow-wrap: anywhere;
}

.tvm-contact-clean__form {
  display: grid;
  gap: 13px;
  padding: clamp(16px, 2vw, 22px);
  border-radius: 20px;
  background: rgba(2, 24, 43, .66);
  border: 1px solid rgba(84, 207, 242, .17);
}

.tvm-contact-clean__form label {
  display: grid;
  gap: 7px;
  margin: 0;
}

.tvm-contact-clean__form label span {
  color: rgba(245, 251, 255, .88);
  font-size: 13px;
  font-weight: 820;
}

.tvm-contact-clean__form input,
.tvm-contact-clean__form textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 13px;
  color: #fff;
  background: rgba(0, 10, 20, .56);
  border: 1px solid rgba(84, 207, 242, .18);
  outline: 0;
  font: inherit;
  font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.tvm-contact-clean__form textarea {
  min-height: 132px;
  resize: vertical;
}

.tvm-contact-clean__form input::placeholder,
.tvm-contact-clean__form textarea::placeholder {
  color: rgba(229, 247, 255, .42);
}

.tvm-contact-clean__form input:focus,
.tvm-contact-clean__form textarea:focus {
  border-color: rgba(40, 199, 242, .62);
  background: rgba(1, 17, 31, .78);
  box-shadow: 0 0 0 4px rgba(40, 199, 242, .09);
}

.tvm-contact-clean__form button[type="submit"] {
  width: 100%;
  min-height: 49px;
  margin-top: 4px;
  border: 1px solid rgba(137, 231, 255, .36);
  border-radius: 14px;
  color: #03111f;
  background: linear-gradient(135deg, #89e7ff, #28c7f2);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .035em;
  text-transform: uppercase;
  box-shadow: 0 18px 36px rgba(0, 75, 112, .28);
}

.tvm-static-clean__footer {
  flex: 0 0 auto;
  width: min(100%, 790px);
  margin: 0 auto;
  padding-top: 2px;
}

.tvm-static-clean__close {
  width: 100%;
  min-height: 50px;
  border-radius: 15px;
  border: 1px solid rgba(84, 207, 242, .24);
  color: #fff;
  background: rgba(255,255,255,.075);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .025em;
  text-transform: uppercase;
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, border-color .16s ease;
}

.tvm-static-clean__close:hover,
.tvm-static-clean__close:focus-visible {
  transform: translateY(-1px);
  background: rgba(40, 199, 242, .18);
  border-color: rgba(137, 231, 255, .46);
  outline: none;
}

@media (max-width: 1100px) {
  .tvm-modal--static-clean .tvm-modal__dialog--static,
  .tvm-static-panel-shell {
    grid-template-columns: 1fr;
    width: min(980px, calc(100vw - 24px));
  }

  .tvm-static-panel-rail {
    display: none;
  }
}

@media (max-width: 900px) {
  .tvm-modal--static-clean .tvm-modal__dialog--static,
  .tvm-static-panel-shell,
  .tvm-modal--static-clean .tvm-static-panel-shell:has(.tvm-static-panel--privacy-clean:not([hidden])),
  .tvm-modal--static-clean .tvm-static-panel-shell:has(.tvm-static-panel--contact-clean:not([hidden])) {
    width: min(calc(100vw - 16px), 680px);
    height: calc(100dvh - 18px);
    min-height: 0;
    max-height: calc(100dvh - 18px);
    border-radius: 22px;
  }

  .tvm-modal--static-clean .tvm-static-panel--privacy-clean,
  .tvm-modal--static-clean .tvm-static-panel--contact-clean {
    min-height: 0;
    max-height: none;
    height: 100%;
    padding: 18px 14px 14px;
    gap: 14px;
  }

  .tvm-static-clean__header {
    padding-top: 2px;
  }

  .tvm-static-clean__header h3 {
    font-size: clamp(25px, 7vw, 34px);
  }

  .tvm-static-clean__body {
    width: 100%;
    padding: 14px;
    border-radius: 18px;
  }

  .tvm-static-clean__body--text {
    max-height: none;
  }

  .tvm-contact-clean {
    grid-template-columns: 1fr;
  }

  .tvm-contact-clean__details {
    gap: 10px;
  }

  .tvm-contact-clean__form {
    padding: 14px;
  }

  .tvm-static-clean__footer {
    width: 100%;
    position: sticky;
    bottom: 0;
    z-index: 5;
    padding-top: 8px;
    padding-bottom: env(safe-area-inset-bottom);
    background: linear-gradient(180deg, rgba(3, 17, 31, 0), rgba(3, 17, 31, .92) 52%);
  }

  .tvm-static-panel__header {
    width: 100%;
    padding: 26px 64px 16px 18px;
  }

  .tvm-static-panel__body {
    width: 100%;
    padding: 10px 16px 26px;
  }

  .tvm-modal--static-clean .tvm-modal__close,
  .tvm-modal--static-clean .tvm-static-panel__close {
    top: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
  }
}
