/* ==========================================================================
   Trial Blue Template - Main Styles
   ========================================================================== */

/* ==========================================================================
   CSS Custom Properties (set dynamically via PHP in the template)
   --primary-color, --secondary-color, --main-color, --secondary-scheme,
   --header-color, --playbar-color
   ========================================================================== */

/* ==========================================================================
   Header / Marketplace
   ========================================================================== */
section.header-marketplace {
    background: #136692 !important;
    padding: 20px;
    border-bottom: 20px solid var(--secondary-color) !important;
    display: flex;
    align-items: center;
    min-height: 450px;
    flex-direction: column;
}

.header-marketplace h1 {
    font-size: 3.2rem;
    font-family: "Josefin Sans", sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.33em;
    letter-spacing: .23em;
    margin: 15px 0;
    -ms-word-wrap: break-word;
    word-wrap: break-word;
    color: #fff;
    text-align: center;
}

.header-marketplace h1 span {
    font-size: 1.2rem;
}

.header-marketplace p,
.header-left-inner p {
    font-size: 1.8rem !important;
    color: #ffd800;
    text-align: center;
    font-style: italic;
}

.header-marketplace img {
    width: 60px;
    margin: auto;
    border: 1px solid #fff;
    padding: 5px;
    margin-top: 30px;
}

/* ==========================================================================
   Left / Right Header Panels
   ========================================================================== */
.rightheader,
.leftheader {
    max-width: 1000px !important;
    padding: 20px;
    background: #0a3d5a !important;
    border-radius: 5px;
    box-shadow: 10px 10px 18px rgb(0 0 0 / 51%);
    margin: 70px auto;
    font-family: Arial, sans-serif;
    width: 100%;
    min-height: 440px;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    margin-top: 80px;
}

.header-left-inner {
    max-width: 500px;
    margin: auto;
}

/* ==========================================================================
   Form Styles
   ========================================================================== */
input,
textarea {
    background: var(--secondary-color) !important;
    border: none !important;
    color: #fff !important;
}

button.wpforms-submit {
    background: var(--secondary-color) !important;
    color: #fff !important;
    text-transform: uppercase !important;
    border: none !important;
}

::placeholder {
    opacity: 0.7;
    color: white !important;
}

::-webkit-input-placeholder {
    color: #fff !important;
    opacity: 1 !important;
}

:-moz-placeholder {
    color: #fff !important;
    opacity: 1 !important;
}

::-moz-placeholder {
    color: #fff !important;
    opacity: 1 !important;
}

:-ms-input-placeholder {
    color: #fff !important;
    opacity: 1 !important;
}

/* WPForms overrides */
.wpforms-confirmation-container-full,
div[submit-success]>.wpforms-confirmation-container-full:not(.wpforms-redirection-message) {
    background: none !important;
    border: 1px solid #fff;
}

.wpforms-container input.wpforms-field-medium,
.wpforms-container select.wpforms-field-medium,
.wpforms-container .wpforms-field-row.wpforms-field-medium,
.wp-core-ui div.wpforms-container input.wpforms-field-medium,
.wp-core-ui div.wpforms-container select.wpforms-field-medium,
.wp-core-ui div.wpforms-container .wpforms-field-row.wpforms-field-medium {
    max-width: 100% !important;
}

.wpforms-container .wpforms-field,
.wp-core-ui div.wpforms-container .wpforms-field {
    padding: 2px 0 !important;
}

div.wpforms-container-full input[type=text]::-webkit-input-placeholder,
div.wpforms-container-full input[type=email]::-webkit-input-placeholder,
div.wpforms-container-full input[type=textarea]::-webkit-input-placeholder,
div.wpforms-container-full textarea::-webkit-input-placeholder {
    opacity: 1 !important;
}

/* ==========================================================================
   Quality Selector
   ========================================================================== */
.quality-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quality-button {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s;
    position: relative;
}

.quality-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.quality-dropdown {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: #2c3e50;
    border-radius: 4px;
    min-width: 120px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1000;
    margin-bottom: 5px;
}

