﻿:root {
  --accent: #10d8c4;
  --accent-hover: #0fc6b4;
  --ink: #111111;
  --panel: #1a1a1a;
  --muted: #666666;
  --line: #dcdcdc;
  --surface: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font-family: Arial, Helvetica, sans-serif;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.app-frame {
  min-height: 100vh;
  padding: 26px 24px 36px;
}

.auth-view {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: center;
  gap: 36px;
  max-width: 980px;
  margin: 0 auto;
}

.auth-view.pricing-step {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

.brand-panel,
.auth-panel {
  border: 1px solid #111111;
  background: #ffffff;
}

.auth-column {
  display: grid;
  gap: 10px;
  align-self: center;
}

.brand-panel {
  min-height: 340px;
  padding: 38px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-panel.pricing-visible {
  min-height: 470px;
  justify-content: flex-start;
  gap: 20px;
}

.auth-panel {
  padding: 24px;
  border: 1px solid #333333;
  border-radius: 6px;
  background: #1a1a1a;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
}

.back-to-plans-btn {
  position: fixed;
  top: 34px;
  left: 32px;
  z-index: 20;
  min-height: 38px;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #000000;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(16, 216, 196, 0.22);
  text-align: center;
}

.back-to-plans-btn::before {
  content: "<";
  margin-right: 8px;
}

.back-to-plans-btn:hover {
  background: #0fbfad;
  color: #000000;
}

.auth-panel,
.auth-panel * {
  font-family: Arial, Helvetica, sans-serif !important;
}

.dashboard-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-logo-bar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(300px, 1fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-logo-card {
  grid-column: 2;
  gap: 18px;
}

.brand-home-link {
  color: inherit;
  text-decoration: none;
}

.corner-logo {
  position: relative;
  min-width: auto;
  padding: 7px 11px;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
  text-align: center;
  white-space: nowrap;
}

.corner-logo::before,
.corner-logo::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 100%;
  pointer-events: none;
}

.corner-logo::before {
  top: 0;
  left: 0;
  border-top: 1.5px solid #111111;
  border-left: 1.5px solid #111111;
}

.corner-logo::after {
  right: 0;
  bottom: 0;
  border-right: 1.5px solid #111111;
  border-bottom: 1.5px solid #111111;
}

.logo-divider {
  width: 1px;
  height: 38px;
  background: #cfcfcf;
}

.wordmark div {
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1;
}

.wordmark span {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8px;
  letter-spacing: 2px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.brand-panel h1 {
  margin: 34px 0 0;
  font-size: 36px;
  font-weight: 700;
}

.auth-panel label {
  color: #cfcfcf;
  font-weight: 500;
}

.auth-panel .auth-tab,
.auth-panel .primary-btn {
  font-weight: 500;
}

.signup-pricing-panel {
  display: grid;
  grid-template-columns: repeat(2, 190px);
  justify-content: center;
  gap: 14px;
  width: min(100%, 420px);
  align-self: center;
  margin-top: 0;
}

.signup-pricing-card {
  display: flex;
  min-height: 315px;
  flex-direction: column;
  padding: 18px;
  border: 1px solid #333333;
  border-radius: 8px;
  background: #121212;
}

.signup-pricing-card.featured {
  border-color: rgba(16, 216, 196, 0.5);
  background: #071817;
}

.signup-pricing-card h2 {
  margin: 0;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
}

.signup-price-line {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-top: 12px;
}

.signup-price-line span {
  color: #bdbdbd;
  font-size: 14px;
}

.signup-price-line strong {
  color: #ffffff;
  font-size: 34px;
  font-weight: 400;
  line-height: 0.9;
}

.signup-pricing-card ul {
  display: grid;
  gap: 9px;
  margin: 22px 0 18px;
  padding: 0;
  color: #cfcfcf;
  font-size: 12px;
  line-height: 1.35;
  list-style: none;
}

.signup-pricing-card li {
  position: relative;
  padding-left: 18px;
}

.signup-pricing-card li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.payment-options {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.payment-option {
  min-height: 36px;
  border: 1px solid rgba(16, 216, 196, 0.45);
  border-radius: 6px;
  background: transparent;
  color: #ffffff;
  font: 700 12px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  cursor: pointer;
}

.payment-option:hover,
.payment-option:focus-visible {
  border-color: var(--accent);
  background: rgba(16, 216, 196, 0.12);
  color: var(--accent);
  outline: none;
}

.account-actions {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  grid-column: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 0;
  min-height: 34px;
  max-width: min(320px, 24vw);
}

.dashboard-upgrade-action {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

.account-email {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #555555;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}

.auth-tab,
.primary-btn,
.ghost-btn,
.save-next-btn,
.ghost-link {
  min-height: 38px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
}

.auth-tab,
.ghost-btn,
.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: #262626;
  color: #ffffff;
}

.auth-tab.active,
.primary-btn,
.save-next-btn {
  background: var(--accent);
  color: #000000;
}

#load-queue-btn {
  min-width: 132px;
  min-height: 44px;
  padding: 0 28px;
}

.import-actions .ghost-link {
  min-width: 90px;
  min-height: 44px;
}

.ghost-btn:hover,
.ghost-btn:focus-visible,
.ghost-link:hover,
.ghost-link:focus-visible {
  background: var(--accent) !important;
  color: #000000 !important;
  border-color: var(--accent) !important;
}

.auth-panel .auth-tab.active,
.auth-panel .primary-btn {
  color: #ffffff;
}

.auth-panel .auth-tab,
.auth-panel .primary-btn {
  min-height: 34px;
}

.primary-btn:hover,
.save-next-btn:hover {
  background: var(--accent-hover);
}

.auth-form,
.auth-form div {
  display: grid;
  gap: 7px;
}

.auth-form {
  gap: 10px;
}

label {
  color: #555555;
  font-size: 12px;
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  background: #eeeeee;
  color: #111111;
  outline: none;
}

input {
  min-height: 42px;
  padding: 10px 12px;
}

.auth-panel input {
  min-height: 36px;
  padding: 8px 10px;
  border-color: #555555;
  background: #222222;
  color: #ffffff;
}

.auth-panel input::placeholder {
  color: #aaaaaa;
}

textarea {
  min-height: 42px;
  max-height: 118px;
  padding: 11px 12px;
  resize: vertical;
}

#import-input {
  min-height: 44px;
  max-height: 44px;
  border-color: #3f3f3f;
  background: #1f1f1f;
  color: #ffffff;
  overflow: hidden;
  resize: none;
}

#import-input::placeholder {
  color: #9f9f9f;
}

.import-fields {
  display: grid;
  gap: 8px;
}

.import-secondary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.import-secondary-row input {
  min-height: 38px;
  padding: 0 11px;
  border-color: #3f3f3f;
  background: #1f1f1f;
  color: #ffffff;
  font-size: 13px;
}

.import-secondary-row input::placeholder {
  color: #777777;
}

.review-view {
  position: relative;
  width: calc(100% + 48px);
  max-width: none;
  min-height: calc(100vh - 26px);
  margin: -26px -24px -36px;
  padding: 0 24px 36px;
  background:
    radial-gradient(circle at 50% 18%, rgba(16, 216, 196, 0.07), transparent 34%),
    linear-gradient(180deg, #101214 0%, #090a0c 100%);
}

.review-view > .dashboard-logo-bar {
  min-height: 76px;
  margin: 0 -24px 0;
  padding: 8px 24px;
  background: #ffffff;
}

.import-bar {
  display: grid;
  grid-template-columns: minmax(360px, 700px);
  justify-content: center;
  gap: 10px;
  margin: 24px auto 18px;
}

.import-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.bookmarklet-link {
  display: none;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 6px;
  background: #1f1f1f;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.review-shell {
  display: grid;
  grid-template-columns: minmax(0, 1380px);
  align-items: start;
  justify-content: center;
  gap: 10px;
  max-width: min(1420px, calc(100vw - 48px));
  margin: 0 auto;
}

.player-panel,
.tag-panel {
  border-radius: 8px;
  background: #f6f6f6;
}

.player-panel {
  background: transparent;
}

.player-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, clamp(340px, 27vw, 390px));
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "player notesPanel"
    "timeline notesPanel"
    "meta meta";
  column-gap: 12px;
  row-gap: 0;
  align-items: stretch;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.player-stage {
  grid-area: player;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid #252a2f;
  border-radius: 8px 8px 0 0;
  background: #050505;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.42);
}

.player-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border: 0;
}

.player-panel.compare-active {
  grid-template-columns: 1fr;
  grid-template-areas:
    "player"
    "meta";
}

.player-panel.compare-active .player-stage {
  aspect-ratio: auto;
  border-radius: 8px;
}

.player-panel.compare-active .timestamp-bar,
.player-panel.compare-active .markers-timeline,
.player-panel.compare-active .notes-panel {
  display: none;
}

.compare-player-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  height: 100%;
}

.compare-player-card {
  display: grid;
  grid-template-rows: auto auto auto minmax(140px, 220px);
  min-width: 0;
  overflow: hidden;
  border: 1px solid #222222;
  border-radius: 8px;
  background: #050505;
}

.compare-player-title {
  overflow: hidden;
  padding: 4px 10px 8px;
  color: #dcdcdc;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-player-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

.compare-frame-line {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 42px;
  padding: 0 52px;
  border-top: 1px solid #1c1c1c;
  background: #050505;
}

.compare-frame-line .markers-track {
  width: 100%;
}

.compare-notes-panel {
  display: flex;
  min-height: 0;
  overflow: hidden;
  border-top: 1px solid #1c1c1c;
  background: #0e0e0e;
  flex-direction: column;
}

.compare-notes-title {
  flex-shrink: 0;
  padding: 8px 10px;
  color: #dcdcdc;
  font-size: 12px;
  font-weight: 700;
}

.compare-notes-list {
  min-height: 0;
  background: #0e0e0e;
}

.compare-notes-empty {
  padding: 12px 10px;
  color: #777777;
  font-size: 12px;
}

.empty-player {
  display: grid;
  height: 100%;
  place-items: center;
  color: #9a9a9a;
  font-size: 14px;
  font-weight: 500;
}

.review-meta {
  grid-area: meta;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "info info"
    "share nav";
  align-items: end;
  gap: 8px 12px;
  padding: 12px 14px;
  border: 1px solid #252a2f;
  border-top: 0;
  background: #14171a;
  color: #f1f3f4;
  border-radius: 0 0 8px 8px;
}

.review-meta > div:first-child {
  grid-area: info;
  min-width: min(100%, 360px);
}

.queue-progress {
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
}

.review-meta h2 {
  margin: 5px 0;
  font-size: 22px;
  font-weight: 500;
}

.project-code {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 2px 0 6px;
  padding: 0 10px;
  border-radius: 5px;
  background: #111111;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

#video-url {
  display: block;
  max-width: 760px;
  overflow: hidden;
  color: #8d979e;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: max-content;
}

.review-nav .ghost-btn {
  border: 1px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.review-nav .ghost-btn:hover,
.review-nav .ghost-btn:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #000000;
  transform: translateY(-1px);
}

.review-nav .ghost-btn:disabled,
.review-nav .ghost-btn:disabled:hover {
  background: #262626;
  border-color: transparent;
  color: #ffffff;
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.public-share-panel {
  grid-area: share;
  display: grid;
  grid-template-columns: 420px auto auto;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  padding: 6px;
  border: 1px solid #3a3a3a;
  border-radius: 7px;
  background: #141414;
}

.public-share-panel input {
  width: 100%;
  max-width: 420px;
  min-height: 32px;
  min-width: 0;
  padding: 6px 9px;
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  background: #0e0e0e;
  color: #ffffff;
  font-size: 12px;
}

.public-share-panel .ghost-btn {
  min-height: 32px;
  padding: 0 10px;
  font-size: 11px;
  white-space: nowrap;
}

.guest-account-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.dashboard-upgrade-btn,
.account-sign-out {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 12px;
  white-space: nowrap;
}

.guest-mode .account-email,
.guest-mode .account-sign-out {
  display: none;
}

.public-share-options {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: flex-start;
}

.share-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid #343434;
  border-radius: 999px;
  background: #1d1d1d;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.share-option:hover,
.share-option:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #000000;
}

@media (max-width: 820px) {
  .review-meta {
    grid-template-columns: 1fr;
    grid-template-areas:
      "info"
      "share"
      "nav";
  }

  .review-nav {
    justify-content: flex-start;
    min-width: 0;
  }

  .public-share-panel {
    grid-template-columns: minmax(180px, 1fr) auto;
    width: 100%;
  }

  .public-share-options {
    grid-column: 1 / -1;
    flex-wrap: wrap;
  }
}

.primary-btn.active {
  box-shadow: 0 0 0 2px #111111 inset;
}

.tag-panel {
  position: sticky;
  top: 18px;
  z-index: 6;
  width: auto;
  padding: 12px;
  border: 1px solid #4a4a4a;
  background: #1c1c1c;
  box-shadow: none;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.panel-actions {
  display: flex;
  gap: 6px;
}

.panel-head h2 {
  margin: 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.compact-btn {
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 11px;
}

.selected-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 0;
  margin: 8px 0;
}

.selected-tags button,
.tag-chip {
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid #4a4a4a;
  border-radius: 5px;
  background: #333333;
  color: #dddddd;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}

.selected-tags button {
  position: relative;
  border-color: #4a4a4a;
  background: #333333;
  color: #ffffff;
  padding: 7px 23px 7px 10px;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.selected-tags button::after {
  content: "x";
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid #111111;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.selected-tags button:hover,
.selected-tags button:focus-visible {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: #000000;
  box-shadow: 0 0 0 2px rgba(16, 216, 196, 0.22);
  transform: translateY(-1px);
}

.selected-tags button:hover::after,
.selected-tags button:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.custom-tag-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  margin: 0;
}

.tag-input-wrap {
  position: relative;
}

.tag-panel input {
  min-height: 42px;
  border-color: #4d4d4d;
  background: #242424;
  color: #ffffff;
  font-size: 18px;
}

.tag-panel input::placeholder {
  color: #9b9b9b;
}

.preset-tags {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 8;
  overflow: hidden;
  border: 1px solid #4d4d4d;
  border-radius: 5px;
  background: #202020;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.32);
}

.preset-tags button {
  display: block;
  width: 100%;
  min-height: 32px;
  padding: 7px 9px;
  border: 0;
  border-bottom: 1px solid #333333;
  background: #202020;
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
}

.preset-tags button:hover {
  background: #303030;
}

.save-next-btn {
  width: 100%;
  min-height: 34px;
  margin-top: 6px;
}

.tag-panel #add-custom-tag-btn {
  min-height: 38px;
  background: var(--accent);
  color: #000000;
}

.tag-panel #add-custom-tag-btn:hover {
  background: var(--accent-hover);
  color: #000000;
}

.status-line {
  min-height: 20px;
  margin: 12px 0 0;
  color: #555555;
  font-size: 13px;
  font-weight: 500;
}

.review-view .status-line {
  color: #8d979e;
}

.status-line.error {
  color: #c62828;
}

.status-line.limit {
  color: #6f6f6f;
}

.status-line.success {
  color: #00866f;
}

.review-view .status-line.success {
  color: var(--accent);
}

.paypal-confirmation {
  position: absolute;
  top: 112px;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: center;
  width: min(760px, calc(100% - 48px));
  max-width: 760px;
  margin: 0;
  padding: 14px 16px;
  transform: translateX(-50%);
  border: 1px solid rgba(0, 112, 186, 0.72);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 112, 186, 0.18), rgba(0, 48, 135, 0.16));
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(0, 48, 135, 0.18);
}

.paypal-mark {
  grid-row: span 2;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 6px;
  background: #ffc439;
  color: #003087;
  font-size: 12px;
  font-weight: 900;
}

.paypal-confirmation strong {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.1;
}

.paypal-confirmation p {
  margin: 0;
  color: #cfdff5;
  font-size: 13px;
  line-height: 1.35;
}

.paypal-confirmation.success {
  border-color: rgba(0, 156, 222, 0.82);
  background: linear-gradient(135deg, rgba(0, 112, 186, 0.2), rgba(0, 156, 222, 0.14));
}

.paypal-confirmation.pending {
  border-color: rgba(255, 196, 57, 0.65);
}

.paypal-confirmation.error {
  border-color: rgba(255, 107, 107, 0.7);
  background: rgba(64, 18, 22, 0.7);
}

.paypal-confirmation.error .paypal-mark {
  background: #ff6b6b;
  color: #1a0606;
}

.limit-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.48);
}

