html { font-size: 16px; }

body {
  background: #f7f3f7;
  color: #261923;
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
}

.site-header,
.site-footer {
  background: #321325;
}

.site-footer {
  color: #f8edf6;
  padding: 1.25rem 0;
}

.navbar-brand {
  font-weight: 700;
}

.brand-lockup {
  align-items: center;
  display: inline-flex;
  gap: .6rem;
}

.brand-lockup img {
  background: #fff;
  border-radius: 999px;
  height: 34px;
  width: 34px;
}

.home-hero,
.player-hero {
  min-height: min(72vh, 720px);
  display: flex;
  align-items: center;
  color: white;
  background-size: cover;
  background-position: center;
}

.home-hero {
  background-image: linear-gradient(90deg, rgba(50,19,37,.94), rgba(50,19,37,.48)), url("/images/hero-player-cevven.png");
}

.home-hero-content,
.player-hero .container {
  max-width: 720px;
}

.home-hero h1,
.player-hero h1,
.page-intro h1,
.narrow-content h1,
.dashboard-page h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.eyebrow {
  color: #d7afb9;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08rem;
  margin-bottom: .5rem;
  text-transform: uppercase;
}

.btn-accent {
  background: #b54498;
  border-color: #b54498;
  color: #fff;
}

.btn-accent:hover {
  background: #96347f;
  border-color: #96347f;
  color: #fff;
}

.section-block,
.dashboard-page,
.page-intro,
.narrow-page {
  padding: 3rem 0;
}

.section-heading {
  margin-bottom: 1.5rem;
}

.store-section {
  padding-top: 1.5rem;
}

.section-heading.compact {
  margin-bottom: 1rem;
}

.player-grid,
.product-grid,
.metric-grid {
  display: grid;
  gap: 1rem;
}

.player-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.player-card,
.product-card,
.metric-grid > div,
.admin-product,
.summary-box,
.checkout-panel {
  background: #fff;
  border-radius: 8px;
}

.player-card {
  color: inherit;
  overflow: hidden;
  text-decoration: none;
}

.player-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.player-card div {
  padding: 1rem;
}

.player-card span,
.player-meta,
.summary-box span {
  color: #74606c;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.product-card {
  overflow: hidden;
}

.product-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.product-body {
  padding: 1rem;
}

.variant-row {
  align-items: center;
  border-top: 1px solid #eadde7;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 0;
}

.variant-row span {
  display: grid;
}

.qty-input {
  width: 72px;
}

.checkout-panel {
  margin-top: 1.5rem;
  padding: 1.25rem;
}

.store-banner {
  background: #eadde7;
  color: #5b314e;
}

.top-banner {
  display: none;
}