.quality-dropdown.show {
    display: block;
}

.quality-option {
    padding: 8px 12px;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    border-bottom: 1px solid #34495e;
}

.quality-option:last-child {
    border-bottom: none;
    border-radius: 0 0 4px 4px;
}

.quality-option:first-child {
    border-radius: 4px 4px 0 0;
}

.quality-option:hover {
    background: #34495e;
}

.quality-option.active {
    background: #136692;
    color: #ffd800;
}

.quality-label {
    display: inline-block;
    background: #e74c3c;
    color: white;
    font-size: 10px;
    padding: 1px 4px;
    border-radius: 2px;
    margin-left: 5px;
    font-weight: bold;
}

/* ==========================================================================
   Audio Player
   ========================================================================== */
.player-container {
    max-width: 100%;
    margin: 50px auto;
    margin-bottom: 0;
    width: 100%;
    margin-top: 0;
}

#site-content .entry-content .player-container {
    max-width: 1000px !important;
    padding: 0;
    background: var(--main-color) !important;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    font-family: Arial, sans-serif;
    margin-top: 90px;
    padding: 10px;
}

.thumbnail-container {
    width: 100%;
    height: 420px;
    border-radius: 0px;
    overflow: hidden;
    margin-bottom: 15px;
    background: transparent;
    position: relative;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    display: flex;
    display: none !important;
}

#currentThumbnail {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

.player-box {
    display: flex;
    overflow: hidden;
}

/* ==========================================================================
   Playlist
   ========================================================================== */
.playlist-item {
    padding: 10px;
    background: var(--secondary-scheme) !important;
    margin-bottom: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    position: relative;
}

.playlist-item:hover {
    background: #eee;
    transform: translateX(5px);
}

.playlist-item.playing {
    background: var(--secondary-scheme-half) !important;
    color: white;
}

.track-thumbnail {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
}

.playlist h3 {
    color: #fff;
    margin: 10px !important;
    font-size: 20px;
    font-family: josefin sans, sans-serif;
    letter-spacing: .09em;
}

.track-info {
    font-size: 17px;
}

.icon.title-icon.play-icon.active {
    position: absolute;
    right: 0;
}

/* Playlist scrollbar */
.playlist::-webkit-scrollbar {
    width: 10px;
}

.playlist::-webkit-scrollbar-thumb {
    background-color: #136692;
    border-radius: 6px;
}

.playlist::-webkit-scrollbar-track {
    background-color: #0A3D5A !important;
}

.playlist {
    scrollbar-color: #136692 #0A3D5A;
    scrollbar-width: normal;
}

/* ==========================================================================
   Player Controls
   ========================================================================== */
.controls {
    display: flex;
    align-items: center;
    gap: 10px;
    top: 0;
    left: 2%;
    width: 100%;
    height: 54px;
    margin: auto;
    background-color: #136692 !important;
    padding: 10px;
}

.play-pause-btn {
    width: 62px;
    height: 62px;
    border: none;
    background: transparent;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    padding: 0;
}

.play-pause-btn:hover {
    background: transparent;
}

.progress-container {
    flex-grow: 1;
    height: 4px;
    background: #0a3d5a !important;
    border-radius: 2px;
    cursor: pointer;
}

.progress-bar {
    height: 100%;
    background: #ffd800 !important;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s linear;
    opacity: 1;
}

.time-display {
    justify-content: space-between;
    font-size: 14px;
    color: #fff;
    margin: 10px 0;
}

.time-display h1 {
    margin-top: 0;
    font-size: 24px;
    text-align: center;
    display: block;
    width: 100%;
    margin-bottom: 10px;
    font-family: josefin sans, sans-serif;
    letter-spacing: .09em;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-slider {
    width: 100px;
    height: 4px;
    -webkit-appearance: none;
    background: #0a3d5a !important;
    border-radius: 2px;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
}

.nav-buttons {
    display: flex;
    gap: 10px;
    margin-left: 15px;
}

.nav-button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    background: #4CAF50;
    color: white;
    cursor: pointer;
    transition: background 0.3s;
}

