@charset "utf-8";

/* realtv — 반응형 YouTube 임베드 (PC 최대 1200px) */
.realtv-embed-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 24px;
    padding: 0 20px;
    box-sizing: border-box;
}

.realtv-embed {
    position: relative;
    background: linear-gradient(165deg, #ffffff 0%, #fafbfc 55%, #f4f6f8 100%);
    border: 1px solid rgba(210, 49, 69, 0.14);
    border-radius: 18px;
    box-shadow:
        0 4px 6px rgba(31, 45, 61, 0.04),
        0 18px 40px rgba(31, 45, 61, 0.1);
    overflow: hidden;
}

.realtv-embed::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #d23145, #ff5a6e, #e74c3c, #d23145);
    background-size: 200% 100%;
}

/* 헤더 */
.realtv-embed__head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 18px 22px 14px;
    border-bottom: 1px solid rgba(210, 49, 69, 0.08);
}

.realtv-embed__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.35em;
    text-indent: 0.35em;
    color: #fff;
    background: linear-gradient(90deg, #d23145, #e74c3c);
    padding: 5px 12px 5px 10px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(210, 49, 69, 0.35);
    animation: realtvBadgePulse 2s ease-in-out infinite;
}

@keyframes realtvBadgePulse {
    0%, 100% { box-shadow: 0 6px 16px rgba(210, 49, 69, 0.35); }
    50% { box-shadow: 0 6px 22px rgba(210, 49, 69, 0.55); }
}

.realtv-embed__title {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1f2d3d;
    line-height: 1.35;
    letter-spacing: -0.02em;
}

/* 영상 프레임 */
.realtv-embed__frame {
    margin: 0 18px 18px;
    padding: 6px;
    background: linear-gradient(135deg, rgba(210, 49, 69, 0.12), rgba(58, 138, 253, 0.08));
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.realtv-embed__ratio {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    background: #0d1117;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

@supports not (aspect-ratio: 16 / 9) {
    .realtv-embed__ratio {
        height: 0;
        padding-bottom: 56.25%;
    }
}

.realtv-embed__ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* 하단 안내 */
.realtv-embed__foot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 12px 22px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    background: rgba(210, 49, 69, 0.04);
    border-top: 1px solid rgba(210, 49, 69, 0.06);
}

.realtv-embed__foot .fa {
    color: #d23145;
    font-size: 1.1rem;
}

/* 빈 상태 */
.realtv-embed-wrap--empty {
    max-width: 1200px;
}

.realtv-embed__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 48px 24px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    background: linear-gradient(165deg, #fff, #f8f9fb);
    border: 1px dashed rgba(210, 49, 69, 0.25);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(31, 45, 61, 0.06);
}

.realtv-embed__empty .fa {
    font-size: 1.4rem;
    color: #d23145;
    opacity: 0.7;
}

/* 태블릿 */
@media (max-width: 768px) {
    .realtv-embed-wrap {
        padding: 0 16px;
        margin-bottom: 18px;
    }

    .realtv-embed {
        border-radius: 14px;
    }

    .realtv-embed__head {
        padding: 14px 16px 12px;
    }

    .realtv-embed__title {
        font-size: 1rem;
    }

    .realtv-embed__frame {
        margin: 0 12px 14px;
        padding: 4px;
        border-radius: 12px;
    }

    .realtv-embed__ratio {
        border-radius: 8px;
    }

    .realtv-embed__foot {
        padding: 10px 16px 14px;
        font-size: 0.8125rem;
    }
}

/* 모바일 */
@media (max-width: 480px) {
    .realtv-embed-wrap {
        padding: 0 12px;
    }

    .realtv-embed__head {
        gap: 8px;
        padding: 12px 14px 10px;
    }

    .realtv-embed__badge {
        font-size: 10px;
        padding: 4px 10px;
    }

    .realtv-embed__frame {
        margin: 0 10px 12px;
    }

    .realtv-embed__empty {
        padding: 36px 16px;
        font-size: 0.9rem;
        flex-direction: column;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .realtv-embed__badge {
        animation: none;
    }
}
