@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");
:root {
  --bg: #07181b;
  --surface: #0d2428;
  --surface-2: #123238;
  --mint: #89c0b6;
  --teal: #448c8a;
  --cream: #e4f1e1;
  --muted: #8eaaab;
  --line: rgba(137, 192, 182, 0.16);
  font-family: "DM Sans", sans-serif;
  color: var(--cream);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
}
body {
  background:
    radial-gradient(
      circle at 12% -10%,
      rgba(68, 140, 138, 0.25),
      transparent 32rem
    ),
    radial-gradient(
      circle at 100% 20%,
      rgba(137, 192, 182, 0.1),
      transparent 30rem
    ),
    var(--bg);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button {
  -webkit-tap-highlight-color: transparent;
}
h1,
h2 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -1.8px;
}
h1,
h2:focus {
  outline: none;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1;
  margin: 0;
}
.app-shell {
  min-height: 100vh;
}
.topbar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(18px, 5vw, 72px);
  background: rgba(7, 24, 27, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand {
  font: 700 1.35rem "Space Grotesk";
  letter-spacing: -1px;
  color: var(--cream);
}
.brand span {
  color: var(--mint);
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px !important;
}
.nav-pill,
.profile-pill {
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.nav-pill:hover {
  color: var(--cream);
  background: rgba(137, 192, 182, 0.1);
}
.profile-pill {
  color: var(--bg);
  background: var(--mint);
}
.content-wrap {
  width: min(1180px, 100%);
  margin: auto;
  padding: clamp(28px, 5vw, 64px) clamp(18px, 5vw, 72px) 90px;
  padding-bottom: 0px;
}
.login-page {
  min-height: calc(100dvh - 72px);
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
  align-content: center;
}
.login-page:before {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  border: 1px solid rgba(137, 192, 182, 0.13);
  border-radius: 50%;
  top: -260px;
  right: -190px;
  box-shadow:
    0 0 0 70px rgba(137, 192, 182, 0.04),
    0 0 0 140px rgba(137, 192, 192, 0.025);
}
.login-card {
  width: min(100%, 430px);
  padding: clamp(26px, 5vw, 40px);
  background: linear-gradient(
    145deg,
    rgba(18, 50, 56, 0.95),
    rgba(13, 36, 40, 0.95)
  );
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.3);
  position: relative;
}
.eyebrow {
  color: var(--mint);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.7px;
  margin-bottom: 11px;
}
.login-card h1 {
  font-size: 2.3rem;
  margin: 0 0 12px;
}
.login-card h1 span {
  color: var(--mint);
}
.muted {
  color: var(--muted);
  line-height: 1.6;
}
.login-card label {
  display: grid;
  gap: 7px;
  margin-top: 18px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cream);
}
.login-card input,
.search {
  width: 100%;
  padding: 13px 14px;
  color: var(--cream);
  background: rgba(7, 24, 27, 0.72);
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: 0;
}
.login-card input:focus,
.search:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(137, 192, 182, 0.12);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}
.button:hover {
  transform: translateY(-1px);
}
.primary {
  color: var(--bg);
  background: var(--mint);
}
.wide {
  width: 100%;
  margin-top: 24px;
  padding: 14px;
}
.ghost {
  color: var(--cream);
  background: rgba(137, 192, 182, 0.11);
}
.small {
  padding: 8px 11px;
  font-size: 0.75rem;
}
.danger {
  color: #f0a7a0;
  background: rgba(205, 93, 83, 0.12);
}
.login-note {
  margin-top: 22px;
  color: var(--muted);
  text-align: center;
  font-size: 0.72rem;
}
.login-note span {
  color: #65c397;
}
.alert {
  margin-top: 17px;
  padding: 11px 12px;
  color: #ffb1a7;
  background: rgba(205, 93, 83, 0.12);
  border: 1px solid rgba(205, 93, 83, 0.2);
  border-radius: 10px;
  font-size: 0.78rem;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.page-heading.compact {
  align-items: center;
}
.page-heading h1 {
  color: var(--cream);
}
.live-dot {
  color: #65c397;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.live-dot:before,
.status-dot {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #65c397;
  box-shadow: 0 0 0 5px rgba(101, 195, 151, 0.12);
}
.count-badge {
  padding: 8px 11px;
  color: var(--mint);
  background: rgba(137, 192, 182, 0.1);
  border-radius: 999px;
  font-size: 0.72rem;
  white-space: nowrap;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  margin-bottom: 34px !important;
}
.category-card {
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 16px;
  color: var(--cream);
  text-align: left;
  background: linear-gradient(
    145deg,
    rgba(18, 50, 56, 0.9),
    rgba(13, 36, 40, 0.9)
  );
  border: 1px solid var(--line);
  border-radius: 17px;
  cursor: pointer;
  transition: 0.2s;
}
.category-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
}
.category-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--bg);
  background: var(--mint);
  border-radius: 11px;
}
.category-name {
  flex: 1;
  line-height: 1.25;
}
.category-arrow {
  color: var(--mint);
  font-size: 1.25rem;
}
.category-card span:nth-child(2) {
  font: 600 1.05rem "Space Grotesk";
}
.back-link {
  display: inline-block;
  margin-bottom: 25px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 700;
}
.search {
  max-width: 430px;
  margin-bottom: 18px;
  margin-top: 0px !important;
  background: var(--surface);
}
.channel-list {
  display: grid;
  gap: 7px;
  margin-bottom: 34px !important;
}
.channel-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 11px 13px;
  color: var(--cream);
  text-align: left;
  background: rgba(13, 36, 40, 0.75);
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
}
.channel-row:hover {
  background: var(--surface-2);
}
.channel-logo {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  color: var(--bg);
  background: var(--mint);
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.7rem;
  font-weight: 700;
}
.channel-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.channel-copy {
  display: grid;
  flex: 1;
  gap: 4px;
}
.channel-copy small {
  color: var(--muted);
  font-size: 0.68rem;
}
.chevron {
  color: var(--mint);
  font-size: 1.5rem;
}
.detail-hero {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}
.detail-hero > div {
  min-width: 0;
}
.detail-hero h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  overflow-wrap: anywhere;
}
.detail-subtitle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 0.85rem;
}
.panel,
.account-card {
  padding: 17px;
  padding-bottom: 15px;
  margin-bottom: 16px;
  background: rgba(13, 36, 40, 0.78);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.external-stream-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 18px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(
      circle at 8% 12%,
      rgba(137, 192, 182, 0.2),
      transparent 40%
    ),
    linear-gradient(140deg, #123238, #0b2024);
}
.external-stream-play {
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  cursor: pointer;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  color: var(--bg);
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(137, 192, 182, 0.1);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease;
}
.external-stream-play:hover {
  transform: scale(1.04);
  box-shadow: 0 0 0 9px rgba(137, 192, 182, 0.15);
}
.external-stream-play:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 8px;
}
.external-stream-play svg {
  width: 44%;
  height: 44%;
  margin-left: 0%;
}
.external-stream-play-label {
  color: var(--mint);
  font-size: 0.85rem;
  font-weight: 700;
}
.external-stream-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.vlc-label-mobile {
  display: none;
}
html[data-vlc-device="ios"] .vlc-label-mobile,
html[data-vlc-device="android"] .vlc-label-mobile {
  display: inline;
}
html[data-vlc-device="ios"] .vlc-label-desktop,
html[data-vlc-device="android"] .vlc-label-desktop {
  display: none;
}
.external-stream-message {
  color: var(--mint);
  font-size: 0.85rem;
  margin: 0;
  text-align: center;
}
.external-stream-message[hidden],
.external-stream-select[hidden],
.copy-select[hidden],
.copy-status[hidden] {
  display: none;
}
.external-stream-select {
  width: min(100%, 620px);
  padding: 10px 12px;
  color: var(--cream);
  background: var(--bg);
  border: 1px solid var(--mint);
  border-radius: 8px;
  font-size: 0.78rem;
}
@media (max-width: 600px) {
  .external-stream-card {
    padding: 18px 12px;
  }
  .external-stream-actions {
    width: 100%;
  }
  .external-stream-actions .button {
    flex: 1;
  }
  .external-stream-play {
    width: 92px;
    height: 92px;
  }
  .external-stream-play-label {
    text-align: center;
  }
  .external-stream-select {
    max-width: 100%;
  }
  .external-stream-actions {
    gap: 8px;
  }
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 13px;
}
.section-title h2 {
  margin: 0;
  font-size: 1.35rem;
}
.link-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.link-row div:first-child {
  display: grid;
  min-width: 0;
  gap: 5px;
}
.link-row strong {
  font-size: 0.82rem;
}
.link-row code {
  max-width: 55vw;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.68rem;
}
.link-actions,
.share-item-actions {
  display: flex;
  gap: 6px;
}
.share-created {
  display: grid;
  gap: 6px;
  padding: 17px;
  color: var(--cream);
  background: rgba(137, 192, 182, 0.1);
  border: 1px solid rgba(137, 192, 182, 0.32);
  border-radius: 14px;
  font-size: 0.8rem;
}
.share-created input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  color: var(--cream);
  font-size: 0.8rem;
}
.copy-select {
  width: min(100%, 620px);
  padding: 9px 11px;
  border: 1px solid var(--mint);
  border-radius: 8px;
  color: var(--cream);
  background: var(--bg);
  font-size: 0.76rem;
}
.copy-status {
  color: var(--mint);
  font-size: 0.75rem;
  line-height: 1.45;
}
.link-row small {
  color: var(--muted);
  font-size: 0.7rem;
}
.share-created-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.share-created small {
  color: var(--muted);
}
.share-created time {
  color: var(--mint);
}
.share-panel {
  border-color: rgba(137, 192, 182, 0.28);
}
.share-panel .section-title {
  margin-bottom: 0;
}
.share-panel .section-title:has(+ .share-form),
.share-panel .section-title:has(+ .share-created) {
  margin-bottom: 16px;
}
.share-form {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.share-form label {
  display: block;
  margin-bottom: 9px;
  font-weight: 700;
  font-size: 0.8rem;
}
.share-form-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.share-form-controls .search {
  width: auto;
  max-width: none;
  margin: 0;
  min-width: 135px;
}
.share-form-note {
  margin: 12px 0 0;
  font-size: 0.75rem;
}
.loading-card,
.empty-card,
.unavailable-card {
  padding: 28px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 15px;
}
.not-found {
  max-width: 580px;
  margin: 12vh auto;
}
.account-card {
  max-width: 600px;
}
.account-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.account-status div {
  display: grid;
  gap: 4px;
}
.account-status small,
.metrics span,
.share-item small {
  color: var(--muted);
  font-size: 0.68rem;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.metrics div {
  display: grid;
  gap: 5px;
}
.metrics b {
  font: 700 1.65rem "Space Grotesk";
}
.account-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 19px;
  font-size: 0.78rem;
}
.account-details span {
  color: var(--muted);
}
.public-watch {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
}
.public-watch.watch-ready .page-heading {
  margin-bottom: 18px;
}
.share-expiry {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}
.share-expiry time {
  color: var(--mint);
  font-weight: 600;
}
.public-watch.watch-entry {
  padding-top: 0;
}
.share-list {
  display: grid;
  gap: 9px;
}
.share-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px;
  background: rgba(13, 36, 40, 0.78);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.share-item > div:first-child {
  display: grid;
  gap: 5px;
}
.blazor-error-boundary {
  margin: 20px;
  padding: 15px;
  color: #ffb1a7;
  background: rgba(205, 93, 83, 0.15);
  border: 1px solid rgba(205, 93, 83, 0.25);
  border-radius: 12px;
}
@media (max-width: 600px) {
  .topbar {
    height: 64px;
    padding: 0 16px;
  }
  .content-wrap {
    padding-top: 30px;
  }
  .nav-pill {
    display: none;
  }
  .profile-pill {
    padding: 8px 11px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 2.1rem;
  }
  .category-grid {
    grid-template-columns: 1fr 1fr;
  }
  .category-card {
    min-height: 58px;
    padding: 12px 13px;
  }
  .category-card span:nth-child(2) {
    font-size: 0.9rem;
  }
  .link-row,
  .share-item {
    align-items: flex-start;
    flex-direction: column;
  }
  .link-row {
    gap: 10px;
  }
  .link-actions,
  .share-item-actions {
    width: 100%;
  }
  .link-actions .button,
  .share-item-actions .button {
    flex: 1;
  }
  .link-row code {
    max-width: 88vw;
  }
  .public-watch {
    width: 100%;
    padding: 0;
  }
}
