/* TVM 1.1.50 — EVENT MODAL: isolated single source, balanced spacing/padding. */
.tvm-event-showcase[hidden] {
  display: none;
}

.tvm-event-showcase,
.tvm-event-showcase * {
  box-sizing: border-box;
}

.tvm-event-showcase {
  position: fixed;
  inset: 0;
  z-index: 100080;
  display: grid;
  place-items: center;
  padding: 22px;
  font-family: Inter, Roboto, "Open Sans", "Noto Sans", Arial, sans-serif;
  color: #f4fcfd;
}

.tvm-event-showcase .tvm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 10, 16, .84);
  backdrop-filter: blur(13px);
}

.tvm-event-showcase__dialog {
  position: relative;
  z-index: 1;
  width: min(1480px, calc(100vw - 44px));
  max-height: calc(100vh - 44px);
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 68% 16%, rgba(15, 137, 149, .28), transparent 42%),
    radial-gradient(circle at 30% 76%, rgba(2, 129, 142, .17), transparent 48%),
    linear-gradient(135deg, rgba(1, 28, 38, .98), rgba(2, 65, 74, .96));
  border: 1px solid rgba(39, 193, 207, .54);
  box-shadow: 0 36px 104px rgba(0, 0, 0, .64);
}

.tvm-event-showcase__close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 8;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(76, 220, 232, .58);
  background: radial-gradient(circle at 35% 24%, rgba(23, 184, 202, .98), rgba(4, 84, 98, .96));
  color: #fff;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .34), inset 0 0 0 1px rgba(255,255,255,.08);
}

.tvm-event-showcase__close:hover,
.tvm-event-showcase__close:focus-visible {
  background: radial-gradient(circle at 35% 24%, rgba(34, 205, 222, 1), rgba(5, 101, 116, .98));
  outline: none;
}

.tvm-event-showcase__rail {
  min-width: 0;
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 52px 24px 34px;
  border-right: 1px solid rgba(42, 192, 206, .34);
  background: linear-gradient(180deg, rgba(1, 34, 45, .78), rgba(1, 22, 32, .90));
}

.tvm-event-showcase__rail h3,
.tvm-static-panel-rail__title {
  margin: 0 0 26px;
  color: #fff;
  font-size: 21px;
  line-height: 1.1;
  font-weight: 950;
}

.tvm-curated-rail,
.tvm-event-showcase__rail-list {
  list-style: none;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.tvm-curated-rail__item {
  margin: 0;
}

.tvm-curated-rail__button {
  width: 100%;
  min-height: 104px;
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(42, 190, 205, .36);
  background: linear-gradient(180deg, rgba(7, 72, 84, .52), rgba(3, 43, 54, .52));
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.018);
}

.tvm-curated-rail__button:hover,
.tvm-curated-rail__button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 181, 73, .66);
  background: linear-gradient(180deg, rgba(9, 85, 97, .68), rgba(4, 52, 63, .64));
  outline: none;
}

.tvm-curated-rail__thumb {
  width: 100px;
  height: 68px;
  object-fit: cover;
  border-radius: 10px;
  background: #001018;
}

.tvm-curated-rail__copy {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.tvm-curated-rail__label {
  display: none;
}

.tvm-curated-rail__name {
  color: #fff;
  font-size: 14px;
  line-height: 1.30;
  font-weight: 900;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tvm-curated-rail__rating {
  color: #ffc14d;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
}

.tvm-curated-rail__empty {
  color: rgba(237, 249, 252, .78);
  border: 1px solid rgba(47, 191, 205, .24);
  background: rgba(7, 67, 78, .38);
  border-radius: 16px;
  padding: 18px;
}

.tvm-event-showcase__rail-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  margin-top: 28px;
  border-radius: 14px;
  border: 1px solid rgba(47, 191, 205, .34);
  background: rgba(2, 41, 52, .64);
  color: #f4fcfd;
  font-weight: 850;
  text-decoration: none;
}

.tvm-event-showcase__rail-more:hover,
.tvm-event-showcase__rail-more:focus-visible {
  border-color: rgba(255, 181, 73, .58);
  color: #fff;
  outline: none;
}

.tvm-event-showcase__stage {
  min-width: 0;
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 54px 64px 42px 64px;
}

.tvm-event-showcase__header {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  gap: 26px;
  align-items: center;
  margin: 0 82px 34px 0;
}

.tvm-event-showcase__header h3 {
  margin: 0;
  color: #fff;
  text-align: center;
  font-size: clamp(30px, 2.8vw, 42px);
  line-height: 1.05;
  letter-spacing: -.035em;
  font-weight: 950;
  max-width: 760px;
}

.tvm-event-showcase__rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(51, 200, 214, .48));
  position: relative;
}

