html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body {
  background-image: url("/img/bg.webp");
  background-size: cover;
  background-attachment: fixed;
}

/* Szöveges elemek és tipográfia */
h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
  letter-spacing: 1px;
  line-height: 2em;
  margin: 0;
  text-align: center;
} 

a {
  text-decoration: none;
  color: inherit;
  display: block;
}

 /* Inline gyors stílusok a form elemekhez, szükség szerint külön CSS-be is tehető */
    form { margin: 15px 0; }
    input[type="text"], select { padding: 6px 10px; margin-right: 8px; border-radius: 6px; border: 1px solid #444; background: #222; color: white; min-width: 180px; }
    button { padding: 8px 14px; border: none; border-radius: 6px; cursor: pointer; background: #00bcd4; color: black; font-weight: 600; transition: background-color 0.3s ease; }
    button:hover { background: #0099aa; }
    .playlist-selector select { min-width: 200px; background-color: #0f0f0f; color: #f0f0f0; border: none; padding: 10px 14px; border-radius: 8px; font-size: 16px; appearance: none; outline: none; cursor: pointer; box-shadow: inset 0 0 0 1px #444; transition: all 0.3s ease; }
    .playlist-selector select:hover { background-color: #1e1e1e; box-shadow: inset 0 0 0 1px #888; }
    .playlist-selector select:focus { box-shadow: 0 0 0 2px #00bcd4; }
    .video-grid { display: flex; flex-wrap: wrap; gap: 12px; }
    .video-card { background: #222; padding: 12px; border-radius: 8px; max-width: 220px; color: white; }
    .video-card img { width: 100%; border-radius: 6px; }
    .video-card form { margin-top: 8px; }
    .video-card input[type="text"] { width: calc(100% - 16px); }
    .video-card button { width: 100%; margin-top: 6px; }
    /* video-thumb stílus (javasolt, mert script használja) */
    .video-thumb { cursor: pointer; border: 2px solid transparent; border-radius: 8px; padding: 6px; max-width: 220px; color: white; background: #222; }
    .video-thumb.active { border-color: #00bcd4; background: #333; }
    .video-thumb img { width: 100%; border-radius: 6px; display: block; }
    .video-thumb p { margin: 6px 0 0 0; font-weight: 600; font-size: 14px; }
	.admin-panel-wrapper {
    background-color: #1e1e1e;
    border: 2px solid #3a9fd1;
    padding: 20px;
    border-radius: 12px;
    margin: 30px auto;
    max-width: 800px;
    color: #dceeff;
    box-shadow: 0 0 12px rgba(0, 174, 255, 0.2);
}

.admin-panel-wrapper h3 {
    margin-top: 0;
    font-size: 24px;
    color: #4dc8ff;
    border-bottom: 1px solid #4dc8ff;
    padding-bottom: 5px;
}

.admin-panel-wrapper form {
    margin-bottom: 15px;
}

.admin-panel-wrapper input,
.admin-panel-wrapper button,
.admin-panel-wrapper select {
    margin-top: 5px;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #444;
    background-color: #2a2a2a;
    color: #e1f5ff;
    width: 100%;
}

.admin-panel-wrapper button {
    background-color: #3a9fd1;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.admin-panel-wrapper button:hover {
    background-color: #5bc0f7;
}

.video-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
}

.video-display iframe {
  width: 280vw;
  height: 85vw;
  max-width: 2560px;
  border: 3px solid rgba(0, 255, 255, 0.4);
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
  margin-bottom: 10px;
}

.video-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 70px;
}

.video-thumb {
  width: 180px;
  cursor: pointer;
  text-align: center;
  color: white;
  position: relative;
  background: #222;
  padding: 12px;
  border-radius: 8px;
  max-width: 220px;
}

.video-thumb img {
  width: 100%;
  border-radius: 6px;
  transition: transform 0.2s;
}

.video-thumb:hover img {
  transform: scale(1.05);
}

.video-thumb.active {
  outline: 2px solid #00bcd4;
  background-color: #1a1a1a;
  border-radius: 6px;
}

.video-thumb form {
  margin-top: 8px;
}

/* Videó kijelző + chat */
.video-display-container {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.video-display {
  flex: 1 1 70%;
  min-width: 320px;
  max-width: 1400px;
}

.video-display iframe {
  width: 100%;
  height: calc(100vw * 9 / 16);
  max-height: 750px;
  border-radius: 12px;
  border: 3px solid rgba(0, 255, 255, 0.4);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.video-chat {
  display: flex;
  flex-direction: column;
  flex: 1 1 25%;
  min-width: 200px;
  max-width: 360px;
  height: 600px;
  background: #1e1e1e;
  padding: 15px;
  border-radius: 10px;
  color: white;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
  margin-top: 60px;
}

.video-chat h3 {
  margin-top: 0;
  color: #00bcd4;
  font-size: 1.2em;
}

#chatMessages {
  flex: 1 1 auto;
  overflow-y: auto;
  margin-bottom: 12px;
}

#chatMessages p {
  margin: 8px 0;
  border-bottom: 1px solid #444;
  padding-bottom: 5px;
}

.chat-input {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.chat-input input {
  flex: 1;
  padding: 8px;
  border-radius: 6px;
  border: none;
  background-color: #2a2a2a;
  color: white;
  font-size: 14px;
  min-width: 0;
}

.chat-input button {
  padding: 8px 12px;
  border: none;
  background-color: #00bcd4;
  color: black;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.chat-input button:hover {
  background-color: #00a0b0;
}

.playlist-selector {
  display: flex;
  justify-content: center;
  margin: 10px auto;
  padding: 6px 12px;
  background: linear-gradient(to right, #1a1a1a, #2c2c2c);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.separator-line {
  width: 100%;
  height: 6px;
  margin: 30px 0;
  background: linear-gradient(90deg, #2b24f0, #00bcd4);
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(43, 36, 240, 0.6);
}

.playlist-selector select {
  width: 200px;
  background-color: #0f0f0f;
  color: #f0f0f0;
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 16px;
  appearance: none;
  outline: none;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px #444;
  transition: all 0.3s ease;
}

.playlist-selector select:hover {
  background-color: #1e1e1e;
  box-shadow: inset 0 0 0 1px #888;
}

.playlist-selector select:focus {
  box-shadow: 0 0 0 2px #00bcd4;
}



/* Extra kicsi képernyőkre (régebbi/kisebb mobilok) */
@media (max-width: 480px) {
  h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 18px;
    padding: 6px;
  }

  h3 {
    font-size: 16px;
  }

  .video-thumb {
    width: 100px;
  }

  .bubble-title,
  .bubble-title2 {
    font-size: 0.9em;
    padding: 8px;
  }

  .link-bubble,
  .link-bubble2 {
    height: 150px;
  }

  .cardText,
  .transpcardText {
    font-size: 15px;
    padding: 10px;
  }

  .collcard-title {
    font-size: 20px;
  }

  .collcard-img {
    width: 60px;
    height: 60px;
    margin-right: 10px;
  }

  .comment-form input[type="text"],
  .chat-input input {
    font-size: 13px;
    padding: 6px 8px;
  }

  .comment-form button,
  .chat-input button {
    font-size: 13px;
    padding: 6px 10px;
  }

  .playlist-selector select,
  .ship-select select {
    font-size: 14px;
    padding: 8px 10px;
    width: 160px;
  }

  .video-chat {
    font-size: 13px;
    padding: 8px;
  }

  .image-item {
    padding: 12px;
  }

  .image-frame {
    height: 200px;
  }
  
    .video-display iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .video-thumb {
    width: 45vw;
  }