/* Homepage — final polish (structure, rhythm, ambient only) */

/* ── Hero blend ── */
.hero-end-rule {
  height: 1px;
  margin: 0;
  border: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.12) 22%,
    rgba(212, 175, 55, 0.45) 50%,
    rgba(212, 175, 55, 0.12) 78%,
    transparent 100%
  );
}

body.ppl-premium.page-home .hero-home {
  margin-bottom: 0;
}

body.ppl-premium.page-home .hero-home .hero-fade-bottom {
  height: 110px;
  background: linear-gradient(180deg, transparent 0%, #0a1628 88%);
}

body.ppl-premium.page-home .hero-edition,
body.ppl-premium.page-home .hero-title {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

/* ── Section system: separator + ambient + rhythm ── */
body.ppl-premium.page-home .section {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  overflow-y: visible;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

body.ppl-premium.page-home .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 68rem);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212, 175, 55, 0.2) 18%,
    rgba(212, 175, 55, 0.42) 50%,
    rgba(212, 175, 55, 0.2) 82%,
    transparent 100%
  );
  z-index: 3;
  pointer-events: none;
}

body.ppl-premium.page-home .section-event-stats::before {
  display: none;
}

body.ppl-premium.page-home .section > .container {
  position: relative;
  z-index: 2;
}

