:root {
  color-scheme: dark;
  --bg: #0b1220;
  --panel: #101a2f;
  --panel2: #0e1730;
  --text: #e6eefc;
  --muted: #9db0d0;
  --border: rgba(255, 255, 255, 0.1);
  --accent: #3b82f6;
  --accent2: #22c55e;
  --danger: #ef4444;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans",
    sans-serif;
  background: radial-gradient(1200px 800px at 20% 0%, rgba(59, 130, 246, 0.18), transparent 60%),
    radial-gradient(900px 700px at 90% 10%, rgba(34, 197, 94, 0.16), transparent 55%),
    radial-gradient(1000px 800px at 50% 110%, rgba(236, 72, 153, 0.12), transparent 55%), var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 16px 56px;
}

.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  align-items: start;
}

.content {
  min-width: 0;
}

.sidebar {
  display: grid;
  gap: 12px;
}

.ad-card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.ad-banner {
  width: 100%;
  height: auto;
  display: block;
}

.tz-card {
  border-radius: 16px;
  padding: 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.06), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.2));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.tz-top {
  display: grid;
  gap: 2px;
}

.tz-title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
}

.tz-zone {
  color: rgba(157, 176, 208, 0.9);
  font-size: 12px;
}

.tz-time {
  margin-top: 12px;
  font-size: 42px;
  font-weight: 950;
  letter-spacing: 1.4px;
  line-height: 1.05;
}

.tz-date {
  margin-top: 6px;
  color: rgba(157, 176, 208, 0.95);
  font-size: 13px;
}

.tz-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.12);
  color: rgba(34, 197, 94, 0.95);
  font-size: 12px;
  text-align: center;
}

.welcome-card {
  border-radius: 16px;
  padding: 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.06), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.2));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.welcome-title {
  margin: 0;
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.6px;
}

.welcome-text {
  margin: 10px 0 0;
  color: rgba(157, 176, 208, 0.95);
  font-size: 12px;
  line-height: 1.45;
}

.welcome-tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background: rgba(59, 130, 246, 0.12);
  color: rgba(59, 130, 246, 0.95);
  font-size: 12px;
  font-weight: 700;
}

.bottom-bar {
  position: static;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.18);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.disclaimer {
  max-width: 1100px;
  margin: 0 auto;
  color: rgba(157, 176, 208, 0.95);
  font-size: 12px;
  line-height: 1.4;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(16, 26, 47, 0.92), rgba(14, 23, 48, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
}

.soccer-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.soccer-icon.small {
  width: 18px;
  height: 18px;
}

.brand-text {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.brand-sub {
  color: rgba(157, 176, 208, 0.95);
  font-size: 13px;
  line-height: 1.2;
}

.brand-text h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 850;
  letter-spacing: 0.8px;
  line-height: 1.05;
}

.app-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(520px, 100%);
}

input[type="search"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  outline: none;
}

button {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(59, 130, 246, 0.14);
  color: var(--text);
  cursor: pointer;
}

button:hover {
  background: rgba(59, 130, 246, 0.22);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status {
  margin-top: 0;
  color: var(--muted);
  font-size: 12px;
}

.match-list {
  margin-top: 6px;
  display: grid;
  gap: 14px;
}

.schedule-date {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px 2px;
  margin-top: 6px;
}

.schedule-date-bar {
  width: 4px;
  height: 22px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.95);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.schedule-date-text {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1.1px;
}

.match-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.06), transparent 55%),
    radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, 0.04), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.2));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  outline: none;
}

.match-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

.match-card:focus-visible {
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.22), 0 10px 30px rgba(0, 0, 0, 0.35);
}

.sport-badge {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
}

.match-main {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 6px;
}

.match-league {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.9px;
  color: rgba(157, 176, 208, 0.9);
}

