body.ddsol-scoreboard-mode {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background: transparent !important;
  color: #fff;
}

body.ddsol-scoreboard-mode.ddsol-scoreboard-green {
  background: #00ff00 !important;
}

body.ddsol-event-mode {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  background: transparent !important;
  color: #fff;
}

body.ddsol-event-mode #ddsol-live-ticker,
body.ddsol-scoreboard-mode #ddsol-live-ticker {
  display: none !important;
}

.ddsol-overlay-card {
  box-sizing: border-box;
  overflow: hidden;
  color: #fff;
  background: rgba(5, 16, 31, .96);
  border: 1px solid rgba(104, 197, 240, .88);
  border-radius: 9px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .44);
}

.ddsol-event-stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: start;
  padding: 24px;
  box-sizing: border-box;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.ddsol-event-card {
  width: min(720px, 94vw);
  height: 170px;
}

.ddsol-event-head {
  min-height: 38px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 12px 8px 18px;
  background: linear-gradient(90deg, #0d355b, #071426);
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}

.ddsol-event-title {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 9px;
  overflow: hidden;
  color: #d9efff;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: .055em;
  white-space: nowrap;
}

.ddsol-event-title #ddsol-event-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ddsol-event-kicker {
  flex: 0 0 auto;
  color: #70c8f0;
  font-size: 11px;
  letter-spacing: .09em;
}

.ddsol-event-live {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #d5192f;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
}

.ddsol-event-live span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}

.ddsol-event-body {
  min-height: 132px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  background: linear-gradient(90deg, rgba(16, 40, 67, .98), rgba(10, 31, 54, .98));
}

.ddsol-event-details {
  min-width: 0;
}

.ddsol-event-row {
  min-height: 66px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: stretch;
  border-top: 1px solid rgba(255, 255, 255, .13);
}

.ddsol-event-row-court {
  background: rgba(16, 40, 67, .98);
}

.ddsol-event-row-operator {
  background: rgba(10, 31, 54, .98);
}

.ddsol-event-row-code {
  display: grid;
  place-items: center;
  background: #17a6d9;
  color: #04101f;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: .02em;
}

.ddsol-event-row-operator .ddsol-event-row-code {
  background: #f2c94c;
}

.ddsol-event-row-copy {
  min-width: 0;
  align-self: center;
  padding: 0 14px;
}

