@font-face {
    font-family: 'OnAddFont1';
    src: url('../fonts/Jost/Jost-VariableFont_wght.ttf') format('truetype'); 
    font-weight: normal;
}

@font-face {
    font-family: 'OnAddFont2';
    src: url('../fonts/Cocogoose.ttf') format('truetype'); 
    font-weight: normal;
}
@font-face {
    font-family: 'OnAddFont3';
    src: url('../fonts/Cocogoose.ttf') format('truetype'); 
    font-weight: normal;
}
@font-face {
    font-family: 'OnAddFont4';
    src: url('../fonts/montserrat/Montserrat-VariableFont_wght.ttf') format('truetype'); 
}
* {
    -webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
body{
  overflow-x: hidden; /* Скрываем горизонтальный scrollbar */
  margin: 0;
  -webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
html {
    height: 100%;
}
body {
    height: 100%;
    background: url("../img/bcg.png");
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

:root {
    --primary: #262626;
    --primary-light: #4e4e4e;
    --primary-dark: #000000;
    --secondary: #ef5350;
    --secondary-light: #ff867c;
    --secondary-dark: #b61827;
    --primary-text: #ffffff;
    --secondary-text: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
#player > pjsdiv {
  border-radius: 10px;
}
*:not(h1) {
    font-family: 'OnAddFont4', sans-serif;
}

h1 {
    font-family: 'OnAddFont2', sans-serif;
}

main {
    flex: 1 1 auto;
}

.main-title-title {
    font-family: 'OnAddFont1', sans-serif;
    font-weight: 700;
    font-size: 3.5em;
}

/* ===== REUSABLE EPISODE STATS & REACTIONS STYLES ===== */
/* Insert this CSS into any page that needs episode statistics */

/* Server Selector Styles - Fixed width and z-index */
.server-selector-container {
    margin: 20px auto; /* Center the container */
    max-width: 70%; /* Limit to 70% width */
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 2px solid rgba(220, 20, 60, 0.3);
    position: relative;
    z-index: 1000; /* Higher than carousel but lower than dropdown menu */
}

.server-selector-title {
    color: #dc143c;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Ensure dropdown doesn't exceed container width */
.server-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 300px; /* Maximum dropdown width */
}

/* Fix dropdown button width to not exceed container */
.dropdown-button {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid #dc143c;
    border-radius: 6px;
    padding: 12px 20px;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%; /* Take full width of parent container */
    max-width: 300px; /* But don't exceed this */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.2);
}

.dropdown-button:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #8b0000;
    box-shadow: 0 6px 20px rgba(220, 20, 60, 0.3);
}

.dropdown-arrow {
    margin-left: 10px;
    transition: transform 0.3s ease;
    color: #dc143c;
    font-weight: bold;
}

.dropdown-button.open .dropdown-arrow {
    transform: rotate(180deg);
}

/* Fix z-index for dropdown menu to appear above other elements */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid #dc143c;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 9999; /* Very high z-index to appear above everything */
}

.dropdown-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-option {
    padding: 12px 20px;
    color: #000;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(220, 20, 60, 0.1);
    font-weight: 500;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background: rgba(220, 20, 60, 0.1);
    color: #8b0000;
}

.dropdown-option.active {
    background: rgba(220, 20, 60, 0.15);
    color: #8b0000;
    font-weight: 600;
}

/* NEW: Minimized Episode Stats Overlay */
.episode-stats-overlay {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: end;
    padding: 0 15px;
    pointer-events: none; /* Allow clicks through to player */
    z-index: 100;
}

.episode-stats-overlay > * {
    pointer-events: auto; /* Re-enable clicks on child elements */
}

/* Views counter - bottom left */
.views-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    padding: 6px 10px;
    border-radius: 20px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.views-mini svg {
    width: 16px;
    height: 16px;
    fill: white;
}

/* Reaction buttons - bottom right */
.reactions-mini {
    display: flex;
    gap: 8px;
}

.reaction-btn-mini {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 2px solid #dc143c;
    border-radius: 20px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 12px;
    color: #dc143c;
    position: relative;
    overflow: hidden;
}

