/* =====================================================
   STORY CLIPS - CSS Styles (Figma-accurate)
   ===================================================== */

/* Post-Listen Clip Prompt */
.clip-prompt-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.player-bottom .player-btn {
    height: 0;
}
.clip-prompt-overlay.active {
    display: flex;
}
button{
    width: auto;
}
.clip-prompt-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 32px;
    max-width: 440px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: clipPromptSlideUp 0.3s ease-out;
}
@keyframes clipPromptSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.clip-prompt-card .clip-prompt-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: #E91E63;
}
.clip-prompt-card .clip-prompt-icon svg {
    width: 48px;
    height: 48px;
}
.clip-prompt-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
    line-height: 1.4;
}
.clip-prompt-card p {
    color: #666;
    margin-bottom: 28px;
    font-size: 14px;
}
.clip-prompt-card .btn-clip-now {
    background: linear-gradient(135deg, #5B4FC7 0%, #3579F7 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-bottom: 12px;
    transition: opacity 0.2s;
}
.clip-prompt-card .btn-clip-now:hover {
    opacity: 0.9;
}
.clip-prompt-card .btn-clip-dismiss {
    background: transparent;
    border: none;
    font-size: 14px;
    color: #999;
    cursor: pointer;
    width: 100%;
    text-decoration: underline;
}
.clip-prompt-card .btn-clip-dismiss:hover {
    color: #666;
}

/* Clip Editor Page */
.clip-editor-section {
    padding: 60px 0;
    min-height: 60vh;
    background: transparent;
}
.clip-editor-section .clip-editor-box {
    background: #fff;
    border-radius: 8px;
    padding: 32px;
    border: 1px solid rgba(0,0,0,0.1);
    width: -webkit-fill-available;
    width: -moz-available;
    width: fill-available;
    font-family: "Roboto", sans-serif;
}
.clip-editor-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    margin-bottom: 24px;
}
.clip-editor-header .clip-back-link {
    grid-column: 1;
    justify-self: start;
    color: #3579F7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}
.clip-editor-header h1 {
    grid-column: 2;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin: 0;
}
.clip-editor-section .clip-form .form-group {
    margin-bottom: 20px;
}
.clip-editor-section .clip-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}
.clip-editor-section .clip-form input[type="text"],
.clip-editor-section .clip-form input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    background: #fff;
    transition: border-color 0.2s;
}
.clip-editor-section .clip-form input:focus {
    border-color: #5B4FC7;
}
.clip-editor-section .visibility-toggle {
    display: flex;
    gap: 20px;
}
.clip-editor-section .visibility-toggle label {
    font-weight: 400;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}
.clip-editor-section .visibility-toggle input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    padding-left: 0px;
    outline: none;
    cursor: pointer;
    position: relative;
    margin: 0;
    flex-shrink: 0;
}
.clip-editor-section .visibility-toggle input[type="radio"]:checked {
    border-color: #3579F7;
}
.clip-editor-section .visibility-toggle input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3579F7;
}
.clip-editor-section .waveform-container {
    background: #4a4a4a;
    border-radius: 10px;
    padding: 0;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}
.clip-editor-section .waveform-controls-top {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    gap: 10px;
}
.clip-editor-section .waveform-controls-top .waveform-btn {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.clip-editor-section .waveform-controls-top .waveform-btn:hover {
    background: rgba(255,255,255,0.1);
}
.clip-editor-section .clip-player-volume-wrap {
    position: relative;
}
.clip-editor-section .waveform-controls-top .clip-player-volume-wrap {
    z-index: 21;
}
.clip-editor-section #btnVolumeToggle img {
    width: 16px;
    height: 16px;
}
.clip-editor-section #btnVolumeToggle.is-low-volume {
    opacity: 0.75;
}
.clip-editor-section .clip-volume-popup {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    bottom: auto;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
    background: #2f2659;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 30;
}
.clip-editor-section .clip-volume-popup.active {
    display: flex;
}
.clip-editor-section .clip-volume-step {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    width: 24px;
    height: 24px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.clip-editor-section .clip-volume-step:hover {
    opacity: 0.8;
}
.clip-editor-section .clip-volume-slider-wrap {
    height: 80px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.clip-editor-section .clip-volume-slider {
    width: 80px;
    height: 4px;
    margin: 0;
    accent-color: #fff;
    cursor: pointer;
    transform: rotate(-90deg);
    transform-origin: center;
}
.clip-editor-section .waveform-container:has(.clip-volume-popup.active) {
    overflow: visible;
}
.clip-editor-section .waveform-controls-top:has(.clip-volume-popup.active) {
    overflow: visible;
}
.clip-editor-section .waveform-controls-top .waveform-timeline {
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.2);
    position: relative;
}
.clip-editor-section .waveform-container #waveform {
    min-height: 60px;
    padding: 0 14px;
}
.clip-editor-section .waveform-region-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px 12px;
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}
.clip-editor-section .waveform-region-labels .region-label {
    background: #5B4FC7;
    color: #fff;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    letter-spacing: 0.5px;
}
.clip-editor-section .waveform-region-labels .region-swipe-hint {
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    font-weight: 400;
    text-transform: none;
}
.clip-editor-section .btn-save-clip {
    background: #3579F7;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: opacity 0.2s;
    margin-top: 8px;
    height: auto;
}
.clip-editor-section .btn-save-clip:hover {
    opacity: 0.9;
}
.clip-editor-section .btn-save-clip:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.clip-editor-section .btn-cancel-clip {
    background: #fff;
    color: #3579F7;
    border: 2px solid #3579F7;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: background 0.2s;
    height: auto;
}
.clip-editor-section .btn-cancel-clip:hover {
    background: #f0f5ff;
}

