.tvp-loto-page {
  --tvp-loto-surface: #ffffff;
  --tvp-loto-surface-muted: #f8fafd;
  --tvp-loto-border: #d7e2ee;
  --tvp-loto-border-strong: #b6c8de;
  --tvp-loto-shadow: 0 1px 3px rgb(15 23 42 / 0.09);
  --tvp-loto-shadow-hover: 0 10px 24px rgb(15 23 42 / 0.16);
  --tvp-loto-text: #1e293b;
  --tvp-loto-text-muted: #526277;
  --tvp-loto-title: #0f172a;
  --tvp-loto-card-bg: #ffffff;
  --tvp-loto-media-bg: #dbe6f2;
  --tvp-loto-chip-bg: rgb(15 23 42 / 0.86);
  --tvp-loto-chip-text: #f8fafc;
  --tvp-loto-logo-bg: rgb(255 255 255 / 0.96);
  --tvp-loto-logo-border: #d7e2ee;
  --tvp-loto-focus: #0f6fdb;
  --tvp-loto-ball-bg: #079acf;
  --tvp-loto-extra-bg: #e23643;
  --tvp-loto-accent: #0f6fdb;
  --tvp-direct-surface: #ffffff;
  --tvp-direct-surface-muted: #f8fafc;
  --tvp-direct-border: #dbe3ef;
  --tvp-direct-border-strong: #c6d3e2;
  --tvp-direct-text: #1f2937;
  --tvp-direct-live-bg: #dc3545;
  --tvp-direct-live-text: #ffffff;
  --tvp-direct-focus: #0f6fdb;

  margin-top: 0.85rem;
  color: var(--tvp-loto-text);
}

.tvp-loto-page .tvp-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: -0.12em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tvp-loto-page .tvp-icon[data-icon-fill="1"] {
  fill: currentColor;
  stroke: currentColor;
}

.tvp-loto-inline-slot {
  width: min(100%, 300px);
  margin: 0.82rem auto 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tvp-loto-inline-slot > * {
  max-width: 100%;
}

.tvp-loto-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.82rem;
  align-items: start;
}

.tvp-loto-layout-main,
.tvp-loto-layout-side {
  min-width: 0;
}

.tvp-loto-layout-side-sticky {
  position: static;
}

.tvp-loto-layout-side .tvp-loto-inline-slot {
  margin-top: 0;
}

.tvp-loto-col-star {
  color: #facc15;
}

.tvp-loto-col-plus {
  margin-left: 0.08rem;
}

.tvp-loto-type-default {
  --tvp-loto-ball-bg: #079acf;
  --tvp-loto-extra-bg: #e23643;
  --tvp-loto-accent: #0f6fdb;
}

.tvp-loto-type-loto {
  --tvp-loto-ball-bg: #079acf;
  --tvp-loto-extra-bg: #e23643;
  --tvp-loto-accent: #cc2f41;
}

.tvp-loto-type-superloto {
  --tvp-loto-ball-bg: #079acf;
  --tvp-loto-extra-bg: #e23643;
  --tvp-loto-accent: #238f7b;
}

.tvp-loto-type-euromillions {
  --tvp-loto-ball-bg: #001367;
  --tvp-loto-extra-bg: #eebb03;
  --tvp-loto-accent: #10348f;
}

.tvp-loto-type-eurodreams {
  --tvp-loto-ball-bg: #781ea6;
  --tvp-loto-extra-bg: #ff3b69;
  --tvp-loto-accent: #7f3fd1;
}

.tvp-loto-type-nav {
  margin: 0 0 0.85rem;
}

.tvp-loto-page .tvp-tv-direct-menu-scroll {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 0.28rem 0.08rem 0.5rem;
}

.tvp-loto-page .tvp-tv-direct-menu-btn {
  flex: 0 0 auto;
  display: inline-flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2rem;
  border: 1px solid var(--tvp-direct-border);
  border-radius: 999px;
  background: var(--tvp-direct-surface);
  color: var(--tvp-direct-text) !important;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
  padding: 0.38rem 0.82rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.tvp-loto-page .tvp-tv-direct-menu-btn:hover {
  color: var(--tvp-direct-text) !important;
  border-color: var(--tvp-direct-border-strong);
  background: var(--tvp-direct-surface-muted);
}

.tvp-loto-page .tvp-tv-direct-menu-btn:visited {
  color: var(--tvp-direct-text) !important;
}

.tvp-loto-page .tvp-tv-direct-menu-btn.is-active {
  border-color: var(--tvp-direct-live-bg);
  background: var(--tvp-direct-live-bg);
  color: var(--tvp-direct-live-text) !important;
}

.tvp-loto-type-link-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.tvp-loto-type-link-label {
  white-space: nowrap;
}

.tvp-loto-intro {
  margin: 0;
  line-height: 1.55;
  color: var(--tvp-loto-text);
}

.tvp-loto-results-count {
  margin: 0.9rem 0 0.7rem;
  color: var(--tvp-loto-text-muted);
  font-size: 0.9rem;
}

.tvp-loto-grid-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--tvp-loto-border);
  border-radius: 0.8rem;
  background: var(--tvp-loto-surface-muted);
  box-shadow: var(--tvp-loto-shadow);
}

