.watch-page {
  max-width: 1160px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}

.watch-add {
  display: flex;
  gap: 12px;
  align-items: stretch;
  margin-top: 20px;
  margin-bottom: 8px;
}

.watch-add__field {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}

.watch-add__icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--flowly-text-tertiary, var(--flowly-text-muted, rgba(255, 255, 255, 0.5)));
  pointer-events: none;
}

.watch-add .watch-add__input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 42px;
  background: var(--flowly-bg-elevated, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--flowly-border-subtle, rgba(255, 255, 255, 0.08));
  border-radius: calc(12px * var(--flowly-radius-k));
  color: var(--flowly-text-primary, var(--flowly-text-primary, #f0eff4));
  font-size: calc(14px * var(--flowly-text-k));
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
  box-sizing: border-box;
}

.watch-add .watch-add__input:hover {
  border-color: var(--flowly-border-strong, rgba(255, 255, 255, 0.16));
}
.watch-add__field:focus-within .watch-add__icon {
  color: var(--flowly-accent-primary);
}
.watch-add__field:focus-within .watch-add__input {
  outline: none;
  border-color: var(--flowly-accent-primary, #22c55e);
  background: var(--flowly-bg-glass, rgba(255, 255, 255, 0.06));
  box-shadow: 0 0 0 3px rgb(var(--flowly-accent-primary-rgb) / 0.15);
}

.watch-add__input::placeholder {
  color: var(--flowly-text-tertiary, var(--flowly-text-tertiary, rgba(255, 255, 255, 0.4)));
}

.watch-feedback {
  min-height: 20px;
  margin: 4px 2px 16px;
  font-size: calc(12.5px * var(--flowly-text-k));
  color: var(--flowly-text-tertiary, rgba(255, 255, 255, 0.6));
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.18s, transform 0.18s;
}

.watch-feedback.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.watch-feedback[data-type='success'] { color: var(--flowly-accent-success); }
.watch-feedback[data-type='warn']    { color: var(--flowly-accent-warning); }
.watch-feedback[data-type='error']   { color: var(--flowly-accent-danger); }

.watch-section {
  margin-top: 28px;
}

.watch-section__header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.watch-section__header h2 {
  font-size: calc(15px * var(--flowly-text-k));
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--flowly-text-primary, var(--flowly-text-primary, #f0eff4));
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.watch-section__header h2::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: calc(4px * var(--flowly-radius-k));
  background: var(--flowly-accent-primary, #22c55e);
  box-shadow: 0 0 6px rgb(var(--flowly-accent-primary-rgb) / 0.5);
}

.watch-section__count {
  font-size: calc(12px * var(--flowly-text-k));
  font-weight: 500;
  color: var(--flowly-text-tertiary, var(--flowly-text-muted, rgba(255, 255, 255, 0.5)));
}

.watch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.watch-card {
  position: relative;
  background: var(--flowly-bg-elevated, rgba(14, 15, 20, 0.6));
  border: 1px solid var(--flowly-border-subtle, rgba(255, 255, 255, 0.06));
  border-radius: calc(14px * var(--flowly-radius-k));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 200ms var(--flowly-ease-out, ease), transform 200ms var(--flowly-ease-out, ease), background 200ms ease, box-shadow 200ms ease;
}

.watch-card:hover {
  border-color: var(--flowly-border-strong, rgba(255, 255, 255, 0.18));
  background: var(--flowly-bg-glass, rgba(255, 255, 255, 0.05));
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--flowly-shadow-lg, rgba(0, 0, 0, 0.35));
}

.watch-card.is-watched {
  opacity: 0.55;
}
.watch-card.is-watched .watch-card__title {
  text-decoration: line-through;
  text-decoration-color: var(--flowly-text-muted, rgba(255, 255, 255, 0.3));
  text-decoration-thickness: 1.5px;
}

.watch-card__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--flowly-bg-body);
}

.watch-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.watch-card:hover .watch-card__thumb img {
  transform: scale(1.04);
}

.watch-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.42);
  opacity: 0;
  transition: opacity 0.18s;
  backdrop-filter: blur(2px);
}

.watch-card:hover .watch-card__play {
  opacity: 1;
}

.watch-card__play i,
.watch-card__play svg {
  width: 44px;
  height: 44px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
  transform: scale(0.85);
  transition: transform 0.22s var(--flowly-ease-out, ease);
}

.watch-card:hover .watch-card__play i,
.watch-card:hover .watch-card__play svg {
  transform: scale(1);
}

