.css: /* =========================================================
   SER Entertainment
   DRM Video Library for EZDRM
   Version 1.1.14
   ========================================================= */


/* =========================================================
   LIBRARY
   ========================================================= */

.ser-drm-library {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 8px 0 8px 0;
    box-sizing: border-box;
    color: #ffffff;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}


/* =========================================================
   HEADER
   ========================================================= */

.ser-drm-library .ser-drm-header {
    width: 100%;
    padding: 0 24px 20px 24px;
    box-sizing: border-box;
}

.ser-drm-library .ser-drm-title {
    margin: 0;
    padding: 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.4px;
}


/* =========================================================
   STATUS
   ========================================================= */

.ser-drm-library .ser-drm-status {
    padding: 12px 24px;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.5;
}

.ser-drm-library .ser-drm-status.is-error {
    color: #ffffff;
    font-weight: 600;
}


/* =========================================================
   SERVER NOTICE
   ========================================================= */

.ser-drm-server-notice {
    margin: 20px 0;
    padding: 14px 18px;
    color: #ffffff;
    background: #151515;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 16px;
    line-height: 1.5;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.ser-drm-library .ser-drm-sections {
    width: 100%;
}


/* =========================================================
   CATEGORY
   ========================================================= */

.ser-drm-library .ser-drm-category {
    position: relative;
    width: 100%;
    margin: 0 0 8px 0;
}

.ser-drm-library .ser-drm-category-title {
    display: none;
}


/* =========================================================
   ROW WRAPPER
   ========================================================= */

.ser-drm-library .ser-drm-row-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}


/* =========================================================
   MOVIE ROW
   ========================================================= */

.ser-drm-library .ser-drm-row {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 16px;
    padding: 0px 24px 0px 24px;
    overflow-x: auto;
    overflow-y: hidden;
    box-sizing: border-box;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.ser-drm-library .ser-drm-row::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   MOVIE CARD
   ========================================================= */

.ser-drm-library .ser-drm-card {
    position: relative;
    flex: 0 0 150px;
    width: 150px;
    min-width: 150px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #111111;
    color: #ffffff;
    text-align: left;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.ser-drm-library .ser-drm-card:hover {
    z-index: 5;
    transform: scale(1.045);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
}

.ser-drm-library .ser-drm-card:focus-visible {
    z-index: 5;
    transform: scale(1.045);
    outline: 3px solid #ffffff;
    outline-offset: 3px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
}


/* =========================================================
   POSTER
   ========================================================= */

.ser-drm-library .ser-drm-poster {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #181818;
}

.ser-drm-library .ser-drm-poster.is-placeholder {
    background: linear-gradient(
        135deg,
        #292929,
        #111111
    );
}


/* =========================================================
   CARD OVERLAY
   ========================================================= */

.ser-drm-library .ser-drm-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 32px 12px 12px 12px;
    box-sizing: border-box;
    color: #ffffff;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.96) 0%,
        rgba(0, 0, 0, 0.72) 45%,
        rgba(0, 0, 0, 0) 100%
    );
}


/* =========================================================
   PLAY ICON
   ========================================================= */

.ser-drm-library .ser-drm-play-icon {
    flex: 0 0 auto;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
}


/* =========================================================
   CARD TITLE
   ========================================================= */

.ser-drm-library .ser-drm-card-title {
    min-width: 0;
    overflow: hidden;
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* =========================================================
   SCROLL BUTTONS
   ========================================================= */

.ser-drm-library .ser-drm-scroll {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 72px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.72);
    font-size: 38px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    appearance: none;
    -webkit-appearance: none;
}

.ser-drm-library .ser-drm-scroll:hover {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.95);
}

.ser-drm-library .ser-drm-scroll:focus-visible {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.95);
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.ser-drm-library .ser-drm-scroll-previous {
    left: 4px;
}

.ser-drm-library .ser-drm-scroll-next {
    right: 4px;
}


/* =========================================================
   MODAL
   ========================================================= */

.ser-drm-library .ser-drm-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    color: #ffffff;
}

.ser-drm-library .ser-drm-modal[hidden] {
    display: none;
}


/* =========================================================
   MODAL BACKDROP
   ========================================================= */

.ser-drm-library .ser-drm-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
}


/* =========================================================
   MODAL PANEL
   ========================================================= */

.ser-drm-library .ser-drm-modal-panel {
    position: relative;
    z-index: 2;
    width: min(1100px, 96vw);
    max-height: 94vh;
    overflow-y: auto;
    color: #ffffff;
    background: #090909;
    border-radius: 10px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.85);
}