.tvp-loto-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(14.5rem, 1fr));
  gap: 0.85rem;
  width: max(100%, 66rem);
  padding: 0.85rem;
}

.tvp-loto-card-item {
  min-width: 0;
}

.tvp-loto-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid var(--tvp-loto-border);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--tvp-loto-card-bg);
  box-shadow: var(--tvp-loto-shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tvp-loto-card:hover {
  border-color: var(--tvp-loto-border-strong);
  box-shadow: var(--tvp-loto-shadow-hover);
  transform: translateY(-1px);
}

.tvp-loto-card-media-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.tvp-loto-card-media-link:hover {
  color: inherit;
  text-decoration: none;
}

.tvp-loto-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--tvp-loto-media-bg);
}

.tvp-loto-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(to top, rgb(2 6 23 / 0.55), transparent);
  pointer-events: none;
}

.tvp-loto-card-media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 992px) {
  .tvp-loto-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: stretch;
  }

  .tvp-loto-layout.is-no-side {
    grid-template-columns: minmax(0, 1fr);
  }

  .tvp-loto-layout-side {
    align-self: stretch;
  }

  .tvp-loto-layout-side-sticky {
    width: 100%;
  }

  .tvp-loto-layout-side .tvp-loto-inline-slot {
    margin: 0 0 0 auto;
  }
}

.tvp-loto-card-date-chip {
  position: absolute;
  left: 0.55rem;
  top: 0.55rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: var(--tvp-loto-chip-bg);
  color: var(--tvp-loto-chip-text);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  padding: 0 0.5rem;
}

.tvp-loto-card-logo-wrap {
  position: absolute;
  left: 0.55rem;
  bottom: 0.55rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--tvp-loto-logo-border);
  border-radius: 0.55rem;
  background: var(--tvp-loto-logo-bg);
}

.tvp-loto-card-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.tvp-loto-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  padding: 0.75rem;
}

.tvp-loto-card-title {
  margin: 0;
  color: var(--tvp-loto-title);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}

.tvp-loto-card-title-link {
  color: inherit;
  text-decoration: none;
}

.tvp-loto-card-title-link:hover {
  color: inherit;
  text-decoration: none;
}

.tvp-loto-card-subtitle {
  margin: 0;
  color: var(--tvp-loto-text-muted);
  font-size: 0.84rem;
}

.tvp-loto-card-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.34rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tvp-loto-ball-item {
  margin: 0;
}

.tvp-loto-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

.tvp-loto-ball-main {
  border-radius: 999px;
  background: var(--tvp-loto-ball-bg);
}

.tvp-loto-ball-extra {
  background: var(--tvp-loto-extra-bg);
  clip-path: polygon(
    50% 0%,
    65% 35%,
    100% 35%,
    72% 60%,
    85% 100%,
    50% 80%,
    15% 100%,
    28% 60%,
    0% 35%,
    35% 35%
  );
  padding-top: 0.15rem;
}

.tvp-loto-ball-sm {
  width: 1.8rem;
  height: 1.8rem;
  font-size: 0.86rem;
}

.tvp-loto-card-mymillion {
  margin: 0.08rem 0 0;
  font-size: 0.82rem;
  color: var(--tvp-loto-text);
}

.tvp-loto-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.28rem;
}

