/* DMC Plugin — form & list styles (dark theme) */

#dmc-album-upload-form,
#dmc-register-form,
#dmc-profile-form,
#dmc-login-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

#dmc-album-upload-form input[type="file"].dmc-track-file {
    margin-bottom: 0.25rem;
}
#dmc-album-upload-form input[type="file"],
#dmc-register-form input,
#dmc-profile-form input,
#dmc-album-upload-form input[type="text"],
#dmc-album-upload-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    color: #eee;
}

.dmc-help {
    font-size: 0.85rem;
    color: #9ca3af;
    display: block;
    margin-top: 0.25rem;
}

/* Upload success / 72-hour confirmation */
.dmc-upload-success {
    background: #0f1a14;
    border: 1px solid #1f7a4d;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.5rem;
    color: #d6f5e3;
}
.dmc-upload-success h3 {
    margin: 0 0 0.5rem;
    color: #3EC0DF;
}
.dmc-upload-success p {
    margin: 0 0 0.75rem;
}

/* Artist card (per-artist barcode on profile) */
.dmc-artist-card {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    background: #0f0f13;
    border: 1px solid #1c1c22;
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.75rem;
}
.dmc-artist-card__qr img {
    display: block;
    background: #fff;
    padding: 6px;
    border-radius: 8px;
    width: 140px;
    height: 140px;
}
.dmc-artist-card__meta strong {
    display: block;
    color: #fff;
    margin-bottom: 0.35rem;
}
.dmc-artist-card__meta p {
    color: #9ca3af;
    font-size: 0.9rem;
    margin: 0 0 0.75rem;
}
@media (max-width: 480px) {
    .dmc-artist-card { flex-direction: column; text-align: center; }
}

.dmc-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.dmc-btn-primary {
    background: #3EC0DF;
    color: #000;
    font-weight: 600;
}

.dmc-btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.dmc-btn-danger {
    background: #c53030;
    color: #fff;
}

.dmc-login-gate__actions {
    margin: 1rem 0 0;
}

.dmc-login-gate__actions .dmc-btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.dmc-manage-albums__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.dmc-manage-albums__intro {
    margin: 0;
    color: #9ca3af;
}

/* Manage Albums table */
.dmc-albums-table {
    width: 100%;
    border-collapse: collapse;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
}

.dmc-albums-table th,
.dmc-albums-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #333;
}

.dmc-albums-table th {
    background: #1a1a1a;
    color: #9ca3af;
    font-weight: 500;
}

.dmc-albums-table td a {
    color: #3EC0DF;
}

.dmc-album-cover img {
    max-width: 60px;
    height: auto;
    border-radius: 4px;
}

.dmc-no-cover {
    color: #666;
}

.dmc-album-row.dmc-deleting {
    opacity: 0.5;
}

.dmc-album-edit-row[hidden] {
    display: none !important;
}

.dmc-album-edit-row td {
    background: #161616;
    border-bottom: 1px solid #333;
}

.dmc-edit-album-form {
    max-width: 520px;
    padding: 0.25rem 0 0.5rem;
}

.dmc-edit-album-form__heading {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    color: #eee;
}

.dmc-edit-album-form__title-locked .dmc-edit-album-form__label {
    display: inline-block;
    margin-bottom: 0.25rem;
}

.dmc-edit-album-form__title-text {
    display: block;
    margin: 0.15rem 0 0.35rem;
    font-size: 1.05rem;
}

.dmc-edit-album-form input[type="text"],
.dmc-edit-album-form textarea,
.dmc-edit-album-form input[type="file"] {
    width: 100%;
    max-width: 100%;
    padding: 0.65rem 0.85rem;
    margin-bottom: 0.35rem;
    background: #222;
    border: 1px solid #444;
    border-radius: 4px;
    color: #eee;
    box-sizing: border-box;
}

.dmc-edit-album-form__current {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.dmc-edit-album-form__current img {
    border-radius: 6px;
    display: block;
}

.dmc-edit-album-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.25rem;
    margin-top: 0.75rem;
}

.dmc-text-link {
    display: inline;
    padding: 0.35rem 0;
    margin: 0;
    border: 0;
    background: none;
    box-shadow: none;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: #3EC0DF;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    border-radius: 0;
}

.dmc-text-link:hover {
    color: #6ed4e6;
}

.dmc-text-link--danger {
    color: #9ca3af;
}

.dmc-text-link--danger:hover {
    color: #e55353;
}