.tvm-event-showcase__rule:last-child {
  background: linear-gradient(90deg, rgba(51, 200, 214, .48), transparent);
}

.tvm-event-showcase__rule::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -8px;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #00bfd6;
  box-shadow: 0 0 18px rgba(0, 189, 212, .72);
}

.tvm-event-showcase__rule:last-child::after {
  right: auto;
  left: -8px;
}

.tvm-event-showcase__layout {
  display: contents;
}

.tvm-event-showcase__top {
  display: grid;
  grid-template-columns: minmax(390px, .95fr) minmax(390px, 1.05fr);
  gap: 38px;
  align-items: stretch;
}

.tvm-event-showcase__poster-wrap {
  width: 100%;
  max-width: 620px;
  margin: 0;
  justify-self: center;
  align-self: start;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(47, 191, 205, .38);
  background: #001018;
  box-shadow: 0 20px 54px rgba(0, 0, 0, .34);
}

.tvm-event-showcase__poster {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 560px);
  object-fit: contain;
  background: #020c12;
}

.tvm-event-showcase__facts {
  min-width: 0;
  align-self: stretch;
  display: grid;
  align-content: start;
  gap: 24px;
  padding: 8px 0 30px;
  border-bottom: 1px solid rgba(47, 191, 205, .25);
}

.tvm-event-showcase__fact {
  position: relative;
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 52px;
  color: rgba(239, 251, 253, .90);
  font-size: 16px;
  line-height: 1.38;
}

.tvm-event-showcase__fact::before {
  position: absolute;
  left: 0;
  top: 1px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #00c6d7;
  background: rgba(0, 183, 208, .11);
  border: 1px solid rgba(0, 183, 208, .20);
  font-size: 18px;
  line-height: 1;
}

.tvm-event-showcase__fact--when::before { content: '▣'; }
.tvm-event-showcase__fact--where::before { content: '⌖'; }
.tvm-event-showcase__fact--organizer::before { content: '●'; }

.tvm-event-showcase__fact strong {
  color: #fff;
  font-size: 17px;
  line-height: 1.1;
  font-weight: 950;
}

.tvm-event-showcase__content {
  width: min(900px, 100%);
  margin: 36px auto 0;
  display: grid;
  gap: 30px;
}

.tvm-event-showcase__description {
  margin: 0;
  max-width: 860px;
  justify-self: center;
  text-align: left;
  color: rgba(244, 252, 253, .95);
  font-size: 16px;
  line-height: 1.64;
  font-weight: 560;
  overflow-wrap: anywhere;
}

.tvm-event-showcase__rating-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  width: min(760px, 100%);
  justify-self: center;
  margin-top: 4px;
}