.reaction-btn-mini:hover {
    border-color: #ff1744;
    color: #ff1744;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

.reaction-btn-mini.active {
    background: #dc143c;
    color: white;
    border-color: #dc143c;
    box-shadow: 0 0 20px rgba(220, 20, 60, 0.6);
}

.reaction-btn-mini.like.active {
    background: #28a745;
    border-color: #28a745;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.6);
}

.reaction-btn-mini.dislike.active {
    background: #dc3545;
    border-color: #dc3545;
    box-shadow: 0 0 20px rgba(220, 53, 69, 0.6);
}

/* Glow animation on click */
.reaction-btn-mini.glow {
    animation: glowPulse 0.6s ease-out;
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px rgba(220, 20, 60, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(220, 20, 60, 0.8);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 20px rgba(220, 20, 60, 0.6);
        transform: scale(1);
    }
}

.reaction-btn-mini.like.glow {
    animation: glowPulseLike 0.6s ease-out;
}

@keyframes glowPulseLike {
    0% {
        box-shadow: 0 0 5px rgba(40, 167, 69, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(40, 167, 69, 0.8);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 20px rgba(40, 167, 69, 0.6);
        transform: scale(1);
    }
}

.reaction-btn-mini.dislike.glow {
    animation: glowPulseDislike 0.6s ease-out;
}

@keyframes glowPulseDislike {
    0% {
        box-shadow: 0 0 5px rgba(220, 53, 69, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 25px rgba(220, 53, 69, 0.8);
        transform: scale(1.05);
    }
    100% {
        box-shadow: 0 0 20px rgba(220, 53, 69, 0.6);
        transform: scale(1);
    }
}

.reaction-btn-mini svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* OLD STYLES - Keep for backward compatibility and preview cards */

/* Episode stats container - Hidden by default, use overlay instead */
.episode-stats {
    display: none; /* Use overlay instead */
}

/* Preview stats (for episode thumbnails) */
.episode-preview-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 5px 8px 8px;
    color: white;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-views {
    font-weight: 500;
}

.preview-likes {
    display: flex;
    gap: 8px;
    font-size: 10px;
}

/* Ensure parent containers are positioned relative */
.episode-prev, .episode-card, .video-thumbnail {
    position: relative;
}

/* Player container positioning */
#bigPlayerContainer, .player-container {
    position: relative;
}

/* Inline stats (for simple displays) */
.inline-stats {
    display: inline-flex;
    gap: 15px;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.inline-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Legacy reaction buttons (for non-overlay use) */
.reaction-btn {
    background: transparent;
    border: 2px solid #dc143c;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 60px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #dc143c;
}

.reaction-btn:hover {
    border-color: #8b0000;
    color: #8b0000;
}

.reaction-btn.active {
    background: #dc143c;
    color: white;
}

.reaction-btn.like.active {
    background: #28a745;
    border-color: #28a745;
}

.reaction-btn.dislike.active {
    background: #dc3545;
    border-color: #dc3545;
}

/* Compact reaction buttons (for smaller spaces) */
.reaction-btn.compact {
    padding: 4px 8px;
    min-width: 40px;
    font-size: 11px;
}

/* Ensure proper layering for all interactive elements */
.carousel-wrapper {
    position: relative;
    z-index: 1; /* Lower z-index */
}

.episode-prev {
    position: relative;
    z-index: 1;
}

.mobile-episode-menu {
    position: relative;
    z-index: 2;
}

.mobile-episodes-grid {
    z-index: 3;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .server-selector-container {
        max-width: 90%; /* Allow more width on mobile */
        margin: 15px auto;
        padding: 15px;
    }
    
    .server-dropdown {
        max-width: 100%;
    }
    
    .dropdown-button {
        min-width: 200px;
        font-size: 13px;
        padding: 10px 16px;
    }
    
    .dropdown-option {
        padding: 10px 16px;
        font-size: 13px;
    }

    .episode-stats-overlay {
        padding: 0 10px;
        bottom: 8px;
    }

    .views-mini {
        font-size: 11px;
        padding: 4px 8px;
    }

    .views-mini svg {
        width: 14px;
        height: 14px;
    }

    .reaction-btn-mini {
        font-size: 11px;
        padding: 4px 8px;
        gap: 3px;
    }

    .reaction-btn-mini svg {
        width: 12px;
        height: 12px;
    }

    .reactions-mini {
        gap: 6px;
    }

    .episode-preview-stats {
        font-size: 10px;
        padding: 3px 6px 6px;
    }

    .preview-likes {
        gap: 6px;
        font-size: 9px;
    }
}/* ===== REUSABLE EPISODE STATS & REACTIONS STYLES ===== */
/* Insert this CSS into any page that needs episode statistics */

/* Episode stats container */
.episode-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    border: 1px solid rgba(220, 20, 60, 0.3);
}

/* Views counter */
.views-count {
    color: #dc143c;
    font-weight: 600;
    font-size: 14px;
}

/* Like/Dislike buttons container */
.like-dislike-buttons {
    display: flex;
    gap: 10px;
}

/* Individual reaction buttons */
.reaction-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #dc143c;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    min-width: 60px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #000;
}

.reaction-btn:hover {
    background: rgba(220, 20, 60, 0.1);
    border-color: #8b0000;
}

.reaction-btn.active {
    background: #dc143c;
    color: white;
}

.reaction-btn.like.active {
    background: #28a745;
    border-color: #28a745;
}

.reaction-btn.dislike.active {
    background: #dc3545;
    border-color: #dc3545;
}

/* Preview stats (for episode thumbnails) */
.episode-preview-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 5px 8px 8px;
    color: white;
    font-size: 11px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-views {
    font-weight: 500;
}

.preview-likes {
    display: flex;
    gap: 8px;
    font-size: 10px;
}

/* Ensure parent containers are positioned relative */
.episode-prev, .episode-card, .video-thumbnail {
    position: relative;
}

/* Inline stats (for simple displays) */
.inline-stats {
    display: inline-flex;
    gap: 15px;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.inline-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Compact reaction buttons (for smaller spaces) */
.reaction-btn.compact {
    padding: 4px 8px;
    min-width: 40px;
    font-size: 11px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .episode-stats {
        flex-direction: column;
        gap: 10px;
    }

    .like-dislike-buttons {
        width: 100%;
        justify-content: center;
    }

    .reaction-btn {
        flex: 1;
        max-width: 120px;
    }

    .episode-preview-stats {
        font-size: 10px;
        padding: 3px 6px 6px;
    }

    .preview-likes {
        gap: 6px;
        font-size: 9px;
    }
}

.cast{
    display: flex;
    align-items: center;
    width: fit-content;
    max-width: 70%;
    margin-top: 20px;
    text-align: left;
    padding: 10px;
     border-radius: 10px;
    /* From https://css.glass */
    background: rgba(224, 49, 49, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(224, 49, 49, 0.4);
}
.cast h5{
    font-family: 'OnAddFont4', sans-serif;
    font-size: 1.2em;
}
.person{
    margin-left: 50px;
}

#navbar {
    display: flex;
    align-items: center;
    /*justify-content: center;*/
    width: 100%;
    height: 3.5em;
    background-color: #ededed;
    color: black;
}

#menuButton {
    margin-left: 0.5em;
    height: 3em;
    cursor: pointer;
}

#menuClose {
    margin-left: 0.5em;
    margin-top: 0.25em;
    height: 3em;
    cursor: pointer;
}