/* Clip Saved Success */
.clip-saved-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.clip-saved-overlay.active {
    display: flex;
}
.clip-saved-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 32px;
    max-width: 400px;
    width: 90%;
    text-align: center;
}
.clip-saved-card .success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 24px;
}
.clip-saved-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
}
.clip-saved-card p {
    color: #666;
    margin-bottom: 24px;
    font-size: 14px;
}

/* Share Modal */
.clip-share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.clip-share-modal.active {
    display: flex;
}
.clip-share-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    max-width: 600px;
    width: 90%;
}
.clip-share-card h3 {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 4px;
    color: #000000;
}
.clip-share-card .clip-link-box {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
    padding: 5px 14px;
    background: #F2F4F5;
    border-radius: 8px;
}
.clip-share-card .clip-link-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    outline: none;
    color: #333;
}
.clip-share-card .clip-link-box .btn-copy {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.clip-share-card .clip-link-box .btn-copy svg {
    width: 18px;
    height: 20px;
}
.clip-share-card .share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.clip-share-card .share-buttons .btn-share {
    flex: 1;
    font-family: "Montserrat", sans-serif;
    min-width: 60px;
    border-radius: 6px;
    border: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    height: auto;
    color: #fff;
    text-align: center;
    transition: opacity 0.2s;
}
.clip-share-card .share-buttons .btn-share img{
    margin-right: 3px;
}
.clip-share-card .share-buttons .btn-share:hover {
    opacity: 0.85;
}
.btn-share-email { background: #7F69E4; }
.btn-share-x { background: #000000; }
.btn-share-fb { background: #335DA6; }
.btn-share-more { background: #016EF9; }
.clip-share-success-icon {
    text-align: center;
    margin-bottom: 16px;
}
.clip-share-heading {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 16px;
}
.clip-share-divider {
    border: none;
    border-top: 1px solid #DDDDDD;
    margin: 0 0 20px;
}
.clip-share-card .btn-close-share {
    margin-top: 20px;
    display: block;
    width: 100%;
    background: transparent;
    border: 2px solid #3579F7;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #3579F7;
    cursor: pointer;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    height: auto;
}
.clip-share-card .btn-close-share.btn-manage-clips {
    background: #3579F7;
    color: #fff;
    border-color: #3579F7;
}
.clip-share-card .btn-close-share.btn-manage-clips:hover {
    opacity: 0.9;
}

/* My Clips Page */
.my-clips-section *,
.my-clips-section *::before,
.my-clips-section *::after {
    box-sizing: border-box;
}
.my-clips-section button,
.my-clips-section button:focus,
.my-clips-section button:active,
.my-clips-section button:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}
.my-clips-section {
    padding: 24px 0;
    min-height: 60vh;
    background: #f0f0f5;
    font-family: "Roboto", sans-serif;
}
.my-clips-section .clips-back-link {
    color: #3579F7;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 16px;
}
.my-clips-section .clips-wrapper {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    width: -webkit-fill-available;
    width: -moz-available;
    width: fill-available;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.my-clips-section .clips-tabs {
    display: flex;
}
.my-clips-section .clips-tabs .tab-btn {
    flex: 1;
    background: #F2F2F2;
    outline: none !important;
    box-shadow: none !important;
    font-family: "Roboto", sans-serif;
    padding: 20px 10px;
    height: auto;
    font-size: 20px;
    font-weight: 500;
    color: #000000;
    cursor: pointer;
    text-align: center;
    position: relative;
    transition: color 0.2s;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
    border-right: 1px solid #e0e0e0!important;
    border-bottom: 1px solid #e0e0e0!important;
}
.my-clips-section .clips-tabs .tab-btn:first-child{
    border-top-left-radius: 12px;
}
.my-clips-section .clips-tabs .tab-btn:last-child{
    border-right:none!important;
    border-top-right-radius: 12px;
}
.my-clips-section .clips-tabs .tab-btn.active {
    border-bottom: none!important;
    background: #ffffff;
}
.my-clips-section .clips-toolbar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 24px;
}
.my-clips-section .clips-toolbar .select-all-toggle {
    font-size: 16px;
    font-weight: 700;
    color: #8D8D8D;
    cursor: pointer;
    user-select: none;
}
.my-clips-section .clips-toolbar .select-all-toggle.active {
    color: #5B4FC7;
    font-weight: 600;
}
.my-clips-section .clips-toolbar .btn-delete-all {
    background: none;
    color: #FF6B65;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.my-clips-section .clips-empty {
    text-align: center;
    padding: 60px 20px;
}
.my-clips-section .clips-empty svg {
    width: 64px;
    height: 64px;
    fill: #ccc;
    margin-bottom: 16px;
}
.my-clips-section .clips-empty h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}
.my-clips-section .clips-empty p {
    color: #888;
    font-size: 14px;
    max-width: 280px;
    margin: 0 auto;
}
.my-clips-section .clips-empty .btn-create-first-clip {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 32px;
    background: #6C5CE7;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
}
.my-clips-section .clips-empty .btn-create-first-clip:hover {
    background: #5A4BD1;
}
.my-clips-section .clips-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 20px;
}
.my-clips-section .clip-card-item {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    padding: 10px;
}
.my-clips-section .clip-card-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 0 15px;
}
.my-clips-section .clip-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #5B4FC7;
    border-radius: 4px;
}
.my-clips-section .clip-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 60px;
}
.my-clips-section .clip-card-title {
    min-width: 180px;
    max-width: 180px;
}
.my-clips-section .clip-card-title strong {
    font-size: 14px;
    color: #000000;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
}
.my-clips-section .clip-card-title span {
    font-size: 16px;
    color: #7A7A7A;
    display: block;
    margin-top: 2px;
    font-weight: 500;
}
.my-clips-section .clip-card-meta {
    display: flex;
    align-items: center;
    margin: 0 auto;
}
.my-clips-section .clip-card-meta .meta-item {
    text-align: center;
    min-width: 50px;
    border-left: 1px solid #DDDDDD;
    padding: 0 20px;
}
.my-clips-section .clip-card-meta .meta-item:first-child{
    border-left: none;
}
.my-clips-section .clip-card-meta .meta-label {
    font-size: 12px;
    color: #000000;
    display: block;
    font-weight: 400;
}
.my-clips-section .clip-card-meta .meta-value {
    font-size: 12px;
    color: #7A7A7A;
    font-weight: 600;
}