/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.ser-drm-library .ser-drm-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.78);
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.ser-drm-library .ser-drm-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.ser-drm-library .ser-drm-close:focus-visible {
    color: #ffffff;
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}


/* =========================================================
   VIDEO WRAPPER
   ========================================================= */

.ser-drm-library .ser-drm-player-wrap {
    width: 100%;
    background: #000000;
}


/* =========================================================
   VIDEO
   ========================================================= */

.ser-drm-library .ser-drm-video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 72vh;
    margin: 0;
    background: #000000;
}


/* =========================================================
   NOW PLAYING
   ========================================================= */

.ser-drm-library .ser-drm-now-playing {
    padding: 20px 24px 24px 24px;
    color: #ffffff;
}

.ser-drm-library .ser-drm-now-title {
    margin: 0 0 10px 0;
    color: #ffffff;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.ser-drm-library .ser-drm-now-description {
    margin: 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.55;
    white-space: pre-line;
}

/* IMDb More Information link */
.ser-drm-library .ser-drm-imdb-link {
    display: inline-block;
    margin-top: 14px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 400;
    text-decoration: underline;
    cursor: pointer;
}

/* =========================================================
   PLAYBACK ERROR
   ========================================================= */

.ser-drm-library .ser-drm-error {
    margin: 0 24px 24px 24px;
    padding: 14px 16px;
    color: #ffffff;
    background: rgba(110, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.5;
}

.ser-drm-library .ser-drm-error[hidden] {
    display: none;
}


/* =========================================================
   LINKS INSIDE LIBRARY
   ========================================================= */

.ser-drm-library a,
.ser-drm-library a:visited,
.ser-drm-library a:hover,
.ser-drm-library a:focus {
    color: #ffffff;
}


/* =========================================================
   BODY WHILE PLAYER IS OPEN
   ========================================================= */

body.ser-drm-modal-open {
    overflow: hidden;
}


/* =========================================================
   ROW KEYBOARD FOCUS
   ========================================================= */

.ser-drm-library .ser-drm-row:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: -2px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .ser-drm-library .ser-drm-title {
        font-size: 28px;
    }

    .ser-drm-library .ser-drm-category-title {
        font-size: 22px;
    }

    .ser-drm-library .ser-drm-card {
        flex-basis: 180px;
        width: 180px;
        min-width: 180px;
    }

    .ser-drm-library .ser-drm-row {
        gap: 13px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .ser-drm-library {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .ser-drm-library .ser-drm-header {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ser-drm-library .ser-drm-title {
        font-size: 16px;
    }

    .ser-drm-library .ser-drm-category {
        margin-bottom: 20px;
    }

    .ser-drm-library .ser-drm-category-title {
        padding-left: 16px;
        padding-right: 16px;
        font-size: 20px;
    }

    .ser-drm-library .ser-drm-row {
        gap: 16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .ser-drm-library .ser-drm-card {
        flex-basis: 120px;
        width: 120px;
        min-width: 120px;
    }

    .ser-drm-library .ser-drm-card-title {
        font-size: 14px;
    }

    .ser-drm-library .ser-drm-scroll {
        display: none;
    }

    .ser-drm-library .ser-drm-modal {
    padding: 40px 0 0 0;
}

    .ser-drm-library .ser-drm-modal-panel {
    width: 100%;
    max-height: calc(100vh - 40px);
    min-height: calc(100vh - 40px);
    margin-top: 60px;
    border-radius: 0;
}

    .ser-drm-library .ser-drm-video {
        max-height: 65vh;
    }

    .ser-drm-library .ser-drm-now-playing {
        padding: 18px 16px 24px 16px;
    }

    .ser-drm-library .ser-drm-now-title {
        font-size: 22px;
    }

    .ser-drm-library .ser-drm-now-description {
        font-size: 15px;
    }

 .ser-drm-library .ser-drm-error {
    margin-left: 16px;
    margin-right: 16px;
}

/*
 * Keep close button below the
 * iPhone browser / safe-area region.
 */
.ser-drm-library .ser-drm-close {
    position: fixed;
    top: max(
        55px,
        calc(env(safe-area-inset-top) + 12px)
    );
    right: 16px;
    z-index: 9999999;
}

}
/* =========================================================
   FULLSCREEN VIDEO
   ========================================================= */

.ser-drm-library .ser-drm-video:fullscreen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    object-fit: contain;
    background: #000000;
}

/* Safari / WebKit fullscreen */
.ser-drm-library .ser-drm-video:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    object-fit: contain;
    object-position: center center;
    background: #000000;
}