/* Weekend Watch — Saved + cloud sync */

.sync-card {
  margin: 14px 0 20px;
  padding: 15px 0 17px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sync-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sync-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.06rem;
  font-weight: 700;
}

.sync-status {
  margin-top: 4px;
  color: var(--muted);
  font-size: .76rem;
}

.sync-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

.sync-button,
.watch-button,
.remove-saved-button {
  appearance: none;
  border: 1px solid rgba(23, 23, 23, .4);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  min-height: 34px;
  padding: 7px 11px;
  font: 800 .72rem/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.sync-button.primary,
.watch-button[aria-pressed="true"] {
  border-color: var(--red);
  color: var(--red);
}

.sync-button:disabled {
  opacity: .45;
  cursor: default;
}

.sync-setup {
  margin-top: 13px;
}

.sync-field {
  display: grid;
  gap: 5px;
  margin-top: 10px;
}

.sync-field label {
  color: var(--muted);
  font: 700 .71rem/1.2 Arial, Helvetica, sans-serif;
  text-transform: uppercase;
  letter-spacing: .055em;
}

.sync-input {
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 1px solid rgba(23, 23, 23, .32);
  border-radius: 5px;
  background: rgba(255, 255, 255, .28);
  color: var(--ink);
  padding: 0 10px;
  font: 600 .86rem/1.2 Arial, Helvetica, sans-serif;
}

.sync-input.phrase {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.sync-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.sync-connected {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, .23);
}

.sync-connected-name {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.sync-phrase-mask {
  margin-top: 3px;
  color: var(--muted);
  font: 700 .72rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.sync-help,
.sync-message {
  margin-top: 9px;
  color: var(--muted);
  font-size: .73rem;
  line-height: 1.45;
}

.sync-message {
  min-height: 1.1em;
}

.sync-message.error {
  color: var(--red);
}

.saved-section {
  margin-top: 18px;
}

.saved-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}

.saved-section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 700;
}

.saved-section-count {
  color: var(--muted);
  font-size: .74rem;
}

.saved-item-actions {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 2px;
}

.saved-source {
  grid-column: 2 / -1;
}

.watch-button[aria-pressed="true"]::before {
  content: "✓ ";
}

.saved-watched .release-title {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(23, 23, 23, .35);
}

.saved-watched .poster-shell {
  opacity: .78;
}

.remove-saved-button {
  color: var(--muted);
}

@media (max-width: 520px) {
  .sync-card-head {
    display: block;
  }

  .sync-card-head > .sync-button {
    margin-top: 10px;
  }

  .sync-two-col {
    grid-template-columns: 1fr;
  }

  .saved-item-actions,
  .saved-source {
    grid-column: 2;
  }
}