.match-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.teamline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.team-logo {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.team-name {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vs {
  color: rgba(157, 176, 208, 0.85);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.match-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(157, 176, 208, 0.9);
  font-size: 12px;
}

.dot {
  opacity: 0.85;
}

.match-right {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.pill {
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.12);
  white-space: nowrap;
}

.pill.live {
  color: #052e12;
  background: rgba(34, 197, 94, 0.9);
  border-color: rgba(34, 197, 94, 0.35);
}

.empty {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  text-align: center;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 50;
}

.modal.open {
  display: flex;
}

.modal-panel {
  width: min(1050px, 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(11, 18, 32, 0.92);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.modal-header {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.open-stream {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(59, 130, 246, 0.14);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.open-stream:hover {
  background: rgba(59, 130, 246, 0.22);
}

.modal-header .modal-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.modal-header .modal-title strong {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-header .modal-title span {
  color: var(--muted);
  font-size: 12px;
}

.modal-header .close {
  background: rgba(239, 68, 68, 0.14);
}

.modal-header .close:hover {
  background: rgba(239, 68, 68, 0.22);
}

.video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.stream-page {
  padding-bottom: 10px;
}

.stream-host {
  width: 100%;
}

.stream-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #000;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.stream-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.stream-links {
  margin-top: 14px;
  border-radius: 18px;
  padding: 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.stream-links-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.stream-links-title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.9px;
}

.links-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}


.links-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
}

.links-table thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.8px;
  color: rgba(157, 176, 208, 0.95);
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.links-table tbody td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  color: rgba(226, 238, 252, 0.95);
  font-size: 13px;
}

.links-table tbody tr:last-child td {
  border-bottom: 0;
}

.streamer-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.streamer-name {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 950;
  letter-spacing: 0.6px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.22);
  color: rgba(226, 238, 252, 0.95);
  overflow: hidden;
  flex: 0 0 auto;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pill-blue,
.pill-green,
.pill-gray {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 10px;
  font-weight: 950;
  font-size: 12px;
  letter-spacing: 0.4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.pill-blue {
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.25);
  color: rgba(200, 226, 255, 0.98);
}

.pill-green {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.24);
  color: rgba(34, 197, 94, 0.95);
}

.pill-gray {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.22);
  color: rgba(148, 163, 184, 0.95);
}

.watch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.22);
  background: rgba(239, 68, 68, 0.16);
  color: rgba(255, 220, 220, 0.98);
  text-decoration: none;
  font-weight: 950;
}

.watch-btn:hover {
  background: rgba(239, 68, 68, 0.22);
}

.sp-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  color: #0f172a;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.sp-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sp-brand {
  font-weight: 950;
  letter-spacing: 0.2px;
  font-size: 18px;
}

.sp-nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sp-user {
  font-weight: 950;
  letter-spacing: 0.3px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.8);
}

.sp-link {
  text-decoration: none;
  color: rgba(15, 23, 42, 0.85);
  font-weight: 900;
  letter-spacing: 0.6px;
  font-size: 12px;
}

.sp-link-btn {
  appearance: none;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
}

.sp-link:hover {
  text-decoration: underline;
}

.sp-link-btn:hover {
  text-decoration: none;
  background: rgba(15, 23, 42, 0.06);
}

.sp-hidden {
  display: none !important;
}

.sp-link[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.sp-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px;
}

.sp-body {
  background: radial-gradient(1200px 700px at 10% 0%, rgba(59, 130, 246, 0.10), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(34, 197, 94, 0.08), transparent 60%),
    #f3f4f6;
  color: #0f172a;
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.6);
  overflow-x: hidden;
}

.sp-body .empty {
  color: rgba(15, 23, 42, 0.6);
}

.sp-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px 12px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.80);
}

.sp-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translate(-50%, 10px);
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.96);
  color: rgba(15, 23, 42, 0.9);
  font-weight: 900;
  letter-spacing: 0.3px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: opacity 160ms ease, transform 160ms ease;
  max-width: min(520px, calc(100vw - 24px));
  text-align: center;
}

.sp-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.sp-toast.ok {
  border-color: rgba(34, 197, 94, 0.35);
}

.sp-toast.error {
  border-color: rgba(239, 68, 68, 0.35);
}

.sp-status {
  color: rgba(15, 23, 42, 0.70);
  font-weight: 800;
}

.sp-buttons {
  display: flex;
  gap: 10px;
}

.sp-btn {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: rgba(15, 23, 42, 0.88);
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 950;
  letter-spacing: 0.6px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  transition: transform 120ms ease, filter 120ms ease, background 120ms ease;
}

.sp-btn.primary {
  border-color: rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.14);
  color: rgba(15, 23, 42, 0.9);
}

