/* ====== Hero – přesně podle Figmy: Hero Block 1920×620 ======
   Photo (1920×1080) extends pod hero do rails area. Hero block je jen 620 vysoký
   – obsahuje text a tlačítka. Pod ním začínají rails. */

.hero {
  position: sticky;
  top: 0;
  width: 1920px;
  height: 620px;
  overflow: hidden;
  isolation: isolate;
  z-index: 50;       /* nad cards, aby hero zakrývalo karty co jsou „pod" ním */
}

/* Background photo – 1920×1080 s overflow: hidden na hero zobrazí jen top 620 */
.hero .bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  background-image: url("../Obsah/Hero/Hero-survivor.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #010114;
  z-index: -3;
  transition: opacity 320ms ease-out;
}

/* Plynulé crossfade přechody pro text při změně hero */
.hero-logo-img,
.hero-title-text,
.hero-description,
.hero-meta,
.hero .bg {
  transition: opacity 280ms ease-out, background-image 0ms;
}

/* Radial scrim – odlehčený, aby fotka prokoukla skrz */
.hero .scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 1920px;
  height: 1080px;
  background:
    /* dark levý sloupec pro čitelnost textu */
    linear-gradient(90deg, rgba(1,1,20,0.85) 0%, rgba(1,1,20,0.55) 30%, rgba(1,1,20,0.0) 55%),
    /* jemný radial pro celkovou hloubku */
    radial-gradient(78.75% 140% at 78.75% 11.85%,
      rgba(1, 1, 20, 0) 35%,
      rgba(1, 1, 20, 0.45) 75%,
      rgba(1, 1, 20, 0.85) 100%);
  pointer-events: none;
  z-index: -2;
}

/* Bottom fade gradient – přechod z hero do rails */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(1, 1, 20, 0) 0%, #010114 100%);
  pointer-events: none;
  z-index: 5;
}

/* Skryjeme staré CSS art vrstvy */
.hero .leaves,
.hero .glow,
.hero .figure,
.hero .torch,
.hero .embers { display: none; }

/* Hero content – content block vertikálně centrovaný v hero (mezi vrchem a rails) */
.hero-content {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 32px 108px 32px 140px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;        /* pomyslný střed mezi vrchem a carouselem */
  z-index: 2;
}

/* Hero block – 480 wide (75 % Figmy 640), bottom-aligned */
.hero-block {
  width: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 18px;
}

.hero-text {
  width: 480px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

/* Logo zmenšen na 240×86 */
.hero-title {
  width: 480px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-logo-img {
  width: 240px;
  height: 86px;
  object-fit: contain;
  object-position: left bottom;
  display: block;
  max-width: none;
}
.hero-title-text {
  margin: 0;
  font-family: var(--font-stack);
  font-weight: 700;
  font-size: 36px;
  line-height: 44px;
  color: var(--white);
  letter-spacing: -0.01em;
}

/* TV Live UI – zobrazuje se v hero pokud focused karta je živé vysílání */
.hero-live {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  height: 54px;
  margin-bottom: 4px;
}
.hero-live .ch-logo {
  width: 90px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.hero-live .ch-logo img {
  max-width: 90px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.hero-live .progress {
  width: 250px;
  height: 8px;
  background: #3B3B3B;
  border-radius: 8px;
  overflow: hidden;
}
.hero-live .progress .fill {
  height: 100%;
  width: 60%;
  background: #F2F2F2;
  border-radius: 8px;
}
.hero-live .live-tag {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  background: #F10404;
  border-radius: 6px;
  font-family: var(--font-stack);
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: #F2F2F2;
}
.hero-live .airtime {
  font-family: var(--font-stack);
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  line-height: 27px;
  color: #939393;
  white-space: nowrap;
}

/* Tags – 32 height, font 15 */
.hero-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  height: 32px;
}
.hero-meta .meta-text {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-stack);
  font-weight: 700;
  font-size: 15px;
  line-height: 18px;
  color: var(--white);
}
.hero-meta .pill-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  height: 32px;
}
.hero-meta .pill {
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 6px 12px;
  height: 32px;
  border: 1px solid var(--white);
  border-radius: 8px;
  background: transparent;
  font-family: var(--font-stack);
  font-weight: 700;
  font-size: 15px;
  line-height: 18px;
  color: var(--white);
  white-space: nowrap;
}

/* Description – 15px / 22px */
.hero-description {
  width: 480px;
  max-height: 66px;
  margin: 0;
  font-family: var(--font-stack);
  font-weight: 400;
  font-size: 15px;
  line-height: 22px;
  color: var(--white);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Control panel – 56 high buttons, gap 10 */
.hero-cta {
  width: 480px;
  height: 56px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

/* ===== Buttons – zmenšeno na 56 high, font 18 ===== */

.btn {
  box-sizing: border-box;
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  height: 56px;
  padding: 14px 24px 14px 18px;
  gap: 10px;
  background: #242642;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--font-stack);
  font-weight: 600;
  font-size: 18px;
  line-height: 22px;
  color: var(--white);
  white-space: nowrap;
  transform: scale(1);
  transition: all var(--dur-base) var(--ease-out);
}
.btn:hover { background: #2A3158; }

.btn .ico {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}
.btn .ico svg { width: 100%; height: 100%; }

.btn.primary {
  background: #242642;
  color: var(--white);
}

.btn.icon-only {
  width: 56px;
  height: 56px;
  padding: 14px;
  background: #121226;
  border: 2px solid #27293F;
  border-radius: 12px;
}
.btn.icon-only .ico {
  width: 22px;
  height: 22px;
}

/* Focus state – cream bg + dark text */
.btn.is-focused {
  background: #F2F2F2;
  color: #0A0F1F;
  border-color: #F2F2F2;
  transform: scale(1.04);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.btn.is-focused .ico { color: #0A0F1F; }
.btn.is-focused .ico svg { fill: #0A0F1F; }

/* Wrapper around icon-only + label below */
.btn-with-label {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.btn-with-label .label {
  font-family: var(--font-stack);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}
