/* Frontend YouTube Videos – v1.2 */

.fyv-wrapper {
    max-width: 900px;
    margin: 20px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Videos list */
.fyv-videos-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 20px;
}

.fyv-video-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.fyv-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}

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

.fyv-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding: 10px 14px;
    background: #fafafa;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

.fyv-video-title {
    width: 100%;
    font-weight: 600;
    color: #111;
    font-size: 0.95rem;
    line-height: 1.35;
    margin-bottom: 2px;
}

.fyv-published-by {
    color: #555;
}

.fyv-published-by strong {
    color: #c4302b;
}

.fyv-delete-btn {
    margin-left: auto;
    background: transparent;
    border: 1px solid #ddd;
    color: #999;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: all 0.15s;
}

.fyv-delete-btn:hover {
    background: #fee2e2;
    border-color: #f87171;
    color: #dc2626;
}

/* ========== Simple Add Box (matches your image) ========== */
.fyv-add-box {
    margin-top: 8px;
}

.fyv-simple-form {
    margin: 0;
}

.fyv-input-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fyv-input-wrap:focus-within {
    border-color: #9ca3af;
    box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.2);
}

.fyv-input-wrap input[type="text"] {
    flex: 1;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 12px 18px;
    font-size: 0.95rem;
    color: #374151;
    background: transparent;
    min-width: 0;
}

.fyv-input-wrap input[type="text"]::placeholder {
    color: #9ca3af;
}

.fyv-play-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 3px;
    border: none;
    border-radius: 50%;
    background: #111;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.1s;
}

.fyv-play-btn:hover {
    background: #c4302b;
}

.fyv-play-btn:active {
    transform: scale(0.95);
}

.fyv-play-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fyv-play-btn svg {
    margin-left: 2px;
}

/* Message */
.fyv-message {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.fyv-message.success {
    background: #d1fae5;
    color: #065f46;
}

.fyv-message.error {
    background: #fee2e2;
    color: #991b1b;
}

/* ========== Widget / Sidebar ========== */
.fyv-widget .fyv-wrapper {
    max-width: 100%;
    margin: 0;
}

.fyv-widget .fyv-videos-list {
    gap: 16px;
}

.fyv-widget .fyv-input-wrap input[type="text"] {
    padding: 10px 14px;
    font-size: 0.88rem;
}

.fyv-widget .fyv-play-btn {
    width: 40px;
    height: 40px;
}

/* Responsive */
@media (max-width: 480px) {
    .fyv-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    .fyv-delete-btn {
        margin-left: 0;
        margin-top: 6px;
    }
}
