/* ==========================================================================
   OPERA SCHRATTENBACH 2026 - Main Stylesheet
   Festival of Contemporary Music, Olomouc
   ========================================================================== */

/* --- Custom Properties / CSS Variables --- */
:root {
  --color-magenta: #E40066;
  --color-magenta-hover: #C20054;
  --color-magenta-light: #FDE8F1;
  --color-navy: #0A3C64;
  --color-navy-dark: #072640;
  --color-navy-light: #EBF3F9;
  --color-navy-mid: #285475;
  --color-cyan: #1AA7EC;
  --color-cyan-light: #E0F4FD;
  --color-gray: #b5c1d4;

  --color-text-main: #14202E;
  --color-text-muted: #556578;
  --color-bg-card: rgba(255, 255, 255, 0.70);
  --color-bg-card-hover: rgba(255, 255, 255, 0.97);
  --color-border: rgba(10, 60, 100, 0.12);
  --color-border-light: rgba(255, 255, 255, 0.7);

  /* --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; */
  --font-main: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  /*  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
*/

  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius-xl: 0px;


  /*
  --shadow-sm: 0 2px 8px rgba(10, 60, 100, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 60, 100, 0.12);
  --shadow-lg: 0 16px 40px rgba(10, 60, 100, 0.16);
*/

  --shadow-sm: 0 2px 8px rgba(60, 60, 60, 0.08);
  --shadow-md: 0 8px 24px rgba(60, 60, 60, 0.12);
  --shadow-lg: 0 16px 40px rgba(60, 60, 60, 0.16);


  --max-width: 1060px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  color: var(--color-text-main);
  line-height: 1.6;
  background-color: #d6e5ef;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* Fixed Artwork Background */
.bg-fixed-artwork {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('../img/main_img_2.jpg');
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  z-index: -2;
}

.bg-fixed-artwork::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(155, 214, 255, 0.8) 0%,
      rgba(155, 214, 255, 0.3) 50%,
      rgba(155, 214, 255, 0) 100%);
  z-index: -1;
  pointer-events: none;
}


/* Desktop only */
/* Výchozí stav pro mobily: skryto */
.desktop-only {
  display: none;
}

/* Zobrazení pro desktop (od šířky 768px výše) */
@media (min-width: 768px) {
  .desktop-only {
    display: block; 
  }
}
/* Typography elements */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--color-navy);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-magenta);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --- Header & Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-bottom: 3px solid var(--color-magenta);
  box-shadow: 0 4px 20px rgba(10, 60, 100, 0.08);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}

.brand-opera {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-navy);
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-magenta);
  letter-spacing: 0.02em;
}

.brand-name span {
  color: var(--color-navy);
}

/* Navigation Menu */
.primary-nav {
  display: flex;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-link {
  display: block;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--color-magenta);
  background: var(--color-magenta-light);
}

.nav-link.active {
  color: #fff;
  background: var(--color-magenta);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}

.hamburger-box {
  width: 24px;
  height: 18px;
  display: inline-block;
  position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 24px;
  height: 3px;
  background-color: var(--color-navy);
  border-radius: 2px;
  position: absolute;
  transition: all 0.25s ease;
}

.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-inner::before {
  content: '';
  top: -8px;
}

.hamburger-inner::after {
  content: '';
  top: 8px;
}

.nav-toggle[aria-expanded="true"] .hamburger-inner {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger-inner::before {
  transform: translateY(8px) rotate(45deg);
  background-color: var(--color-magenta);
}

.nav-toggle[aria-expanded="true"] .hamburger-inner::after {
  transform: translateY(-8px) rotate(-45deg);
  background-color: var(--color-magenta);
}

/* --- Hero Banner (Homepage) --- */
.hero-banner {
  padding: 40px 20px 0;
  position: relative;
  z-index: 10;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.hero-badge {
  display: inline-block;
  background: rgba(10, 60, 100, 0.85);
  backdrop-filter: blur(2px);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 18px;
  /*border-radius: 50px;*/
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(10, 60, 100, 0.15);
}

/* Title logo: right-aligned, overlapping the content-card below by 44% of logo height */
.hero-title-container {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0;
}

.hero-title-img {
  max-width: 580px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 25px rgba(255, 255, 255, 0.6));
  transform: translateY(44%);
  position: relative;
  z-index: 20;
}

.hero-tagline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: -25px;
  /* Subtle negative margin to overflow into main card */
  position: relative;
  z-index: 15;
}