#navbarOverlay {
    display: none;
    z-index: 998;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background-color: rgba(0,0,0,0.5);
    /*background-color: #ededed;*/
}

#navbarPopup {
    display: none;
    z-index: 999;
    background-color: #ededed;
    /* background-color: #fa3c4f; */
    /* background-color: red; */
    width: 20em;
    height: 100%;
    /* color: white; */
}

#navbarPopup a:hover {
    color: #fa3c4f;
}

.navbar-tab {
    display: block;
    margin-top: 1em;
    margin-left: 1em;
    width: 11em;
    font-size: 1.5em;
    text-decoration: none;
    border-bottom: 3px solid #fa3c4f;
    color: black;
}

.navbar-tab-open {
    display: block;
    margin-top: 1em;
    margin-left: 0.8em;
    width: 9.48em;
    font-size: 1.75em;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 5px solid #fa3c4f;
    color: black;
}

#video-showcase {
    /* margin-top: 2em; */
    width: 100%;
    text-align: center;
}

#video-showcase iframe {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2em;
    width: 20em;
    height: 11.25em;
    border: none;
    outline: none;
}

#video-showcase2 iframe {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2em;
    max-width: 80%;
    max-height: 80%;
    border: none;
    outline: none;
}

.main-title {
    display: inline-block;
    max-width: 80%;
    width: 80%;
    word-wrap: break-word;
    font-size: 3em;
    font-weight: 700;
    margin-top: 1em;
}