.tvm-event-showcase .tvm-rating__stars {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.tvm-event-showcase .tvm-rating__star {
  width: 56px;
  height: 54px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(255, 184, 70, .46);
  background: rgba(255, 184, 70, .08);
  color: rgba(255, 205, 98, .48);
  font-size: 0;
  cursor: pointer;
}

.tvm-event-showcase .tvm-rating__star::before {
  content: '★';
  font-size: 30px;
  line-height: 1;
}

.tvm-event-showcase .tvm-rating__star:hover,
.tvm-event-showcase .tvm-rating__star.is-selected {
  background: linear-gradient(135deg, #ffc24a, #ff9f34);
  color: #05141d;
  box-shadow: 0 12px 22px rgba(255, 159, 52, .18);
}

.tvm-event-showcase__rating-summary {
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.05;
  font-weight: 950;
  white-space: nowrap;
}

.tvm-event-showcase__rating-note {
  display: block;
  margin-top: 6px;
  color: rgba(237, 249, 252, .82);
  font-size: 14px;
  font-weight: 700;
}

.tvm-event-showcase__visit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: min(760px, 100%);
  min-height: 60px;
  justify-self: center;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(135deg, #ffbc50, #ff9e32);
  color: #061722;
  font-weight: 950;
  font-size: 18px;
  cursor: pointer;
}

.tvm-event-showcase__visit:hover,
.tvm-event-showcase__visit:focus-visible {
  filter: brightness(1.04);
  outline: none;
}

.tvm-card--premium {
  position: relative;
  grid-column: span 1;
  box-shadow: 0 0 0 1px rgba(255, 183, 72, .26), 0 24px 70px rgba(255, 183, 72, .10);
}

.tvm-premium-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffc24a, #ff9e34);
  color: #061722;
  font-size: 12px;
  line-height: 1;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}

@media (max-width: 1240px) {
  .tvm-event-showcase {
    padding: 12px;
  }

  .tvm-event-showcase__dialog {
    width: min(1120px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .tvm-event-showcase__rail {
    max-height: calc(100vh - 24px);
    padding: 30px 14px 22px;
  }

  .tvm-event-showcase__rail h3,
  .tvm-static-panel-rail__title {
    font-size: 17px;
    margin-bottom: 16px;
  }

  .tvm-curated-rail,
  .tvm-event-showcase__rail-list {
    gap: 12px;
  }

  .tvm-curated-rail__button {
    min-height: 76px;
    grid-template-columns: 76px minmax(0,1fr);
    gap: 10px;
    padding: 8px;
  }

  .tvm-curated-rail__thumb {
    width: 76px;
    height: 52px;
  }

  .tvm-curated-rail__name,
  .tvm-curated-rail__rating {
    font-size: 12px;
  }

  .tvm-event-showcase__stage {
    max-height: calc(100vh - 24px);
    padding: 36px 48px 32px 30px;
  }

  .tvm-event-showcase__header {
    margin: 0 62px 26px 0;
    gap: 16px;
  }

  .tvm-event-showcase__header h3 {
    font-size: clamp(25px, 3.2vw, 34px);
  }

  .tvm-event-showcase__top {
    grid-template-columns: minmax(280px, .92fr) minmax(300px, 1.08fr);
    gap: 28px;
  }

  .tvm-event-showcase__poster {
    max-height: min(46vh, 440px);
  }

  .tvm-event-showcase__facts {
    gap: 18px;
    padding-bottom: 22px;
  }

  .tvm-event-showcase__fact {
    padding-left: 42px;
    font-size: 14px;
  }

  .tvm-event-showcase__fact::before {
    width: 28px;
    height: 28px;
    font-size: 16px;
  }

  .tvm-event-showcase__content {
    width: min(760px, 100%);
    margin-top: 28px;
    gap: 24px;
  }

  .tvm-event-showcase__description {
    font-size: 15px;
    line-height: 1.58;
  }

  .tvm-event-showcase .tvm-rating__star {
    width: 48px;
    height: 46px;
  }

  .tvm-event-showcase .tvm-rating__star::before {
    font-size: 25px;
  }

  .tvm-event-showcase__visit {
    min-height: 54px;
    font-size: 16px;
  }
}

@media (max-width: 1040px) {
  .tvm-event-showcase__dialog {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .tvm-event-showcase__rail {
    display: none;
  }

  .tvm-event-showcase__stage {
    max-height: none;
    overflow: visible;
    padding: 34px 24px 28px;
  }

  .tvm-event-showcase__header {
    margin: 0 62px 26px 0;
  }

  .tvm-event-showcase__top {
    grid-template-columns: minmax(0, 1fr) minmax(280px, .82fr);
  }

  .tvm-event-showcase__content {
    width: min(820px, 100%);
  }
}

@media (max-width: 760px) {
  .tvm-event-showcase {
    padding: 8px;
  }

  .tvm-event-showcase__dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 20px;
  }

  .tvm-event-showcase__close {
    top: 12px;
    right: 12px;
    width: 46px;
    height: 46px;
    font-size: 25px;
  }

  .tvm-event-showcase__stage {
    padding: 26px 14px 24px;
  }

  .tvm-event-showcase__header {
    margin: 0 54px 22px 0;
    grid-template-columns: 1fr;
  }

  .tvm-event-showcase__rule {
    display: none;
  }

  .tvm-event-showcase__header h3 {
    text-align: left;
    font-size: clamp(25px, 7vw, 34px);
  }

  .tvm-event-showcase__top {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .tvm-event-showcase__poster {
    max-height: 62vh;
  }

  .tvm-event-showcase__facts {
    gap: 16px;
    padding-bottom: 22px;
  }

  .tvm-event-showcase__content {
    margin-top: 22px;
    gap: 22px;
  }

  .tvm-event-showcase__description {
    font-size: 16px;
    line-height: 1.56;
  }

  .tvm-event-showcase__rating-row {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 14px;
  }

  .tvm-event-showcase .tvm-rating__stars {
    gap: 8px;
    flex-wrap: wrap;
  }

  .tvm-event-showcase .tvm-rating__star {
    width: 46px;
    height: 44px;
  }

  .tvm-event-showcase .tvm-rating__star::before {
    font-size: 24px;
  }
}


/* TVM 1.1.54 — Event modal cleanup: smoother frames, safer spacing, less clipping. */
.tvm-event-showcase__dialog{
  border-radius:24px;
}

.tvm-event-showcase__close{
  top:18px;
  right:18px;
  width:50px;
  height:50px;
  font-size:28px;
}

.tvm-event-showcase__stage{
  padding:48px 52px 40px 52px;
}

.tvm-event-showcase__header{
  margin:0 74px 28px 0;
}

.tvm-event-showcase__top{
  gap:34px;
  align-items:start;
}

.tvm-event-showcase__poster-wrap{
  max-width:640px;
  padding:10px;
  border-radius:20px;
  border:1px solid rgba(47,191,205,.28);
  background:linear-gradient(180deg,rgba(3,43,54,.88),rgba(2,27,38,.92));
  box-shadow:0 22px 58px rgba(0,0,0,.30);
}

.tvm-event-showcase__poster{
  border-radius:14px;
}

.tvm-event-showcase__facts{
  gap:18px;
  padding:18px 20px 22px;
  border:1px solid rgba(47,191,205,.20);
  border-radius:20px;
  background:linear-gradient(180deg,rgba(4,58,68,.34),rgba(2,34,44,.24));
}

.tvm-event-showcase__content{
  width:min(920px,100%);
  margin:28px auto 0;
  gap:24px;
}

.tvm-event-showcase__description{
  max-width:none;
  width:100%;
  padding:22px 24px;
  border-radius:20px;
  border:1px solid rgba(47,191,205,.20);
  background:linear-gradient(180deg,rgba(4,58,68,.26),rgba(2,34,44,.16));
}

.tvm-event-showcase__rating-row{
  width:min(820px,100%);
  gap:22px;
  padding:4px 2px 0;
}

.tvm-event-showcase__visit{
  width:min(820px,100%);
  min-height:58px;
  border-radius:16px;
}

@media (max-width:1240px){
  .tvm-event-showcase__stage{padding:38px 40px 30px 28px;}
  .tvm-event-showcase__header{margin:0 58px 24px 0;}
  .tvm-event-showcase__poster-wrap{padding:8px;}
  .tvm-event-showcase__facts{padding:16px 16px 18px;}
  .tvm-event-showcase__description{padding:20px 20px;}
}

@media (max-width:760px){
  .tvm-event-showcase__close{top:10px;right:10px;width:44px;height:44px;font-size:24px;}
  .tvm-event-showcase__stage{padding:24px 14px 22px;}
  .tvm-event-showcase__header{margin:0 48px 20px 0;}
  .tvm-event-showcase__poster-wrap{padding:6px;border-radius:16px;}
  .tvm-event-showcase__facts{padding:14px 14px 18px;border-radius:16px;}
  .tvm-event-showcase__description{padding:18px 16px;border-radius:16px;}
  .tvm-event-showcase__rating-row{width:100%;}
  .tvm-event-showcase__visit{width:100%;}
}


/* TVM 1.1.55 — event modal mobile top spacing. */
@media (max-width: 780px) {
  .tvm-event-showcase__dialog {
    width: 100vw;
    max-height: 100dvh;
    border-radius: 0;
  }
  .tvm-event-showcase__stage {
    padding: 70px 14px 24px;
  }
  .tvm-event-showcase__header {
    margin: 0 56px 18px 0;
  }
  .tvm-event-showcase__header h3 {
    text-align: left;
    font-size: clamp(24px, 7vw, 32px);
    line-height: 1.08;
  }
}
