.gc1 { --title-color: rgba(73, 223, 61,0.4); }
.gc2 { --title-color: rgba(94, 179, 232,0.4); }
.gc4 { --title-color: rgba(216, 110, 204,0.4); }
.gc5 { --title-color: rgba(160, 43, 147,0.4); }

.video-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  width: calc(33.333% - 20px);
  min-width: 280px;
  align-self: stretch;
}

.stacked-icon {
  color: color-mix(in oklch shorter hue, var(--title-color) 100%, #FCF434 100%);
  font-weight: bold;
  font-size: 68px;
  margin-bottom: 10px;
}

.container-body.centred.desc.difColour.rRed {
  position: relative;
}

.poem-logo {
  display: block;
  height: 100%;
  width: 100%;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
}

.poem-text {
  width: 100%;
  text-align: center;
}

.youtube-banner-wrapper {
  position: relative;
  width: 100%;
  min-height: 240px;
  overflow: hidden;
}

.youtube-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.video-title{
  font-size: 1.2em;
  font-family: Maple Mono, monospace;
}

.video-desc {
    margin-top: 10px;
    font-size: 1.05em;
    color: #FCF434;
    font-size: 15px;
    margin-bottom: 10px;
    font-size: 1em;
    opacity: 75%;
    font-family: Maple Mono, monospace;
}

.video-desc.difColour {
    color: color-mix(in oklch shorter hue, var(--title-color) 100%, #ffffff 100%);
}

@media (max-width: 768px) {
  .poem-row { display: flex !important; flex-direction: column !important; align-items: center !important; gap: 0px !important; width: 100% !important; margin-top: 0 !important; }
  .logo-box { order: -1 !important; align-self: center !important; width: 90% !important; max-width: 300px !important; height: auto !important; padding: 6px !important; flex-basis: auto !important; }
  .text-box { order: 0 !important; width: 70% !important; padding: 8px 6px !important; flex-basis: auto !important; }
  .logo-box > .poem-logo, .logo-box img { width: 100% !important; height: auto !important; object-fit: contain !important; display: block !important; }
  
  .youtube-banner-wrapper { min-height: 100px !important; }
  .youtube-banner { object-fit: cover !important; }
  
  .container.alt { margin-top: -10px !important; }
}

.episode-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 25px 40px;
}

.episode-grid {
  gap: 20px;
  margin: 20px 25px 40px;

  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.episode-card {
  display: flex;
  gap: 20px;
  align-items: stretch;

  background-color: color-mix(in srgb, var(--title-color, rgba(58,52,76,0.6)) 55%, transparent);
  border: 2px inset color-mix(in srgb, var(--title-color, #ff4fa3) 80%, transparent);
  border-radius: 12px;

  padding: 12px;

  text-decoration: none;
  color: inherit;

  transition: transform 0.2s ease, background-color 0.2s ease;
}

.episode-card:hover {
  transform: scale(1.02);

  background-color: color-mix(
    in srgb,
    var(--title-color, rgba(58,52,76,0.7)) 75%,
    transparent
  );
}

.episode-thumbnail {
  width: 320px;
  aspect-ratio: 16 / 9;

  object-fit: cover;

  border-radius: 8px;
  flex-shrink: 0;
}

.episode-info {
  display: flex;
  flex-direction: column;
  justify-content: center;

  text-align: left;
}

@media (max-width: 768px) {

  .episode-card {
    flex-direction: column;
  }


  .episode-thumbnail {
    width: 100%;
  }


  .episode-info {
    text-align: center;
  }


}




.episode-number {
  font-family: "Maple Mono", monospace;
  font-size: 1em;

  opacity: 0.9;

  margin-bottom: 4px;
}


.episode-title {
  font-family: "Maple Mono", monospace;
  font-size: 1.35em;

  color: color-mix(
    in oklch shorter hue,
    var(--title-color) 100%,
    #ffffff 100%
  );

  margin-bottom: 10px;
}


.episode-date {
  font-family: "Maple Mono", monospace;

  font-size: 1em;
  opacity: 0.65;

  margin-bottom: 14px;

  font-style: italic;
}


.episode-desc {
  font-family: "Maple Mono", monospace;

  font-size: 1.1em;
  opacity: 0.9;

  line-height: 1.5;
}


.season-header {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 15px;

    margin: 40px auto 25px;
    width: 90%;
}


.season-title {
    padding: 10px 45px;

    background-color: color-mix(
        in srgb,
        var(--title-color, #49df3d) 35%,
        transparent
    );

    border: 2px inset color-mix(
        in srgb,
        var(--title-color, #49df3d) 90%,
        transparent
    );

    border-radius: 15px;

    font-family: "Maple Mono", monospace;
    font-size: 1.3em;
    font-weight: bold;

    text-align: center;

    color: white;
}


.season-decoration {
    height: 3px;

    flex: 1;

    background-color: var(--title-color, #49df3d);

    border-radius: 5px;
}


.poem-row {
  display: flex;
  align-items: stretch;
  gap: 16px;
  width: 100%;
}

.text-box,
.logo-box {
  flex: 1 1 0;
  width: 50%;
  box-sizing: border-box;
}

.text-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.logo-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px !important;
  overflow: hidden;
  border-radius: 12px;
  box-sizing: border-box;
}

.logo-box img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 8px;
}

.cast-grid {
    display: grid;

    grid-template-columns: repeat(5, 1fr);
    gap: 20px;

    margin: 20px 25px 40px;
}



.cast-card {
    display: flex;
    flex-direction: column;

    align-items: center;

    padding: 14px;

    text-align: center;

    background-color: color-mix(
        in srgb,
        var(--title-color, rgba(58,52,76,0.6)) 55%,
        transparent
    );

    border: 2px inset color-mix(
        in srgb,
        var(--title-color, #ff4fa3) 80%,
        transparent
    );

    border-radius: 12px;

    transition: transform 0.2s ease, background-color 0.2s ease;
}

.cast-card.hover:hover {
  transform: scale(1.06);

  background-color: color-mix(
    in srgb,
    var(--title-color, rgba(58,52,76,0.7)) 75%,
    transparent
  );
}

.cast-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* centers incomplete rows */
    gap: 20px;

    margin: 20px 25px 40px;
}

.cast-card {
    flex: 0 0 calc(20% - 16px); /* 5 per row */
    box-sizing: border-box;
}


@media (max-width: 1100px) {
    .cast-card {
        flex-basis: calc(25% - 16px); /* 4 per row */
    }
}

@media (max-width: 900px) {
    .cast-card {
        flex-basis: calc(50% - 16px); /* 2 per row */
    }
}

@media (max-width: 600px) {
    .cast-card {
        flex-basis: 100%; /* 1 per row */
    }
}


.cast-name {
    font-family: "Maple Mono", monospace;
    font-size: 1.4em;

    margin-bottom: 2px;
}

.cast-pronouns {
    font-family: "Maple Mono", monospace;
    font-size: 1em;

    opacity: 0.8;
}

.cast-links {
    display: flex;
    justify-content: center;

    gap: 18px;

    margin-top: 10px;
}

.cast-links a {
    font-size: 1.5em;
}

.cast-links a:hover {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

@media (max-width: 900px) {

    .cast-grid {
        grid-template-columns: repeat(2, 1fr);
    }     

}

@media (max-width: 600px) {

    .cast-grid {
        grid-template-columns: 1fr;
    }
}

.cast-appearances {
    font-family: "Maple Mono", monospace;

    font-size: 0.95em;

    opacity: 0.75;

    margin-top: 12px;

    font-style: italic;
}




.index-grid {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 20px;
}

.index-grid .cast-card {
width: 320px;
flex: 0 0 320px;
}









.collapsible {
cursor: pointer;
}

.section-content {
overflow: hidden;
max-height: 5000px;
opacity: 1;

transition:
  max-height .35s ease,
  opacity .25s ease;
}

.section-content.collapsed {
max-height: 0;
opacity: 0;
}




.season-title span {
display: inline-block;
transition: transform .25s ease;
margin-right: 8px;
}

.collapsible.closed .season-title span {
transform: rotate(-90deg);
}



.container {
max-width: 1300px;
}


.episode-card.centered .episode-info {
justify-content: center;
align-items: center;
text-align: center;
flex: 1;
}


.season-description-card {
display: block;

background-color: color-mix(
  in srgb,
  var(--title-color, rgba(58,52,76,0.6)) 55%,
  transparent
);

border: 2px inset color-mix(
  in srgb,
  var(--title-color, #ff4fa3) 80%,
  transparent
);

border-radius: 12px;

padding: 20px;

text-align: center;
text-decoration: none;
color: inherit;
}