/* Ambient — strictly out of flow; pełna wysokość ikony, overflow tylko na boki */
.section-ambient-layer {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

body.ppl-premium.page-home .section-has-ambient {
  overflow-x: hidden;
  overflow-y: visible;
}

.section-ambient-icon {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: clamp(5.5rem, 12vw, 9.5rem);
  color: rgba(190, 210, 235, 0.032);
  max-height: 78%;
  width: auto;
}

.section-ambient-icon .bi {
  font-size: inherit;
  display: block;
  line-height: 1;
}

/* Tabele grupowe — bez zmian (wyśrodkowanie pionowe po prawej) */
.section-ambient-icon--tr {
  right: 0;
  top: 50%;
  transform: translate(32%, -50%);
}

/* W pigułce, agenda — lewa, wyżej */
.section-ambient-icon--tl-high {
  left: 0;
  top: 12%;
  transform: translateX(-32%);
}

/* Teraz na boiskach — wyżej, lekko w stronę środka */
.section-ambient-icon--tr-high-mid {
  right: 10%;
  top: 14%;
  transform: translateX(18%);
}

/* Nadchodzące mecze — bardziej na prawo, ~środek pionowy */
.section-ambient-icon--mr {
  right: -1%;
  top: 50%;
  transform: translate(30%, -50%);
}

/* Relacja / informacje — lewa, blisko góry */
.section-ambient-icon--lt-top {
  left: 0;
  top: 8%;
  transform: translateX(-28%);
}

/* Goście specjalni — prawa, blisko dołu */
.section-ambient-icon--br-low {
  right: 0;
  bottom: 12%;
  top: auto;
  transform: translateX(30%);
}

/* Liderzy — lewa, blisko góry */
.section-ambient-icon--tl-top {
  left: 0;
  top: 10%;
  transform: translateX(-30%);
}

/* Kill legacy effects */
body.ppl-premium.page-home .section-bg-glow,
body.ppl-premium.page-home .hero-cinematic-bridge,
body.ppl-premium.page-home .guest-portrait-glow,
body.ppl-premium.page-home .sponsors-mesh,
body.ppl-premium.page-home .section-ambient:not(.section-ambient-layer) {
  display: none !important;
}

/* Override premium gold radial washes (musi być przed własnymi gradientami sekcji) */
body.ppl-premium.page-home .section-tone-glass,
body.ppl-premium.page-home .section-tone-mid,
body.ppl-premium.page-home .section-tone-stadium:not(.section-live-broadcast),
body.ppl-premium.page-home .section-tone-deep {
  background-image: none;
}

/* ── Section backgrounds (po override — inaczej gradient jest kasowany) ── */
body.ppl-premium.page-home .section-tone-highlights {
  padding-top: 2.25rem;
  padding-bottom: 2.75rem;
}

body.ppl-premium.page-home .section-tone-stadium.section-live-broadcast {
  background: linear-gradient(165deg, #0c1f3c 0%, #0a1830 55%, #081420 100%);
}

body.ppl-premium.page-home .section-tone-deep.section-upcoming {
  background: linear-gradient(180deg, #0a1628 0%, #0c1c34 100%);
}

body.ppl-premium.page-home .section-tone-glass.section-live-org {
  background: linear-gradient(90deg, #0a1422 0%, #0d1a2e 50%, #0a1220 100%);
}

body.ppl-premium.page-home .section-tone-highlights,
body.ppl-premium.page-home .section-event-stats,
body.ppl-premium.page-home .section-tone-mid.section-standings,
body.ppl-premium.page-home .section-tone-mid.section-leaders-home,
body.ppl-premium.page-home .section-leaders-home {
  background: linear-gradient(180deg, #0b1828 0%, #0e223c 100%);
}

body.ppl-premium.page-home .section-tone-moments {
  background: linear-gradient(135deg, #0a1524 0%, #0d1e36 50%, #0a1628 100%);
}

body.ppl-premium.page-home .section-tone-guests,
body.ppl-premium.page-home .section-guests-home.section-tone-guests {
  background: linear-gradient(180deg, #081420 0%, #0c1c32 100%);
  padding-top: 3.75rem;
  padding-bottom: 3.75rem;
}

body.ppl-premium.page-home .section-tone-sponsors {
  background: linear-gradient(180deg, #060c14 0%, #0a1220 100%);
  padding-top: 3.25rem;
  padding-bottom: 3.5rem;
}

/* ── Typography ── */
.section-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.section-title--center,
.section-lead--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-lead--center {
  max-width: 40ch;
}

/* W pigułce — szerszy lead, tylko łamanie linii (jak section-lead) */
.section-lead--event-stats {
  max-width: 52ch;
}

body.ppl-premium.page-home .section .section-title {
  text-shadow: none;
}

/* ── Stats ── */
.event-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .event-highlights-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .event-highlights-grid { grid-template-columns: repeat(5, 1fr); gap: 0.85rem; }
}

.event-highlight-card {
  text-align: center;
  padding: 1.35rem 0.75rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.event-highlight-card:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.1);
}

.event-highlight-icon {
  display: block;
  font-size: 0.95rem;
  color: rgba(212, 175, 55, 0.75);
  margin-bottom: 0.55rem;
}

.event-highlight-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 1.9rem);
  color: var(--gold-bright);
  line-height: 1;
  text-shadow: none;
}

.event-highlight-label {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 0.4rem;
}

/* ── Live pitches ── */
body.ppl-premium.page-home .pitch-card--broadcast.is-live-broadcast::before {
  display: none;
}

body.ppl-premium.page-home .pitch-card--broadcast.is-live-broadcast {
  border-color: rgba(255, 59, 59, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 59, 59, 0.1);
}

body.ppl-premium.page-home .pitch-card--broadcast.is-live-broadcast .pitch-timer {
  color: var(--white);
  text-shadow: none;
}

/* ── Upcoming ── */
body.ppl-premium.page-home .match-list--compact .match-row {
  padding: 0.75rem 1rem;
}

body.ppl-premium.page-home .match-list--compact .match-row.is-live {
  box-shadow: inset 2px 0 0 rgba(255, 59, 59, 0.55);
}

body.ppl-premium.page-home .btn-cinematic {
  text-transform: none;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.ppl-premium.page-home .btn-cinematic:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

/* ── Live feed ticker ── */
body.ppl-premium.page-home .feed-panel--ticker {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.12);
  box-shadow: none;
}

body.ppl-premium.page-home .feed-scroll-wrap .feed-scroll-fade {
  opacity: 0.85;
}

.feed-stream {
  display: flex;
  flex-direction: column;
  padding: 0.35rem 0;
}

.feed-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.9rem 1.1rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.feed-card:last-child {
  border-bottom: none;
}

.feed-card:hover {
  background: rgba(255, 255, 255, 0.025);
}

.feed-card-icon {
  flex-shrink: 0;
  width: 2.125rem;
  height: 2.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  line-height: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
}

.feed-card-icon .bi {
  display: block;
  line-height: 1;
  margin: 0;
}

.feed-card-body {
  flex: 1;
  min-width: 0;
  padding-left: 0.75rem;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.feed-card-time {
  font-size: 0.62rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.feed-card-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.feed-card--goal .feed-card-body {
  border-left-color: rgba(212, 175, 55, 0.35);
}

.feed-card--goal .feed-card-text {
  font-weight: 600;
  color: var(--white);
}

.feed-card--goal .feed-card-icon {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
}

.feed-scroll-wrap .feed-scroll {
  max-height: 340px;
}

/* ── Org tiles / Na skróty ── */
.org-shortcuts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}

@media (min-width: 480px) {
  .org-shortcuts-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 0.75rem;
  }
}

.org-shortcuts-col {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
}

body.ppl-premium.page-home .org-grid--editorial {
  gap: 0.65rem;
}

body.ppl-premium.page-home .org-grid--editorial .org-tile {
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

body.ppl-premium.page-home .org-grid--editorial .org-tile:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

body.ppl-premium.page-home .org-grid--editorial .org-tile--accent {
  border-color: rgba(212, 175, 55, 0.18);
}

/* ── Agenda — two day columns ── */
.agenda-days-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .agenda-days-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }
}

.agenda-day-col {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  max-height: min(72vh, 680px);
}

@media (max-width: 767px) {
  .agenda-day-col {
    max-height: none;
    height: auto;
  }

  .agenda-day-list {
    flex: none;
    min-height: 0;
    overflow: visible;
    padding-right: 0;
  }
}

.agenda-day-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.agenda-day-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.agenda-day-date {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
}

.agenda-day-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.35) transparent;
}

.agenda-day-list::-webkit-scrollbar {
  width: 5px;
}

.agenda-day-list::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 4px;
}