/* Audio Player */
.my-clips-section .clip-card-player {
    max-width: 280px;
    flex: 1;
    background: #483A87;
    border-radius: 8px;
    padding: 8px 10px 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: auto;
}
.my-clips-section .clip-waveform-wrap {
    position: relative;
    width: 100%;
    height: 30px;
    overflow: hidden;
    margin-bottom: 5px;
}
.my-clips-section .clip-static-waveform {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}
.my-clips-section .clip-static-waveform::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: #CAC3C4;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='32'%3E%3Crect x='0' y='10' width='3' height='12' rx='1'/%3E%3Crect x='5' y='6' width='3' height='20' rx='1'/%3E%3Crect x='10' y='12' width='3' height='8' rx='1'/%3E%3Crect x='15' y='4' width='3' height='24' rx='1'/%3E%3Crect x='20' y='8' width='3' height='16' rx='1'/%3E%3Crect x='25' y='11' width='3' height='10' rx='1'/%3E%3Crect x='30' y='6' width='3' height='20' rx='1'/%3E%3Crect x='35' y='10' width='3' height='12' rx='1'/%3E%3Crect x='40' y='3' width='3' height='26' rx='1'/%3E%3Crect x='45' y='8' width='3' height='16' rx='1'/%3E%3Crect x='50' y='12' width='3' height='8' rx='1'/%3E%3Crect x='55' y='5' width='3' height='22' rx='1'/%3E%3Crect x='60' y='9' width='3' height='14' rx='1'/%3E%3Crect x='65' y='11' width='3' height='10' rx='1'/%3E%3Crect x='70' y='4' width='3' height='24' rx='1'/%3E%3Crect x='75' y='8' width='3' height='16' rx='1'/%3E%3Crect x='80' y='12' width='3' height='8' rx='1'/%3E%3Crect x='85' y='6' width='3' height='20' rx='1'/%3E%3Crect x='90' y='10' width='3' height='12' rx='1'/%3E%3Crect x='95' y='3' width='3' height='26' rx='1'/%3E%3Crect x='100' y='7' width='3' height='18' rx='1'/%3E%3Crect x='105' y='11' width='3' height='10' rx='1'/%3E%3Crect x='110' y='5' width='3' height='22' rx='1'/%3E%3Crect x='115' y='9' width='3' height='14' rx='1'/%3E%3Crect x='120' y='12' width='3' height='8' rx='1'/%3E%3Crect x='125' y='4' width='3' height='24' rx='1'/%3E%3Crect x='130' y='8' width='3' height='16' rx='1'/%3E%3Crect x='135' y='11' width='3' height='10' rx='1'/%3E%3Crect x='140' y='6' width='3' height='20' rx='1'/%3E%3Crect x='145' y='10' width='3' height='12' rx='1'/%3E%3Crect x='150' y='4' width='3' height='24' rx='1'/%3E%3Crect x='155' y='8' width='3' height='16' rx='1'/%3E%3Crect x='160' y='12' width='3' height='8' rx='1'/%3E%3Crect x='165' y='6' width='3' height='20' rx='1'/%3E%3Crect x='170' y='9' width='3' height='14' rx='1'/%3E%3Crect x='175' y='11' width='3' height='10' rx='1'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='32'%3E%3Crect x='0' y='10' width='3' height='12' rx='1'/%3E%3Crect x='5' y='6' width='3' height='20' rx='1'/%3E%3Crect x='10' y='12' width='3' height='8' rx='1'/%3E%3Crect x='15' y='4' width='3' height='24' rx='1'/%3E%3Crect x='20' y='8' width='3' height='16' rx='1'/%3E%3Crect x='25' y='11' width='3' height='10' rx='1'/%3E%3Crect x='30' y='6' width='3' height='20' rx='1'/%3E%3Crect x='35' y='10' width='3' height='12' rx='1'/%3E%3Crect x='40' y='3' width='3' height='26' rx='1'/%3E%3Crect x='45' y='8' width='3' height='16' rx='1'/%3E%3Crect x='50' y='12' width='3' height='8' rx='1'/%3E%3Crect x='55' y='5' width='3' height='22' rx='1'/%3E%3Crect x='60' y='9' width='3' height='14' rx='1'/%3E%3Crect x='65' y='11' width='3' height='10' rx='1'/%3E%3Crect x='70' y='4' width='3' height='24' rx='1'/%3E%3Crect x='75' y='8' width='3' height='16' rx='1'/%3E%3Crect x='80' y='12' width='3' height='8' rx='1'/%3E%3Crect x='85' y='6' width='3' height='20' rx='1'/%3E%3Crect x='90' y='10' width='3' height='12' rx='1'/%3E%3Crect x='95' y='3' width='3' height='26' rx='1'/%3E%3Crect x='100' y='7' width='3' height='18' rx='1'/%3E%3Crect x='105' y='11' width='3' height='10' rx='1'/%3E%3Crect x='110' y='5' width='3' height='22' rx='1'/%3E%3Crect x='115' y='9' width='3' height='14' rx='1'/%3E%3Crect x='120' y='12' width='3' height='8' rx='1'/%3E%3Crect x='125' y='4' width='3' height='24' rx='1'/%3E%3Crect x='130' y='8' width='3' height='16' rx='1'/%3E%3Crect x='135' y='11' width='3' height='10' rx='1'/%3E%3Crect x='140' y='6' width='3' height='20' rx='1'/%3E%3Crect x='145' y='10' width='3' height='12' rx='1'/%3E%3Crect x='150' y='4' width='3' height='24' rx='1'/%3E%3Crect x='155' y='8' width='3' height='16' rx='1'/%3E%3Crect x='160' y='12' width='3' height='8' rx='1'/%3E%3Crect x='165' y='6' width='3' height='20' rx='1'/%3E%3Crect x='170' y='9' width='3' height='14' rx='1'/%3E%3Crect x='175' y='11' width='3' height='10' rx='1'/%3E%3C/svg%3E");
    mask-size: 200px 30px;
    -webkit-mask-size: 200px 30px;
}
.my-clips-section .clip-mini-waveform {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}
.my-clips-section .clip-card-player .player-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}
.my-clips-section .clip-card-player .player-bottom .player-btns-wrap{
    display: flex;
    gap: 10px;
    align-items: center;
}
.my-clips-section .clip-card-player .player-btn {
    background: none;
    color: #fff;
    cursor: pointer;
    padding: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.my-clips-section .clip-card-player .player-time {
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}
.my-clips-section .clip-player-volume-wrap {
    position: relative;
}
.my-clips-section .player-vol.is-low-volume {
    opacity: 0.75;
}
.my-clips-section .clip-volume-popup {
    display: none;
    position: absolute;
    left: 0;
    bottom: calc(100% + 8px);
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
    background: #2f2659;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 20;
}
.my-clips-section .clip-volume-popup.active {
    display: flex;
}
.my-clips-section .clip-volume-step {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    width: 24px;
    height: 24px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.my-clips-section .clip-volume-step:hover {
    opacity: 0.8;
}
.my-clips-section .clip-volume-slider-wrap {
    height: 80px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.my-clips-section .clip-volume-slider {
    width: 80px;
    height: 4px;
    margin: 0;
    accent-color: #fff;
    cursor: pointer;
    transform: rotate(-90deg);
    transform-origin: center;
}
.my-clips-section .clip-card-item:has(.clip-volume-popup.active) {
    overflow: visible;
    position: relative;
    z-index: 3;
}

/* Action Bar */
.my-clips-section .clip-card-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    background: #F2F2F2;
    border-radius: 10px;
    padding: 15px 10px;
}
.my-clips-section .clip-action-btn {
    background: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    transition: opacity 0.15s;
    color: #3579F7;
    height: auto;
    line-height: 1;
}
.my-clips-section .clip-action-btn:hover {
    opacity: 0.7;
}
.my-clips-section .clip-action-btn svg {
    flex-shrink: 0;
}
.my-clips-section .clip-action-delete { color: #FF6B65; }
.my-clips-section .clip-action-report { color: #FF9800; }

/* Load More */
.my-clips-section .btn-load-more {
    background: #5B4FC7;
    color: #fff;
    border-radius: 6px;
    padding: 0px 32px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.my-clips-section .btn-load-more:hover {
    opacity: 0.9;
}

@media (max-width: 991px) {
    .my-clips-section .clip-card-row {
        flex-wrap: wrap;
        align-items: flex-start;
    }
    .my-clips-section .clip-card-player {
        width: 100%;
        max-width: 100%;
        flex: auto;
    }
    .my-clips-section .clip-card-meta {
        flex-wrap: wrap;
        gap: 0;
        margin: 0;
        width: 100%;
    }
    .my-clips-section .clip-card-actions {
        flex-wrap: wrap;
        gap: 5px;
        justify-content: center;
        padding: 10px;
    }
    .my-clips-section .clips-list {
        padding: 10px 12px;
    }
    .my-clips-section .clip-card-meta .meta-item{
        padding: 0 10px;
    }
    .my-clips-section .clip-card-meta .meta-item:first-child{
        padding-left: 0;
    }
}

/* Public Clip Page */
.public-clip-section {
    padding: 32px 0;
    min-height: 70vh;
    font-family: "Roboto", sans-serif;
    background: #F2F4F5;
}
.public-clip-section .clip-page-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin: 0 0 24px;
}
.public-clip-section > .container {
    max-width: 750px;
    padding: 0 16px;
}
.public-clip-section .clip-card {
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    border: 1px solid #DDDDDD;
    width: 100%;
}
.public-clip-section .clip-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #DDDDDD;
}
.public-clip-section .clip-card-author {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.5px;
}
.public-clip-section .clip-card-date {
    font-size: 12px;
    color: #888;
    font-weight: 400;
}
.public-clip-section .clip-card-info-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}
.public-clip-section .clip-card-left {
    flex: 0 0 auto;
}
.public-clip-section .clip-story-category {
    font-size: 12px;
    font-weight: 700;
    color: #3579F7;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: block;
    margin-bottom: 2px;
}
.public-clip-section .clip-story-category:hover {
    text-decoration: underline;
}
.public-clip-section .clip-story-id {
    font-size: 11px;
    color: #888;
    display: block;
    text-decoration: underline;
}
.public-clip-section .clip-voice-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.public-clip-section .clip-voice-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.public-clip-section .clip-voice-avatar-placeholder {
    background: #5B4FC7;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}
.public-clip-section .clip-voice-details strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}
.public-clip-section .clip-voice-details span {
    font-size: 12px;
    color: #888;
}
.public-clip-section .clip-player {
    background: #483A87;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}
.public-clip-section .clip-player-waveform-row {
    margin-bottom: 12px;
}
.public-clip-section .clip-player-waveform-wrap {
    position: relative;
    height: 48px;
    width: 100%;
}
.public-clip-section .clip-player-waveform-wrap #clipWaveform {
    position: relative;
    height: 48px;
    width: 100%;
}
.public-clip-section .clip-player-waveform-wrap #clipWaveform canvas {
    display: block;
    width: 100% !important;
}
.public-clip-section .clip-player-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}
.public-clip-section .clip-player-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    gap: 4px;
    white-space: nowrap;
}
.public-clip-section .clip-player-play-btn {
    width: 27px;
    height: 27px;
    min-width: 27px;
    border-radius: 50%;
    background: #fff;
    padding: 0;
}
.public-clip-section .clip-player-play-btn svg {
    display: block;
}
.public-clip-section .clip-player-volume-wrap {
    position: relative;
}
.public-clip-section #btnVolumeToggle img {
    width: 20px;
    height: 20px;
}
.public-clip-section #btnVolumeToggle.is-low-volume {
    opacity: 0.75;
}
.public-clip-section .clip-volume-popup {
    display: none;
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
    background: #2f2659;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 5;
}
.public-clip-section .clip-volume-popup.active {
    display: flex;
}
.public-clip-section .clip-volume-step {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    width: 24px;
    height: 24px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.public-clip-section .clip-volume-step:hover {
    opacity: 0.8;
}
.public-clip-section .clip-volume-slider-wrap {
    height: 80px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.public-clip-section .clip-volume-slider {
    width: 80px;
    height: 4px;
    margin: 0;
    accent-color: #fff;
    cursor: pointer;
    transform: rotate(-90deg);
    transform-origin: center;
}
.public-clip-section .clip-player-divider {
    height: 1px;
    background: rgba(255,255,255,0.25);
    margin: 14px 0 12px;
}
.public-clip-section .clip-player-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding: 0 0 14px;
}
.public-clip-section .clip-player-action {
    background: none;
    border: none;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    height: auto;
    line-height: 1;
    white-space: nowrap;
}
.public-clip-section .clip-player-action-start {
    justify-self: start;
}
.public-clip-section .clip-player-action-center {
    justify-self: center;
}
.public-clip-section .clip-player-action-end {
    justify-self: end;
}
.public-clip-section .clip-player-action:hover {
    opacity: 0.8;
}
.public-clip-section .clip-player-action img {
    filter: brightness(0) invert(1);
    width: 16px;
    height: 16px;
}
.public-clip-section .clip-player-meta-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 8px;
}
.public-clip-section .clip-player-meta-left {
    justify-self: start;
}
.public-clip-section .clip-player-meta-center {
    justify-self: center;
}
.public-clip-section .clip-player-meta-right {
    justify-self: end;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.public-clip-section .clip-player-stat {
    font-size: 12px;
    color: #fff;
    white-space: nowrap;
    font-weight: 400;
}
.public-clip-section .clip-player-stat strong {
    color: #fff;
    background: #1a1a1a;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 2px;
}
.public-clip-section .clip-upgrade-btn {
    background: #3579F7;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 14px;
    margin-left: 0;
    height: auto;
    line-height: 1;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.public-clip-section .clip-upgrade-btn svg {
    flex-shrink: 0;
}
.public-clip-section .clip-login-btn {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    padding: 5px 16px;
    margin-left: 0;
    height: auto;
    line-height: 1;
    white-space: nowrap;
}
.public-clip-section .clip-link-section {
    margin-bottom: 16px;
}
.public-clip-section .clip-link-label {
    font-size: 13px;
    font-weight: 400;
    color: #333;
    margin-bottom: 8px;
    display: block;
}
.public-clip-section .clip-link-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: #F2F4F5;
    border-radius: 8px;
}
.public-clip-section .clip-link-box input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 13px;
    outline: none;
    color: #333;
}
.public-clip-section .clip-link-box .btn-copy {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.public-clip-section .clip-link-box .btn-copy svg {
    width: 18px;
    height: 20px;
}
.public-clip-section .share-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.public-clip-section .share-buttons .btn-share {
    flex: 1;
    font-family: "Montserrat", sans-serif;
    min-width: 60px;
    border-radius: 6px;
    border: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    height: auto;
    color: #fff;
    text-align: center;
    transition: opacity 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.public-clip-section .share-buttons .btn-share img {
    margin-right: 0;
}
.public-clip-section .share-buttons .btn-share:hover {
    opacity: 0.85;
}
.public-clip-section .clip-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #DDDDDD;
}
.public-clip-section .clip-footer-link {
    font-size: 13px;
    font-weight: 700;
    color: #3579F7;
    text-decoration: none;
    letter-spacing: 0.3px;
}
.public-clip-section .clip-footer-link:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .public-clip-section {
        padding: 20px 0 32px;
    }
    .public-clip-section .clip-page-title {
        font-size: 22px;
        margin-bottom: 20px;
    }
    .public-clip-section .clip-card {
        padding: 20px 16px;
        border-radius: 8px;
    }
    .public-clip-section .clip-player {
        padding: 14px 12px;
    }
    /* .public-clip-section .clip-player-actions-row {
        padding: 6px 0 10px;
    } */
    .public-clip-section .share-buttons .btn-share {
        font-size: 11px;
        padding: 10px 6px;
    }
}