.tvp-loto-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.32rem;
  min-height: 2rem;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 999px;
  padding: 0.36rem 0.78rem;
  color: #ffffff !important;
  text-shadow: 0 1px 1px rgb(2 6 23 / 0.32);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.tvp-loto-action-btn:hover {
  color: #ffffff !important;
  text-decoration: none;
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.tvp-loto-action-btn:visited {
  color: #ffffff !important;
}

.tvp-loto-action-btn:focus-visible {
  outline: 2px solid var(--tvp-loto-focus);
  outline-offset: 2px;
}

.tvp-loto-action-btn--detail {
  background: linear-gradient(135deg, #1e40af, #1d4ed8);
  box-shadow: 0 4px 14px rgb(30 64 175 / 0.36);
}

.tvp-loto-action-btn--replay {
  background: linear-gradient(135deg, #047857, #059669);
  box-shadow: 0 4px 14px rgb(4 120 87 / 0.34);
}

.tvp-loto-replay-logo {
  width: 18px;
  height: 18px;
}

.tvp-loto-detail {
  color: var(--tvp-loto-text);
}

.tvp-loto-detail-header {
  margin-bottom: 0.8rem;
}

.tvp-loto-detail-title {
  margin: 0;
  color: var(--tvp-loto-title);
  font-size: clamp(1.45rem, 1.2rem + 0.95vw, 2rem);
  line-height: 1.18;
}

.tvp-loto-detail-intro {
  margin: 0.55rem 0 0;
  line-height: 1.55;
}

.tvp-loto-detail-main-row {
  display: grid;
  gap: 1rem;
}

.tvp-loto-detail-hero {
  margin: 0 0 0.95rem;
  border-radius: 0.82rem;
  overflow: hidden;
  border: 1px solid var(--tvp-loto-border);
  background: var(--tvp-loto-media-bg);
  box-shadow: var(--tvp-loto-shadow);
}

.tvp-loto-detail-hero-image {
  width: 100%;
  height: auto;
  display: block;
}

.tvp-loto-section-title {
  margin: 0 0 0.65rem;
  color: var(--tvp-loto-title);
  font-size: clamp(1.22rem, 1.08rem + 0.6vw, 1.56rem);
  line-height: 1.2;
  font-weight: 700;
}

.tvp-loto-balls-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tvp-loto-my-million {
  margin: 0.8rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  border: 1px solid var(--tvp-loto-border);
  border-radius: 999px;
  background: var(--tvp-loto-surface);
  color: var(--tvp-loto-text);
  padding: 0.32rem 0.72rem;
}

@media (min-width: 992px) {
  .tvp-loto-detail-main-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }

  .tvp-loto-detail-hero {
    margin-bottom: 0;
  }

  .tvp-loto-draw {
    min-width: 0;
  }
}

.tvp-loto-replay {
  margin-top: 0.95rem;
}

.tvp-loto-replay-ratio {
  border: 1px solid var(--tvp-loto-border);
  border-radius: 0.82rem;
  overflow: hidden;
  background: #0f172a;
}

.tvp-loto-video-button {
  position: relative;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.tvp-loto-replay-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tvp-loto-replay-channel {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 0.48rem;
  border: 1px solid rgb(255 255 255 / 0.44);
  background: rgb(15 23 42 / 0.75);
}

.tvp-loto-replay-channel-logo {
  width: 30px;
  height: 30px;
}

.tvp-loto-replay-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: rgb(15 23 42 / 0.64);
  color: #ffffff;
  box-shadow: 0 2px 12px rgb(2 6 23 / 0.46);
}

.tvp-loto-replay-play .tvp-icon {
  width: 3rem;
  height: 3rem;
}

.tvp-loto-gains {
  margin-top: 1.1rem;
}

.tvp-loto-gains-intro {
  margin: 0;
  line-height: 1.55;
}

.tvp-loto-gains-wrap {
  margin-top: 0.7rem;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--tvp-loto-border);
  border-radius: 0.8rem;
  background: var(--tvp-loto-surface);
  box-shadow: var(--tvp-loto-shadow);
}

.tvp-loto-gains-table {
  margin: 0;
  width: 100%;
  font-size: 1.02rem;
  font-variant-numeric: tabular-nums;
}

.tvp-loto-gains-table > :not(caption) > * > * {
  border-color: var(--tvp-loto-border);
  color: var(--tvp-loto-text);
  padding: 0.78rem 1rem;
  vertical-align: middle;
}

.tvp-loto-gains-table thead th {
  background: var(--tvp-loto-surface-muted);
  color: var(--tvp-loto-title);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  border-bottom-width: 1px;
}

.tvp-loto-gains-table thead th:first-child,
.tvp-loto-gains-table tbody th[scope="row"] {
  text-align: left;
}

.tvp-loto-gains-table tbody tr:nth-child(odd) {
  background: rgb(15 23 42 / 0.02);
}

.tvp-loto-gains-table tbody tr:hover {
  background: rgb(15 23 42 / 0.045);
}

.tvp-loto-gains-table tbody th[scope="row"] {
  min-width: 7.5rem;
  font-weight: 700;
}

.tvp-loto-gains-table tbody > tr > :nth-child(3),
.tvp-loto-gains-table tbody > tr > :nth-child(5) {
  font-weight: 800;
  color: var(--tvp-loto-title);
}

.tvp-loto-rank {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
  font-weight: 700;
}

.tvp-loto-rank-ball {
  color: var(--tvp-loto-ball-bg);
}

.tvp-loto-rank-star {
  color: var(--tvp-loto-extra-bg);
}

.tvp-loto-empty {
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--tvp-loto-border);
  border-radius: 0.75rem;
  background: var(--tvp-loto-surface-muted);
  color: var(--tvp-loto-text-muted);
}