.small {
    /* font-size: 2em; */
    margin-top: 0.75em;
    margin-bottom: 1em;
}

.main-desc {
    display: inline-block;
    font-size: 1.5em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    max-width: 70%;
    width: 70%;
  color: black;
}

.schedule-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
    background: rgba(224, 49, 49, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid rgba(224, 49, 49, 0.4);
}

.schedule-title {
    text-align: center;
    font-family: 'OnAddFont1', sans-serif;
    margin-bottom: 30px;
    color: black;
    font-weight: 800;
    font-size: 1.8em;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    justify-content: center;
}

.episode-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 15px;
    align-items: start;
    padding: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.episode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(224, 49, 49, 0.2);
}

.episode-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: grey 0px 4px 10px -2px;
    grid-row: span 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.episode-thumbnail-hovered {
    box-shadow: red 0px 6px 12px -4px;
}

.episode-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.episode-info h3 {
    font-size: 17px;
    margin: 5px 0;
}

.episode-info p {
    margin: 0;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .episodes-grid {
        grid-template-columns: 1fr;
    }
    
    .episode-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .episode-thumbnail {
        margin: 0 auto;
        max-width: 250px;
        grid-row: auto;
    }
}

#team-showcase {
    text-align: center;
     width: 90%;
    height: auto;
    margin: 0 auto;
}

.team-person {
    display: inline-block;
    /* background-color: #ededed; */
    /* margin-left: 1vw; */
    padding: 1em 1em 1em 1em;
    /* border: 1px solid blue; */
    margin-bottom: 1.5em;
    width: 30em;
    max-width: 90vw;
    /* height: 6.5em; */
}


.team-person img {
    height: 5em;
}

.person-info {
    padding-top: 1em;
    padding-bottom: 1em;
    /* background-color: #ededed; */
    border: 1px solid transparent;
    transition: 200ms;
}

.person-info:hover {
    border: 1px solid #ededed;
}

.person-name {
    display: block;
    font-size: 1.5em;
}

.person-desc {
    margin-top: 1em;
    display: block;
}

#projectMain {
  text-align: center;
}

#projectContainer {
  display: inline-block;
  padding: 1em 1em 1em 1em;

  text-align: center;
}

.project {
    display: inline-block;
    width: 30em;
    max-width: 80vw;
    height: 15em;
    max-height: 30em;
    background-color: #ededed;
    border-radius: 1em;
    box-shadow: red 0px 4px 10px -2px;
}

.pTitle {
    font-size: 2em;
}

.pDesc {
    font-size: 1em;
}

#videoMain {
    margin-top: 2em;
    margin-left: 2em;
}

.video {
    display: inline-block;
    width: 20em;
    height: 11.25em;
    background-color: #ededed;
    border-radius: 1em;
    box-shadow: red 0px 4px 10px -2px;
}

#videoContainer {
    text-align: center;
    margin-top: 2em;
    /* text-align: center; */
}

#video-showcase-text {
    width: 100%;
}

.vidTitle {
    margin-bottom: 0.5em;
    font-size: 3.5em;
}

.vidDesc {
    margin-top: 2em;
    font-size: 1em;
}