/* Report Modal */
.clip-report-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10001;
    align-items: center;
    justify-content: center;
}
.clip-report-modal.active {
    display: flex;
}
.clip-report-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 476px;
    width: 90%;
    text-align: center;
}
.clip-report-card .report-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
}
.clip-report-card h3 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 30px;
    color: #101011;
    font-family: "Roboto", sans-serif;
    border-bottom: 1px solid #DDDDDD;
    padding-bottom: 20px;
}
.clip-report-card .report-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}
.clip-report-card .report-options .report-option {
    padding: 14px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    text-align: left;
    transition: all 0.2s;
    background: #E5E8EE;
    border: 1px solid #E5E8EE;
    color: #0A0D12;
    font-family: "Roboto", sans-serif;
}
.clip-report-card .report-options .report-option:hover {
    border-color: #4CAF50;
}
.clip-report-card .report-options .report-option.selected {
    border-color: #005511;
    background: #95D6A2;
}
.clip-report-card .report-reasons {
    display: none;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}
.clip-report-card .report-reasons.active {
    display: flex;
}
.clip-report-card .report-reasons .reason-option {
    padding: 12px 16px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    transition: all 0.2s;
    background: #fff;
    color: #333;
}
.clip-report-card .report-reasons .reason-option:hover {
    border-color: #4CAF50;
}
.clip-report-card .report-reasons .reason-option.selected {
    border-color: #005511;
    background: #95D6A2;
}
.clip-report-card .btn-submit-report {
    background: #3579F7;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-bottom: 12px;
    transition: opacity 0.2s;
    height: auto;
    line-height: 1;
    margin: 0;
}
.clip-report-card .btn-submit-report:hover {
    opacity: 0.9;
}
.clip-report-card .btn-cancel-report {
    display: block;
    width: 100%;
    margin-top: 20px;
    background: transparent;
    border: 2px solid #3579F7;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #3579F7;
    cursor: pointer;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    height: auto;
}