.store-banner .container {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.store-shell {
  align-items: start;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.catalog-list {
  display: grid;
  gap: 1rem;
}

.catalog-card {
  background: #fff;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  overflow: hidden;
}

.catalog-card img {
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  width: 100%;
}

.catalog-content {
  padding: 1rem 1.1rem;
}

.catalog-head {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.catalog-head h3 {
  margin-bottom: .35rem;
}

.catalog-head p {
  color: #74606c;
  margin-bottom: 0;
}

.variant-count {
  background: #f3dbe9;
  border-radius: 999px;
  color: #6e245d;
  flex: 0 0 auto;
  font-size: .8rem;
  font-weight: 600;
  padding: .35rem .65rem;
}

.variant-list {
  margin-top: .9rem;
}

.variant-list.collapsed .variant-item:nth-child(n + 5) {
  display: none;
}

.variant-item {
  align-items: center;
  border-top: 1px solid #eadde7;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
}

.variant-item div:first-child {
  display: grid;
}

.variant-item small {
  color: #74606c;
}

.stepper {
  align-items: center;
  border: 1px solid #dcc7d5;
  border-radius: 999px;
  display: inline-flex;
  overflow: hidden;
}

.stepper-btn {
  background: #f7f3f7;
  border: 0;
  color: #5b314e;
  font-size: 1.15rem;
  height: 38px;
  width: 38px;
}

.stepper-btn:hover {
  background: #eadde7;
}

.stepper .qty-input {
  border: 0;
  height: 38px;
  text-align: center;
  width: 52px;
}

.variant-toggle {
  background: transparent;
  border: 0;
  color: #96347f;
  font-weight: 700;
  padding: .35rem 0 0;
}

.order-summary {
  background: #fff;
  border-radius: 8px;
  padding: 1.1rem;
  position: sticky;
  top: 1rem;
}

.order-summary h3 {
  margin-bottom: 1rem;
}

.summary-items {
  display: grid;
  gap: .7rem;
  margin-bottom: 1rem;
}

.summary-empty {
  color: #74606c;
}

.summary-line,
.summary-total {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: .8rem;
}

.summary-line {
  border-bottom: 1px solid #eadde7;
  padding-bottom: .65rem;
}

.summary-total {
  border-top: 2px solid #321325;
  font-size: 1.1rem;
  margin-top: .75rem;
  padding-top: .9rem;
}

.compact-checkout {
  background: #f7f3f7;
  margin-top: 1rem;
}

.form-stack {
  display: grid;
  gap: .75rem;
  margin-bottom: 1rem;
}

.form-grid,
.auth-form,
.upload-form {
  display: grid;
  gap: .8rem;
}

.form-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 1rem;
}

.narrow-content {
  max-width: 640px;
}

.summary-box {
  display: grid;
  gap: .35rem;
  margin: 1rem 0;
  padding: 1rem;
}

.metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 1rem;
}

.metric-grid > div {
  display: grid;
  gap: .35rem;
  padding: 1rem;
}

.metric-grid strong {
  font-size: 2rem;
}

.action-row,
.inline-form,
.variant-admin-row,
.campaign-row {
  display: flex;
  gap: .6rem;
  align-items: center;
}

.admin-product {
  margin-bottom: 1rem;
  padding: 1rem;
}

.dashboard-table {
  background: #fff;
}

.compact-grid {
  margin-top: 1rem;
}

.admin-shell {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.filters-bar,
.copy-row,
.campaign-inline-form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.filters-bar {
  margin-bottom: 1rem;
}

.filters-bar .form-select,
.filters-bar .form-control {
  flex: 1 1 180px;
}

.copy-row code {
  overflow-wrap: anywhere;
}

.image-upload-card {
  background: #fff;
  border: 1px solid #eadde7;
  border-radius: 8px;
  display: grid;
  gap: .5rem;
  padding: .75rem;
}

.image-upload-card img {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
  width: 100%;
}

.image-upload-card img.profile-preview-image {
  aspect-ratio: 3 / 4;
  max-width: 280px;
  width: 100%;
}

.profile-editor-card {
  align-content: start;
  gap: .4rem;
  justify-self: start;
  order: -1;
  width: fit-content;
}

.profile-editor-card .profile-preview-image {
  justify-self: center;
}

.cover-preview-frame {
  aspect-ratio: 16 / 7;
  border-radius: 6px;
  overflow: hidden;
}

.cover-preview-image {
  background-repeat: no-repeat;
  background-size: cover;
  height: 100%;
  width: 100%;
}

.upload-label {
  color: #5b314e;
  font-weight: 700;
  margin-bottom: -.35rem;
}

.field-hint {
  color: #7c6674;
  font-size: .92rem;
  line-height: 1.4;
}

.focus-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: .15rem;
}

.profile-config-form {
  gap: 1rem;
}

.profile-media-grid {
  align-items: start;
  grid-template-columns: fit-content(360px) minmax(680px, 1fr);
}

.profile-media-grid .image-upload-card {
  gap: .45rem;
}

.profile-media-grid .focus-grid {
  gap: .25rem;
}

.profile-form-actions {
  display: block;
  margin-top: .25rem;
}

.player-portal-layout {
  display: flex;
  flex-direction: column;
}

.player-portal-orders {
  order: 1;
}

.player-portal-profile {
  order: 2;
}

.player-portal-highlights {
  order: 3;
}

.focus-grid {
  display: grid;
  gap: .35rem;
}

.panel-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(50, 19, 37, .08);
  margin-bottom: 1.5rem;
  padding: 1.25rem;
}