@media only screen and (min-width: 768.01px) {
    /* #video-showcase {
        text-align: center;
        width: 100%;
        margin-top: 2em;
        border: 1px solid red;
    } */
    /* #video-showcase-text {
        display: inline-block;
        float: left;
        margin-left: 15em;
        max-width: 50%;
        width: 35%;
        border: 1px solid red;
    } */
    /* .main-title.title{
        font-size: 5em;
        margin-top: 0;
    } */
    /* #video-showcase iframe {
        border: 1px solid red;
        float: left;
        width: 30em;
        height: 16.87500em;
        margin: 0;
    } */
    
    .small {
        margin-bottom: 0.75em;
    }
    
    
    .main-title {
        font-size: 4.5em;
        margin-top: 0.5em;
        /* margin-bottom: 0.5em; */
    }
    
    #video-showcase iframe {
        width: 30em;
        height: 16.87500em;
    }
    
    #video-showcase {
        margin-bottom: 4em;
    }

    .video {
        width: 50em !important;
        height: 28.12500em !important;
    }
    
    #videoContainer {
    }
    
    .vidTitle {
        font-size: 4em;
    }
    
    #player {
        max-width: 70%;
        max-height: 70%;
    }
    
    /* Потом посадить футер на клей.
       Возможно, он будет держаться...
     *//*
    .nails {
        content:url("//onadd.me/img/nails_desktop.png");
    }*/
}
.nails {
    position: absolute; 
    width: -webkit-fill-available; 
    height: inherit;
}
@media only screen and (max-width: 768px) {
    /*
    .nails {
        content:url("//onadd.me/img/nails_mobile.png");
    }
    */
    #logo {
        margin-left: auto;
        margin-right: auto;
    }
    
    #name {
        display: none;
    }
    
    #tele {
        
    }
    
    #player {
        max-width: 100%;
        max-height: 100%;
    }
}

/* Отображение слайдера или сетки */

@media only screen and (min-width: 1280.01px) {
	.posters-mobile {
		display: none;
	}
	
	.slick-slider {
		width: 900px;
		margin-left: auto;
		margin-right: auto;
		display: block;
	}
}

@media only screen and (max-width: 1280px) {
	.posters-mobile {
		display: block;
	}
	
	.slick-slider {
		display: none;
	}
}

/*
    W: 640
    H: 360
    360:640 = 0.5625
*/

#logo {
    height: 5em;
    cursor: pointer;
}

#name {
    position: relative;
    height: 1.5em;
    float: left;
    margin-top: 5px;
    margin-right: auto;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 2em;
    font-weight: 100;
    letter-spacing: -0.05em;
}

#nav-tele, #tele {
    height: 3em;
    margin-right: 0.75em;
    cursor: pointer;
}

#tele {
    margin-left: 5.35px;
}

#nav-tele-text {
    float: right;
    margin-top: 1.25em;
    cursor: pointer;
}

#navbarAd {
    position: absolute;
    bottom: 0;
    margin-left: 1em;
    margin-bottom: 0.5em;
}

.hasClicked {
  color: red;
}/*   padding: 4px;
} */

.poster {
   background-color: #FF0033;
    width: 250px;
    height: 350px;
    border-radius: 1em;
    box-shadow: red 2px 10px 18px -8px;
    /* border: 2px solid #FF0033; */
    margin: 0 15px 30px 15px;
}

.lazy button::before {
    color: #fa3c4f;
    opacity: 1;
    line-height: 0;
}

.slick-list {
    margin: 0 2em;
}

.mainPageVid {
    max-width: 80%;
    max-height: 80%;
    justify-content: center;
    border-radius: 1em;
}

.img {
  max-width: 60%;
  max-height: 60%;
   border-radius: 1em;
    box-shadow: red 0px 6px 15px -4px;
    /* border: 2px solid #FF0033; */
    margin: 0 15px 30px 15px;
}

.serialTitle {
    font-weight: bold;
    color: #f1f1f1;
    white-space: nowrap;
    text-overflow: ellipsis;
    display: block;
    max-height: 44px;
    line-height: 30px;
    overflow: hidden;
    font-size: 19px;
    padding: 0;
    box-sizing: border-box;
    margin: 0 10px;
}