/* Report Success */
.clip-report-success {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10002;
    align-items: center;
    justify-content: center;
}
.clip-report-success.active {
    display: flex;
}
.clip-report-success .success-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 32px;
    max-width: 360px;
    width: 90%;
    text-align: center;
}
.clip-report-success .success-card .success-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
}
.clip-report-success .success-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}
.clip-report-success .success-card .btn-close-success {
    display: block;
    width: 100%;
    margin-top: 20px;
    background: transparent;
    border: 2px solid #3579F7;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #3579F7;
    cursor: pointer;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    height: auto;
}

/* Report Alert */
.clip-report-alert {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10003;
    align-items: center;
    justify-content: center;
}
.clip-report-alert.active {
    display: flex;
}
.clip-report-alert .alert-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 32px;
    max-width: 360px;
    width: 90%;
    text-align: center;
}
.clip-report-alert .alert-card .alert-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
}
.clip-report-alert .alert-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
    line-height: 1.4;
}
.clip-report-alert .alert-card .btn-close-alert {
    display: block;
    width: 100%;
    margin-top: 20px;
    background: #3579F7;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    height: auto;
}
.clip-report-alert .alert-card .btn-close-alert:hover {
    opacity: 0.9;
}

/* Clip Discard Modal */
.clip-discard-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.clip-discard-modal.active {
    display: flex;
}
.clip-discard-card {
    background: #fff;
    border-radius: 12px;
    padding: 32px;
    max-width: 360px;
    width: 90%;
    text-align: center;
}
.clip-discard-card {
    position: relative;
}
.clip-discard-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}
.clip-discard-card .discard-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.clip-discard-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
}
.clip-discard-card p {
    color: #888;
    font-size: 14px;
    margin-bottom: 24px;
}
.clip-discard-card .btn-confirm-discard {
    border: none;
    border-radius: 8px;
    padding: 5px 20px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
    height: auto;
    background: #3579F7;
    color: #fff;
}
.clip-discard-card .btn-keep-editing {
    background: #3579F7;
    color: #fff;
}
.clip-discard-card .btn-keep-editing:hover {
    opacity: 0.9;
}
.clip-discard-card .btn-cancel-discard {
    background: transparent;
    border: 2px solid #3579F7;
    border-radius: 8px;
    color: #3579F7;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    height: auto;
}
.clip-discard-card .btn-disregard-clip {
    border: 2px solid #EB7F31;
    border-radius: 8px;
    color: #EB7F31;
    font-weight: 600;
    text-decoration: none;
}
.clip-discard-card .btn-disregard-clip:hover {
    background: rgba(235, 127, 49, 0.05);
}

