---
type: "Source File"
title: "<section class=\"hero hero-compact\">"
description: "{% extends \"base.html\" %} {% block title %}{{ video.title or 'Video' }} — YouTube Cope Score{% endblock %} {% block meta_description %}{{ (video.cope_summary or 'A UK CopeCheck YouTube scanner verdict.')[:155] }}{%."
resource: "https://uk.copecheck.com"
tags: ["copecheck", "uk", "source-file", "html"]
timestamp: "2026-05-16T14:48:44Z"
site: "uk"
source_path: "copecheck-uk/templates_and_static_tmp/youtube_detail.html"
---

# <section class="hero hero-compact">

Source path: `copecheck-uk/templates_and_static_tmp/youtube_detail.html`  
Index snapshot generated: `2026-11-24T13:42:54Z`  
File modified: `2026-05-16T14:48:44Z`

```html
{% extends "base.html" %}
{% block title %}{{ video.title or 'Video' }} — YouTube Cope Score{% endblock %}
{% block meta_description %}{{ (video.cope_summary or 'A UK CopeCheck YouTube scanner verdict.')[:155] }}{% endblock %}
{% block og_title %}{{ video.title or 'YouTube Cope Score' }} — UK CopeCheck{% endblock %}
{% block og_description %}{{ (video.cope_summary or 'A UK CopeCheck YouTube scanner verdict.')[:180] }}{% endblock %}
{% block tw_title %}{{ video.title or 'YouTube Cope Score' }} — UK CopeCheck{% endblock %}
{% block tw_description %}{{ (video.cope_summary or 'A UK CopeCheck YouTube scanner verdict.')[:180] }}{% endblock %}
{% block og_image %}https://img.youtube.com/vi/{{ video.video_id }}/hqdefault.jpg{% endblock %}
{% block content %}
<section class="hero hero-compact">
    <div class="hero-inner">
        <h1 class="hero-title">YouTube Cope Score</h1>
        <p class="hero-subtitle"><a href="/youtube">&larr; Back to YouTube Scanner</a></p>
    </div>
</section>

<section class="analyser-section" style="max-width:900px;margin:0 auto;padding:0 20px 60px;">
    <!-- Embedded Player -->
    <div style="position:relative;padding-bottom:56.25%;height:0;overflow:hidden;border-radius:12px;margin-bottom:24px;border:2px solid var(--border, #333);">
        <iframe src="https://www.youtube.com/embed/{{ video.video_id }}" style="position:absolute;top:0;left:0;width:100%;height:100%;border:none;" allowfullscreen allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"></iframe>
    </div>

    <!-- Title & Channel -->
    <h2 style="font-family:'Playfair Display',serif;font-size:1.8rem;margin:0 0 6px;">{{ video.title or 'Unknown Video' }}</h2>
    <p style="font-size:1rem;opacity:0.7;margin:0 0 24px;">{{ video.channel or 'Unknown Channel' }}</p>

    <!-- Cope Score Badge -->
    {% set score = video.cope_score|float %}
    {% if score < 25 %}
        {% set badge_bg = '#0a3d0a' %}
        {% set badge_color = '#4caf50' %}
        {% set badge_label = 'LUCID' %}
    {% elif score < 45 %}
        {% set badge_bg = '#3d3a0a' %}
        {% set badge_color = '#ffc107' %}
        {% set badge_label = 'MODERATE COPE' %}
    {% elif score < 70 %}
        {% set badge_bg = '#3d1a0a' %}
        {% set badge_color = '#ff9800' %}
        {% set badge_label = 'HEAVY COPE' %}
    {% else %}
        {% set badge_bg = '#3d0a0a' %}
        {% set badge_color = '#f44336' %}
        {% set badge_label = 'TERMINAL COPIUM' %}
    {% endif %}
    {% set share_url = 'https://uk.copecheck.com/youtube/' ~ video.video_id %}
    {% set share_text = (video.title or 'This YouTube video') ~ (' by ' ~ video.channel if video.channel else '') ~ ' scores ' ~ ("%.0f"|format(score)) ~ '/100 on the UK CopeCheck YouTube scanner: ' ~ badge_label ~ '. ' ~ (video.cope_summary or '') %}

    <div style="display:flex;align-items:center;gap:16px;margin-bottom:32px;padding:20px;border-radius:12px;background:rgba(255,255,255,0.03);border:1px solid var(--border, #333);">
        <div style="font-size:3rem;font-weight:900;font-family:'Playfair Display',serif;padding:12px 24px;border-radius:10px;min-width:80px;text-align:center;background:{{ badge_bg }};color:{{ badge_color }};">
            {{ "%.0f"|format(score) }}
        </div>
        <div>
            <div style="font-size:1.3rem;font-weight:700;color:{{ badge_color }};">{{ badge_label }}</div>
            <div style="font-size:0.85rem;opacity:0.6;">out of 100</div>
        </div>
    </div>

    <div class="share-copy-card youtube-detail-share">
        <h3>Share this verdict</h3>
        <p>{{ share_text }}</p>
        <div class="share-bar">
            <a class="share-btn share-whatsapp" href="https://wa.me/?text={{ (share_text ~ '\n\n' ~ share_url) | urlencode }}" target="_blank" rel="noopener">WhatsApp</a>
            <button class="share-btn" type="button" onclick="sharePlainText(this, {{ share_text|tojson }}, {{ (video.title or 'YouTube Cope Score')|tojson }}, {{ share_url|tojson }})">Share</button>
            <button class="share-btn" type="button" onclick="copyPlainText(this, {{ (share_text ~ '\n\n' ~ share_url)|tojson }})">Copy verdict</button>
            <button class="share-btn" type="button" onclick="copyPlainText(this, {{ share_url|tojson }})">Copy link</button>
        </div>
    </div>

    <!-- Cope Summary -->
    {% if video.cope_summary %}
    <div style="margin-bottom:24px;padding:20px;border-radius:10px;background:rgba(255,255,255,0.03);border:1px solid var(--border, #333);">
        <h3 style="margin:0 0 10px;font-size:1.1rem;">&#x1F50D; Cope Summary</h3>
        <p style="line-height:1.7;margin:0;">{{ video.cope_summary }}</p>
    </div>
    {% endif %}

    <!-- Scapegoats & Mechanisms -->
    <div style="display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:24px;">
        <div style="padding:18px;border-radius:10px;background:rgba(255,255,255,0.03);border:1px solid var(--border, #333);">
            <h3 style="margin:0 0 10px;font-size:1rem;">&#x1F3AF; Scapegoats</h3>
            <div style="display:flex;flex-wrap:wrap;gap:8px;">
                {% if video.scapegoats %}
                    {% for s in video.scapegoats.split(',') %}
                        {% if s.strip() %}
                        <span style="display:inline-block;padding:4px 12px;border-radius:20px;font-size:0.85rem;background:rgba(231,76,60,0.15);border:1px solid rgba(231,76,60,0.3);color:#e74c3c;">{{ s.strip() }}</span>
                        {% endif %}
                    {% endfor %}
                {% else %}
                    <span style="opacity:0.5;font-size:0.9rem;">None identified</span>
                {% endif %}
            </div>
        </div>
        <div style="padding:18px;border-radius:10px;background:rgba(255,255,255,0.03);border:1px solid var(--border, #333);">
            <h3 style="margin:0 0 10px;font-size:1rem;">&#x1F6E0;&#xFE0F; Cope Mechanisms</h3>
            <div style="display:flex;flex-wrap:wrap;gap:8px;">
                {% if video.cope_mechanisms %}
                    {% for m in video.cope_mechanisms.split(',') %}
                        {% if m.strip() %}
                        <span style="display:inline-block;padding:4px 12px;border-radius:20px;font-size:0.85rem;background:rgba(52,152,219,0.15);border:1px solid rgba(52,152,219,0.3);color:#3498db;">{{ m.strip() }}</span>
                        {% endif %}
                    {% endfor %}
                {% else %}
                    <span style="opacity:0.5;font-size:0.9rem;">None identified</span>
                {% endif %}
            </div>
        </div>
    </div>

    <!-- Meta -->
    <div style="font-size:0.85rem;opacity:0.5;display:flex;gap:16px;flex-wrap:wrap;padding-top:16px;border-top:1px solid var(--border, #333);">
        {% if video.scored_at %}<span>Scored: {{ video.scored_at }}</span>{% endif %}
        {% if video.transcript_length %}<span>Transcript: {{ "{:,}".format(video.transcript_length) }} chars</span>{% endif %}
        <a href="{{ video.url }}" target="_blank" rel="noopener" style="color:var(--accent, #6c63ff);">Watch on YouTube &#x2197;</a>
    </div>
</section>
{% endblock %}
```