.panel-card-header {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.portal-box {
  background: #f7f3f7;
  border: 1px solid #eadde7;
  border-radius: 12px;
  padding: 1rem;
}

.admin-media-grid,
.admin-highlights-stack {
  display: grid;
  gap: 1rem;
}

.admin-media-grid:not(.profile-media-grid) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-highlight-list {
  display: grid;
  gap: 1rem;
}

.admin-highlights-stack {
  grid-template-columns: 1fr;
}

.highlight-admin-card {
  background: #fdfbfd;
  border: 1px solid #eadde7;
  border-radius: 14px;
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.highlight-admin-preview {
  overflow: hidden;
  border-radius: 10px;
}

.admin-media-preview {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  width: 100%;
}

.sortable-highlight-card {
  cursor: grab;
}

.sortable-highlight-card.is-dragging {
  opacity: .55;
}

.highlight-card-meta {
  display: grid;
  gap: .15rem;
}

.highlight-card-meta span {
  color: #7c6674;
  font-size: .92rem;
}

.reel-preview-card {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #5b314e, #9e4e92);
  border-radius: 10px;
  color: #fff;
  display: grid;
  gap: .35rem;
  justify-items: center;
  padding: 1rem;
  text-align: center;
}

.highlight-create-card {
  margin-bottom: .5rem;
}

.admin-highlight-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.empty-state-card {
  color: #5b314e;
  min-height: 220px;
}

.compact-form {
  margin-bottom: 0;
}

.player-list-panel .player-list-body {
  max-height: 1200px;
  opacity: 1;
  overflow: hidden;
  transition: max-height .25s ease, opacity .25s ease, margin-top .25s ease;
}

.player-list-panel.is-collapsed .player-list-body {
  margin-top: 0;
  max-height: 0;
  opacity: 0;
}

.detail-panel {
  scroll-margin-top: 1rem;
}

.panel-helper {
  color: #74606c;
  margin-bottom: 0;
}

.floating-alert {
  box-shadow: 0 18px 40px rgba(50, 19, 37, .16);
  position: fixed;
  right: 1.25rem;
  top: 1.25rem;
  z-index: 1300;
  max-width: min(420px, calc(100vw - 2rem));
  padding-right: 3.25rem;
  transition: opacity .2s ease, transform .2s ease;
}

.floating-alert.is-hiding {
  opacity: 0;
  transform: translateY(-10px);
}

.floating-alert-close {
  align-items: center;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.5rem;
  height: 2rem;
  justify-content: center;
  line-height: 1;
  opacity: .7;
  padding: 0;
  position: absolute;
  right: .75rem;
  top: .55rem;
  width: 2rem;
}

.floating-alert-close:hover {
  opacity: 1;
}

@media (max-width: 1100px) {
  .admin-media-grid {
    grid-template-columns: 1fr;
  }

  .admin-highlight-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .admin-highlight-list {
    grid-template-columns: 1fr;
  }
}

.club-strip,
.hero-badges,
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.player-profile-band {
  background: linear-gradient(180deg, #f3dbe9 0%, #f7f3f7 100%);
  padding: 2rem 0;
}

.player-profile-grid {
  align-items: center;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 180px minmax(280px, 1fr) 420px;
}

.player-profile-photo {
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.player-facts {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .9rem;
}

.player-facts span {
  background: #fff;
  border-radius: 999px;
  color: #5b314e;
  font-weight: 600;
  padding: .35rem .7rem;
}

.player-highlights {
  align-items: start;
  background: rgba(255, 255, 255, .58);
  border: 1px solid rgba(91, 49, 78, .12);
  border-radius: 8px;
  display: grid;
  gap: .8rem;
  grid-template-columns: 1fr;
  padding: .9rem;
}

.highlights-copy h3 {
  font-size: 1.1rem;
  margin-bottom: 0;
}

.highlights-copy span {
  color: #74606c;
  display: none;
}

.player-media-strip {
  display: flex;
  gap: .75rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.player-media-strip::-webkit-scrollbar {
  display: none;
}

.player-media-carousel {
  align-items: center;
  display: grid;
  gap: .55rem;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
}

.player-media-strip img,
.player-media-strip video,
.media-placeholder {
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.player-media-strip img,
.player-media-strip video,
.media-placeholder {
  aspect-ratio: 16 / 10;
}

.player-media-strip .media-tile {
  flex: 0 0 196px;
  scroll-snap-align: start;
}

.carousel-btn {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(91, 49, 78, .14);
  border-radius: 999px;
  color: #5b314e;
  display: flex;
  font-size: 1.35rem;
  height: 28px;
  justify-content: center;
  line-height: 1;
  width: 28px;
}

.carousel-btn:hover {
  background: #f3dbe9;
}

.media-tile {
  background: transparent;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.media-tile span {
  align-items: center;
  background: rgba(50, 19, 37, .8);
  bottom: .75rem;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: .85rem;
  font-weight: 600;
  gap: .35rem;
  left: .75rem;
  padding: .4rem .7rem;
  position: absolute;
}

.media-tile span::before {
  content: "▶";
  font-size: .7rem;
}

.media-tile:hover img,
.media-tile:hover video {
  transform: scale(1.02);
}

.media-tile img,
.media-tile video {
  transition: transform .18s ease;
}

.media-tile-reel {
  align-items: center;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #5b314e, #9e4e92);
  color: #fff;
  display: grid;
  gap: .35rem;
  justify-items: center;
  padding: 1rem;
  text-align: center;
  width: 100%;
}

.media-embed-fallback {
  align-items: center;
  aspect-ratio: 9 / 16;
  background: linear-gradient(135deg, #5b314e, #9e4e92);
  border-radius: 12px;
  color: #fff;
  display: grid;
  gap: .45rem;
  justify-items: center;
  padding: 1rem;
  text-align: center;
}

.media-embed-fallback a {
  color: #fff;
  text-decoration: underline;
}

.media-modal[aria-hidden="true"] {
  display: none;
}

.media-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 1100;
}

.media-modal-backdrop {
  background: rgba(20, 10, 16, .78);
  border: 0;
  inset: 0;
  position: absolute;
}

.media-modal-content {
  max-width: min(640px, calc(100vw - 2rem));
  position: relative;
  width: 100%;
  z-index: 1;
}

.media-modal-close {
  background: #fff;
  border: 0;
  border-radius: 999px;
  height: 38px;
  position: absolute;
  right: -.5rem;
  top: -.5rem;
  width: 38px;
  z-index: 2;
}

.media-modal-nav {
  align-items: center;
  background: rgba(255, 255, 255, .92);
  border: 0;
  border-radius: 999px;
  color: #321325;
  display: inline-flex;
  font-size: 2rem;
  height: 48px;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  z-index: 2;
}

.media-modal-prev {
  left: -3.5rem;
}

.media-modal-next {
  right: -3.5rem;
}

.media-modal-content img,
.media-modal-content video,
.media-modal-content iframe {
  border-radius: 12px;
  display: block;
  max-height: 80vh;
  object-fit: contain;
  width: 100%;
}

.media-modal-content iframe {
  aspect-ratio: 9 / 16;
  border: 0;
  margin: 0 auto;
  max-width: 520px;
}

.media-placeholder {
  align-items: center;
  background: #321325;
  color: #fff;
  display: flex;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}

.store-transition {
  align-items: center;
  border-top: 1px solid rgba(91, 49, 78, .18);
  color: #5b314e;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
  padding-top: 1rem;
}

.club-strip {
  margin-bottom: 1.5rem;
}

.category-filter {
  margin-bottom: 1.5rem;
}

.category-filter a {
  background: #eadde7;
  border-radius: 999px;
  color: #5b314e;
  font-weight: 600;
  padding: .45rem .8rem;
  text-decoration: none;
}

.category-filter a.active,
.category-filter a:hover {
  background: #b54498;
  color: #fff;
}

.club-strip span,
.hero-badges span {
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  padding: .45rem .8rem;
}

.club-strip span:nth-child(1),
.hero-badges span:nth-child(1) {
  background: #f3dbe9;
  color: #6e245d;
}

.club-strip span:nth-child(2),
.hero-badges span:nth-child(2) {
  background: #dbeeed;
  color: #356f72;
}

.club-strip span:nth-child(3),
.hero-badges span:nth-child(3) {
  background: #eadde7;
  color: #5b314e;
}

.club-strip span:nth-child(4) {
  background: #d2e6e5;
  color: #356f72;
}

.variant-admin-row,
.campaign-row {
  background: #fff;
  border-radius: 8px;
  margin-top: .75rem;
  padding: .75rem;
}

.variant-admin-row strong {
  min-width: 160px;
}

.campaign-row strong {
  min-width: 220px;
}

@media (max-width: 640px) {
  .home-hero,
  .player-hero {
    min-height: 560px;
  }

  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }

  .variant-admin-row,
  .campaign-row {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 980px) {
  .store-shell {
    grid-template-columns: 1fr;
  }

  .order-summary {
    position: static;
  }

  .player-profile-grid {
    grid-template-columns: 140px 1fr;
  }

  .player-media-strip {
    grid-column: 1 / -1;
  }

  .player-highlights {
    grid-column: 1 / -1;
  }

  .media-modal-prev {
    left: .5rem;
  }

  .media-modal-next {
    right: .5rem;
  }
}

@media (max-width: 760px) {
  .desktop-only {
    display: none !important;
  }

  .player-hero {
    min-height: 420px;
  }

  .player-hero .container {
    max-width: 100%;
  }

  .player-profile-band {
    padding: 1.25rem 0;
  }

  .player-profile-grid {
    align-items: start;
    display: flex;
    gap: 1rem;
  }

  .player-profile-photo {
    max-width: 110px;
  }

  .player-profile-grid h2 {
    font-size: 1.35rem;
    margin-bottom: .75rem;
  }

  .player-facts {
    margin-bottom: 0;
  }

  .store-banner .container,
  .store-transition,
  .catalog-head,
  .variant-item {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-card {
    grid-template-columns: 1fr;
  }

  .catalog-card img {
    max-height: 240px;
  }

  .player-profile-grid {
    grid-template-columns: 1fr;
  }

  .player-profile-photo {
    max-width: 110px;
  }
}
