/* Browse */
#ai-search-section .ai-search {
    position: relative;
    -webkit-box-flex: 0;
    -ms-flex: 0 1 580px;
    flex: 0 1 580px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

#ai-search-section .ai-search input[type=search] {
    color: #C6C6C6;
    border: 1px solid #C6C6C6;
    /* border-bottom: 4px solid #707070; */
    padding: 0 173px 0 43px;
    min-height: 45px;
    width: 100%;
    border-radius: 1px;
    font-family: "open-sans_bold", Helvetica, Arial, sans-serif;
    font-size: 16px;
}

#ai-search-section .ai-search input[type=search]:focus {
    color: #8F5870;
    border-bottom: 1px solid #8F5870;
    outline: none;
    font-family: "open-sans_regular", Helvetica, Arial, sans-serif;
}

#ai-search-section .ai-search ::-webkit-input-placeholder {
    color: #C6C6C6;
}

#ai-search-section .ai-search ::-moz-placeholder {
    color: #C6C6C6;
}

#ai-search-section .ai-search :-ms-input-placeholder {
    color: #C6C6C6;
}

#ai-search-section .ai-search ::-ms-input-placeholder {
    color: #C6C6C6;
}

#ai-search-section .ai-search ::placeholder {
    color: #C6C6C6;
}

#ai-search-section .ai-search #description-toggle {
    position: absolute;
    left: 0;
    padding: 0 13px;
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    cursor: pointer;
}

#ai-search-section .ai-search #description-toggle img {
    width: 20px;
    max-width: 100%;
    height: auto;
}

#ai-search-section #filters ul {
    list-style: none;
    padding: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin: 0 -10px 30px;
}

#ai-search-section #filters ul li {
    position: relative;
    padding: 0 10px;
    margin: 0 0 20px;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 20%;
    flex: 0 0 20%;
    min-width: 200px;
}

#ai-search-section #filters ul li .trigger {
    font-family: "open-sans_bold", Helvetica, Arial, sans-serif;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    min-height: 40px;
    text-align: center;
    padding: 0 15px;
    font-size: calc(16px + 0 * ((100vw - 600px) / 1200));
    line-height: 1;
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media screen and (max-width: 600px) {
    #ai-search-section #filters ul li .trigger {
        font-size: 16px;
    }
}

@media screen and (min-width: 1800px) {
    #ai-search-section #filters ul li .trigger {
        font-size: 16px;
    }
}

#ai-search-section #filters ul li .trigger.trigger--gray {
    border: 1px solid #707070;
    color: #707070;
}

#ai-search-section #filters ul li .trigger.trigger--gray span:first-child {
    margin-right: 15px;
}

#ai-search-section #filters ul li .trigger.trigger--gray:hover {
    color: #707070;
    background: #C6C6C6;
    cursor: pointer;
}

#ai-search-section #filters ul li .trigger.trigger--gray.js-active {
    color: #707070;
    background: #C6C6C6;
}

#ai-search-section #subfilters ul {
    list-style: none;
    padding: 0;
    display: none;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    margin: 0 -10px 30px;
}

#ai-search-section #subfilters ul.js-show {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

#ai-search-section #subfilters ul li {
    position: relative;
    padding: 0 10px;
    margin: 0 0px 20px;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 20%;
    flex: 0 0 20%;
    min-width: 200px;
}

#ai-search-section #subfilters ul li .trigger-wrapper {
    position: relative;
}

#ai-search-section #subfilters ul li .trigger {
    font-family: "open-sans_bold", Helvetica, Arial, sans-serif;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    min-height: 40px;
    text-align: center;
    padding: 0 20px;
    font-size: calc(16px + 0 * ((100vw - 600px) / 1200));
    line-height: 1;
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media screen and (max-width: 600px) {
    #ai-search-section #subfilters ul li .trigger {
        font-size: 16px;
    }
}

@media screen and (min-width: 1800px) {
    #ai-search-section #subfilters ul li .trigger {
        font-size: 16px;
    }
}

#ai-search-section #subfilters ul li .trigger.trigger--primary-color {
    color: #fff;
    background: #8F5870;
}

