/* Website design by Geek With Social Skills - https://www.geekwithsocialskills.com */
/* Dedicated stylesheet for video.php */

:root {
    --bg: #05070a;
    --panel: #101820;
    --panel2: #16212b;
    --blue: #00aaff;
    --green: #39ff88;
    --white: #f5f7fa;
    --grey: #9aa8b5;
    --border: #294150;
}

/* Global reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at -10% 0%, rgba(0,170,255,.14), transparent 32%),
        radial-gradient(circle at 115% -5%, rgba(57,255,136,.05), transparent 24%),
        var(--bg);
    color: var(--white);
    line-height: 1.6;
}

a {
    color: inherit;
    transition: color 0.2s ease;
}

a:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
}

/* Layout */
.site-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 18px;
}

/* Hero */
.hero {
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(16,24,32,.96), rgba(22,33,43,.92));
    border-radius: 18px;
    padding: 34px 26px;
    margin-bottom: 28px;
    box-shadow: 0 0 28px rgba(0,170,255,.12);
}

.kicker {
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .85rem;
    font-weight: bold;
}

h1 {
    margin: 8px 0 12px;
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.05;
    color: var(--white);
}

.hero h1 {
    font-size: clamp(1.8rem, 4.5vw, 3.4rem);
    max-width: 28ch;
    text-wrap: balance;
}

.video-title,
.hero h1.video-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.2;
    margin: 8px 0 12px;
    max-width: 52ch;
    text-wrap: balance;
    word-break: normal;
    overflow-wrap: anywhere;
}

.date {
    color: var(--grey);
    font-size: .9rem;
}

/* Navigation buttons */
.button-row {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-block;
    padding: 11px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid var(--border);
    color: var(--white);
    background: transparent;
}

.btn.active {
    background-color: #0077cc;
    color: #fff;
}

.btn:hover {
    color: var(--green);
    border-color: var(--blue);
    box-shadow: 0 0 18px rgba(0,170,255,.18);
}

/* Video player */
.featured-video {
    margin-bottom: 28px;
}

.featured-card {
    background: linear-gradient(180deg, var(--panel), var(--panel2));
    border: 1px solid var(--border);
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 0 28px rgba(57,255,136,.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.featured-card:hover {
    transform: none;
    box-shadow:
        0 6px 18px rgba(0,0,0,.35),
        0 0 18px rgba(0,170,255,.18);
}

.video-page-player {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.video-page-player .featured-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-width: 900px;
    margin: 0 auto;
}

.featured-embed {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    background: #000;
    aspect-ratio: auto;
}

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

/* Play button */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 50px;
    background: #ff0000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 0 15px rgba(0,0,0,.7),
        0 0 25px rgba(255,0,0,.4);
    pointer-events: none;
}

.play-button::before {
    content: '';
    display: block;
    margin-left: 3px;
    width: 0;
    height: 0;
    border-left: 14px solid #fff;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
}

.featured-embed .video-facade:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--blue);
    box-shadow:
        0 0 20px rgba(0,170,255,.6),
        0 0 40px rgba(0,170,255,.4);
}

/* Video content */
.video-page-player ~ .about-channel {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-channel {
    margin-top: 36px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255,255,255,.04);
}

.about-channel h2 {
    margin: 0 0 12px;
    color: var(--white);
}

.about-channel p {
    color: var(--grey);
    margin: 0 0 12px;
}

.about-channel p:last-child {
    margin-bottom: 0;
}

.content-page {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.content-page ul,
.content-page ol {
    padding-left: 18px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.content-page ul {
    list-style: disc;
}

.content-page ul li,
.content-page ol li {
    color: var(--grey);
    margin-bottom: 0;
}

.content-page ul li::marker {
    color: #00ff9c;
}

.content-page ul + p,
.content-page ol + p {
    margin-top: 4px;
}

.content-page a {
    color: #00c2ff;
    text-decoration: none;
    font-weight: 500;
}

.content-page a:hover {
    color: #00ff9c;
    text-decoration: underline;
}

.content-page blockquote {
    margin: 1.5rem 0;
    padding: 16px 20px;
    border-left: 4px solid var(--blue);
    border-radius: 0 10px 10px 0;
    background: rgba(0,170,255,.06);
    color: var(--grey);
    font-size: 1rem;
    line-height: 1.6;
}

.content-page blockquote p {
    margin: 0 0 10px;
}

.content-page blockquote p:last-child {
    margin-bottom: 0;
}

.content-page blockquote cite {
    display: block;
    margin-top: 10px;
    color: var(--green);
    font-size: 0.9rem;
    font-style: normal;
}

/* Optional AdSense block */
.gwss-ad-block {
    text-align: center;
    margin: 22px auto;
    max-width: 900px;
}

.gwss-ad-block ~ .related-videos {
    margin-top: 22px;
}

/* Related videos */
.related-videos ul {
    list-style: disc;
    list-style-position: outside;
    padding-left: 18px;
    margin-top: 10px;
}

.related-videos li {
    margin: 0 0 8px;
    line-height: 1.45;
}

.related-videos li:last-child {
    margin-bottom: 0;
}

.related-videos li::marker {
    color: #00ff9c;
}

.related-videos a {
    color: #00c2ff;
    text-decoration: none;
    font-weight: 500;
}

.related-videos a:hover {
    color: #00ff9c;
    text-decoration: underline;
}

/* Optional video note/action classes used by video content */
.video-side-note {
    color: var(--grey);
    margin: 0 0 4px;
    font-size: 1rem;
    line-height: 1.5;
}

.video-action-links {
    list-style: disc;
    padding-left: 16px;
    margin: 0;
}

.video-action-links li {
    margin: 0;
}

.video-action-links li::marker {
    color: var(--green);
}

.video-action-links a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 700;
}

.video-action-links a:hover {
    color: var(--green);
    text-decoration: underline;
}

/* Footer */
footer {
    margin-top: 8px;
    padding-top: 8px;
    color: var(--grey);
    font-size: .95rem;
    text-align: center;
}

footer p:first-of-type {
    font-size: 0.95rem;
    font-weight: 500;
}

.content-note {
    font-size: 0.85rem;
    opacity: 0.75;
    line-height: 1.4;
}

footer p:last-of-type {
    font-size: 0.9rem;
}

footer a {
    color: var(--blue);
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    color: var(--green);
    text-decoration: underline;
}

footer p {
    margin: 2px 0;
    line-height: 1.4;
}

footer .footer-pi {
    opacity: 0.4;
    margin-left: 0.35em;
    text-decoration: none;
    cursor: default;
    transition: opacity 0.2s ease, color 0.2s ease, text-shadow 0.2s ease;
}

footer .footer-pi:hover {
    opacity: 1;
    color: var(--green);
    text-shadow: 0 0 6px rgba(57,255,136,0.6);
    text-decoration: none;
}

/* Mobile */
@media (max-width: 620px) {
    .site-wrap {
        padding: 22px 14px;
    }

    .hero {
        padding: 22px 18px;
        margin-bottom: 22px;
        box-shadow: none;
    }

    .button-row {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .featured-card {
        box-shadow: none;
    }

    .featured-video {
        margin-bottom: 22px;
    }

    .about-channel {
        padding: 18px;
    }

    body {
        background:
            radial-gradient(circle at top left, rgba(0,170,255,.10), transparent 28%),
            var(--bg);
    }

    .play-button {
        width: 58px;
        height: 42px;
        border-radius: 10px;
    }
}

/* Reduce animation for users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    a,
    .btn,
    .featured-card,
    footer .footer-pi {
        transition: none;
    }

    .featured-card:hover {
        transform: none;
    }
}
