/* "My Videos" hub — account-scoped list of a couple's celebration renders.
   Watercolor wedding aesthetic, app-surface register: soft translucent surfaces,
   gentle borders, rounded corners, no drop shadows. Reuses landing.css tokens. */

.page-my-videos main {
    min-height: 60vh;
}

.mv-section {
    padding: 3rem 0 5rem;
}

/* Header: title + create-new action */
.mv-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.mv-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-text-main);
    margin-bottom: 0.5rem;
}

.mv-subhead {
    color: var(--color-text-light);
    font-size: 1rem;
}

.mv-create {
    white-space: nowrap;
}

/* Loading / error band */
.mv-state {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--color-text-light);
}

/* Video-credit banner: soft accent surface announcing redeemable credits. */
.mv-credits {
    margin-bottom: 1.75rem;
    padding: 0.9rem 1.25rem;
    background: rgba(240, 98, 146, 0.08);
    border: 1px solid rgba(240, 98, 146, 0.22);
    border-radius: 16px;
    color: var(--color-text-main);
    font-size: 0.95rem;
}

.mv-credits strong {
    color: var(--color-primary);
}

/* Card grid */
.mv-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

.mv-card {
    background: var(--color-surface);
    border: 1px solid rgba(240, 98, 146, 0.18);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(4px);
}

.mv-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.55);
}

.mv-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #000;
}

.mv-media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.mv-media-failed {
    color: var(--color-primary-hover);
}

/* Checkout-snapshot poster: a coherent "video ready to buy" surface for records
   that never render a watermarked preview, rather than an endless placeholder. */
.mv-media-snapshot {
    color: var(--color-primary);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.4));
    font-weight: 600;
    letter-spacing: 0.04em;
}

.mv-card-body {
    padding: 1.25rem 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.mv-card-title {
    font-size: 1.2rem;
    color: var(--color-text-main);
}

.mv-card-meta {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.mv-card-action {
    margin-top: auto;
    padding-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.mv-card-action .btn {
    width: 100%;
    text-align: center;
}

.mv-act-link {
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-decoration: underline;
    text-align: center;
}

.mv-act-link:hover {
    color: var(--color-primary);
}

.mv-msg {
    color: var(--color-text-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mv-msg-error {
    color: var(--color-primary-hover);
    font-size: 0.95rem;
}

/* Soft inline spinner for in-progress states */
.mv-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(240, 98, 146, 0.3);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    display: inline-block;
    animation: mv-spin 0.8s linear infinite;
}

@keyframes mv-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .mv-head {
        align-items: stretch;
    }
    .mv-create {
        width: 100%;
        text-align: center;
    }
    .mv-grid {
        grid-template-columns: 1fr;
    }
}
