/* Media-Perspektiven Style A - Replacing Herzblatt */

/* Wrapper for alignment - FORCED BLOCK STACKING */
.mp-style-a-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 50px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    position: relative !important;
    padding: 15px 0 !important;
    margin: 30px 0 !important;
    clear: both !important;
    float: none !important;
    /* Prevent floating that causes overlap */
}

.mp-label {
    margin-left: 20px;
    font-size: 1.8rem;
    color: #235fa0;
    cursor: pointer;
    line-height: 1.4;
    flex: 1;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
    width: auto;
}

/* Linked Hover Effect: Hovering the wrapper affects both button and label */
.mp-style-a-wrapper:hover .mp-label {
    color: #1a4a7d !important;
    text-decoration: underline !important;
}

.mp-style-a-wrapper a {
    display: none !important;
    visibility: hidden !important;
}

/* ========================================
   Common Player Styles A, B, C, D
   ======================================== */

/* Inner container (created by JS) should fill the main player div */
.mp-style-a .sm2-360ui,
.mp-style-b .sm2-360ui,
.mp-style-c .sm2-360ui,
.mp-style-d .sm2-360ui {
    width: 100% !important;
    height: 100% !important;
}

/* Main Player Div (fixed size or via style attribute) */
.ui360.mp-style-a,
.ui360.mp-style-b,
.ui360.mp-style-c,
.ui360.mp-style-d {
    min-width: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    max-width: 100% !important;
    max-height: 100% !important;
    display: inline-block !important;
    position: relative !important;
    float: none !important;
}

.ui360.mp-style-a canvas,
.ui360.mp-style-b canvas,
.ui360.mp-style-c canvas,
.ui360.mp-style-d canvas {
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
}

.mp-style-a .sm2-cover,
.mp-style-b .sm2-cover,
.mp-style-c .sm2-cover,
.mp-style-d .sm2-cover {
    display: block !important;
    background: transparent !important;
    cursor: pointer !important;
}

.mp-style-a.ui360 a,
.mp-style-b.ui360 a,
.mp-style-c.ui360 a,
.mp-style-d.ui360 a,
.mp-style-a .sm2-360btn::before,
.mp-style-a .sm2-360btn::after,
.mp-style-b .sm2-360btn::before,
.mp-style-b .sm2-360btn::after,
.mp-style-c .sm2-360btn::before,
.mp-style-c .sm2-360btn::after,
.mp-style-d .sm2-360btn::before,
.mp-style-d .sm2-360btn::after,
.mp-style-a .sm2-timing,
.mp-style-b .sm2-timing,
.mp-style-c .sm2-timing,
.mp-style-d .sm2-timing {
    display: none !important;
}