.limit-modal-card {
  width: min(420px, 100%);
  border-radius: 8px;
  background: #191919;
  color: #ffffff;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.limit-lock {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 50%;
  background: rgba(16, 216, 196, 0.12);
  color: var(--accent);
  font-size: 18px;
}

.limit-modal-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
}

.limit-modal-card p {
  margin: 0;
  color: #dddddd;
  font-size: 14px;
  line-height: 1.5;
}

.limit-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.limit-modal-actions .primary-btn,
.limit-modal-actions .ghost-btn {
  flex: 1;
  text-decoration: none;
}

.limit-modal-actions .primary-btn {
  gap: 7px;
}

.share-expiry-card {
  position: relative;
  border: 1px solid rgba(16, 216, 196, 0.42);
}

.share-expiry-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  background: #111111;
  color: #ffffff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.share-expiry-close:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #000000;
}

.share-expiry-kicker {
  margin-bottom: 10px !important;
  color: var(--accent) !important;
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.queue-strip {
  max-width: 1420px;
  margin-top: 10px;
  margin-right: auto;
  margin-left: auto;
}

.version-compare-row {
  display: flex;
  justify-content: flex-start;
  margin: 10px 0 0;
}

.version-compare-row .ghost-btn {
  min-height: 36px;
  padding: 0 14px;
}

.queue-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.queue-entry {
  display: grid;
  gap: 6px;
}

.queue-item {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 7px;
  background: #1a1a1a;
  color: #ffffff;
  cursor: pointer;
}

.queue-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 2;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.78);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.queue-remove:hover {
  background: var(--accent);
  color: #000000;
}

