body {
    font-family: Arial, sans-serif;
    text-align: center;
    padding-top: 50px;
    background-color: #1e1e1e;
}

h1 {
    color: #6a5acd;
}

h2 {
  color: inherit;
}

h3 {
    color: #aaaaaa;
}

p {
    color: #ffffff;
}

.video-island {
  width: 300px;
  background-color: #2b2b2b;
  border: 2px solid #3c3c3c;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.5);
  transition: 
  transform 0.2s ease, 
  box-shadow 0.2s ease, 
  background-color 0.2s ease, 
  border-color 0.2s ease;
}

.video-island:hover {
  transform: scale(1.05);
  background-color: #3c3c3c;
  border-color: #4d4d4d;
  box-shadow: 2px 4px 12px rgba(0,0,0,0.6);
}

.video-island iframe {
    width: 100%;
    height: 200px;
    border-radius: 10px;
}

.video-title {
  margin-top: 10px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  color: #ffffff;
}

.video-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 20px;
}

.video-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px;
}

.video-wrapper {
  width: 100%;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.youtube-button {
    all: unset;
    display: inline-block;
    text-align: center;
    background-color: #ff0000;
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.4);
    transition: 
    background-color 0.2s ease, 
    transform 0.1s ease, 
    box-shadow 0.2s ease,
    border-radius 0.3s ease;
}

.youtube-button:hover {
    background-color: #ff0033;
    transform: scale(1.05);
    box-shadow: 2px 4px 12px rgba(0,0,0,0.5);
    border-radius: 12px;
}

#toggle-shorts {
  display: inline-block;
  background-color: #2b2b2b;
  color: white;
  padding: 10px 20px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 12px;
  border: 2px solid #3c3c3c;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.5);
  transition: background-color 0.2s ease, transform 0.1s ease, border-color 0.2s ease;
  margin-bottom: 20px;
}

#toggle-shorts:hover {
  background-color: #3c3c3c;
  border-color: #4d4d4d;
  transform: scale(1.05);
  box-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.shorts-container,
.shorts-title {
  opacity: 1;
  max-height: 1000px;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease;
}

.fade-hidden {
  opacity: 0;
  max-height: 0;
  pointer-events: none;
}

.fade-hidden {
  opacity: 0;
  pointer-events: none;
}

.fade-hidden {
  opacity: 0;
  pointer-events: none;
}

.shorts-title {
  text-align: center;
  color: #6a5acd;
  font-size: 2rem;
  margin-top: 40px;
  margin-bottom: 10px;
  display: block;
}

.short-video-wrapper {
  width: 100%;
  position: relative;
  padding-bottom: 177.77%;
  height: 0;
}

.short-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  display: block;
}

.shorts-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
  overflow: visible;
}

.short-island {
  flex: 0 0 240px;
  max-width: 240px;
  min-width: 180px;
  background-color: #2b2b2b;
  border: 2px solid #3c3c3c;
  border-radius: 10px;
  text-align: center;
  padding: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.short-island:hover {
  transform: scale(1.05);
  background-color: #3c3c3c;
  border-color: #4d4d4d;
  box-shadow: 0 6px 15px rgba(0,0,0,0.6);
}

.short-island iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border: none;
  border-radius: 8px;
  display: block;
}

@media (max-width: 480px) {
  .short-island {
    flex: 0 0 85%;
    max-width: 85%;
    min-width: 150px;
  }
}

body {
  overflow-x: visible;
}

.short-caption {
  text-align: center;
  font-weight: 600;
  color: #ffffff;
  margin-top: 8px;
}

.divider {
  position: relative;
  width: 100%;
  height: 2px;
  background-color: #3c3c3c;
  margin: 40px auto;
  z-index: 9999;
  display: block;
  flex-shrink: 0;
  pointer-events: none;
}