.agenda-day-item {
  display: grid;
  grid-template-columns: minmax(5.5rem, auto) 1fr;
  gap: 0 1rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.agenda-day-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.agenda-day-item:first-child {
  padding-top: 0;
}

.agenda-day-item-link {
  display: grid;
  grid-template-columns: minmax(5.5rem, auto) 1fr;
  gap: 0 1rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
}

.agenda-day-item-link:hover .agenda-day-body h4 {
  color: var(--gold-bright);
}

.agenda-day-item--match {
  padding: 0;
  border-bottom: none;
}

.agenda-day-item--match .agenda-day-item-link {
  padding: 0.95rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.agenda-day-item--match:last-child .agenda-day-item-link {
  border-bottom: none;
  padding-bottom: 0;
}

.agenda-day-time {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
  padding-top: 0.1rem;
}

.agenda-day-body h4 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
}

.agenda-day-body p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.agenda-day-icon {
  display: none;
}

@media (min-width: 480px) {
  .agenda-day-icon {
    display: inline-flex;
    font-size: 0.7rem;
    color: rgba(212, 175, 55, 0.6);
    margin-right: 0.35rem;
    vertical-align: middle;
  }

  .agenda-day-body h4 {
    display: flex;
    align-items: center;
  }
}

/* ── Guests (spójnie z ciemniejszym wariantem sekcji gości) ── */
body.ppl-premium.page-home .section-guests-home.section-tone-guests {
  background: linear-gradient(180deg, #081420 0%, #0c1c32 100%);
}

.guest-featured-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .guest-featured-grid { grid-template-columns: repeat(2, 1fr); }
}

.guest-featured-card {
  position: relative;
  padding: 2rem 1.5rem 1.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid rgba(212, 175, 55, 0.14);
  overflow: hidden;
}

.guest-featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.45), transparent);
}

.guest-featured-card:hover {
  border-color: rgba(212, 175, 55, 0.28);
}

.guest-card-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold-bright), rgba(212, 175, 55, 0.2));
}

.guest-featured-portrait {
  position: relative;
  width: 112px;
  height: 112px;
  margin: 0 auto 1.15rem;
}

.guest-portrait-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.45);
  pointer-events: none;
}

.guest-portrait-initials,
.guest-portrait-photo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
}

.guest-portrait-initials {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--gold-bright);
  background: linear-gradient(145deg, #1a3358 0%, #0d1e38 55%, #0a1628 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: inset 0 0 24px rgba(212, 175, 55, 0.06);
}

.guest-featured-tag {
  margin: 0 0 0.35rem;
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold-bright);
  text-align: center;
}

.guest-featured-role {
  margin: 0 0 0.5rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-align: center;
}

/* ── Standings & leaders ── */
body.ppl-premium.page-home .standings-card.glass-card,
body.ppl-premium.page-home .leader-card--premium {
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

body.ppl-premium.page-home .standings-grid-home {
  gap: 1.25rem;
}

body.ppl-premium.page-home .leader-card--premium h3 .bi {
  filter: none;
}

/* ── Sponsors ── */
body.ppl-premium.page-home .sponsors-row--final {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem 2.5rem;
  margin-top: 2rem;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

body.ppl-premium.page-home .sponsors-row--final .sponsor-logo {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
}

body.ppl-premium.page-home .sponsors-row--final .sponsor-logo img {
  max-height: 48px;
  width: auto;
  opacity: 0.8;
  filter: grayscale(1) brightness(1.15);
  transition: opacity 0.2s;
}

body.ppl-premium.page-home .sponsors-row--final .sponsor-logo:hover img {
  opacity: 1;
}

/* ── Global homepage tone-down ── */
body.ppl-premium.page-home .btn-gold {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.28);
}

body.ppl-premium.page-home .btn-gold:hover {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.32);
}

body.ppl-premium.page-home .live-pulse-badge {
  box-shadow: 0 0 6px rgba(255, 59, 59, 0.2);
}

body.ppl-premium.page-home .glass-card {
  box-shadow: none;
}