.sp-btn.danger {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.1);
  color: rgba(15, 23, 42, 0.9);
}

.sp-btn:hover {
  filter: brightness(1.06);
}

.sp-btn:active {
  transform: translateY(1px);
}

.sp-auth-card {
  max-width: 520px;
  margin: 0 auto;
}

.sp-auth-grid {
  grid-template-columns: 1fr !important;
}

.sp-auth-meta {
  margin-top: 12px;
  text-align: center;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.7);
}

.sp-auth-meta a {
  color: rgba(15, 23, 42, 0.9);
  text-decoration: underline;
}

.sp-auth-page .sp-btn {
  width: 100%;
  border-radius: 12px;
  padding: 10px 12px;
  letter-spacing: 0.2px;
  box-shadow: none;
}

.sp-card {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.86);
  padding: 16px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

.sp-table-wrap {
  overflow: hidden;
}


.sp-stream-list {
  display: grid;
  gap: 12px;
}

.sp-stream-card {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  overflow: hidden;
}

.sp-stream-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.sp-stream-title {
  font-weight: 950;
  letter-spacing: 0.3px;
  color: rgba(15, 23, 42, 0.9);
}

.sp-stream-count {
  color: rgba(15, 23, 42, 0.55);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.sp-stream-items {
  display: grid;
}

.sp-stream-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.sp-stream-item:last-child {
  border-bottom: 0;
}

.sp-stream-line1 {
  font-weight: 950;
  color: rgba(15, 23, 42, 0.86);
  letter-spacing: 0.2px;
}

.sp-stream-line2 {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.6);
  font-weight: 800;
  line-height: 1.4;
}

.sp-stream-link {
  margin-top: 8px;
  display: inline-block;
  color: rgba(15, 23, 42, 0.86);
  font-weight: 900;
  text-decoration: underline;
}

.sp-stream-link[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.65;
  text-decoration: none;
}

.sp-stream-time {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(15, 23, 42, 0.55);
  font-weight: 800;
}

.sp-stream-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sp-admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  overflow: hidden;
}

.sp-admin-table thead th {
  text-align: left;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.6px;
  color: rgba(15, 23, 42, 0.82);
  background: rgba(255, 255, 255, 0.92);
  padding: 12px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  white-space: nowrap;
}

.sp-admin-table tbody td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  white-space: nowrap;
  color: rgba(15, 23, 42, 0.82);
  font-size: 13px;
}

.sp-admin-table tbody tr:hover td {
  background: rgba(59, 130, 246, 0.06);
}

.sp-admin-table thead th:first-child,
.sp-admin-table tbody td:first-child {
  white-space: normal;
  overflow-wrap: anywhere;
}

.sp-admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.sp-table-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.14);
  color: rgba(200, 226, 255, 0.98);
  text-decoration: none;
  font-weight: 950;
  letter-spacing: 0.6px;
  font-size: 12px;
}

.sp-table-link-meta {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(15, 23, 42, 0.55);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-empty-cell {
  text-align: center;
  color: rgba(15, 23, 42, 0.55);
  font-weight: 900;
}

.sp-row-del {
  appearance: none;
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.1);
  color: rgba(255, 220, 220, 0.98);
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 950;
  letter-spacing: 0.6px;
  cursor: pointer;
}

.sp-row-del:hover {
  background: rgba(239, 68, 68, 0.16);
}

.sp-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  padding: 14px;
  overflow: hidden;
}

.sp-modal.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.sp-modal-card {
  position: relative;
  max-width: 980px;
  width: calc(100% - 28px);
  margin: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(15, 23, 42, 0.12);
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sp-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

.sp-modal-title {
  font-weight: 950;
  font-size: 18px;
}

.sp-icon-btn {
  appearance: none;
  background: transparent;
  border: 0;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: rgba(15, 23, 42, 0.75);
  cursor: pointer;
}

.sp-form {
  padding: 16px 16px 18px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
  min-height: 0;
  overscroll-behavior: contain;
}

.sp-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 980px) {
  .sp-modal-card {
    width: 100%;
    max-width: 720px;
  }
  .sp-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .sp-form-grid {
    grid-template-columns: 1fr;
  }
}

.sp-field {
  display: grid;
  gap: 8px;
}