.queue-item.active {
  border-color: var(--accent);
}

.queue-item.compare-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(28, 208, 192, 0.45), 0 0 18px rgba(28, 208, 192, 0.28);
}

.queue-item.compare-selected::after {
  content: "Selected";
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 3;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #000000;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.queue-item.saved {
  opacity: 0.55;
}

.queue-item img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #050505;
}

.queue-item > span:not(.queue-remove) {
  display: block;
  overflow: hidden;
  padding: 8px;
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-version-label {
  overflow: hidden;
  color: #c8d0d5;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1040px) {
  .player-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "player"
      "timeline"
      "notesPanel"
      "meta";
    column-gap: 0;
  }

  .player-stage {
    border-radius: 8px 8px 0 0;
  }

  .player-panel .timestamp-bar {
    border-top: 1px solid #2a2a2a;
    border-top-right-radius: 0;
  }

  .notes-panel {
    max-height: none;
    border-radius: 0;
  }
}

@media (max-width: 980px) {
  .auth-view,
  .review-shell,
  .import-bar {
    grid-template-columns: 1fr;
  }

  .player-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "player"
      "timeline"
      "notesPanel"
      "meta";
  }

  .player-stage {
    border-radius: 8px 8px 0 0;
  }

  .player-panel .timestamp-bar {
    border-top: 1px solid #2a2a2a;
    border-top-right-radius: 0;
  }

  .notes-panel {
    max-height: none;
    border-left: 0;
    border-radius: 0;
  }

  .dashboard-upgrade-action,
  .account-actions {
    position: static;
    transform: none;
    margin-top: 14px;
    align-items: center;
    max-width: min(100%, 360px);
  }

  .dashboard-logo-bar {
    display: flex;
    flex-direction: column;
  }

  .dashboard-logo-card {
    grid-column: auto;
  }

  .signup-pricing-panel {
    grid-template-columns: 1fr;
  }

  .account-actions {
    position: static;
    max-width: 100%;
    transform: none;
    align-items: center;
  }

  .tag-panel {
    position: static;
  }

  .review-meta,
  .review-nav,
  .import-actions {
    flex-wrap: wrap;
  }

  .import-secondary-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .queue-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .app-frame {
    padding: 18px 12px 28px;
  }

  .review-view {
    width: calc(100% + 24px);
    min-height: calc(100vh - 18px);
    margin: -18px -12px -28px;
    padding: 0 12px 28px;
  }

  .review-view > .dashboard-logo-bar {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .shared-view {
    padding-right: 12px;
    padding-left: 12px;
  }

  .shared-view-header {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .dashboard-logo-card {
    gap: 10px;
  }

  .corner-logo {
    min-width: auto;
    font-size: 12px;
  }

  .wordmark div {
    font-size: 18px;
  }

  .wordmark span {
    font-size: 7px;
    letter-spacing: 1px;
  }

  .queue-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compare-player-grid {
    grid-template-columns: 1fr;
  }
}

/* â”€â”€ Timestamp bar & notes â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.timestamp-bar {
  order: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #111111;
  border-radius: 8px;
}

.notes-panel {
  grid-area: notesPanel;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: stretch;
  min-width: 0;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  border: 1px solid #252a2f;
  background: #0e1012;
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.34);
}

.player-panel .timestamp-bar {
  align-items: center;
  min-height: 58px;
  border-left: 0;
}

.player-panel .current-timestamp {
  width: fit-content;
}


.player-panel .note-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  flex: 1;
  width: 100%;
  min-width: 0;
}

.timestamp-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.current-timestamp {
  flex-shrink: 0;
  min-width: 76px;
  padding: 5px 10px;
  border-radius: 5px;
  background: #1f1f1f;
  border: 1px solid #3a3a3a;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  text-align: center;
}

.note-input-row {
  display: flex;
  flex: 1;
  gap: 8px;
}

.note-input-row input {
  flex: 1;
  min-height: 36px;
  padding: 7px 11px;
  border-color: #3a3a3a;
  background: #1a1a1a;
  color: #ffffff;
  font-size: 13px;
}

.note-input-row input::placeholder {
  color: #666666;
}

.note-input-row input:disabled,
.note-input-row .ghost-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.note-input-row .ghost-btn {
  min-height: 30px;
  padding: 0 9px;
  font-size: 11px;
  white-space: nowrap;
}

.shared-queue-strip {
  margin-top: 8px;
}

.shared-version-compare-row {
  justify-content: flex-start;
  margin-bottom: 10px;
}

.shared-queue-list {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.shared-queue-item .queue-remove {
  display: none;
}

.shared-queue-item.unavailable {
  cursor: default;
  opacity: 0.55;
}

.shared-queue-version-label {
  color: #c8d0d5;
}

.shared-queue-item.active + .shared-queue-version-label {
  color: var(--accent);
}

#save-note-btn {
  min-width: 58px;
}

.notes-list {
  order: 2;
  display: flex;
  flex-direction: column-reverse;
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background: #0e0e0e;
}

.notes-list:empty {
  background:
    linear-gradient(180deg, rgba(16, 216, 196, 0.035), transparent 42%),
    #0e1012;
}

.note-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 8px 14px;
  border-bottom: 1px solid #1e1e1e;
}

.note-item:last-child {
  border-bottom: none;
}

@media (max-width: 1040px) {
  .player-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "player"
      "timeline"
      "notesPanel"
      "meta";
    column-gap: 0;
  }

  .player-stage {
    border-radius: 8px 8px 0 0;
  }

  .player-panel .timestamp-bar {
    border-top: 1px solid #2a2a2a;
    border-top-right-radius: 0;
  }

  .notes-panel {
    height: auto;
    max-height: none;
    border-radius: 0;
  }
}

.note-timestamp {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 4px;
  background: #1c1c1c;
  border: 1px solid #2e2e2e;
  color: var(--accent);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.note-timestamp:hover {
  background: var(--accent);
  color: #000000;
  border-color: var(--accent);
}

.note-text {
  max-width: 100%;
  color: #cccccc;
  font-size: 12px;
  line-height: 1.4;
  padding-top: 2px;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.note-body {
  display: grid;
  flex: 1;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.note-text-action {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  padding: 6px 8px;
  border: 1px solid #1f1f1f;
  border-radius: 5px;
  appearance: none;
  background: #111111;
  color: #cccccc;
  cursor: text;
  font-family: inherit;
  text-align: left;
  overflow-wrap: anywhere;
  white-space: normal;
}

.note-text-action:hover {
  background: #171717;
  color: #ffffff;
}

.note-reply {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 5px 8px;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 2px solid var(--accent);
  background: #151515;
  color: #e7e7e7;
  cursor: text;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.note-reply-client {
  padding: 6px 10px;
  border-left-color: var(--accent);
  border-radius: 5px;
  background: rgba(16, 216, 196, 0.14);
  color: #ffffff;
}

button.note-reply:hover {
  background: #1b1b1b;
  color: #ffffff;
}

button.note-reply-client:hover {
  background: rgba(16, 216, 196, 0.2);
}

.note-reply-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
}

.note-reply-input {
  min-width: 0;
  min-height: 32px;
  padding: 6px 9px;
  border-color: #3a3a3a;
  background: #171717;
  color: #ffffff;
  font-size: 12px;
}

.note-reply-input::placeholder {
  color: #777777;
}

.note-reply-btn {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  background: #1d1d1d;
  color: #eeeeee;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.note-reply-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #000000;
}

.client-reply-toggle {
  width: fit-content;
  margin-top: 4px;
}

.marker-note-item .note-timestamp {
  border-color: #ffcc00;
  color: #ffcc00;
}

.marker-note-item .note-text {
  color: #ffdf69;
  font-weight: 700;
}

.notes-header {
  order: 1;
  grid-area: notesHeader;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px;
  background: #0e0e0e;
  border-top: 1px solid #1e1e1e;
}

.notes-count {
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.notes-refresh-btn {
  display: inline-grid;
  width: 28px;
  height: 26px;
  place-items: center;
  border: 1px solid #333333;
  border-radius: 5px;
  background: #171717;
  color: var(--accent);
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.notes-refresh-btn:hover,
.notes-refresh-btn:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #000000;
  transform: translateY(-1px);
}

.notes-refresh-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}
.shared-notes-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(16, 216, 196, 0.07);
  border-top: 1px solid rgba(16, 216, 196, 0.2);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

/* â”€â”€ Shared (public) view â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.shared-view {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 24px 36px;
  background:
    radial-gradient(circle at 50% 18%, rgba(16, 216, 196, 0.07), transparent 34%),
    linear-gradient(180deg, #101214 0%, #090a0c 100%);
}

.shared-view-header {
  min-height: 76px;
  margin: 0 -24px 24px;
  padding: 8px 24px;
  background: #ffffff;
  display: flex;
  justify-content: center;
}

.shared-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, clamp(340px, 27vw, 390px));
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "player notesPanel"
    "timeline notesPanel"
    "meta meta";
  column-gap: 12px;
  align-items: stretch;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.shared-shell,
.shared-queue-strip {
  max-width: 1420px;
  margin-right: auto;
  margin-left: auto;
}

.shared-player-wrap {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-rows: auto auto auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

#shared-player-stage {
  grid-area: auto;
  min-width: 0;
  max-width: 100%;
}

.shared-frame-timeline {
  display: block;
  border-top: 1px solid #1e1e1e;
  border-radius: 0;
}

.shared-player-wrap .shared-frame-timeline,
.shared-player-wrap .shared-video-meta {
  grid-area: auto;
}

.shared-shell.shared-compare-active {
  grid-template-columns: 1fr;
  grid-template-areas:
    "player"
    "meta";
}

.shared-shell.shared-compare-active .shared-player-wrap {
  grid-column: 1;
}

.shared-shell.shared-compare-active #shared-player-stage {
  aspect-ratio: auto;
  border-radius: 8px;
}

.shared-shell.shared-compare-active .shared-frame-timeline,
.shared-shell.shared-compare-active .shared-notes-panel {
  display: none;
}

.shared-compare-player-grid {
  height: auto;
}

.shared-note-bar {
  order: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #111111;
  border-top: 1px solid #1e1e1e;
  flex-shrink: 0;
}

.shared-note-bar .note-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  flex: 1;
  min-width: 0;
}

.shared-update-row {
  order: 4;
  display: flex;
  justify-content: flex-end;
  padding: 10px 14px;
  background: #111111;
  border-top: 1px solid #1e1e1e;
  flex-shrink: 0;
}

.shared-update-row .ghost-btn {
  min-width: 92px;
  min-height: 34px;
}

.shared-video-meta {
  grid-area: meta;
  padding: 14px 18px;
  border: 1px solid #252a2f;
  border-top: 0;
  background: #14171a;
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  font-weight: 500;
  color: #dce2e5;
}

.shared-version-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
  min-height: 32px;
  margin-bottom: 8px;
  padding: 0 12px;
  border-radius: 5px;
  background: #111111;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.shared-version-label span {
  color: #9a9a9a;
  font-size: 11px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.shared-version-label strong {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  word-break: break-word;
}

.shared-notes-panel {
  grid-area: notesPanel;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  height: auto;
  max-height: none;
  border-radius: 8px;
  border: 1px solid #2e2e2e;
  background: #141414;
  overflow: hidden;
}

.shared-notes-label {
  order: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #1c1c1c;
  border-bottom: 1px solid #2a2a2a;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.shared-notes-list {
  order: 2;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  background: #111111;
}

@media (min-width: 1041px) {
  .notes-panel,
  .shared-notes-panel {
    contain: size;
  }
}

.shared-empty {
  padding: 24px 14px;
  color: #555555;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1040px) {
  .shared-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "player"
      "timeline"
      "notesPanel"
      "meta";
    column-gap: 0;
  }

  .shared-notes-panel {
    position: static;
    height: auto;
    max-height: none;
    border-radius: 0;
  }

  .shared-note-bar {
    border-top: 1px solid #2a2a2a;
  }
}

/* â”€â”€ Markers â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.marker-btn {
  flex-shrink: 0;
  min-height: 36px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  background: #1a1a1a;
  border: 1px solid #4a4a4a;
  color: #ffcc00;
  white-space: nowrap;
}

.marker-btn:hover {
  background: #ffcc00;
  color: #000000;
  border-color: #ffcc00;
}

.markers-timeline {
  grid-area: timeline;
  position: relative;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 10px 46px 12px;
  background: #0d0d0d;
  border-top: 1px solid #1e1e1e;
  cursor: pointer;
}


.frame-track-btn {
  position: absolute;
  top: 50%;
  width: 28px;
  height: 24px;
  transform: translateY(-50%);
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  background: #1a1a1a;
  color: var(--accent);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  z-index: 3;
}

.frame-track-btn-left {
  left: 10px;
}

.frame-track-btn-right {
  right: 10px;
}

.frame-track-btn:hover,
.frame-track-btn:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #000000;
}

.frame-track-btn:disabled,
.frame-track-btn:disabled:hover {
  background: #1a1a1a;
  border-color: #3a3a3a;
  color: var(--accent);
  cursor: not-allowed;
  opacity: 0.45;
}
.markers-track {
  position: relative;
  height: 4px;
  border-radius: 2px;
  background: #2a2a2a;
}

.markers-playhead {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 2px;
  height: 12px;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 1px;
  pointer-events: none;
  transition: left 0.25s linear;
}

.marker-pin {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffcc00;
  border: 2px solid #000000;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
  z-index: 2;
}

.marker-pin:hover {
  transform: translate(-50%, -50%) scale(1.5);
  background: #ff4444;
}

.marker-pin-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 4px;
  background: #1a1a1a;
  border: 1px solid #3a3a3a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.marker-pin:hover .marker-pin-tooltip {
  opacity: 1;
}

.marker-pin-delete {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #c62828;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: none;
  cursor: pointer;
  padding: 0;
}

.marker-pin:hover .marker-pin-delete {
  display: flex;
}

/* â”€â”€ Drawing mode â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.drawing-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  z-index: 5;
  border-radius: 8px 8px 0 0;
  display: none;
  touch-action: none; /* Required for Pointer Events on touch screens */
}