.hero-date,
.hero-theme {
  background: #fff;
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
}

.hero-date {
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}

.hero-theme {
  color: var(--color-magenta);
  border: 2px solid var(--color-magenta);
}

/* Subpage Header Strip */
.subpage-header-strip {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(2px);
  border-bottom: 1px solid rgba(10, 60, 100, 0.08);
  padding: 10px 0;
  margin-bottom: 24px;
}

.subpage-breadcrumb {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.subpage-breadcrumb a {
  color: var(--color-navy);
  font-weight: 600;
}

.subpage-breadcrumb span {
  color: var(--color-magenta);
  font-weight: 700;
}

/* Main Content Area */
.main-content {
  flex: 1;
  padding-bottom: 60px;
}

.page-home .main-content {
  /* Reduced top padding because the logo overlaps 44% of its height into the card */
  padding-top: 0;
}

/* --- Frosted Glass Content Cards --- */
.content-card {
  background: var(--color-bg-card);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
/*  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg); */
  box-shadow: var(--shadow-md);
  margin-bottom: 30px;
  overflow: hidden;
}

.card-body {
  padding: 36px;
}

/* Homepage intro card: push content below the overlapping logo.
   Logo rendered height ≈ 281px (580px wide, 1889×915 source), 44% overlap ≈ 124px. */
.page-home .intro-card>.card-body {
  padding-top: 124px;
}

.content-header-card {
  background: var(--color-bg-card);
  backdrop-filter: blur(2px);
  /*border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);*/
  box-shadow: var(--shadow-md);
  padding: 30px 36px;
  margin-bottom: 24px;
}

.page-main-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.page-main-subtitle {
  font-size: 1.15rem;
  color: var(--color-magenta);
  font-weight: 700;
}

/* Typography styles for parsed Markdown */
.typography h1 {
  font-size: 1.8rem;
  margin-top: 1.2em;
  margin-bottom: 0.6em;
  color: var(--color-navy);
}

.typography h2 {
  font-size: 1.5rem;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  color: var(--color-navy);
  padding-bottom: 6px;
}

.typography h3 {
  font-size: 1.25rem;
  margin-top: 1.2em;
  margin-bottom: 0.4em;
  color: var(--color-magenta);
}

.typography h4 {
  font-size: 1.1rem;
  margin-top: 1em;
  margin-bottom: 0.4em;
  color: var(--color-navy);
}

.typography p {
  margin-bottom: 1.1em;
  font-size: 1.05rem;
  color: #243345;
}

.typography strong {
  font-weight: 700;
  color: var(--color-navy-dark);
}

.typography ul,
.typography ol {
  margin-left: 24px;
  margin-bottom: 1.2em;
}

.typography li {
  margin-bottom: 0.4em;
}

.typography hr {
  border: 0;
  height: 2px;
  background-color: var(--color-magenta);
  margin: 30px 0;
}

/* --- Poster-Style Program Cards --- */
.section-home-program {
  margin-top: 40px;
}

.section-heading-wrap {
  text-align: center;
  margin-bottom: 30px;
}

.section-title {
  text-align: right;
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-navy);
  text-shadow: white 0px 0px 20px ;
  margin-bottom: 6px;
}

.section-subtitle {
  text-align: right;
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
  text-shadow: var(--color-navy) 0px 0px 8px;
}

.program-cards-list,
.program-full-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.program-card {
  background: var(--color-bg-card);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: var(--radius-md);
  /* border: 1px solid var(--color-border-light); */
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.program-card:hover {
  box-shadow: var(--shadow-lg);
  /* transform: translateY(-2px); */
}

/* Poster Magenta Strip Header */
.program-card-header {
  background-color: var(--color-magenta);
  color: #fff;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.program-date-tag {
  display: flex;
  align-items: center;
  gap: 10px;
}

.program-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 10px;
  /*border-radius: 20px;*/
}

.program-date-text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f6b1cf;
}

.program-title-tag {
  font-size: 1.5rem;
  font-weight: 200;
  color: #fff;
  margin: 0;
}