.sp-field-label {
  font-size: 12px;
  font-weight: 900;
  color: rgba(15, 23, 42, 0.6);
  letter-spacing: 0.4px;
}

.sp-form input,
.sp-form select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  color: rgba(15, 23, 42, 0.88);
}

.sp-form input:focus,
.sp-form select:focus {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.sp-form input::placeholder {
  color: rgba(15, 23, 42, 0.45);
}

.sp-form select option {
  color: rgba(15, 23, 42, 0.88);
}

.sp-form select:disabled {
  opacity: 0.75;
}

.sp-checks {
  margin-top: 14px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.sp-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(15, 23, 42, 0.8);
  font-weight: 900;
}

.sp-form-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.sp-form-msg {
  margin-top: 10px;
  color: rgba(239, 68, 68, 0.9);
  font-weight: 900;
  text-align: center;
}

.panel-links-head {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.panel-links-title {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.9px;
}

.panel-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.panel-form-grid .panel-url {
  grid-column: 1 / -1;
}

.panel-submit {
  width: 100%;
}

.stream-links-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.stream-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.stream-item:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

.stream-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 950;
  letter-spacing: 0.6px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.22);
  color: rgba(226, 238, 252, 0.95);
}

.stream-name {
  min-width: 0;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stream-watch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.12);
  color: rgba(34, 197, 94, 0.95);
  text-decoration: none;
  font-weight: 900;
}

.stream-watch:hover {
  background: rgba(34, 197, 94, 0.18);
}

.panel-list {
  margin-top: 8px;
  display: grid;
  gap: 14px;
}

.panel-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.06), transparent 55%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.2));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  padding: 14px 14px;
}

.panel-head {
  display: grid;
  gap: 4px;
}

.panel-title {
  font-weight: 950;
  letter-spacing: 0.4px;
}

.panel-meta {
  color: rgba(157, 176, 208, 0.95);
  font-size: 12px;
}

.panel-links {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.panel-empty {
  color: rgba(157, 176, 208, 0.95);
  font-size: 12px;
}

.panel-stream-item {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.panel-stream-item:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

.panel-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 950;
  letter-spacing: 0.6px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.22);
  color: rgba(226, 238, 252, 0.95);
}

.panel-stream-name {
  min-width: 0;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-watch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.12);
  color: rgba(34, 197, 94, 0.95);
  text-decoration: none;
  font-weight: 900;
}

.panel-watch:hover {
  background: rgba(34, 197, 94, 0.18);
}

.panel-form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.panel-form input {
  width: 100%;
}

.panel-msg {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(157, 176, 208, 0.95);
}

.panel-msg.ok {
  color: rgba(34, 197, 94, 0.95);
}

.panel-msg.error {
  color: rgba(239, 68, 68, 0.9);
}

@media (max-width: 740px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
  .tz-time {
    font-size: 34px;
  }
  .schedule-date-text {
    font-size: 16px;
  }
  .app-header {
    flex-direction: column;
    align-items: stretch;
  }
  .app-actions {
    width: 100%;
  }
  .match-card {
    padding: 12px 12px;
  }
  .match-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .teamline {
    width: 100%;
  }
  .team-name {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
  }
  .vs {
    align-self: center;
    font-size: 12px;
  }
  .team-name {
    font-size: 14px;
  }
  .brand-text h1 {
    font-size: 24px;
  }
  .links-table {
    min-width: 760px;
  }
  .panel-form-grid {
    grid-template-columns: 1fr;
  }
  .panel-form-grid .panel-url {
    grid-column: auto;
  }
  .sp-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .sp-nav-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .sp-brand {
    text-align: center;
  }
  .sp-nav-links {
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
  .sp-buttons {
    justify-content: stretch;
  }
  .sp-buttons .sp-btn {
    width: 100%;
  }
  .sp-form-grid {
    grid-template-columns: 1fr;
  }
  .sp-admin-table {
    min-width: 860px;
  }

  .sp-modal {
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .sp-modal.open {
    align-items: stretch;
  }

  .sp-modal-card {
    width: 100%;
    max-height: 100%;
    max-height: 100dvh;
    height: 100%;
    border-radius: 0;
  }

  .sp-modal-head {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.96);
    z-index: 1;
  }

  .sp-form-actions {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.96);
    padding-top: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(15, 23, 42, 0.1);
  }

}
