/* MV Instagram Feed — v1.2 */

.mv-ig-wrapper {
    display: block;
    overflow: hidden;
}

.mv-ig-feed {
    background: #111;
    padding: 28px 24px 32px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    direction: rtl;
    border-radius: 16px;
}

.mv-ig-feed.mv-ig-full-width {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    border-radius: 0;
}

.mv-ig-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.mv-ig-header {
    padding-bottom: 20px;
    margin-bottom: 16px;
    border-bottom: 1px solid #2a2a2a;
}

.mv-ig-header-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 14px;
    direction: rtl;
}

.mv-ig-avatar-ring {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #333;
    padding: 3px;
    box-sizing: border-box;
}

.mv-ig-avatar-ring.mv-ig-ring-gradient {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.mv-ig-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #111;
    display: block;
    box-sizing: border-box;
}

.mv-ig-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #222;
    color: #fff;
    font-size: 26px;
    font-weight: 600;
    border-radius: 50%;
    width: 100%;
    height: 100%;
}

.mv-ig-info {
    flex: 1;
    min-width: 0;
}

.mv-ig-username-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    direction: rtl;
}

.mv-ig-username {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    border: none;
    background: none;
    order: 1;
}

.mv-ig-live {
    background: #e8005a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    white-space: nowrap;
    order: 2;
}

.mv-ig-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 24px;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
    line-height: 1;
    order: 3;
}

.mv-ig-follow-btn:hover {
    opacity: 0.85;
    color: #fff;
    text-decoration: none;
}

.mv-ig-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    direction: rtl;
}

.mv-ig-stats span {
    color: #aaa;
    font-size: 13px;
    white-space: nowrap;
}

.mv-ig-stats strong {
    color: #fff;
    font-weight: 700;
    margin-left: 4px;
}

.mv-ig-bio {
    color: #ccc;
    font-size: 13px;
    line-height: 1.7;
    direction: rtl;
    text-align: right;
    margin-top: 4px;
}

.mv-ig-bio-link {
    color: #ff6eb4;
    text-decoration: none;
    font-weight: 500;
}

.mv-ig-bio-link:hover {
    text-decoration: underline;
    color: #ff6eb4;
}

/* Grid */
.mv-ig-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.mv-ig-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #1a1a1a;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.mv-ig-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.mv-ig-img-placeholder {
    background: #222;
}

.mv-ig-feed.mv-ig-zoom .mv-ig-item:hover .mv-ig-img {
    transform: scale(1.06);
}

.mv-ig-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.3s ease;
    pointer-events: none;
}

.mv-ig-item:hover .mv-ig-overlay {
    background: rgba(0,0,0,0.3);
}

.mv-ig-icon {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.mv-ig-icon-video svg { margin-right: -1px; }

.mv-ig-label {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    background: rgba(232,0,90,0.88);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    text-align: center;
}

.mv-ig-item:hover .mv-ig-label { opacity: 1; }

/* Embed */
.mv-ig-item-embed {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #111;
    cursor: pointer;
}

.mv-ig-embed-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 360px;
    height: 440px;
    border: none;
    pointer-events: none;
}

.mv-ig-embed-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
}

/* Responsive */
@media (max-width: 767px) {
    .mv-ig-feed { padding: 20px 14px 24px; border-radius: 10px; }
    .mv-ig-header-top { flex-direction: column; align-items: center; text-align: center; }
    .mv-ig-username-row { justify-content: center; }
    .mv-ig-stats { justify-content: center; }
    .mv-ig-bio { text-align: center; }
    .mv-ig-avatar-ring { width: 72px; height: 72px; }
    .mv-ig-grid { gap: 2px; }
}

@media (max-width: 480px) {
    .mv-ig-feed { padding: 14px 8px 18px; }
}
