/* =========================================================
   Shrang My Clips
   File belongs to:
   Plugin: sharang-music-generator
   Path: assets/css/my-clips.css

   Purpose:
   Safe My-Clips-only mobile refinement.
   Do not use this file for Result Page, Recent Clips, Account,
   Clip Studio, or global layout.
   ========================================================= */

.sharang-my-clips {
    margin-top: -8px;
}

.sharang-my-clips-intro {
    max-width: 820px;
    margin-bottom: 14px;
    color: #3e3733;
    font-size: 15px;
    line-height: 1.6;
}

.sharang-my-clips-create-action {
    margin-bottom: 18px;
}

.sharang-my-clips-create-action .sharang-secondary-link,
.sharang-my-clips-create-action .sharang-download-link {
    min-height: 38px;
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 900;
}

/* Card surface */
.sharang-my-clip-card {
    border-color: rgba(240, 216, 206, 0.92);
    border-radius: 22px;
    background:
        radial-gradient(circle at 8% 0%, rgba(250, 84, 32, 0.10), transparent 36%),
        linear-gradient(180deg, #ffffff 0%, #fff8f2 100%);
    box-shadow:
        0 14px 30px rgba(17, 17, 17, 0.055),
        0 0 0 1px rgba(255, 255, 255, 0.52) inset;
}

.sharang-my-clip-card.sharang-recent-bed-music-card {
    border-color: rgba(20, 184, 166, 0.26);
    background:
        radial-gradient(circle at 8% 0%, rgba(20, 184, 166, 0.14), transparent 38%),
        linear-gradient(180deg, #ffffff 0%, #f3fff8 100%);
}

/* Poster / visual area */
.sharang-my-clip-visual {
    min-height: 190px;
    margin-bottom: 9px;
    border-radius: 19px;
}

.sharang-my-clip-visual .sharang-recent-visual-text {
    padding-bottom: 15px;
}

.sharang-my-clip-visual .sharang-recent-visual-text strong {
    font-size: 17.5px;
    line-height: 1.38;
    text-wrap: balance;
}

.sharang-my-clip-visual-uploaded.sharang-recent-visual-placeholder {
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.34), transparent 25%),
        radial-gradient(circle at 86% 18%, rgba(124, 58, 237, 0.18), transparent 28%),
        radial-gradient(circle at 58% 58%, rgba(255, 255, 255, 0.08), transparent 34%),
        linear-gradient(145deg, #93c5fd 0%, #2563eb 46%, #475569 78%, #111827 100%);
}

/* Metadata row */
.sharang-my-clip-card-meta-row {
    margin-bottom: 6px;
}

.sharang-my-clip-card-meta-row .sharang-recent-date {
    color: #6f6862;
    font-size: 10.5px;
    font-weight: 900;
}

.sharang-visibility-status {
    min-height: 24px;
    padding: 5px 9px;
    font-size: 11.5px;
    font-weight: 800;
}

/* Reel status */
.sharang-reel-status {
    min-height: 23px;
    margin-bottom: 8px;
    padding: 5px 9px;
    font-size: 10.5px;
    font-weight: 900;
}

.sharang-reel-status-ready {
    background: #f5f3ff;
    color: #5b21b6;
    border-color: rgba(124, 58, 237, 0.28);
}

.sharang-reel-status-empty {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.24);
}

/* Primary actions */
.sharang-primary-clip-actions {
    gap: 7px;
    margin-bottom: 10px;
}

.sharang-primary-clip-actions .sharang-secondary-link,
.sharang-primary-clip-actions .sharang-download-link {
    min-height: 36px;
    padding: 8px 11px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 900;
}

.sharang-my-clips-studio-action {
    background: #111111 !important;
    border-color: #111111 !important;
    color: #ffffff !important;
}

.sharang-my-clips-studio-action:hover {
    background: #000000 !important;
    border-color: #000000 !important;
    color: #ffffff !important;
}

.sharang-my-clips-reel-action {
    background: #7c3aed !important;
    border-color: #7c3aed !important;
    color: #ffffff !important;
}

.sharang-my-clips-reel-action:hover {
    background: #5b21b6 !important;
    border-color: #5b21b6 !important;
    color: #ffffff !important;
}

.sharang-my-clips-download-action {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}

.sharang-my-clips-download-action:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
}

.sharang-my-clips-open-reel-action {
    background: #fff2ed !important;
    border-color: rgba(250, 84, 32, 0.30) !important;
    color: #9a3412 !important;
}

.sharang-my-clips-open-reel-action:hover {
    background: #fa5420 !important;
    border-color: #fa5420 !important;
    color: #ffffff !important;
}

.sharang-my-clips-download-reel-action {
    background: #7c3aed !important;
    border-color: #7c3aed !important;
    color: #ffffff !important;
}

/* Options area should stay useful but not dominate the card */
.sharang-my-clip-options {
    border-color: rgba(17, 17, 17, 0.10);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.74);
}

.sharang-my-clip-options summary {
    min-height: 38px;
    padding: 10px 12px;
    background:
        linear-gradient(180deg, #ffffff 0%, #fff8f2 100%);
    font-size: 12.5px;
    font-weight: 900;
}

.sharang-my-clip-options-inner {
    padding: 12px;
}

.sharang-my-clip-options-inner form {
    padding: 10px;
    border-radius: 11px;
}

.sharang-my-clip-options-inner button,
.sharang-my-clip-options-inner input[type="submit"],
.sharang-my-clip-options-inner .sharang-secondary-link {
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 9px;
    font-size: 11.5px;
    font-weight: 900;
}

/* Audio should not add too much vertical heaviness */
.sharang-my-clip-card audio {
    margin-top: 7px;
    margin-bottom: 8px;
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 640px) {
    .sharang-my-clips {
        margin-top: -10px;
    }

    .sharang-my-clips-intro {
        font-size: 14px;
        line-height: 1.55;
    }

    .sharang-my-clip-card {
        padding: 12px;
        border-radius: 18px;
    }

    .sharang-my-clip-visual {
        min-height: 176px;
        border-radius: 17px;
    }

    .sharang-my-clip-visual .sharang-recent-visual-overlay {
        padding: 13px;
    }

    .sharang-my-clip-visual .sharang-recent-visual-text {
        padding-bottom: 12px;
    }

    .sharang-my-clip-visual .sharang-recent-visual-text strong {
        font-size: 16.5px;
        line-height: 1.38;
    }

    .sharang-my-clip-card-meta-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .sharang-primary-clip-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .sharang-primary-clip-actions .sharang-secondary-link,
    .sharang-primary-clip-actions .sharang-download-link,
    .sharang-primary-clip-actions button {
        width: 100%;
        min-height: 34px;
        padding: 8px 10px;
        justify-content: center;
        text-align: center;
    }

    .sharang-my-clip-options summary {
        min-height: 36px;
        padding: 9px 11px;
        font-size: 12px;
    }
}

@media (max-width: 420px) {
    .sharang-my-clip-visual {
        min-height: 168px;
    }
}