.player {
        margin-top: 3em;
        margin-bottom: 4em;
    }

.player-teaser {
        margin-top: 3em;
        margin-bottom: 3em;
    }

#player {
    border-radius: 1em; /* Remove border-radius if you do not want the "rounding"*/ 
    box-shadow: red 0px 6px 14px -4px;
    margin-top: 1em;
    margin-bottom: 1em;
}

#email {
    cursor: pointer;
}

.for-footer {
    width: 100%;
    height: 100%;
    float: left;
    vertical-align: bottom;
}

.footer {
    width: 100%;
    height: 100%;
    box-shadow: #990000 14px 0px 0px 0px;
    background: #a80000;
    margin-top: auto;
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
}

.footer-icon {
    width: 50px;
    height: 50px;
}

.wm {
  height: 60px;
  width: 243px;
}

a:link {
    text-decoration: none;
}

a, img {
    user-select: none;
}
.episode-playlist {
    margin-top: 20px;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 15px;
    border-radius: 12px;
     /* From https://css.glass */
  background: rgba(224, 49, 49, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid rgba(224, 49, 49, 0.42);
    justify-content: center;
}

.ep {
    background: linear-gradient(135deg, rgba(224, 49, 49, 0.6), rgba(255, 90, 90, 0.6));
    border: 1px solid rgba(255, 0, 0, 0.9);
    color: white;
    font-weight: bold;
    font-size: 18px;
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-align: center;
    min-width: 100px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(0.3px);
   -webkit-backdrop-filter: blur(0.3px);
}

.ep:hover {
    transform: scale(1.1);
    box-shadow: red 0px 4px 10px -2px;
    background: linear-gradient(135deg, rgba(255, 50, 50, 0.9), rgba(255, 120, 120, 0.9));
}

.ep:active {
    transform: scale(1);
    box-shadow: none;
}

 /* New fancy mobile menu styles */
            .mobile-episode-menu {
                display: none;
                margin: 20px auto;
                max-width: 90%;
                position: relative;
            }
            
            .mobile-menu-toggle {
                width: 100%;
                padding: 15px 20px;
                background: linear-gradient(135deg, rgba(224, 49, 49, 0.8), rgba(255, 90, 90, 0.8));
                border: 2px solid rgba(255, 0, 0, 0.6);
                border-radius: 12px;
                color: white;
                font-size: 18px;
                font-weight: bold;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: space-between;
                transition: all 0.3s ease;
                backdrop-filter: blur(10px);
                -webkit-backdrop-filter: blur(10px);
                text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
            }
            
            .mobile-menu-toggle:hover {
                background: linear-gradient(135deg, rgba(255, 50, 50, 0.9), rgba(255, 120, 120, 0.9));
                transform: translateY(-2px);
                box-shadow: 0 8px 20px rgba(224, 49, 49, 0.4);
            }
            
            .menu-icon {
                font-size: 24px;
            }
            
            .arrow-icon {
                transition: transform 0.3s ease;
            }
            
            .mobile-menu-toggle.active .arrow-icon {
                transform: rotate(180deg);
            }
            
            .mobile-episodes-grid {
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                background: rgba(0, 0, 0, 0.95);
                backdrop-filter: blur(15px);
                -webkit-backdrop-filter: blur(15px);
                border-radius: 12px;
                border: 2px solid rgba(255, 0, 0, 0.3);
                max-height: 0;
                overflow: hidden;
                transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
                z-index: 1000;
                margin-top: 10px;
            }
            
            .mobile-episodes-grid.active {
                max-height: 400px;
                overflow-y: auto;
                padding: 15px;
            }
            
            .mobile-episode-card {
                display: flex;
                align-items: center;
                padding: 12px;
                margin-bottom: 10px;
                background: rgba(255, 255, 255, 0.05);
                border-radius: 10px;
                cursor: pointer;
                transition: all 0.3s ease;
                border: 1px solid transparent;
            }
            
            .mobile-episode-card:hover {
                background: rgba(224, 49, 49, 0.2);
                border-color: rgba(255, 0, 0, 0.5);
                transform: translateX(5px);
            }
            
            .mobile-episode-card:active {
                transform: scale(0.98) translateX(5px);
            }
            
            .mobile-episode-card img {
                width: 60px;
                height: 34px;
                object-fit: cover;
                border-radius: 6px;
                margin-right: 15px;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
            }
            
            .mobile-episode-info {
                display: flex;
                flex-direction: column;
                color: white;
            }
            
            .episode-number {
                font-size: 16px;
                font-weight: bold;
                color: #ff6b6b;
                margin-bottom: 2px;
            }
            
            .episode-title {
                font-size: 14px;
                color: rgba(255, 255, 255, 0.9);
            }
            
            @media (max-width: 768px) {
                .mobile-episode-menu {
                    display: block;
                }
            
                .carousel-wrapper,
                .episode-grid {
                    display: none !important;
                }
                
                #bigPlayerContainer {
                    max-width: 100%;
                }
                
                #bigPlayer {
                    max-width: 100%;
                }
            }
            
            /* Scrollbar styling for mobile menu */
            .mobile-episodes-grid::-webkit-scrollbar {
                width: 6px;
            }
            
            .mobile-episodes-grid::-webkit-scrollbar-track {
                background: rgba(255, 255, 255, 0.1);
                border-radius: 3px;
            }
            
            .mobile-episodes-grid::-webkit-scrollbar-thumb {
                background: rgba(255, 0, 0, 0.6);
                border-radius: 3px;
            }
            
            .mobile-episodes-grid::-webkit-scrollbar-thumb:hover {
                background: rgba(255, 0, 0, 0.8);
            }

            .carousel-wrapper {
                display: flex;
                align-items: center;
                justify-content: center;
                position: relative;
                overflow: hidden;
                max-width: 70%;
                min-height: 100%;
                padding: 20px;
                gap: 10px;
                margin: 10px;
                border-radius: 10px;
                background: rgba(224, 49, 49, 0.1);
                box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
                backdrop-filter: blur(2px);
                -webkit-backdrop-filter: blur(2px);
                border: 1px solid rgba(224, 49, 49, 0.4);
            }

            .carousel-track {
                display: flex;
                overflow: hidden;
                width: 100%;
                scroll-snap-type: x mandatory;
            }

            .carousel-page {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                grid-auto-rows: 1fr;
                gap: 15px;
                min-width: 100%;
                scroll-snap-align: start;
                box-sizing: border-box;
                padding: 8px;
            }

            .episode-prev {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: flex-start;
                aspect-ratio: 16 / 9;
                width: 100%;
                max-width: 100%;
                padding: 5px;
                overflow: hidden;
                position: relative;
                cursor: pointer;
                border-radius: 8px;
                box-shadow: 0 4px 12px rgba(0,0,0,0.15);
                transition: transform 0.3s ease;
            }

            .carousel-arrow {
                background-color: rgba(255, 0, 0, 0.5);
                border: none;
                color: white;
                font-size: 24px;
                padding: 8px 14px;
                border-radius: 8px;
                cursor: pointer;
                transition: background 0.3s ease;
            }
            .carousel-arrow:hover {
                background-color: rgba(255, 0, 0, 0.8);
            }
                
            .episode-playlist {
                max-width: 1200px;
                display: flex;
                flex-wrap: wrap;
                gap: 12px;
                padding: 15px;
                border-radius: 12px;
                background: rgba(224, 49, 49, 0.1);
                box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
                backdrop-filter: blur(2px);
                -webkit-backdrop-filter: blur(2px);
                border: 1px solid rgba(224, 49, 49, 0.42);
                justify-content: center;
            }

            .ep {
                background: linear-gradient(135deg, rgba(224, 49, 49, 0.6), rgba(255, 90, 90, 0.6));
                border: 1px solid rgba(255, 0, 0, 0.9);
                color: white;
                font-weight: bold;
                font-size: 18px;
                padding: 12px 20px;
                border-radius: 12px;
                cursor: pointer;
                transition: all 0.3s ease-in-out;
                text-align: center;
                min-width: 100px;
                text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
                backdrop-filter: blur(0.3px);
                -webkit-backdrop-filter: blur(0.3px);
            }

            .ep:hover {
                transform: scale(1.1);
                box-shadow: red 0px 4px 10px -2px;
                background: linear-gradient(135deg, rgba(255, 50, 50, 0.9), rgba(255, 120, 120, 0.9));
            }

            .ep:active {
                transform: scale(1);
                box-shadow: none;
            }

            .episode-grid {
                display: flex;
                flex-wrap: wrap;
                gap: 16px;
                justify-content: center;
                margin-top: 60px;
                max-width: 1200px;    
                border-radius: 12px;
                background: linear-gradient(135deg, rgba(224, 49, 49, 0.1), rgba(255, 90, 90, 0.1));
                border: 1px solid rgba(255, 0, 0, 0.9);
                backdrop-filter: blur(0.3px);
                -webkit-backdrop-filter: blur(0.3px);
                padding: 15px;
            }

            .carousel-wrapper.shrunken {
                margin-top: 20px;
                flex-wrap: nowrap;
                overflow-x: auto;
                max-width: 90%;
                padding: 10px;
                gap: 8px;
                transform: scale(0.85);
                transition: all 0.3s ease;
                order: 2;
            }

            .preview-wrapper {
                position: relative;
                width: 100%;
                height: 100%;
                overflow: hidden;
            }

            .preview-image,
            .preview-video {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
                transition: opacity 0.3s ease;
                position: absolute;
                top: 0;
                left: 0;
            }

            .preview {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
                border-radius: 10px;
                transition: opacity 0.3s ease;
                top: 0;
                left: 0;
            }

            .preview {
                opacity: 0;
                pointer-events: none;
            }

            .episode-prev:hover {
                transform: scale(1.1);
            }

            .episode-prev:hover .preview {
                opacity: 1;
            }

            .episode-prev:hover .preview-image {
                opacity: 0;
            }

            .caption {
                position: absolute;
                bottom: 0;
                width: 100%;
                background: rgba(0,0,0,0.6);
                color: white;
                font-size: 14px;
                padding: 4px 0;
                text-align: center;
            }
            
            #bigPlayer {
                box-shadow: red 0px 6px 14px -4px;
                margin-top: 1em;
                margin-bottom: 1em;
                max-width: 80%;
                max-height: 80%;
            }
            