.tvp-loto-page .tvp-tv-direct-menu-btn:focus-visible,
.tvp-loto-card-title-link:focus-visible,
.tvp-loto-video-button:focus-visible {
  outline: 2px solid var(--tvp-loto-focus);
  outline-offset: 2px;
}

html[data-bs-theme="dark"] .tvp-loto-page,
html[data-theme="dark"] .tvp-loto-page,
html.dark .tvp-loto-page,
body.dark-mode .tvp-loto-page,
body.dark-theme .tvp-loto-page {
  --tvp-loto-surface: #111827;
  --tvp-loto-surface-muted: #161f2d;
  --tvp-loto-border: #334155;
  --tvp-loto-border-strong: #4a637f;
  --tvp-loto-shadow: 0 2px 6px rgb(2 6 23 / 0.5);
  --tvp-loto-shadow-hover: 0 12px 24px rgb(2 6 23 / 0.56);
  --tvp-loto-text: #dbe4ef;
  --tvp-loto-text-muted: #a6b7cc;
  --tvp-loto-title: #e2e8f0;
  --tvp-loto-card-bg: #1b2636;
  --tvp-loto-media-bg: #0f172a;
  --tvp-loto-chip-bg: rgb(2 6 23 / 0.78);
  --tvp-loto-chip-text: #f8fafc;
  --tvp-loto-logo-bg: rgb(15 23 42 / 0.84);
  --tvp-loto-logo-border: #475569;
  --tvp-loto-focus: #7aa8ff;
  --tvp-direct-surface: #1b2636;
  --tvp-direct-surface-muted: #172334;
  --tvp-direct-border: #334155;
  --tvp-direct-border-strong: #475569;
  --tvp-direct-text: #dbe4ef;
  --tvp-direct-live-bg: #e55a6f;
  --tvp-direct-live-text: #ffffff;
  --tvp-direct-focus: #7aa8ff;
}

html[data-bs-theme="dark"] .tvp-loto-action-btn--detail,
html[data-theme="dark"] .tvp-loto-action-btn--detail,
html.dark .tvp-loto-action-btn--detail,
body.dark-mode .tvp-loto-action-btn--detail,
body.dark-theme .tvp-loto-action-btn--detail {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 4px 14px rgb(37 99 235 / 0.34);
}

html[data-bs-theme="dark"] .tvp-loto-action-btn--replay,
html[data-theme="dark"] .tvp-loto-action-btn--replay,
html.dark .tvp-loto-action-btn--replay,
body.dark-mode .tvp-loto-action-btn--replay,
body.dark-theme .tvp-loto-action-btn--replay {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 4px 14px rgb(18 184 134 / 0.3);
}

@media (max-width: 991.98px) {
  .tvp-loto-grid {
    grid-template-columns: repeat(2, minmax(15.5rem, 1fr));
    width: max(100%, 44rem);
  }
}

@media (min-width: 1400px) {
  .tvp-loto-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .tvp-loto-grid-wrap {
    overflow-x: hidden;
  }

  .tvp-loto-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .tvp-loto-ball {
    width: 2.2rem;
    height: 2.2rem;
    font-size: 0.94rem;
  }

  .tvp-loto-ball-sm {
    width: 1.7rem;
    height: 1.7rem;
    font-size: 0.82rem;
  }

  .tvp-loto-gains-table {
    font-size: 0.95rem;
  }

  .tvp-loto-gains-table > :not(caption) > * > * {
    padding: 0.7rem 0.75rem;
  }

  .tvp-loto-gains-table tbody th[scope="row"] {
    min-width: 6.7rem;
  }

  .tvp-loto-replay-play {
    width: 72px;
    height: 72px;
  }

  .tvp-loto-replay-play .tvp-icon {
    width: 2.45rem;
    height: 2.45rem;
  }
}

@media (max-width: 430px) {
  .tvp-loto-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .tvp-loto-action-btn {
    width: 100%;
    justify-content: center;
  }
}
