---
type: "Source File"
title: "<section class=\"hero hero-compact\">"
description: "{% extends \"base.html\" %} {% set has_score = video.status == 'scored' and video.cope_score is not none %} {% if video.status == 'failed' %} {% set status_title = 'Scoring failed' %} {% set status_message = 'This video."
resource: "https://uk.copecheck.com"
tags: ["copecheck", "uk", "source-file", "html"]
timestamp: "2026-11-02T20:52:15Z"
site: "uk"
source_path: "copecheck-uk/templates/youtube_detail.html"
---

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

Source path: `copecheck-uk/templates/youtube_detail.html`  
Index snapshot generated: `2026-11-24T13:42:54Z`  
File modified: `2026-11-02T20:52:15Z`

```html
{% extends "base.html" %}
{% set has_score = video.status == 'scored' and video.cope_score is not none %}
{% if video.status == 'failed' %}
    {% set status_title = 'Scoring failed' %}
    {% set status_message = 'This video could not be scored. Return to the YouTube Scanner and select Retry scoring.' %}
{% elif video.status == 'processing' %}
    {% set status_title = 'Scoring in progress' %}
    {% set status_message = 'This video is being analysed. Check the YouTube Scanner for progress.' %}
{% elif video.status == 'queued' %}
    {% set status_title = 'Queued for scoring' %}
    {% set status_message = 'This video is waiting to be analysed. Check the YouTube Scanner for progress.' %}
{% else %}
    {% set status_title = 'Score unavailable' %}
    {% set status_message = 'No completed score is available for this video. Check the YouTube Scanner for its status.' %}
{% endif %}
{% block title %}{{ video.title or 'Video' }} — YouTube Cope Score{% endblock %}
{% block meta_description %}{{ ((video.cope_summary or 'A UK CopeCheck YouTube scanner verdict.') if has_score else status_message)[: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.') if has_score else status_message)[: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.') if has_score else status_message)[: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' if has_score else 'YouTube video ' ~ video.video_id) }}</h2>
    <p style="font-size:1rem;opacity:0.7;margin:0 0 24px;">{{ video.channel or 'Unknown Channel' }}</p>

    {% if has_score %}
    <!-- Cope Score Badge -->
    {% set score = video.cope_score|float %}
    {% if score <= 20 %}
        {% set badge_bg = '#0a3d0a' %}
        {% set badge_color = '#4caf50' %}
        {% set badge_label = 'LUCID' %}
    {% elif score <= 40 %}
        {% set badge_bg = '#3d3a0a' %}
        {% set badge_color = '#8bc34a' %}
        {% set badge_label = 'PARTIAL' %}
    {% elif score <= 60 %}
        {% set badge_bg = '#3d3a0a' %}
        {% set badge_color = '#ffc107' %}
        {% set badge_label = 'MODERATE' %}
    {% elif score <= 80 %}
        {% 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_summary = (video.cope_summary or '') | replace('\n', ' ') | trim %}
    {% 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 ~ '. ' ~ share_summary %}

    <article class="youtube-verdict-card youtube-detail-share">
        <div class="youtube-verdict-score" style="background:{{ badge_bg }};color:{{ badge_color }};">
            <span>{{ "%.0f"|format(score) }}</span>
            <small>/100</small>
        </div>
        <div class="youtube-verdict-body">
            <div class="youtube-verdict-kicker">Oracle verdict</div>
            <h3 style="color:{{ badge_color }};">{{ badge_label }}</h3>
            {% if video.cope_summary %}
            <p>{{ video.cope_summary }}</p>
            {% endif %}
            <div class="share-bar youtube-verdict-actions">
                <a class="share-btn share-whatsapp" href="https://wa.me/?text={{ (share_text ~ '\n\n' ~ share_url) | urlencode }}" target="_blank" rel="noopener">WhatsApp {{ "%.0f"|format(score) }}/100</a>
                <button class="share-btn" type="button" onclick='sharePlainText(this, {{ share_text|tojson }}, {{ (video.title or "YouTube Cope Score")|tojson }}, {{ share_url|tojson }})'>Share {{ "%.0f"|format(score) }}/100</button>
                <button class="share-btn" type="button" onclick='copyPlainText(this, {{ (share_text ~ "\n\n" ~ share_url)|tojson }})'>Copy {{ "%.0f"|format(score) }}/100</button>
                <button class="share-btn" type="button" onclick='copyPlainText(this, {{ share_url|tojson }})'>Copy link</button>
            </div>
        </div>
    </article>

    <!-- Three-Layer Verdict -->
    <div style="margin-bottom:28px;">

        <!-- What the video argues -->
        {%- if video.video_summary %}
        <div style="padding:22px;border-radius:10px;background:rgba(255,255,255,0.03);border:1px solid var(--border, #333);margin-bottom:14px;">
            <h3 style="margin:0 0 12px;font-size:0.9rem;letter-spacing:0.08em;text-transform:uppercase;opacity:0.55;">What the video argues</h3>
            <p style="line-height:1.7;font-size:1rem;">{{ video.video_summary }}</p>
        </div>
        {%- endif %}

        <!-- DT Verdict -->
        {%- if video.dt_verdict %}
        <div style="padding:22px;border-radius:10px;background:rgba(108,99,255,0.06);border:1px solid rgba(108,99,255,0.25);margin-bottom:14px;">
            <h3 style="margin:0 0 12px;font-size:0.9rem;letter-spacing:0.08em;text-transform:uppercase;color:rgba(108,99,255,0.85);">Through the lens of the Discontinuity Thesis</h3>
            <p style="line-height:1.7;font-size:1rem;">{{ video.dt_verdict }}</p>
        </div>
        {%- else %}
        <div style="padding:18px 22px;border-radius:10px;background:rgba(108,99,255,0.04);border:1px solid rgba(108,99,255,0.15);margin-bottom:14px;">
            <h3 style="margin:0 0 6px;font-size:0.9rem;letter-spacing:0.08em;text-transform:uppercase;color:rgba(108,99,255,0.6);">Through the lens of the Discontinuity Thesis</h3>
            <p style="opacity:0.45;font-size:0.9rem;margin:0;">Extended analysis not yet available for this video.</p>
        </div>
        {%- endif %}

        <!-- Butchers verdict -->
        {%- if video.butchers_verdict %}
        <div style="padding:22px;border-radius:10px;background:rgba(231,76,60,0.06);border:1px solid rgba(231,76,60,0.25);margin-bottom:14px;">
            <h3 style="margin:0 0 12px;font-size:0.9rem;letter-spacing:0.08em;text-transform:uppercase;color:rgba(231,76,60,0.85);">Butcher&#39;s verdict</h3>
            <p style="line-height:1.7;font-size:1rem;">{{ video.butchers_verdict }}</p>
        </div>
        {%- else %}
        <div style="padding:18px 22px;border-radius:10px;background:rgba(231,76,60,0.04);border:1px solid rgba(231,76,60,0.12);margin-bottom:14px;">
            <h3 style="margin:0 0 6px;font-size:0.9rem;letter-spacing:0.08em;text-transform:uppercase;color:rgba(231,76,60,0.55);">Butcher&#39;s verdict</h3>
            <p style="opacity:0.45;font-size:0.9rem;margin:0;">Extended analysis not yet available for this video.</p>
        </div>
        {%- endif %}

    </div>

    <!-- 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>

    {% else %}
    <article class="youtube-verdict-card" role="status">
        <div class="youtube-verdict-body">
            <h3>{{ status_title }}</h3>
            <p>{{ status_message }}</p>
            <p><a href="/youtube">Back to YouTube Scanner</a></p>
        </div>
    </article>
    {% endif %}

    <!-- 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 has_score and 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 %}
```