/* Button Base Sizing and Common UI Reset */
/* Button Base Sizing and Common UI Reset */
.mp-style-a .sm2-360btn,
.mp-style-b .sm2-360btn,
.mp-style-c .sm2-360btn,
.mp-style-d .sm2-360btn,
.ui360.mp-style-a .sm2-360btn,
.ui360.mp-style-b .sm2-360btn,
.ui360.mp-style-c .sm2-360btn,
.ui360.mp-style-d .sm2-360btn,
.mp-style-a .sm2-360ui.sm2_playing .sm2-360btn,
.mp-style-a .sm2-360ui.sm2_paused .sm2-360btn,
.mp-style-b .sm2-360ui.sm2_playing .sm2-360btn,
.mp-style-b .sm2-360ui.sm2_paused .sm2-360btn,
.mp-style-c .sm2-360ui.sm2_playing .sm2-360btn,
.mp-style-c .sm2-360ui.sm2_paused .sm2-360btn,
.mp-style-d .sm2-360ui.sm2_playing .sm2-360btn,
.mp-style-d .sm2-360ui.sm2_paused .sm2-360btn {
    width: clamp(40px, 50%, 120px) !important;
    height: clamp(40px, 50%, 120px) !important;
    left: 50% !important;
    top: 50% !important;
    margin-left: calc(clamp(40px, 50%, 120px) / -2) !important;
    margin-top: calc(clamp(40px, 50%, 120px) / -2) !important;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;
    transition: all 0.2s ease;
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* Style A: Outlined / Standard */
.mp-style-a .sm2-360btn,
.ui360.mp-style-a .sm2-360btn {
    background-color: transparent !important;
    background-image: url('play.svg') !important;
}

.mp-style-a .sm2-360ui.sm2_playing .sm2-360btn,
.ui360.mp-style-a .sm2-360ui.sm2_playing .sm2-360btn {
    background-image: url('pause.svg') !important;
}

.mp-style-a-wrapper:hover .mp-style-a .sm2-360btn,
.mp-style-a-wrapper:hover .ui360.mp-style-a .sm2-360btn,
.mp-style-a .sm2-360btn:hover,
.ui360.mp-style-a .sm2-360btn:hover {
    filter: brightness(1.2) hue-rotate(-20deg) saturate(1.5) !important;
}

/* Style B: Solid Circle with White Icons */
.mp-style-b .sm2-360btn,
.ui360.mp-style-b .sm2-360btn {
    background-color: #235fa0 !important;
    background-image: url('play_white.svg') !important;
    background-size: 60% !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.mp-style-b .sm2-360ui.sm2_playing .sm2-360btn,
.ui360.mp-style-b .sm2-360ui.sm2_playing .sm2-360btn {
    background-image: url('pause_white.svg') !important;
}

.mp-style-a-wrapper:hover .mp-style-b .sm2-360btn,
.mp-style-a-wrapper:hover .ui360.mp-style-b .sm2-360btn,
.mp-style-b .sm2-360btn:hover,
.ui360.mp-style-b .sm2-360btn:hover {
    transform: scale(1.05);
    background-color: #1a4a7d !important;
}

/* Style C: Modern Floating Glass-ish Style */
.mp-style-c .sm2-360btn,
.ui360.mp-style-c .sm2-360btn {
    background-color: rgba(35, 95, 160, 0.08) !important;
    background-image: url('play.svg') !important;
    background-size: 50% !important;
    border: 2px solid #235fa0 !important;
}

.mp-style-c .sm2-360ui.sm2_playing .sm2-360btn,
.ui360.mp-style-c .sm2-360ui.sm2_playing .sm2-360btn {
    background-image: url('pause.svg') !important;
}

.mp-style-c .sm2-360btn:hover,
.ui360.mp-style-c .sm2-360btn:hover {
    background-color: rgba(35, 95, 160, 0.15) !important;
    transform: rotate(10deg) scale(1.1);
}

/* Style D: Minimalist Modern Thin Circle */
.mp-style-d .sm2-360btn,
.ui360.mp-style-d .sm2-360btn {
    background-image: url('play.svg') !important;
    background-size: 40% !important;
}

.mp-style-d .sm2-360ui.sm2_playing .sm2-360btn,
.ui360.mp-style-d .sm2-360ui.sm2_playing .sm2-360btn {
    background-image: url('pause.svg') !important;
}

.mp-style-d .sm2-360btn::after,
.ui360.mp-style-d .sm2-360btn::after {
    display: block !important;
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid rgba(35, 95, 160, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mp-style-d .sm2-360btn:hover::after {
    border-color: #235fa0;
    transform: scale(1.2);
    opacity: 0;
}

/* ========================================
   Layout Configuration Options
   ======================================== */

/* Apply alignment to outer container */
.mp-style-a-wrapper.mp-halign-left,
.mp-style-a-wrapper.mp-halign-center,
.mp-style-a-wrapper.mp-halign-right {
    justify-content: flex-start !important;
    text-align: left !important;
    margin: 0 !important;
}

.mp-style-a-wrapper.mp-valign-center {
    align-items: center !important;
}

.mp-style-a-wrapper.mp-width-minimum {
    width: 100% !important;
    display: flex !important;
}

/* Text Flow */
/* Text Flow Options */

.mp-style-a-wrapper.mp-float-left {
    float: left !important;
    margin-right: 25px !important;
}

.mp-style-a-wrapper.mp-float-right {
    float: right !important;
    margin-left: 25px !important;
}

.mp-style-a-wrapper.mp-textflow-wrap {
    /* Base wrap styles */
    width: auto !important;
    display: inline-flex !important;
    margin-bottom: 20px;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

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

.mp-textflow-below+.fmpDescription {
    clear: both;
    margin-top: 20px;
}

.mp-style-a-wrapper.mp-textflow-below {
    display: flex !important;
    clear: both !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Ensure audio container doesn't force a 16:9 ratio and has requested margin */
.fmpContainer.typeAudio {
    height: auto !important;
    min-height: 50px !important;
    margin: 5px 24px !important;
    width: 100% !important;
    display: block !important;
    padding-bottom: 0 !important;
    clear: both !important;
    overflow: visible !important;
}

.fmpContainer.typeAudio .flowplayer {
    padding-bottom: 0 !important;
    height: auto !important;
    min-height: 0 !important;
}

.fmpContainer.typeAudio .flowplayer {
    padding-bottom: 0 !important;
}

/* Preserve bottom margin */

/* Clearfix for the container */
.fmpContainer::after {
    content: "";
    display: table;
    clear: both;
}