.dmc-album-actions {
    min-width: 9rem;
}

.dmc-album-actions__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.35rem;
    margin-bottom: 0.55rem;
}

.dmc-album-actions__sep {
    color: #6b7280;
    user-select: none;
}

.dmc-album-actions__order {
    display: inline-block;
}

@media (max-width: 640px) {
    .dmc-album-actions__links {
        margin-bottom: 0.65rem;
    }

    .dmc-album-actions__order {
        width: 100%;
        text-align: center;
    }
}

.dmc-tracklist-readonly {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.dmc-tracklist-readonly__list {
    margin: 0.75rem 0 0;
    padding-left: 1.25rem;
}

.dmc-tracklist-readonly__list li {
    margin: 0.25rem 0;
}

/* Homepage intro video — centered, capped so YT stream isn't upscaled soft */
.dmc-home-video {
    width: 100%;
    max-width: 56rem; /* ~896px — stays near 720p native */
    margin: 0 auto 1rem;
    padding: 0 1rem;
    box-sizing: border-box;
    background: transparent;
}

.dmc-home-video__frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    border-radius: 6px;
}

.dmc-home-video__iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Album grid (public list) — fixed tile size, centered (1 or many) */
.dmc-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 200px);
    justify-content: center;
    gap: 1.5rem;
}

.dmc-album-card {
    display: block;
    background: transparent;
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dmc-album-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}

.dmc-album-card__cover {
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
}

/* Padding hack guarantees a 1:1 box even where aspect-ratio is unsupported (older mobile Safari). */
.dmc-album-card__cover::before {
    content: "";
    display: block;
    padding-top: 100%;
}

.dmc-album-card__cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dmc-album-card__placeholder {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 3rem;
    color: #444;
}

.dmc-album-card__info {
    padding: 0.75rem 0.85rem 0.9rem;
}

.dmc-album-card__info strong {
    display: block;
    font-weight: 700;
    line-height: 1.25;
    color: inherit; /* themes set ink/paper; never force white on light footers */
}

.dmc-album-card__info span {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #9ca3af;
    margin-top: 0.2rem;
    line-height: 1.3;
}

/* Profile next-step CTA */
.dmc-next-step {
    background: #0f1a22;
    border: 1px solid #1a3a48;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
}
.dmc-next-step strong {
    display: block;
    color: #3EC0DF;
    margin-bottom: 0.35rem;
}
.dmc-next-step p {
    color: #9ca3af;
    margin: 0 0 0.9rem;
    font-size: 0.95rem;
}

/* Artist public page */
.dmc-artist-page {
    max-width: 1100px;
    margin: 2rem auto 4rem;
    padding: 0 1rem;
}
.dmc-artist-page__header {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 2rem 0;
    margin-bottom: 2.5rem;
}
.dmc-artist-page__blurb {
    color: #9ca3af;
    margin: 0.5rem 0 0;
}
.dmc-artist-page__qr {
    text-align: center;
}
.dmc-artist-page__qr img {
    display: block;
    background: #fff;
    padding: 8px;
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

/* Branded auth + ops admin */
.dmc-auth-card {
    max-width: 420px;
    margin: 2rem auto 4rem;
    padding: 2rem;
    background: #0f0f13;
    border: 1px solid #1c1c22;
    border-radius: 16px;
}
.dmc-auth-card__title {
    margin: 0 0 0.35rem;
    color: #fff;
    font-size: 1.6rem;
}
.dmc-auth-card__subtitle {
    color: #9ca3af;
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
}
.dmc-auth-error {
    background: #2a1215;
    border: 1px solid #7f1d1d;
    color: #fecaca;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.dmc-auth-row {
    color: #9ca3af;
    font-size: 0.9rem;
}
.dmc-auth-card .dmc-btn-primary {
    width: 100%;
}
.dmc-admin-panel {
    max-width: 1100px;
    margin: 1.5rem auto 4rem;
    padding: 0 1rem;
}
.dmc-admin-panel__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}
.dmc-admin-panel__title {
    margin: 0.25rem 0 0.4rem;
    font-size: 1.8rem;
    color: #fff;
}
.dmc-admin-panel__subtitle {
    margin: 0;
    color: #9ca3af;
}
.dmc-admin-table-wrap {
    overflow-x: auto;
    border: 1px solid #1c1c22;
    border-radius: 14px;
}