/* Edit Clip Link Box */
.edit-clip-link-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    background: #F2F4F5;
    border-radius: 8px;
}
.edit-clip-link-box input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    font-size: 13px;
    outline: none;
    color: #333;
    padding: 8px 0 !important;
}
.edit-clip-link-box .btn-copy {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.edit-clip-link-box .btn-copy svg {
    width: 18px;
    height: 20px;
}

/* Settings Menu on Clip View */

/* Clip Settings Modal */
.clip-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}
.clip-settings-modal.active {
    display: flex;
}
.clip-settings-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #DDDDDD;
    max-width: 478px;
    padding: 20px;
    width: 90%;
    overflow: hidden;
    font-family: "Roboto", sans-serif;
}
.clip-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 20px;
    border-bottom: 1px solid #DDDDDD;
    margin-bottom: 20px;
}
.clip-settings-header h3 {
    font-size: 20px;
    font-weight: 500;
    color: #101011;
    margin: 0;
}
.clip-settings-close {
    background: none;
    border: none;
    font-size: 22px;
    color: #999;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 0;
}
.clip-settings-option {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 15px 20px;
    background: #F2F4F5;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 16px;
    color: #000000;
    transition: background 0.15s;
    height: auto;
    letter-spacing: 2%;
    margin-bottom: 15px;
    font-weight: 400;
    line-height: 1;
}
.clip-settings-option:last-child {
    border-bottom: none;
}
.clip-settings-option:hover {
    background: #f8f8fa;
}
.clip-settings-option span {
    flex: 1;
}
.clip-settings-option .chevron {
    flex-shrink: 0;
}
.clip-settings-close-btn {
    display: block;
    width: 100%;
    margin-top: 20px;
    background: #fff;
    border: 2px solid #3579F7;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #3579F7;
    cursor: pointer;
    text-align: center;
    font-family: "Montserrat", sans-serif;
    height: auto;
}
.clip-settings-close-btn:hover {
    background: #f5f5f5;
}

