/* ============================================================
   prime.css - Prime Sport Section Styles
   Matches the same structure as fancode.css / willow-live.css
   ============================================================ */

.prime-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(0.6rem, 1.5vw, 1.2rem) 0 clamp(1rem, 3vw, 2rem);
  position: relative;
  background: #0b0d0f;
}

/* ---- HEADER ---- */
.prime-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: clamp(0.7rem, 1.8vw, 1.4rem);
  padding: 0 clamp(1rem, 5vw, 3rem);
}

.prime-title {
  font-size: clamp(1.05rem, 2.2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: clamp(0.3rem, 0.6vw, 0.6rem);
  color: #ffffff;
  margin: 0;
}

.prime-badge {
  background: rgba(0, 191, 255, 0.12);
  border: 1px solid rgba(0, 191, 255, 0.25);
  color: #00bfff;
  padding: clamp(0.2rem, 0.4vw, 0.4rem) clamp(0.6rem, 1vw, 1rem);
  border-radius: 30px;
  font-size: clamp(0.6rem, 0.7vw, 0.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.prime-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #00bfff;
  animation: prime-pulse-dot 1.6s ease-in-out infinite;
}

@keyframes prime-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.65); }
}

/* ---- CAROUSEL WRAPPER ---- */
.prime-carousel-wrapper {
  position: relative;
  width: 100%;
}

.prime-track {
  display: flex;
  gap: clamp(0.8rem, 1.8vw, 1.6rem);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: clamp(0.2rem, 0.4vw, 0.4rem) clamp(1rem, 5vw, 3rem) clamp(0.5rem, 1vw, 0.8rem);
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.prime-track::-webkit-scrollbar { display: none; }

/* ---- SCROLL ARROWS ---- */
.prime-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(32px, 3.5vw, 44px);
  height: clamp(32px, 3.5vw, 44px);
  border-radius: 50%;
  background: rgba(14, 19, 32, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 191, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  z-index: 6;
  transition: all 0.22s ease;
  line-height: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.prime-arrow.arrow-left  { left: clamp(4px, 1vw, 12px); }
.prime-arrow.arrow-right { right: clamp(4px, 1vw, 12px); }

.prime-arrow:hover {
  background: #00bfff;
  border-color: #00bfff;
  color: #07090f;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 191, 255, 0.45);
}

.prime-arrow:active {
  transform: translateY(-50%) scale(0.93);
}

/* ---- CARD — same width as fancode/willow ---- */
.prime-card {
  flex: 0 0 auto;
  width: clamp(260px, 34vw, 480px);
  background: #111214;
  border-radius: clamp(8px, 1vw, 14px);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
  box-shadow: 0 clamp(4px, 0.8vw, 10px) clamp(15px, 2.5vw, 30px) rgba(0, 0, 0, 0.45);
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.prime-card:hover {
  transform: scale(1.045);
  box-shadow: 0 clamp(8px, 1.2vw, 16px) clamp(25px, 4vw, 50px) rgba(0, 0, 0, 0.7);
  border-color: rgba(0, 191, 255, 0.2);
  z-index: 5;
}

/* ---- THUMBNAIL ---- */
.prime-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1a1c1e;
  overflow: hidden;
}

.prime-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease;
}

.prime-card:hover .prime-thumb img {
  transform: scale(1.08);
}

.prime-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0e1320, #07090f);
  color: #00bfff;
  font-size: 2rem;
  opacity: 0.4;
}

/* Overlay gradient */
.prime-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,9,15,0) 0%, rgba(7,9,15,0.6) 80%, #07090f 100%);
  pointer-events: none;
}

/* ---- LIVE BADGE ---- */
.prime-live-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 59, 92, 0.88);
  color: #fff;
  padding: 0.15rem 0.6rem;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 0 10px rgba(255, 59, 92, 0.45);
  animation: prime-pulse-badge 1.5s ease-in-out infinite;
}

.prime-live-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}

@keyframes prime-pulse-badge {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

/* Channel label top-left */
.prime-channel-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: #ffffff;
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
  font-size: clamp(0.5rem, 0.7vw, 0.78rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 1px 4px rgba(0,0,0,0.8);
  background: transparent;
}

/* Play overlay */
.prime-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background: rgba(0, 0, 0, 0.3);
  transition: opacity 0.22s ease;
  z-index: 4;
}

.prime-card:hover .prime-play-overlay {
  opacity: 1;
}

.prime-play-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 191, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 191, 255, 0.55);
  transform: scale(0.85);
  transition: transform 0.22s ease;
}

.prime-card:hover .prime-play-icon {
  transform: scale(1);
}

.prime-play-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  margin-left: 2px;
}

/* ---- CARD INFO ---- */
.prime-info {
  padding: clamp(0.5rem, 1.1vw, 0.9rem) clamp(0.6rem, 1vw, 1rem) clamp(0.7rem, 1.2vw, 1rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.2rem, 0.4vw, 0.5rem);
  background: #111214;
}

.prime-tournament {
  font-size: clamp(0.6rem, 0.9vw, 0.78rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #00bfff;
  font-weight: 700;
  margin-bottom: clamp(0.1rem, 0.2vw, 0.2rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prime-card-title {
  font-size: clamp(0.88rem, 1.2vw, 1.1rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.prime-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: clamp(0.2rem, 0.3vw, 0.4rem);
  padding-top: clamp(0.3rem, 0.5vw, 0.6rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.prime-quality {
  font-size: clamp(0.58rem, 0.75vw, 0.72rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 7px;
  border-radius: 4px;
}

.prime-watch-label {
  font-size: clamp(0.6rem, 0.78vw, 0.75rem);
  font-weight: 700;
  color: #00bfff;
  letter-spacing: 0.04em;
}

/* ---- SKELETON LOADER ---- */
.prime-skeleton-card {
  flex: 0 0 auto;
  width: clamp(260px, 34vw, 480px);
  background: #111214;
  border-radius: clamp(8px, 1vw, 14px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.prime-sk-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(90deg, #111214 25%, #1c1f26 50%, #111214 75%);
  background-size: 200% 100%;
  animation: prime-shimmer 1.6s infinite ease-in-out;
}

.prime-sk-body {
  padding: 0.8rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.prime-sk-line {
  height: 11px;
  border-radius: 4px;
  background: linear-gradient(90deg, #111214 25%, #1c1f26 50%, #111214 75%);
  background-size: 200% 100%;
  animation: prime-shimmer 1.6s infinite ease-in-out;
}

.prime-sk-line.short  { width: 38%; }
.prime-sk-line.medium { width: 72%; }
.prime-sk-line.long   { width: 90%; }

@keyframes prime-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- ERROR STATE ---- */
.prime-error {
  color: rgba(255, 255, 255, 0.35);
  padding: 2rem;
  text-align: center;
  width: 100%;
  font-size: 0.9rem;
  line-height: 1.6;
}

.prime-error button {
  margin-top: 0.75rem;
  background: rgba(0, 191, 255, 0.15);
  border: 1px solid rgba(0, 191, 255, 0.35);
  color: #00bfff;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.prime-error button:hover {
  background: rgba(0, 191, 255, 0.28);
}