.program-title-tag a {
  color: #fff;
  text-decoration: none;
}

.program-title-tag a:hover {
  text-decoration: underline;
  color: #fff;
}

.program-title-tag a .perf-title {
	font-weight: bold;
} 

.program-card-body {
  padding: 24px 28px;
}

.program-venue {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--color-navy);
  font-weight: 600;
  margin: -24px -28px 12px -28px;
/*  padding: 12px 28px 12px 20px; */
  padding: 6px 28px 6px 20px;
  background: rgba(255,255,255,0.5);
}

.program-venue .icon-pin {
  color: var(--color-magenta);
  flex-shrink: 0;
}

.program-subtitle-text {
  font-size: 1.05rem;
  color: #334455;
  margin-bottom: 16px;
}

.program-description {
  margin-bottom: 20px;
}

.program-description h3 {
  font-size: 1.8rem;
}

.program-detail-text h3 {
  font-size: 1.8rem;
}

/* Artist tags strip */
.program-artists-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 16px;
  /*background: var(--color-navy-light);
  border-radius: var(--radius-sm);*/
  margin-bottom: 20px;
}

.artists-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.artists-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.artist-pill {
  background: #fff;
  color: var(--color-navy);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 12px;
  /* border-radius: 20px; */
  border: 1px solid rgba(10, 60, 100, 0.15);
  transition: all var(--transition-fast);
}

.artist-pill:hover {
  background: var(--color-magenta);
  color: #fff;
  border-color: var(--color-magenta);
}

/* Card Actions */
.program-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(10, 60, 100, 0.08);
}

.home-program-footer {
  text-align: center;
  margin-top: 36px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: none;
}

.btn-primary {
  background: var(--color-magenta);
  color: #fff;
  /* box-shadow: 0 4px 12px rgba(228, 0, 102, 0.25); */
  box-shadow: 0 4px 12px rgba(60, 60, 60, 0.25);
}

.btn-primary:hover {
  background: var(--color-magenta-hover);
  color: #fff;
  /* box-shadow: 0 6px 18px rgba(228, 0, 102, 0.35); */
  box-shadow: 0 6px 18px rgba(60, 60, 60, 0.35);
  /* transform: translateY(-1px); */
}

.btn-secondary {
  background: var(--color-navy-light);
  color: var(--color-navy);
  border: 1px solid rgba(10, 60, 100, 0.15);
}

.btn-secondary:hover {
  background: var(--color-navy);
  color: #fff;
}

.btn-ticket {
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--color-navy-mid);
}

.btn-large {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-subtle {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-navy);
}

.btn-subtle:hover {
  color: var(--color-magenta);
  text-decoration: underline;
}

/* --- Concert Detail Page --- */
.back-nav-bar {
  margin-bottom: 20px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  color: var(--color-navy);
  background: rgba(255, 255, 255, 0.8);
  padding: 8px 16px;
  /* border-radius: 30px; */
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-sm);
}

.back-link:hover {
  color: var(--color-magenta);
  background: #fff;
}

.program-card-detail {
  margin-bottom: 40px;
}

.detail-meta-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 16px 20px;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.detail-meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-navy);
  font-size: 1rem;
}

.detail-meta-item .icon-pin {
  color: var(--color-magenta);
}

.detail-lead-subtitle {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 20px;
}

.detail-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
  padding-top: 20px;
}

/* --- Embedded Artist Section in Program Detail --- */
.section-embedded-artists {
  margin-top: 40px;
}

.artists-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.artist-card {
  background: var(--color-bg-card);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid var(--color-border-light);
  border-left: 6px solid var(--color-magenta);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 28px 32px;
}

.artist-header {
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(10, 60, 100, 0.08);
  padding-bottom: 12px;
}

.artist-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-navy);
}

.artist-role {
  font-size: 1rem;
  color: var(--color-magenta);
  font-weight: 600;
}