.watch-card__body {
  padding: 12px 14px 14px;
  flex: 1 1 auto;
}

.watch-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: calc(14px * var(--flowly-text-k));
  line-height: 1.35;
  font-weight: 600;
  color: var(--flowly-text-primary, var(--flowly-text-primary, #f0eff4));
  text-decoration: none;
  transition: color 0.12s;
}

.watch-card__title:hover {
  color: var(--flowly-accent-primary, #22c55e);
}

.watch-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: calc(12px * var(--flowly-text-k));
  color: var(--flowly-text-tertiary, var(--flowly-text-muted, rgba(255, 255, 255, 0.55)));
}

.watch-card__author {
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watch-card__added::before {
  content: '·';
  margin-right: 8px;
  color: var(--flowly-text-tertiary, rgba(255, 255, 255, 0.3));
}

.watch-card__meta > :first-child.watch-card__added::before {
  content: '';
  margin-right: 0;
}

.watch-card__actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.15s;
}

.watch-card:hover .watch-card__actions,
.watch-card:focus-within .watch-card__actions {
  opacity: 1;
}

.watch-card__action {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--flowly-border-strong, rgba(255, 255, 255, 0.18));
  border-radius: calc(8px * var(--flowly-radius-k));
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.12s var(--flowly-ease-out, ease), border-color 0.12s, color 0.12s, transform 0.12s var(--flowly-ease-out, ease);
}

.watch-card__action:hover {
  background: rgba(0, 0, 0, 0.88);
  border-color: rgba(255, 255, 255, 0.32);
  transform: scale(1.08);
}

.watch-card__action i,
.watch-card__action svg {
  width: 14px;
  height: 14px;
}

.watch-card__action--danger:hover {
  color: #fff;
  background: rgba(239, 68, 68, 0.85);
  border-color: rgba(239, 68, 68, 0.95);
}

/* ============ LINK CARDS (generic URL) ============ */
.watch-link-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.watch-link {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--flowly-bg-elevated, rgba(14, 15, 20, 0.6));
  border: 1px solid var(--flowly-border-subtle, rgba(255, 255, 255, 0.06));
  border-radius: calc(12px * var(--flowly-radius-k));
  overflow: hidden;
  transition: border-color 200ms var(--flowly-ease-out, ease), background 200ms ease, transform 200ms var(--flowly-ease-out, ease), box-shadow 200ms ease;
}

.watch-link:hover {
  border-color: var(--flowly-border-strong, rgba(255, 255, 255, 0.18));
  background: var(--flowly-bg-glass, rgba(255, 255, 255, 0.04));
  transform: translateX(2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.watch-link.is-watched {
  opacity: 0.55;
}
.watch-link.is-watched .watch-link__title {
  text-decoration: line-through;
  text-decoration-color: var(--flowly-text-muted, rgba(255, 255, 255, 0.3));
  text-decoration-thickness: 1.5px;
}

.watch-link__main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.watch-link__icon {
  position: relative;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--flowly-bg-glass, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--flowly-border-subtle, rgba(255, 255, 255, 0.06));
  border-radius: calc(8px * var(--flowly-radius-k));
  overflow: hidden;
}

.watch-link__icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.watch-link__icon i,
.watch-link__icon svg {
  position: absolute;
  width: 16px;
  height: 16px;
  color: var(--flowly-text-secondary, rgba(255, 255, 255, 0.55));
  opacity: 0;
  transition: opacity 0.12s;
}

.watch-link__icon--fallback i,
.watch-link__icon--fallback svg {
  opacity: 1;
}

.watch-link__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.watch-link__title {
  font-size: calc(14px * var(--flowly-text-k));
  font-weight: 600;
  color: var(--flowly-text-primary, var(--flowly-text-primary, #f0eff4));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.12s;
}

.watch-link:hover .watch-link__title {
  color: var(--flowly-accent-primary, #22c55e);
}

.watch-link__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: calc(12px * var(--flowly-text-k));
  color: var(--flowly-text-tertiary, var(--flowly-text-muted, rgba(255, 255, 255, 0.5)));
}

.watch-link__host {
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.watch-link__added::before {
  content: '·';
  margin-right: 8px;
  color: var(--flowly-text-tertiary, rgba(255, 255, 255, 0.3));
}

.watch-link__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  opacity: 0;
  transition: opacity 0.15s;
}

.watch-link:hover .watch-link__actions,
.watch-link:focus-within .watch-link__actions {
  opacity: 1;
}
