body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f5f5;
  color: #222;
  line-height: 1.5;
}

header {
  background: linear-gradient(135deg, #7cc576, #3fae8a);
  color: white;
  padding: 40px 20px;
  text-align: center;
}

header h1 {
  margin: 0 0 10px;
  font-size: 28px;
}

header p {
  margin: 0 0 20px;
  font-size: 16px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.btn {
  background: white;
  color: #24916c;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

section {
  background: white;
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

section h2 {
  margin-top: 0;
  font-size: 20px;
}

.columns-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 12px;
}

.card h3 {
  margin: 8px 0;
  font-size: 16px;
}

.card img {
  width: 100%;
  display: block;
  border-radius: 12px;
  margin-bottom: 8px;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  background: #e4f7ea;
  color: #2c8054;
  margin-bottom: 6px;
}

ul {
  padding-left: 18px;
  margin: 6px 0;
}

footer {
  text-align: center;
  font-size: 12px;
  color: #777;
  padding: 15px 10px 25px;
}

a {
  color: #24916c;
}

/* WIDEO – lista kafelków */
.video-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.video-item {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 12px;
}

.video-item h3 {
  margin-top: 8px;
}

.video-item a {
  font-weight: 600;
  text-decoration: none;
}

.video-item a:hover {
  text-decoration: underline;
}

/* Ramka na iframe, żeby zachować proporcje 16:9 */
.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 700px) {
  header h1 {
    font-size: 34px;
  }
  header p {
    font-size: 18px;
  }
}

/* MINIATURKI VIDEO – opcja B */
.video-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.video-item {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 12px;
}

.video-item h3 {
  margin-top: 8px;
}

.video-item a {
  font-weight: 600;
  text-decoration: none;
}

.video-item a:hover {
  text-decoration: underline;
}

/* Miniaturka, która potem zamienia się w player */
.video-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 8px;
  background: #000;
}

.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Przycisk play na środku miniaturki */
.play-button {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: white;
  text-shadow: 0 0 8px rgba(0,0,0,0.7);
}

/* iframe po kliknięciu */
.video-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