#ai-search-section #subfilters ul li .trigger.trigger--primary-color:hover {
    background: #ff193a;
    cursor: pointer;
}

#ai-search-section #subfilters ul li .trigger.trigger--primary-color.js-active {
    background: #ff193a;
}

#ai-search-section #subfilters ul li .trigger.trigger--secondary-color {
    color: #fff;
    background: #8F5870;
}

#ai-search-section #subfilters ul li .trigger.trigger--secondary-color:hover {
    background: #663f50;
    cursor: pointer;
}

#ai-search-section #subfilters ul li .trigger.trigger--secondary-color.js-active {
    background: #663f50;
}

#ai-search-section #subfilters ul li ul.trigger__child {
    display: none;
    font-family: "open-sans_regular", Helvetica, Arial, sans-serif;
    color: #707070;
    background: #fff;
    z-index: 9999;
    font-size: 16px;
    position: absolute;
    top: 0;
    -webkit-transform: translateY(40px);
    -ms-transform: translateY(40px);
    transform: translateY(40px);
    padding: 16px 20px;
    margin: 0;
    width: 100%;
    text-align: left;
    border: 1px solid #ff193a;
}

#ai-search-section #subfilters ul li ul.trigger__child.border--color-secondary-color {
    border: 1px solid #663f50;
}

#ai-search-section #subfilters ul li ul.trigger__child li {
    padding: 0;
    margin: 0 0 10px;
}

#ai-search-section #subfilters ul li ul.trigger__child li:last-child {
    margin: 0;
}

#ai-search-section #subfilters ul li ul.trigger__child li:hover {
    font-family: "open-sans_bold", Helvetica, Arial, sans-serif;
    cursor: pointer;
}

#ai-search-section #subfilters ul li ul.trigger__child li.js-active {
    font-family: "open-sans_bold", Helvetica, Arial, sans-serif;
}

#ai-search-section #set-filters .set-search-label {
    margin-left: 15px;
}

#ai-search-section #set-filters .set-search {
    margin-left: 0.35em;
}

#ai-search-section #set-filters ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#ai-search-section #set-filters ul li {
    display: inline;
    margin-left: 10px;
}

#ai-search-section #set-filters ul li span.icon-close {
    position: relative;
    height: 16px;
    width: 16px;
    display: inline-block;
    -webkit-transform: rotate(45deg) translateY(3px);
    -ms-transform: rotate(45deg) translateY(3px);
    transform: rotate(45deg) translateY(3px);
    -webkit-transform-origin: center center;
    -ms-transform-origin: center center;
    transform-origin: center center;
    margin-left: 5px;
}

#ai-search-section #set-filters ul li span.icon-close:before {
    content: "";
    position: absolute;
    left: 50%;
    height: 100%;
    border-right: 1px solid #8F5870;
}

#ai-search-section #set-filters ul li span.icon-close:after {
    content: "";
    position: absolute;
    top: 50%;
    width: 100%;
    border-bottom: 1px solid #8F5870;
}

#ai-search-section #set-filters ul li:hover {
    cursor: pointer;
    color: #8F5870;
}

#ai-search-section #set-filters.secondary ul li span:before {
    border-right: 1px solid #8F5870;
}

#ai-search-section #set-filters.secondary ul li span:after {
    border-bottom: 1px solid #8F5870;
}

#ai-search-section #set-filters.secondary ul li:hover {
    cursor: pointer;
    color: #8F5870;
}

/* AIMS 2025 */
#ai-search-section .trigger {
    font-family: "open-sans_bold", Helvetica, Arial, sans-serif;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    min-height: 30px;
    text-align: center;
    padding: 0 20px;
    font-size: calc(16px + 0 * ((100vw - 600px) / 1200));
    line-height: 1;
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media screen and (max-width: 600px) {
    #ai-search-section .trigger {
        font-size: 16px;
    }
}

@media screen and (min-width: 1800px) {
    #ai-search-section .trigger {
        font-size: 16px;
    }
}

#ai-search-section .trigger.trigger--secondary-color {
    color: #fff;
    background: #8F5870;
}

#ai-search-section .trigger.trigger--secondary-color:hover {
    background: #663f50;
    cursor: pointer;
}

