/* =========================================================
   Gaudau.lt – community (accounts, feed, tops, season, sponsors)
   ========================================================= */

/* ---------- Header account ---------- */
.cm-account {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.cm-account-btn,
.cm-account-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--green-line);
  background-color: var(--green-soft);
  color: var(--green-bright);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.cm-account-btn svg {
  width: 16px;
  height: 16px;
}

.cm-account-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cm-account-name {
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-strong);
}

.cm-account-logout {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--muted);
}

.cm-account-btn:hover,
.cm-account-logout:hover {
  border-color: var(--green);
  color: var(--text-strong);
}

@media (max-width: 900px) {
  .cm-account {
    margin-left: auto;
  }

  .cm-account-btn span,
  .cm-account-name {
    display: none;
  }

  .cm-account-btn {
    padding: 0.5rem;
  }
}

/* ---------- Layout & panels ---------- */
.cm-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

@media (min-width: 900px) {
  .cm-layout {
    grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  }

  .cm-layout-season {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

.cm-panel {
  padding: clamp(18px, 3vw, 26px);
  border-radius: 20px;
  border: 1px solid var(--line);
  background-color: var(--surface);
  min-width: 0;
}

.cm-panel h3 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.cm-muted {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.cm-empty {
  margin: 16px 0 0;
  padding: 22px;
  border-radius: 14px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  text-align: center;
  font-size: 0.9rem;
}

.cm-form-error {
  min-height: 1.2em;
  margin: 0;
  color: var(--danger);
  font-size: 0.84rem;
}

/* ---------- Tabs ---------- */
.cm-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background-color: var(--surface-3);
  margin-bottom: 14px;
}

.cm-tab {
  padding: 0.45rem 0.9rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.cm-tab[aria-selected="true"] {
  background-color: var(--green);
  color: var(--play-text);
}

.cm-tab:not([aria-selected="true"]):hover {
  color: var(--text-strong);
}

.cm-tab:focus-visible,
.cm-account-btn:focus-visible,
.cm-account-logout:focus-visible,
.cm-more:focus-visible,
.cm-card-photo:focus-visible,
.cm-card-act:focus-visible,
.cm-top-photo:focus-visible,
.cm-modal-close:focus-visible,
.cm-sponsor:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 2px;
}

/* ---------- Upload ---------- */
.cm-login-cta p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cm-login-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cm-login-cta p {
  flex-basis: 100%;
}

.cm-photo {
  position: relative;
}

.cm-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.cm-photo-drop {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  border: 1.5px dashed var(--line-strong);
  background-color: var(--surface-3);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.cm-photo-drop:hover,
.cm-file:focus-visible + .cm-photo-drop {
  border-color: var(--green);
}

.cm-photo-drop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cm-photo-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.cm-photo-hint svg {
  width: 34px;
  height: 34px;
  color: var(--green);
}

.cm-photo-hint small {
  font-weight: 400;
  font-size: 0.75rem;
}

.cm-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  cursor: pointer;
}

.cm-check input {
  margin-top: 2px;
  accent-color: var(--green);
}

/* ---------- Feed ---------- */
.cm-feed-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.cm-feed-count {
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.cm-feed {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.cm-feed[aria-busy="true"]:empty {
  min-height: 160px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3));
  background-size: 200% 100%;
  animation: cm-shimmer 1.4s linear infinite;
}

@keyframes cm-shimmer {
  to { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .cm-feed[aria-busy="true"]:empty { animation: none; }
}

.cm-card {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid var(--line);
  background-color: var(--surface-3);
  overflow: hidden;
  min-width: 0;
}

.cm-card.is-hidden {
  opacity: 0.55;
}

.cm-card-photo {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  aspect-ratio: 4 / 3;
  background-color: var(--bg-3);
  cursor: zoom-in;
}

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

.cm-card-weight {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background-color: var(--overlay-bg);
  color: var(--overlay-accent);
  font-size: 0.82rem;
  font-weight: 700;
}

.cm-card-flag {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background-color: var(--overlay-bg);
  color: var(--overlay-text);
  font-size: 0.72rem;
  font-weight: 700;
}

.cm-card-flag.is-warn {
  top: auto;
  bottom: 8px;
  color: var(--sand);
}

.cm-card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0.75rem 0.85rem 0.85rem;
}

.cm-card-body h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-strong);
}

.cm-card-body h4 small {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.8rem;
}