.drawing-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #111111;
  border: 1px solid #2a2a2a;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
}

.color-swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #444444;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.color-swatch.active,
.color-swatch:hover {
  border-color: #ffffff;
  transform: scale(1.25);
}

.toolbar-sep {
  display: inline-block;
  width: 1px;
  height: 20px;
  background: #333333;
  margin: 0 4px;
  flex-shrink: 0;
}

.toolbar-btn {
  min-height: 28px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
}

.marker-btn.active {
  background: #ffcc00 !important;
  color: #000000 !important;
  border-color: #ffcc00 !important;
}







.site-footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  margin: 0;
  padding: 24px max(18px, calc((100vw - 1180px) / 2)) 34px;
  border-top: 0;
  background: #090b0c;
  color: #a9b4b7;
  font-size: 13px;
  font-weight: 800;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: max(18px, calc((100vw - 1180px) / 2));
  right: max(18px, calc((100vw - 1180px) / 2));
  height: 1px;
  background: #2d3638;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.legal-body {
  min-height: 100vh;
  background: #090b0c;
  color: #ffffff;
}

.legal-main {
  width: min(880px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(46px, 7vw, 82px) 0;
}

.legal-page {
  border: 1px solid #2d3638;
  border-radius: 8px;
  background: #111516;
  padding: clamp(26px, 5vw, 48px);
}

.legal-brand {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 30px;
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 1px;
}

.legal-brand span {
  color: #a9b4b7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.legal-page h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

.legal-updated {
  margin: 12px 0 30px;
  color: #a9b4b7;
  font-size: 13px;
  font-weight: 800;
}

.legal-page h2 {
  margin: 26px 0 8px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1.2;
}

.legal-page p {
  margin: 0 0 12px;
  color: #dce5e7;
  font-size: 14px;
  line-height: 1.55;
}

.legal-page a:not(.legal-brand) {
  color: var(--accent);
}

@media (max-width: 700px) {
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .timestamp-bar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .player-panel .note-input-row {
    flex-basis: 100%;
    width: 100%;
  }
}







