/* NR Social Embed — Player Styles */
/* Dark theme with orange #FF6600 accent — Optimized for iframe embedding */

:root {
    --bg-primary: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --bg-card: #1e1e1e;
    --border: #2a2a2a;
    --text-primary: #f0f0f0;
    --text-secondary: #aaa;
    --text-muted: #666;
    --accent: #FF6600;
    --accent-hover: #e55b00;
    --accent-glow: rgba(255, 102, 0, 0.2);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Player Container */
.player {
    max-width: 1000px;
    margin: 0 auto;
    padding: 16px;
}

/* Sections */
.section {
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-icon {
    color: var(--accent);
}

.client-name {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Live Badge */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #cc0000;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Video Container (16:9 aspect ratio) */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Videos Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
}

.video-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.play-btn {
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    padding-left: 3px;
}

.video-info {
    padding: 10px 12px;
}

.video-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-date {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

/* Facebook Section */
.facebook-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    justify-content: center;
}

/* Footer */
.player-footer {
    margin-top: 24px;
    text-align: center;
}

.footer-line {
    height: 1px;
    background: var(--border);
    margin-bottom: 12px;
}

.powered-by {
    font-size: 11px;
    color: var(--text-muted);
}

.powered-by a {
    color: var(--accent);
    text-decoration: none;
}

.powered-by a:hover {
    text-decoration: underline;
}

/* Error State */
.player-error {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.error-content {
    text-align: center;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.error-content h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.error-content p {
    color: var(--text-secondary);
    font-size: 14px;
}

.error-content .powered-by {
    margin-top: 24px;
}

/* Responsive */
@media (max-width: 600px) {
    .player {
        padding: 12px;
    }

    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .video-info {
        padding: 8px 10px;
    }

    .video-title {
        font-size: 12px;
    }

    .section-header h2 {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .videos-grid {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}