.dmc-order-cards__qr {
    margin: 0 0 1.25rem;
}
.dmc-order-cards__qr img {
    border-radius: 8px;
    background: #fff;
    padding: 6px;
}
.dmc-order-form .dmc-req {
    color: #f87171;
}
.dmc-order-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.dmc-order-form select,
.dmc-order-form input[type="text"],
.dmc-order-form input[type="tel"] {
    width: 100%;
    max-width: 100%;
    background: #0c0c10;
    border: 1px solid #2a2a33;
    color: #e5e7eb;
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
}
.dmc-refund-policy {
    margin: 1.25rem 0 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.03);
}

.dmc-refund-policy__text {
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.dmc-refund-policy__ack {
    margin: 0.75rem 0 0;
}

.dmc-refund-policy__ack label {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.95rem;
    cursor: pointer;
}

.dmc-refund-policy__ack input {
    margin-top: 0.2rem;
    flex: 0 0 auto;
}

.dmc-legal-accept {
    margin: 0.75rem 0 1rem;
}

.dmc-legal-accept label {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.9rem;
    line-height: 1.45;
    cursor: pointer;
}

.dmc-legal-accept input {
    margin-top: 0.25rem;
    flex: 0 0 auto;
}

.dmc-legal-checkout-links {
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.dmc-legal {
    max-width: 42rem;
}

.dmc-legal__meta {
    opacity: 0.75;
    font-size: 0.9rem;
}

.dmc-legal__related {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.dmc-pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.75rem;
}

.dmc-pricing-table th,
.dmc-pricing-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    text-align: left;
}

.dmc-pricing-table td:nth-child(2),
.dmc-pricing-table th:nth-child(2) {
    text-align: right;
}

.dmc-pricing__cta {
    margin: 0 0 1.75rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.03);
}

.dmc-order-form .dmc-btn-primary {
    width: auto;
    margin-right: 0.5rem;
}
@media (max-width: 560px) {
    .dmc-order-form__row {
        grid-template-columns: 1fr;
    }
}

/* Optional social fields (register / profile) */
.dmc-social-optional,
.dmc-social-fields {
    margin: 1rem 0 1.25rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.02);
}

.dmc-social-optional summary {
    cursor: pointer;
    font-weight: 600;
}

.dmc-social-fields legend {
    font-weight: 600;
    padding: 0 0.25rem;
}

.dmc-social-optional p,
.dmc-social-fields p {
    margin: 0.65rem 0 0;
}

.dmc-upload-success__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

/* Share toast + desktop sheet */
.dmc-share-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    transform: translate(-50%, 12px);
    z-index: 10000;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 0.9rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dmc-share-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.dmc-share-sheet[hidden] {
    display: none !important;
}

.dmc-share-sheet {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.dmc-share-sheet__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.dmc-share-sheet__panel {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(420px, 100%);
    padding: 1.25rem 1.25rem 1.5rem;
    border-radius: 16px 16px 0 0;
    background: #fff;
    color: #111;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
}

@media (min-width: 640px) {
    .dmc-share-sheet__panel {
        top: 50%;
        bottom: auto;
        transform: translate(-50%, -50%);
        border-radius: 12px;
    }
}

.dmc-share-sheet__title {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}

.dmc-share-sheet__hint {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.65);
}

.dmc-share-sheet__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem 1rem;
    margin: 0.25rem 0 1rem;
}

.dmc-share-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    width: 4.25rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-decoration: none;
    font: inherit;
    font-size: 0.7rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.dmc-share-icon:hover,
.dmc-share-icon:focus-visible {
    text-decoration: none;
    color: inherit;
}

.dmc-share-icon:focus-visible .dmc-share-icon__glyph {
    outline: 2px solid #111;
    outline-offset: 3px;
}

.dmc-share-icon__glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    color: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dmc-share-icon:hover .dmc-share-icon__glyph {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.16);
}

.dmc-share-icon__svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
}

.dmc-share-icon__label {
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.2;
    text-align: center;
}

.dmc-share-icon--copy .dmc-share-icon__glyph,
.dmc-share-icon--email .dmc-share-icon__glyph {
    background: #2a2a2a;
}

.dmc-share-icon--facebook .dmc-share-icon__glyph {
    background: #1877f2;
}

.dmc-share-icon--x .dmc-share-icon__glyph {
    background: #111;
}

.dmc-share-icon--whatsapp .dmc-share-icon__glyph {
    background: #25d366;
}

.dmc-share-sheet__close {
    display: inline-block;
    margin-top: 0.25rem;
}

body.dmc-share-open {
    overflow: hidden;
}