.cm-card-loc,
.cm-card-angler,
.cm-card-notes {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.cm-card-angler {
  color: var(--green-bright);
  font-weight: 600;
}

.cm-card-notes {
  color: var(--text);
}

.cm-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.cm-card-act {
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
}

.cm-card-act:hover {
  color: var(--text-strong);
  border-color: var(--green-line);
}

.cm-card-act.is-danger:hover {
  color: var(--danger);
  border-color: var(--danger);
}

.cm-more {
  display: block;
  margin: 16px auto 0;
  padding: 0.55rem 1.2rem;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background-color: var(--surface-3);
  color: var(--text);
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Tops ---------- */
.cm-top {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.cm-top-item {
  display: grid;
  grid-template-columns: 32px 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 8px 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background-color: var(--surface-3);
}

.cm-top-item.is-podium {
  border-color: var(--green-line);
}

.cm-top-rank {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--surface);
  font-weight: 800;
  color: var(--muted);
}

.cm-top-item:nth-child(1) .cm-top-rank { background-color: #facc15; color: #1a1300; }
.cm-top-item:nth-child(2) .cm-top-rank { background-color: #cbd5e1; color: #111827; }
.cm-top-item:nth-child(3) .cm-top-rank { background-color: #d97706; color: #1a0e00; }

.cm-top-photo {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  background-color: var(--bg-3);
}

.cm-top-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cm-top-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cm-top-main strong {
  color: var(--text-strong);
}

.cm-top-main span {
  font-size: 0.8rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cm-top-weight {
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--green-bright);
  white-space: nowrap;
}

/* ---------- Season ---------- */
.cm-season-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 20px;
  border: 1px solid var(--green-line);
  background-image: linear-gradient(135deg, rgba(74, 222, 128, 0.16), rgba(74, 222, 128, 0.02));
}

.cm-season-banner > svg {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  color: var(--sand);
}

.cm-season-kicker {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-bright);
}

.cm-countdown {
  margin: 4px 0;
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.3rem);
  font-weight: 800;
  color: var(--text-strong);
}

.cm-season-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  max-width: 640px;
}

.cm-table-wrap {
  overflow-x: auto;
}

.cm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.cm-table th {
  text-align: left;
  padding: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.cm-table td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.cm-table tr.is-me td {
  background-color: var(--green-soft);
}

.cm-medal {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.78rem;
}

.cm-medal.m1 { background-color: #facc15; color: #1a1300; }
.cm-medal.m2 { background-color: #cbd5e1; color: #111827; }
.cm-medal.m3 { background-color: #d97706; color: #1a0e00; }

.cm-species {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cm-chip {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background-color: var(--surface-3);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.cm-chip.is-got {
  border-color: var(--green-line);
  background-color: var(--green-soft);
  color: var(--green-bright);
}

/* ---------- Sponsors ---------- */
.cm-sponsors {
  display: grid;
  gap: 18px;
  margin-bottom: 16px;
}

.cm-sponsors:empty {
  display: none;
}

.cm-sponsor-group h3 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.cm-sponsor-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.tier-generalinis .cm-sponsor-list {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.cm-sponsor {
  display: grid;
  place-items: center;
  height: 96px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background-color: #f8fafc;
  color: #0b1418;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tier-generalinis .cm-sponsor {
  height: 130px;
}

a.cm-sponsor:hover {
  transform: translateY(-2px);
  border-color: var(--green);
}

.cm-sponsor img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.cm-sponsor {
  overflow: hidden;
}

.cm-sponsor-name {
  font-family: 'Outfit', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  text-align: center;
}

.cm-sponsor-item.is-inactive {
  opacity: 0.5;
}

.cm-sponsor-admin {
  display: block;
  margin-top: 4px;
  font-size: 0.74rem;
  color: var(--muted);
  text-align: center;
}

.cm-sponsor-admin button {
  border: 0;
  background: none;
  color: var(--green-bright);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

.cm-sponsor-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cm-sponsor-cta h3 {
  margin-bottom: 4px;
}

.cm-sponsor-cta .cm-muted {
  margin: 0;
  max-width: 620px;
}

.cm-admin-toggle {
  margin-top: 16px;
}

.cm-sponsor-form {
  margin-top: 12px;
}

.cm-row-actions {
  display: flex;
  gap: 8px;
}

/* ---------- Hero list ---------- */
.cm-hero-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background-color: var(--surface-3);
  list-style: none;
}

.cm-hero-item + .cm-hero-item {
  margin-top: 6px;
}

.cm-hero-item img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.cm-hero-item span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cm-hero-item strong {
  font-size: 0.86rem;
  color: var(--text-strong);
}

.cm-hero-item small {
  font-size: 0.74rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cm-hero-empty {
  list-style: none;
  padding: 14px;
  border-radius: 11px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.cm-hero-empty a {
  color: var(--green-bright);
}

/* ---------- Modals ---------- */
.cm-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.cm-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cm-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: var(--modal-backdrop);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.cm-modal-dialog {
  position: relative;
  width: min(420px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 26px;
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  background-color: var(--surface);
  box-shadow: var(--shadow);
}

.cm-modal-dialog h3 {
  margin: 0 0 14px;
  font-size: 1.25rem;
}

.cm-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background-color: var(--surface-3);
  color: var(--text);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.cm-google {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.cm-or {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.cm-or::before,
.cm-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--line-strong);
}

.cm-viewer {
  position: relative;
  margin: 0;
  max-width: min(1100px, 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cm-viewer img {
  max-width: 100%;
  max-height: calc(100vh - 110px);
  object-fit: contain;
  border-radius: 14px;
}

.cm-viewer figcaption {
  color: var(--overlay-text);
  text-align: center;
  font-size: 0.9rem;
}

body.cm-modal-open {
  overflow: hidden;
}

/* ---------- Toast ---------- */
.cm-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 700;
  max-width: calc(100% - 32px);
  padding: 0.7rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--green-line);
  background-color: var(--surface);
  color: var(--text-strong);
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cm-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cm-toast.is-error {
  border-color: var(--danger);
}

@media (prefers-reduced-motion: reduce) {
  .cm-modal,
  .cm-toast {
    transition: none;
  }
}

/* ---------- Videos ---------- */
.cm-video-submit {
  margin-bottom: 16px;
}

.cm-video-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.cm-input {
  flex: 1 1 320px;
  min-width: 0;
  padding: 0.65rem 0.8rem;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background-color: var(--surface-3);
  color: var(--text-strong);
  font-family: inherit;
  font-size: 0.92rem;
}

.cm-input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.cm-video-form-row .catches-submit {
  width: auto;
  flex: 0 0 auto;
  padding-left: 1.4rem;
  padding-right: 1.4rem;
}

.cm-video-hint {
  margin: 8px 0 0;
  font-size: 0.8rem;
}

.cm-video-login p {
  margin: 0;
  flex-basis: auto;
  align-self: center;
}

.cm-video-admin {
  margin-bottom: 16px;
  border-color: var(--sand);
}

.cm-pending {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.cm-pending li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.cm-pending a {
  color: var(--text-strong);
  font-weight: 600;
}

.cm-pending .cm-muted {
  margin: 0;
}

.cm-pending-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.cm-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.cm-chip-btn {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background-color: var(--surface-3);
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.cm-chip-btn small {
  color: var(--muted);
  font-weight: 500;
}

.cm-chip-btn[aria-pressed="true"] {
  border-color: var(--green);
  background-color: var(--green);
  color: var(--play-text);
}

.cm-chip-btn[aria-pressed="true"] small {
  color: inherit;
}

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

.cm-video-grid[aria-busy="true"]:empty {
  min-height: 180px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3));
  background-size: 200% 100%;
  animation: cm-shimmer 1.4s linear infinite;
}

.cm-vcard {
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid var(--line);
  background-color: var(--surface);
  overflow: hidden;
  min-width: 0;
}

.cm-vcard.is-hidden {
  opacity: 0.55;
}

.cm-vthumb {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  aspect-ratio: 16 / 9;
  background-color: var(--bg-3);
  cursor: pointer;
  overflow: hidden;
}

.cm-vthumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cm-vthumb:hover img {
  transform: scale(1.04);
}

.cm-vplay {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: var(--play-bg);
  color: var(--play-text);
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.cm-vplay svg {
  width: 22px;
  height: 22px;
  margin-left: 3px;
}

.cm-vtitle {
  font-size: 0.95rem !important;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

a.cm-card-act {
  text-decoration: none;
}

.cm-vthumb:focus-visible,
.cm-chip-btn:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 2px;
}

.cm-player {
  position: relative;
  width: min(1000px, 100%);
}

.cm-player-frame {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background-color: #000;
}

.cm-player-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.cm-player-title {
  margin: 10px 0 0;
  color: var(--overlay-text);
  text-align: center;
}

.cm-player .cm-modal-close {
  top: -46px;
  right: 0;
}

@media (prefers-reduced-motion: reduce) {
  .cm-vthumb img { transition: none; }
  .cm-video-grid[aria-busy="true"]:empty { animation: none; }
}