.artist-body {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.artist-photo-wrap {
  flex: 0 0 240px;
  position: relative;
}

.artist-photo {
  width: 100%;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.artist-photo-wrap:hover .artist-photo {
  transform: scale(1.02);
}

.photo-zoom-hint {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(10, 60, 100, 0.75);
  color: #fff;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: background var(--transition-fast);
}

.artist-photo-wrap:hover .photo-zoom-hint {
  background: var(--color-magenta);
}

.photo-caption {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 6px;
  text-align: center;
  font-style: italic;
}

.artist-text {
  flex: 1;
}

.artist-video-container {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed rgba(10, 60, 100, 0.15);
}

.video-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.video-responsive {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #000;
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.artist-footer {
  margin-top: 16px;
  text-align: right;
  padding-top: 10px;
}

/* Standalone artist page wrapper */
.artist-standalone-wrapper .artist-card {
  border-left: none;
  padding: 0;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.artist-standalone-wrapper > .card-body {
  background: transparent;
}

.section-artist-concerts {
  margin-top: 36px;
}

/* --- Vstupenky / Tickets Page --- */
.tickets-table-card {
  background: var(--color-bg-card);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-light);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 24px;
}

.tickets-list {
  display: flex;
  flex-direction: column;
}

.ticket-row-item {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(10, 60, 100, 0.08);
  gap: 20px;
  transition: background var(--transition-fast);
}

.ticket-row-item:last-child {
  border-bottom: none;
}

.ticket-row-item:hover {
  background: rgba(255, 255, 255, 0.5);
}

.ticket-row-date {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ticket-date-val {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-navy);
}

.ticket-concert-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.ticket-concert-title a {
  color: var(--color-navy);
}

.ticket-concert-title a:hover {
  color: var(--color-magenta);
}

.ticket-venue-text {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticket-venue-text .icon-pin {
  color: var(--color-magenta);
}

.tickets-notice-card {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(2px);
  border: 1px solid var(--color-border-light);
  border-left: 4px solid var(--color-cyan);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
}

.notice-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.notice-content h4 {
  font-size: 1.1rem;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.notice-content p {
  font-size: 0.95rem;
  color: #334455;
  margin: 0;
}

/* --- Historie / Posters Gallery --- */
.section-history-gallery
{ padding: 30px;
  background: rgba(255,255,255,0.5);
}

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

.poster-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.poster-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.poster-thumb-wrap {
  position: relative;
  aspect-ratio: 1 / 1.414;
  /* A-series poster ratio */
  overflow: hidden;
  background: var(--color-navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.poster-card:hover .poster-thumb {
  transform: scale(1.05);
}

.poster-pdf-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--color-navy);
  font-weight: 700;
}

.poster-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 60, 100, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.poster-card:hover .poster-zoom-overlay {
  opacity: 1;
}

.poster-meta {
  padding: 14px 18px;
  background: #fff;
  text-align: center;
}

.poster-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
}

.posters-empty-card {
  background: var(--color-bg-card);
  backdrop-filter: blur(2px);
  border-radius: var(--radius-lg);
  border: 2px dashed rgba(10, 60, 100, 0.2);
  padding: 48px 32px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.posters-empty-card h3 {
  font-size: 1.3rem;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.posters-empty-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* --- Kontakt / Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.form-title {
  font-size: 1.4rem;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.form-lead {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--color-magenta);
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text-main);
  background: #fff;
  border: 1px solid rgba(10, 60, 100, 0.2);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-magenta);
  box-shadow: 0 0 0 3px rgba(228, 0, 102, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.alert-success {
  background: #E8F8F0;
  border: 1px solid #A3E4C1;
  color: #0E6238;
}

.alert-danger {
  background: #FDF2F4;
  border: 1px solid #F8B4C0;
  color: #9C142B;
}

.alert-icon {
  font-size: 1.25rem;
  font-weight: 900;
}

/* --- Partners & Logos Strip --- */
.section-partners {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 32px 0;
  margin-top: 40px;
}

.partners-heading {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px 48px;
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-item img {
  max-height: 48px;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.85);
  transition: all var(--transition-fast);
}

.logo-item img:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

.default-partners-box {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.organizers-text {
  font-size: 0.95rem;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.partners-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.partner-pill {
  background: var(--color-navy-light);
  color: var(--color-navy);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(10, 60, 100, 0.1);
}

.admin-hint {
  color: var(--color-text-muted);
  margin-top: 14px;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-navy-dark);
  color: #C3D5E5;
  padding: 40px 0 30px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-title {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff;
}

.footer-subtitle {
  font-size: 0.9rem;
  color: var(--color-cyan);
  font-weight: 600;
}

.footer-text {
  font-size: 0.85rem;
  color: #93A8BD;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #E1ECF5;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-magenta);
}

.footer-copy {
  font-size: 0.8rem;
  color: #7A8E9F;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  width: 100%;
}

.logo {
  height: 100px;
}

/* --- Lightbox Modal (<dialog>) --- */
.lightbox-dialog {
  border: none;
  background: transparent;
  padding: 0;
  margin: auto;
  max-width: 90vw;
  max-height: 90vh;
  outline: none;
  overflow: visible;
}

.lightbox-dialog::backdrop {
  background-color: rgba(7, 25, 45, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox-inner {
  position: relative;
  background: #000;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 38px;
  height: 38px;
  background: var(--color-magenta);
  color: #fff;
  border: 2px solid #fff;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  z-index: 10;
  transition: all var(--transition-fast);
}

.lightbox-close:hover {
  background: var(--color-magenta-hover);
  transform: scale(1.1);
}

.lightbox-media-wrapper {
  max-width: 100%;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-media-wrapper img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox-media-wrapper iframe {
  width: 80vw;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-sm);
}

.lightbox-caption {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-top: 10px;
  text-align: center;
  padding: 4px 12px;
}

/* --- Responsive Media Queries --- */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .ticket-row-item {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .ticket-row-date {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
  }

  .artist-body {
    flex-direction: column;
  }

  .artist-photo-wrap {
    flex: none;
    max-width: 320px;
    margin: 0 auto 16px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 2px solid var(--color-magenta);
    box-shadow: 0 10px 30px rgba(10, 60, 100, 0.15);
    padding: 16px 20px;
  }

  .primary-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .nav-link {
    padding: 10px 14px;
  }

  .hero-title-img {
    max-width: 90%;
  }

  .card-body {
    padding: 24px 20px;
  }

  .page-main-title {
    font-size: 1.7rem;
  }

  .program-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ticket-row-item {
    grid-template-columns: 1fr;
  }

  .ticket-row-action {
    margin-top: 8px;
  }

  .btn-buy-now {
    width: 100%;
  }
}

/* Gallery */
.markdown-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.gallery-item img {
    border-radius: 4px;
    display: block;
    transition: opacity 0.2s ease;
}

.gallery-item img:hover {
    opacity: 0.9;
}

/* Povolení animace na výšku `auto` pro moderní prohlížeče */
:root {
  interpolate-size: allow-keywords;
}

/* Kontejner akordeonu */
details.moje-rozbalovani {
  margin: 1em 0;
  /* Plynulý přechod výšky při rozbalení/sbalení */
  transition: height 0.3s ease, content-visibility 0.3s allow-discrete;
}

/* Tlačítko pro rozbalení */
details.moje-rozbalovani summary {
  cursor: pointer;
  font-weight: bold;
  color: #0066cc;
  user-select: none;
  list-style: none; /* Skryje výchozí šipku prohlížeče */
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

/* Skrytí výchozí šipky v Safari */
details.moje-rozbalovani summary::-webkit-details-marker {
  display: none;
}

/* Vlastní šipka pomocí pseudo-prvku */
details.moje-rozbalovani summary::after {
  content: "❯";
  display: inline-block;
  font-size: 0.8em;
  /* Plynulá rotace šipky */
  transition: transform 0.3s ease;
}

/* Otáčení šipky při otevřeném stavu (atribut [open]) */
details.moje-rozbalovani[open] summary::after {
  transform: rotate(90deg);
}

/* Změna textu na "Méně" po rozbalení (volitelné) */
/* details.moje-rozbalovani[open] summary { color: #d32f2f; } */

/* Plynulé animování obsahu pomocí CSS Grid (funkční ve všech prohlížečích) */
details.moje-rozbalovani .obsah {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

/* Při otevření se řádek gridu rozbalí na 1fr */
details.moje-rozbalovani[open] .obsah {
  grid-template-rows: 1fr;
}

/* Vnitřní obal pro správné fungování overflow u gridu */
details.moje-rozbalovani .obsah > div {
  overflow: hidden;
  padding-top: 0.5em;
  padding-left: 0.8em;
  border-left: 2px solid #0066cc;
}