#ai-search-section .trigger.trigger--secondary-color.js-active {
    background: #663f50;
}

#ai-search-section .trigger.trigger--secondary-color.disabled {
    background: #ceafbe;
    cursor: not-allowed;
}

#ai-buttons {
    position: absolute;
    right: 6px;
    /* padding: 6px; */
    display: flex;
}

#ai-upload-button {
    margin-right: 20px;
    padding-top: 3px;
    cursor: pointer;
}

:root {
    --fg: #1f2937;
    --muted: #6b7280;
    --bg: #ffffff;
    --card: #fafafa;
    --border: #e5e7eb;
}

.ai-search-description {
    display: grid;
    gap: 6px 24px;
    grid-template-columns: 1fr;
    background: var(--card);
    padding-top: 15px;
    max-height: 0;
    padding-top: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height .2s ease, padding-top .2s ease, opacity .1s;
}

.ai-search-description.open {
    max-height: 500px;
    padding-top: 15px;
    opacity: 1;
    transition: max-height 1s ease, padding-top .2s ease, opacity .5s;
}

@media (min-width: 640px) {
    .ai-search-description {
        grid-template-columns: 1fr 1fr;
    }
}

.description-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 2px 4px;
    background: var(--card);
    font-size: small;
}

.description-item svg {
    flex: 0 0 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--muted);
}

.text {
    color: var(--muted);
}

/* TABLE OVERWRITES FOR AI TABLE */
table#results tr th#ai-first-th {
    min-width: auto !important;
}

#ai-waveform-th {
    width: 100%;
}

#ai-search-section button.button--play,
#ai-search-section button.button--pause {
    margin-right: 0px;
    margin-top: 9px;
}

#ai-search-section .dataTables_processing {
    z-index: 1000;
    top: 0px;
    bottom: 0px;
}

/* ====================== */
/* SOURCE TRACK PLAYER    */
/* ====================== */

#sourceplayer-container {
    background: var(--card);
    padding-top: 15px;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 20px;
    padding-right: 10px;
    opacity: 0;
    overflow: hidden;
    transition: max-height .2s ease, padding-top .2s ease, padding-bottom .2s ease, opacity .1s;
}

#sourceplayer-container.open {
    max-height: 500px;
    padding-top: 15px;
    padding-bottom: 15px;
    opacity: 1;
    transition: max-height 1s ease, padding-top .2s ease, padding-bottom .2s ease, opacity .5s;
}

#trackplayer-source {
    top: 13px;
}

#sourcevideo-container {
    display: flex;
    justify-content: center;
    background: var(--card);
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 10px;
    padding-right: 10px;
    opacity: 0;
    overflow: hidden;
    transition: max-height .2s ease, padding-top .2s ease, padding-bottom .2s ease, opacity .1s;
}

#sourcevideo-container.open {
    max-height: 500px;
    padding-top: 10px;
    padding-bottom: 10px;
    opacity: 1;
    transition: max-height 1s ease, padding-top .2s ease, padding-bottom .2s ease, opacity .5s;
}

#sourcevideo-container video {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    display: none;
    margin-left: auto;
    margin-right: auto;
}

#ai-filename {
    display: none;
    font-size: 12px;
    background: #dbdbdb;
    border-radius: 5px;
    color: black;
    position: absolute;
    left: 42px;
    padding: 3px 8px;
}

#ai-filename .filename-clear {
    font-size: 20px;
    margin-left: 8px;
    line-height: 16px;
    cursor: pointer;
}

/* in file mode, file span is visible, search span hidden */
.ai-search.file #ai-filename {
    display: flex;
}

#ai-search-section .ai-search.file input#ai-search {
    pointer-events: none;
    color: white !important;
}

#ai-progress-message {
    font-size: 1.2em;
}

#ai-welcome {
    font-size: 1.2em;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

#sourceplayer-peaks-container {
    height: 69px;
    margin-left: 60px;
    /* width: 100%; */
    /* background: pink; */
}

.overview-container {
    height: 59px;
    width: 100%;
}

.zoomview-container {
    height: 59px;
    width: 100%;
}

