/* style.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  color: #111827;
  padding: 1.5rem;
}

header {
  text-align: center;
  margin-bottom: 1.5rem;
}

header img {
  max-width: 220px;
  width: 100%;
  height: auto;
  margin-bottom: 0.75rem;
}

header h1 {
  font-size: 1.25rem;
  font-weight: 500;
}

main {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-wrapper {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

@supports not (aspect-ratio: 16 / 9) {
  .player-wrapper {
    position: relative;
    padding-top: 56.25%;
  }
  .player-wrapper > * {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

.info {
  max-width: 900px;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  color: #374151;
  text-align: center;
}

.info a {
  color: #2563eb;
  text-decoration: none;
  word-break: break-word;
}

.info a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 1.05rem;
  }
}

/* Landscape mobile */
@media (max-width: 900px) and (orientation: landscape) {
  body { padding: 0; }
  header, .info { display: none; }
  main { height: 100vh; }
  .player-wrapper { width: 100vw; height: 100vh; max-width: none; aspect-ratio: auto; border-radius: 0; }
  #player { width: 100%; height: 100%; }
}

/* Desktop - elastyczne skalowanie playera */
@media (min-width: 901px) {
  main { height: auto; }
  .player-wrapper { max-width: 100%; height: auto; aspect-ratio: 16 / 9; }
  #player { width: 100%; height: 100%; }
}