.schedule-title {
    text-align: center;
    font-family: 'OnAddFont1', sans-serif;
    margin-bottom: 30px;
    color: black;
    font-weight: 800;
    font-size: 1.8em;
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    justify-content: center;
}

.episode-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 15px;
    align-items: start;
    padding: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.episode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(224, 49, 49, 0.2);
}

.episode-thumbnail {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: grey 0px 4px 10px -2px;
    grid-row: span 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.episode-thumbnail-hovered {
    box-shadow: red 0px 6px 12px -4px;
}

.episode-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.episode-info h3 {
    font-size: 17px;
    margin: 5px 0;
}

.episode-info p {
    margin: 0;
    opacity: 0.9;
}

#bigPlayerContainer {
    max-width: 70%;
}

@media (max-width: 768px) {
    .episodes-grid {
        grid-template-columns: 1fr;
    }
    
    .episode-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .episode-thumbnail {
        margin: 0 auto;
        max-width: 250px;
        grid-row: auto;
    }
}

#team-showcase {
    text-align: center;
     width: 90%;
    height: auto;
    margin: 0 auto;
}

.team-person {
    display: inline-block;
    /* background-color: #ededed; */
    /* margin-left: 1vw; */
    padding: 1em 1em 1em 1em;
    /* border: 1px solid blue; */
    margin-bottom: 1.5em;
    width: 30em;
    max-width: 90vw;
    /* height: 6.5em; */
}

            .cast {
                margin: 30px auto;
                max-width: 800px;
                padding: 20px;
                background: rgba(224, 49, 49, 0.1);
                border-radius: 12px;
                border: 1px solid rgba(224, 49, 49, 0.4);
                color: #000;
            }

            .cast-fill {
                padding: 15px;
            }

            .person {
                margin-top: 10px;
                line-height: 1.6;
            }