.ddsol-event-row-primary,
.ddsol-event-row-secondary {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ddsol-event-row-primary {
  color: #fff;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: .015em;
}

.ddsol-event-row-secondary {
  margin-top: 3px;
  color: #c8dced;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .06em;
}

.ddsol-event-sponsor {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  box-sizing: border-box;
  border-left: 1px solid rgba(255, 255, 255, .13);
  background: rgba(7, 20, 38, .82);
}

.ddsol-brand-slot {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(104, 197, 240, .34);
  border-radius: 5px;
  background: rgba(16, 40, 67, .92);
  color: #c8dced;
  text-align: center;
}

.ddsol-brand-slot span {
  font-size: 7px;
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: .1em;
}

.ddsol-brand-slot strong {
  margin-top: 3px;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: .02em;
  white-space: nowrap;
}

.ddsol-brand-slot-wika {
  border-color: rgba(255, 91, 70, .7);
  background: #c92117;
}

.ddsol-brand-slot-wika img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ddsol-brand-slot-order {
  border-color: rgba(242, 201, 76, .7);
  background: rgba(80, 47, 3, .82);
}

.ddsol-brand-slot-order strong {
  color: #f7d45b;
  font-size: 10px;
}

.ddsol-obs-stage {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: start end;
  padding: 24px;
  box-sizing: border-box;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.ddsol-obs-card {
  width: min(720px, 94vw);
}

.ddsol-obs-content {
  min-height: 38px;
  box-sizing: border-box;
  padding: 8px 18px 7px;
  overflow: hidden;
  background: linear-gradient(90deg, #0d355b, #071426);
  color: #d9efff;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: .055em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ddsol-obs-head {
  min-height: 54px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 9px 16px 8px;
  background: linear-gradient(90deg, #0c2c50, #071426);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}

.ddsol-obs-event {
  font-size: 20px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: .02em;
}

.ddsol-obs-round {
  margin-top: 4px;
  color: #b9d2e8;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .05em;
}

.ddsol-obs-live {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: #d5192f;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.ddsol-obs-team {
  min-height: 66px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 82px;
  align-items: stretch;
  border-top: 1px solid rgba(255, 255, 255, .13);
}

.ddsol-obs-team-a { background: rgba(16, 40, 67, .98); }
.ddsol-obs-team-b { background: rgba(10, 31, 54, .98); }

.ddsol-obs-team-code {
  display: grid;
  place-items: center;
  background: #17a6d9;
  color: #04101f;
  font-size: 20px;
  font-weight: 1000;
}

.ddsol-obs-team-b .ddsol-obs-team-code {
  background: #f2c94c;
}

.ddsol-obs-serve {
  width: 13px;
  height: 13px;
  place-self: center;
  border: 2px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.ddsol-obs-team-a .ddsol-obs-serve.is-serving {
  border-color: #38c5ff;
  background: #38c5ff;
  box-shadow: 0 0 0 4px rgba(56, 197, 255, .18);
}

.ddsol-obs-team-b .ddsol-obs-serve.is-serving {
  border-color: #f5cf54;
  background: #f5cf54;
  box-shadow: 0 0 0 4px rgba(245, 207, 84, .18);
}

.ddsol-obs-team-name {
  min-width: 0;
  align-self: center;
  padding: 8px 14px 8px 0;
  overflow: hidden;
  color: #fff;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: .01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ddsol-obs-meta {
  margin-top: 5px;
  color: #b9d2e8;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}

.ddsol-obs-number {
  display: grid;
  place-items: center;
  background: #f8fafc;
  color: #071426;
  font-size: 48px;
  line-height: 1;
  font-weight: 1000;
  font-variant-numeric: tabular-nums;
}

.ddsol-obs-foot {
  min-height: 36px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 78px;
  align-items: center;
  gap: 12px;
  padding: 4px 10px 4px 14px;
  background: #040c17;
  color: #b9d2e8;
  font-size: 10px;
  font-weight: 750;
}

.ddsol-obs-foot img {
  width: 72px;
  height: 28px;
  object-fit: contain;
  justify-self: end;
}

#ddsol-obs-status {
  color: #62d6ff;
  font-weight: 950;
  letter-spacing: .06em;
}

#ddsol-obs-operator {
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ddsol-obs-error { color: #ff777f !important; }

.ddsol-obs-sponsor {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-height: 58px;
  padding: 8px 24px;
  border-top: 1px solid rgba(255,255,255,.12);
  background: rgba(5,6,10,.9);
}

.ddsol-obs-sponsor-label {
  color: #d8d9df;
  font-size: clamp(10px, .8vw, 14px);
  font-weight: 900;
  letter-spacing: .08em;
}

.ddsol-obs-sponsor-logo {
  display: grid;
  place-items: center;
  width: clamp(118px, 10vw, 170px);
  height: 42px;
  overflow: hidden;
  border-radius: 8px;
  background: #cc1d13;
}

.ddsol-obs-sponsor-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ddsol-obs-url-panel {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.78);
}

.ddsol-obs-url-dialog {
  width: min(720px, 94vw);
  padding: 24px;
  border: 1px solid #ee1e23;
  border-radius: 18px;
  background: #15161b;
  color: #fff;
  box-shadow: 0 20px 80px rgba(0,0,0,.55);
}

.ddsol-obs-url-dialog h3 { margin: 0 0 10px; color: #fff200; font-weight: 950; }
.ddsol-obs-url-dialog p { margin: 8px 0 16px; color: #d6d8df; }
.ddsol-obs-url-dialog input { width: 100%; box-sizing: border-box; padding: 12px; border: 1px solid #777; border-radius: 10px; background: #08090c; color: #fff; }
.ddsol-obs-url-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ddsol-obs-url-actions button { padding: 11px 16px; border: 1px solid #eee; border-radius: 10px; background: transparent; color: #fff; font-weight: 850; }
.ddsol-obs-url-actions button:first-child { border-color: #ee1e23; background: #ee1e23; }

@media (max-width: 680px) {
  .ddsol-obs-stage { padding: 16px; }
  .ddsol-obs-card { width: 100%; border-radius: 16px; }
  .ddsol-obs-head { padding: 12px 16px; }
  .ddsol-obs-team { padding: 18px 12px 22px; }
  .ddsol-obs-sponsor { justify-content: space-between; padding: 7px 12px; }
  .ddsol-obs-sponsor-logo { width: 110px; height: 36px; }
}
