.modal-dialog {
    max-width: 800px;
    margin: 1.75rem auto;
    text-align: center;
}

.modal-dialog.modal-lg {
    max-width: 900px;
    margin: 1.75rem auto;
}

.modal-body {
    position: relative;
    padding: 0px;
    align-items: center;
    overflow: auto;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: auto;
}

.modal-content {
    background-color: #000;
    border: none;
    max-height: calc(100vh - 80px);
    overflow: hidden;
}

.btn-close {
    position: absolute;
    right: -30px;
    top: 0;
}

.btn-close-white {
    filter: invert(1) grayscale(100%) brightness(200%);
}

li.splide__slide {
    text-align: center;
}

.splide__slide__container {
    text-align: center;
    display: block;
    background: none !important; /* was pink !important; remove background images */
}

/* Use the IMG element (no cropping). Adjust max-height to suit your layout */
.splide__slide__container img,
.splide__slide img {
  width: 100%;
  height: auto;               /* keep natural aspect */
  object-fit: contain;        /* show full poster */
  object-position: center;
  display: block !important;  /* ensure the <img> isn't hidden */
  border-radius: 8px;
  transition: transform 600ms;
  transform: scale(.8);
  opacity: 0.5;
}

/* Active slide visuals */
.splide__slide.is-active img {
  transform: scale(1);
  opacity: 1;
}

/* Responsive height control if you want a fixed visual height (optional)
   Remove if you prefer natural heights.
*/
@media (min-width: 768px) {
  .splide__slide__container img {
    max-height: 260px; /* optional: controls visual height */
  }
}

.social-icon {
    height: 40px;
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 27px;
    border-radius: 7px;
    margin-right: 11px;
    cursor: pointer
}

.fab a {
    color: #fff !important;
}

@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.col {
    flex: 1 1 100%;
}

@media (min-width: 768px) {
    .col {
        flex: 1 1 48%;
    }
}

body {
    color: #111827;
    background-color: white;
    margin: 0;
}

.container {
    margin: auto;
}

.header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.logo {
    height: 60px;
    width: auto;
}

.pill-menu {
    display: flex;
    /* justify-content: center; */
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.pill {
    padding: 0.5rem 1rem;
    border-radius: .25rem;
    display: block;
    color: #374151;
    background-color: #f3f4f6;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-link {
    display: block;
    padding: .5rem 1rem;
    text-decoration: none;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out;
}

.pill:hover {
    background-color: #2563eb;
    transform: scale(1.05);
}

.pill.active {
    background-color: #2563eb;
    color: white;
    transform: scale(1.1);
}

.legend {
    text-align: center;
    margin-bottom: 1rem;
    color: #9ca3af;
}

.badge {
    display: inline-block;
    background: #10b981;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    margin-left: 0.5rem;
}

.card {
    background: light-grey;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sessiontime {
    border-radius: 1rem;
}

@media (min-width: 640px) {
    .card:not(.sessiontime) {
        flex-direction: row;
        gap: 1.5rem;
    }
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.5);
}

.poster {
    width: 100%;
    max-width: 150px;
    height: auto;
    object-fit: cover;
    border-radius: 0.5rem;
    align-self: center;
}

.card-content {
    flex: 1;
}

.card h2 {
    margin-top: 0;
    font-size: 1.5rem;
    color: #27292e;
}

.description {
    color: #727478;
    margin: 0.5rem 0 1rem;
}

.info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.95rem;
    color: #626468;
}

    .info div {
        display: flex;
        align-items: center;
    }

.buttons {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.button {
    background-color: #3b82f6;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-align: center;
}

    .button:hover {
        background-color: #2563eb;
    }

.showtime {
    background-color: #5990ee;
    color: white;
    padding: 0.25rem 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

    .showtime.special {
        background-color: #10b981;
        color: white;
    }
h1:focus {
    outline: none;
}


.loader,
.loader:after {
    border-radius: 50%;
    width: 10em;
    height: 10em;
}

.loader {
    margin: 60px auto;
    font-size: 10px;
    position: relative;
    text-indent: -9999em;
    border-top: 1.1em solid rgba(255, 255, 255, 0.2);
    border-right: 1.1em solid rgba(255, 255, 255, 0.2);
    border-bottom: 1.1em solid rgba(255, 255, 255, 0.2);
    border-left: 1.1em solid #ffffff;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation: load8 1.1s infinite linear;
    animation: load8 1.1s infinite linear;
}

@-webkit-keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes load8 {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

#loadingDiv {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
}

.ratio-16x9 {
    --bs-aspect-ratio: 56.25%;
    width: 100%;
}

/* Responsive iframe sizing: never larger than viewport */
#video {
    width: 100%;
    height: auto;
    max-height: 70vh;      /* video will not exceed 70% of viewport height */
    display: block;
}

/* Ensure Bootstrap ratio doesn't force an oversized iframe on small screens */
.ratio.ratio-16x9 {
    /* allow the ratio container to shrink when viewport is small */
    max-height: 70vh;
}

/* Ensure the Bootstrap .ratio box constrains height and the iframe fills it */
.ratio.ratio-16x9 {
  position: relative;       /* provide positioning context for absolute child */
  max-height: 70vh;         /* never exceed viewport height */
  width: 100%;
  height: auto;
}

/* Make the iframe fill the ratio container (override any height:auto rules) */
.ratio.ratio-16x9 > iframe,
.ratio.ratio-16x9 iframe#video {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* Tweak for very small screens */
@media (max-width: 576px) {
    .modal-content {
        max-height: calc(100vh - 40px);
    }
    #video,
    .ratio.ratio-16x9 {
        max-height: 55vh;
    }
    .ratio.ratio-16x9 { max-height: 55vh; }
    .ratio.ratio-16x9 > iframe { max-height: 55vh; }
}