@font-face {
    font-family: 'SegoeWP-Black';
    src: url('../fonts/SegoeWP-Black.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gra_250_na';
    src: url('../fonts/Gra_250_na.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
}


body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: white;
    z-index: -1;
}


body {
    width: 100%;
    position: relative;   
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background-color: #ffffff;
}

h3 {
    font-family: 'SegoeWP-Black', sans-serif;
    font-size: 20px;
    color: #7A1BAA;
    margin-bottom: 40px;
}

p {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    color: #9E9BA0;
}

.wrapper {
    width: 1200px;  /* Fixed width for desktop */
    margin: 0 auto;  /* Center the wrapper */
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

header {
    width: 100%;
    background-color: transparent !important;
}

#show-header {
    width: 100%;
    background-image: url('../img/png/show-1-header-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
    background-color: #F500BF;
    text-align: center;
    margin-top: -12px;
}

#show-header-image {
    width: 980px;
    margin: 0 auto;
}

#show-header-image img {
    width: 100%;
}

#show-info {    
    margin: 100px auto;    
}

#show-characters {
    margin-bottom: 200px;
}

#show-characters  ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 90px;
    list-style: none;   
}

#show-characters  ul li {
    width: 27%;
}

.character-image {
    width: 100%;
    text-align: center;
}

.character-image img {
    width: 90%;
}
.character-info {
    margin-top: 30px;
    text-align: center;
}
.character-info h3 {
    margin-bottom: 20px;
}
.character-info p {
    text-align: center;
}

#show-videos {
    background-image: url('../img/png/shows-yellow-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
}

#show-videos-header {
    text-align: right;
    margin-top: 100px;
    margin-bottom: 50px;
    margin-right: 20px;
}

#show-videos-header img {
    width: 300px;
}

#show-videos-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    list-style: none;
    padding: 20px;
    margin: 0;
}

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.video-info {
    padding: 15px;
}

.video-info h3 {
    margin: 0;
    font-family: 'SegoeWP-Black', sans-serif;
    color: #7825AF;
    font-size: .9em;
    line-height: 1.3;
    margin-bottom: 8px;
}

.video-date {
    color: #666;
    font-size: 0.9em;
}

@media screen and (min-width: 1200px) {
    body {
    }
}

/* Media Queries */
@media screen and (min-width: 1024px) and (max-width: 1199px) {
    
    body {
    }

    .wrapper {
        max-width: 980px;
    }

}

@media screen and (min-width: 768px) and (max-width: 1023px) {
    
    html {
        overflow-x: hidden;
    }
    body::before {
        height: 73px !important;
    }
    body {
        margin: 0;
        padding: 0;
        width: 100%;
        min-width: 100%;
        overflow-x: hidden;
    }

    #show-header {
        margin-top: 32px !important;
    }

    #show-header-image {
        width: 90%;
    }

    .wrapper {
        width: 100%;
        max-width: 100vw;
        padding-left: max(env(safe-area-inset-left), 15px);
        padding-right: max(env(safe-area-inset-right), 15px);
        box-sizing: border-box;
        margin: 0;
    }

    #show-characters ul {
        gap: 30px;
    }
}

@media screen and (max-width: 767px) {
    html {
        overflow-x: hidden;
    }
    body {
        margin: 0;
        padding: 0;
        width: 100%;
        min-width: 100%;
        overflow-x: hidden;
    }

    #show-header {
        margin-top: 32px !important;
    }

    #show-header-image {
        width: 90%;
    }

    .wrapper {
        width: 100%;
        padding: 0 15px;
    }
    
    .custom-dropdown {
        width: 90%;
        max-width: 300px;
    }
}

@media screen and (max-width: 1199px) {
    #show-videos-list {
        grid-template-columns: repeat(3, 1fr);
    }

    #show-characters ul {
        justify-content: center;
        gap: 40px;
    }

    #show-characters ul li {
        width: 40%; /* Adjust width for better fit */
        margin: 0 auto; /* Center each li */
    }
}

@media screen and (max-width: 1023px) {
    #show-videos-list {
        grid-template-columns: repeat(2, 1fr);
    }

    #show-characters ul {
        gap: 30px;
    }

    #show-characters ul li {
        width: 45%; /* Slightly wider for tablet */
    }
}

@media screen and (max-width: 767px) {
    #show-videos-list {
        grid-template-columns: 1fr;
    }

    #show-characters ul {
        gap: 20px;
    }

    #show-characters ul li {
        width: 80%; /* Much wider for mobile */
    }

    .character-image {
        width: 100%;
        text-align: center;
    }

    .character-image img {
        width: 60%; /* Smaller image size for mobile */
        margin: 0 auto; /* Center the image */
        display: block; /* Ensure proper centering */
    }
}

/* Responsive styles for dropdown */
@media screen and (max-width: 767px) {
        
}

/* Loading indicator */
#loading-indicator {
    text-align: center;
    padding: 20px;
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #7A1BAA;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* When loading, show the indicator */
#loading-indicator.show {
    display: block;
}


#footer .footer-divider {
    margin-top: 0px !important;
}

/* Modal Styles */
#video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 800px;
    height: 500px;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
}

.close-button {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 30px;
    height: 30px;
    background: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    line-height: 1;
}

.close-button:hover {
    background: #e0e0e0;
}

.modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive modal */
@media screen and (max-width: 850px) {
    .modal-content {
        width: 95%;
        height: 56.25vw; /* maintain 16:9 aspect ratio */
        max-height: 90vh;
    }
}