.dark-mode-body .clip-settings-card { background: #2E2E2E; border-color: #626262; }
.dark-mode-body .clip-settings-header { border-color: #626262; }
.dark-mode-body .clip-settings-header h3 { color: #fff; }
.dark-mode-body .clip-settings-close svg path, .dark-mode-body .clip-settings-option svg path{
    fill: #ffffff;
}
.dark-mode-body .clip-settings-option { color: #e0e0e0; border-color: #2d2d3d; background: #010101; }
.dark-mode-body .clip-settings-close-btn { background: transparent;}

.clip-settings-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border-radius: 10px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    z-index: 100;
    display: none;
}
.clip-settings-dropdown.active {
    display: block;
}
.clip-settings-dropdown .menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background 0.15s;
}
.clip-settings-dropdown .menu-item:hover {
    background: #f5f5f5;
}
.clip-settings-dropdown .menu-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Dark mode support */
.dark-mode-body .clip-prompt-card,
.dark-mode-body .clip-saved-card,
.dark-mode-body .clip-share-card,
.dark-mode-body .clip-report-card,
.dark-mode-body .clip-report-success .success-card,
.dark-mode-body .clip-report-alert .alert-card,
.dark-mode-body .clip-discard-card {
    background: #2e2e2e;
    color: #ffffff;
}
.dark-mode-body .my-clips-section{
    background: #2E2E2E;
}
.dark-mode-body .clip-prompt-card h3,
.dark-mode-body .clip-saved-card h3,
.dark-mode-body .clip-share-card h3,
.dark-mode-body .clip-report-card h3,
.dark-mode-body .clip-discard-card h3 {
    color: #fff;
    border-color: #626262;
}
.dark-mode-body .clip-editor-section .clip-editor-box {
    background: #2E2E2E;
    border: 1px solid #484848;
}
.dark-mode-body .clip-editor-section .clip-form input {
    background: #484848;
    border-color: #626262;
    color: #ffffff;
}
.dark-mode-body .clip-editor-header h1, .dark-mode-body .clip-editor-section .clip-form label, 
.dark-mode-body .clip-editor-section .clip-form label,
.dark-mode-body .clip-report-success .success-card h3,
.dark-mode-body .clip-report-alert .alert-card h3 {
    color: #ffffff;
}
.dark-mode-body .my-clips-section .clips-wrapper {
    background: #484848;
    border-color: #626262;
}
.dark-mode-body .my-clips-section .clips-tabs {
    border-color: #626262;
}
.dark-mode-body .my-clips-section .clips-tabs .tab-btn { color: #ffffff; background: #2E2E2E; border-color: #626262!important; }
.dark-mode-body .my-clips-section .clips-tabs .tab-btn.active { 
    color: #fff;
    background: #484848;
}
.dark-mode-body .my-clips-section .clip-card-item { 
    border-color: #626262;
    background: #484848;
}
.dark-mode-body .my-clips-section .clip-card-meta .meta-label{
    color: #ffffff;
}
.dark-mode-body .my-clips-section .clip-card-title strong { color: #ffffff; }
.dark-mode-body .my-clips-section .clip-card-meta .meta-value,
.dark-mode-body .my-clips-section .clip-card-title span, 
.dark-mode-body .my-clips-section .clip-card-title span, 
.dark-mode-body .my-clips-section .clips-toolbar .select-all-toggle 
{ 
    color: #BEBABA; 
}
.dark-mode-body .my-clips-section .clip-card-actions { background: #2E2E2E; border-top-color: #626262; }
.dark-mode-body .my-clips-section .clip-item {
    background: #484848;
    border-color: #626262;
}
.dark-mode-body  .my-clips-section .clips-empty h3{
    color: #ffffff;
}
.dark-mode-body .public-clip-section .clip-card {
    background: #484848;
    border: 1px solid #626262;
}
.dark-mode-body .clip-report-card .report-option,
.dark-mode-body .clip-report-card .reason-option {
    border-color: #484848;
    background: #010101;
    color: #ffffff;
}
.dark-mode-body .clip-share-heading {
    color: #fff;
}
.dark-mode-body .clip-share-divider {
    border-top-color: #626262;
}
.dark-mode-body .clip-share-card .clip-link-box,
.dark-mode-body .edit-clip-link-box {
    background: #484848;
    border-color: #626262;
}
.dark-mode-body .edit-clip-link-box input {
    color: #e0e0e0 !important;
}
.dark-mode-body .clip-share-card .clip-link-box input {
    color: #e0e0e0;
}
.dark-mode-body .public-clip-section {
    background: #2E2E2E;
}
.dark-mode-body .public-clip-section .clip-page-title { color: #fff; }
.dark-mode-body .public-clip-section .clip-card { background: #484848; border-color: #626262; }
.dark-mode-body .public-clip-section .clip-card-header { border-bottom-color: #626262; }
.dark-mode-body .public-clip-section .clip-card-author { color: #e0e0e0; }
.dark-mode-body .public-clip-section .clip-card-date { color: #BEBABA; }
.dark-mode-body .public-clip-section .clip-voice-details strong { color: #fff; }
.dark-mode-body .public-clip-section .clip-voice-details span { color: #BEBABA; }
.dark-mode-body .public-clip-section .clip-story-id { color: #BEBABA; }
.dark-mode-body .public-clip-section .clip-player-stat strong { background: #1a1a1a; color: #fff; }
.dark-mode-body .public-clip-section .clip-link-label { color: #e0e0e0; }
.dark-mode-body .public-clip-section .clip-link-box { background: #2E2E2E; }
.dark-mode-body .public-clip-section .clip-link-box input { color: #e0e0e0; }
.dark-mode-body .public-clip-section .clip-card-footer { border-top-color: #626262; }
.dark-mode-body .public-clip-section .clip-login-btn { color: #fff; border-color: #fff; }
/* Mobile responsive */
@media (max-width: 767px) {
    .my-clips-section .clips-tabs .tab-btn{
        font-size: 16px;
    }
    .my-clips-section .clips-toolbar {
        justify-content: space-between;
    }
    .clip-editor-section .clip-editor-box {
        padding: 20px 16px;
        border-radius: 0;
        box-shadow: none;
        border: none;
    }
    .clip-prompt-card {
        padding: 32px 24px;
        border-radius: 12px;
    }
    .public-clip-section .clip-card .clip-actions-row {
        flex-direction: row;
        gap: 8px;
    }
    .public-clip-section .clip-card .clip-actions-row .btn-action {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
        font-size: 12px;
    }
    .my-clips-section .clip-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .my-clips-section .clip-item .clip-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
    }
    .clip-share-card .share-buttons .btn-share {
        font-size: 10px;
        padding: 8px 6px;
    }
}