.nav-button:hover {
    background: #45a049;
}

.icon {
    width: 32px;
    height: 32px;
    display: none;
}

.icon.active {
    display: block;
}

/* ==========================================================================
   Wave Animation
   ========================================================================== */
.simple-wave-container {
    width: 100%;
    height: 100px;
    border-radius: 5px;
    margin-bottom: -7px;
    position: relative;
    overflow: hidden;
}

.wave-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-evenly;
    height: 100%;
    padding: 15px 10px;
}

.wave-bar {
    width: 4px;
    background: #136692;
    border-radius: 2px;
    animation: wave 1s ease-in-out infinite;
}

@keyframes wave {
    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.5);
    }
}

.wave-bars.paused .wave-bar {
    animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .wave-bar {
    animation: none;
    transform: scaleY(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wave-bar {
    animation: wave 1s ease-in-out infinite !important;
  }
}

/* ==========================================================================
   Social Sharing
   ========================================================================== */
@import "https://fonts.googleapis.com/css?family=Playball";

.mn-social-bottom-c {
    margin-top: 40px;
}

.mn-social-bottom-c p {
    margin: -85px 0 20px;
    text-align: center;
    font-family: 'Playball', cursive;
    font-size: 25px;
}

.mn-social-bottom {
    background: #0a3d5a !important;
    width: 46px;
    height: 46px;
    box-sizing: border-box;
    padding: 13px 0 0;
    color: #fff;
    border-radius: 4px;
    margin: 0 7.5px 15px;
    transition: all .3s;
    font-size: 19px;
    display: inline-block;
    text-align: center;
    position: relative;
}

.mn-social-bottom:hover {
    background: #ff822d;
    color: #fff;
    top: -3px;
}

#mn-social-bottom-hidden {
    display: none;
}

.fa-plus {
    transition: -webkit-transform 0.3s;
}

.fa-plus.mn-social-r {
    -webkit-transform: rotate(45deg);
}

/* ==========================================================================
   Global / Misc
   ========================================================================== */
section {
    padding: 0;
}

.to-the-top {
    display: none;
}

#site-footer,
#site-header {
    background: #0a3d5a !important;
}

section.header-marketplace {
    border-bottom: 20px solid #0a3d5a !important;
}

/* ==========================================================================
   Responsive - Tablet & Below
   ========================================================================== */
@media (max-width: 1000px) {
    section.header-marketplace {
        flex-direction: column;
        min-height: 450px;
    }

    .header-marketplace h1 {
        margin-top: 0px;
    }
}

@media (max-width: 768px) {
    .playlist {
        list-style: none;
        padding: 0 20px;
        width: 100%;
        margin: 20px 0;
        overflow-y: scroll;
    }

    .thumbnail-container {
        width: 100%;
        height: auto;
        border-radius: 0px;
        overflow: hidden;
        margin-bottom: 15px;
        background: transparent;
        position: relative;
        justify-content: center;
        align-items: center;
        vertical-align: middle;
        display: flex;
    }

    .player-box {
        display: flex;
        height: max-content;
        overflow: hidden;
        flex-direction: column;
    }

    #site-content .entry-content .player-container {
        margin-top: 0;
    }

    .rightheader,
    .leftheader {
        margin-top: 20px;
    }
}

@media (max-width: 500px) {
    .play-pause-btn {
        width: 24px;
        height: 24px;
    }

    .nav-buttons {
        margin-left: 0;
    }

    .time-display {
        margin: 10px 0;
        width: 100%;
        margin-top:0;
    }

    .volume-container {
        display: flex;
        align-items: center;
        gap: 0;
        width: 70px;
    }

    .volume-slider {
        width: 43px;
        height: 4px;
    }

    .track-info div {
        width: 96%;
    }

    .controls {
        margin-bottom: 0px;
    }
}