.peaks-waiting {
    display: flex;
    align-items: center;
    /* vertikal */
    justify-content: center;
    /* horizontal */
    text-align: center;
    /* Text zentrieren, wenn er umbricht */
    /* Höhe festlegen oder via min-height arbeiten */
    min-height: 69px;
    /* Beispiel */
}

.seg-cursor {
    cursor: default;
}

.seg-grab {
    cursor: grab;
}

.seg-grabbing {
    cursor: grabbing;
}

#results tr.playing {
    background-color: #dedede !important;
}

#results tr.played {
    opacity: 0.7;
}

/*===============
   VIDEO PLAYER
===============*/
:root {
    --ui-bg: rgba(0, 0, 0, .5);
    --ui-bg-hover: rgba(0, 0, 0, .7);
    --gap: .6rem;
}

/* * {
      box-sizing: border-box;
  } */

/* body {
      margin: 0;
      display: grid;
      place-items: center;
      min-height: 100dvh;
      background: #111;
      color: #fff;
  } */

.video-wrap {
    position: relative;
    display: inline-block;
    /* passt sich der Videogröße an */
}

/* #video-source {
      inline-size: 100%;
      block-size: 100%;
      display: block;
      background: #000;
  } */

/* Overlay-Controls */
.controls {
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--gap);
    transition: opacity .25s ease;
    opacity: 1;
    pointer-events: none;
    /* wird bei .active entkoppelt */
}

.controls.active {
    opacity: 1;
    pointer-events: auto;
}

.controls.hidden {
    opacity: 0;
}

.video-btn {
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: var(--ui-bg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
    width: 40px;
    height: 40px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: background .2s ease, transform .06s ease;
    pointer-events: auto;
}

/* .video-btn:hover {
    background: var(--ui-bg-hover);
} */

.video-btn:active {
    transform: scale(.98);
}

/* .video-btn:focus-visible {
    outline: 2px solid #9ecbff;
    outline-offset: 2px;
} */

/* Big center play button (optional nice UX) */
.center-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
    transition: opacity .2s ease;
}

.center-play .video-btn {
    font-size: 1.6rem;
    padding: 1rem 1.2rem;
    pointer-events: auto;
        width: 80px;
            height: 80px;
            background-image: url('/wp-content/themes/2wei/assets/icons/2wei_icons_play.svg');
}

.center-play.hidden {
    opacity: 0;
    pointer-events: none;
}


#playPause {
    background-image: url('/wp-content/themes/2wei/assets/icons/2wei_icons_play.svg');
}

#playPause.playing {
    background-image: url('/wp-content/themes/2wei/assets/icons/2wei_icons_pause.svg');
}

#muteUnmute {
    background-image: url('/wp-content/themes/2wei/assets/icons/2wei_icons_sound_off.svg');
}

#muteUnmute.muted {
    background-image: url('/wp-content/themes/2wei/assets/icons/2wei_icons_sound_on.svg');
}

/* tooltipped-track-title */
.tooltipped-track-title {
    cursor: help;
    position: relative;
    display: inline-block;
}

.track-meta-info {
display: none;
    position: absolute;
    top: -8px;
    /* gleiche Höhe wie der Titel */
    left: 100%;
    /* direkt rechts daneben */
    margin-left: .5rem;
    /* kleiner Abstand */

    /* background: #333; */
    /* color: #fff; */
    padding: .5rem .75rem;
    border-radius: .5rem;
    border: 1px solid #ccc;
    background: var(--card);
    color: var(--fg);
    /* box-shadow: 0 6px 16px rgba(0, 0, 0, .2); */
    z-index: 1000;
    white-space: nowrap;
}

.tooltipped-track-title .text-bold:hover+.track-meta-info {
    display: block !important;
}

.tooltipped-track-title .track-meta-info table {
    border-collapse: collapse;
    /* Zellen „verschmelzen“ */
    border: none;
}

.tooltipped-track-title .track-meta-info td,
.tooltipped-track-title .track-meta-info th {
    border: none;
    padding: 2px 6px!important;
    /* etwas Abstand, ohne Linien */
}

.tooltipped-track-title .track-meta-info tr {
    background-color: var(--card);
}