/* 9 Ravens – YouTube Channel Embed (No padding-bottom version) */

.ravens-yt-wrapper {
    background: #050507;
    background: radial-gradient(circle at top, #19191d 0, #050507 60%);
    border-radius: 20px;
    padding: 20px;
    margin: 24px 0;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
    color: #f2f2f2;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    position: relative;
    overflow: hidden;
}

.ravens-yt-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at top right, rgba(255, 215, 0, 0.12), transparent 60%);
    opacity: 0.7;
}

/* HEADER */

.ravens-yt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.ravens-yt-title-group {
    max-width: 70%;
}

.ravens-yt-title {
    font-size: 1.7rem;
    margin: 0 0 4px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fafafa;
}

.ravens-yt-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #e3e3e3;
    opacity: 0.9;
}

.ravens-yt-channel-cta {
    flex-shrink: 0;
}

.ravens-yt-channel-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 215, 0, 0.65);
    background: linear-gradient(135deg, #111118, #191924);
    color: #fff7dd;
    font-size: 0.85rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    transition: all 0.2s ease-out;
}

.ravens-yt-channel-btn:hover {
    border-color: #ffdf75;
    box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.35), 0 12px 30px rgba(0, 0, 0, 0.9);
    transform: translateY(-1px);
}

/* PLAYER AREA (no padding-bottom technique!) */

.ravens-yt-player-shell {
    position: relative;
    border-radius: 16px;
    padding: 10px;
    background: radial-gradient(circle at top left, rgba(255, 215, 0, 0.12), rgba(15, 15, 22, 0.9));
    margin-bottom: 14px;
    z-index: 1;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.ravens-yt-player-inner {
    border-radius: 12px;
    background: #010101;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
}

.ravens-yt-aspect {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: auto; /* ensures no gaps */
}

.ravens-yt-aspect iframe {
    width: 100%;
    aspect-ratio: 16 / 9; /* modern browsers keep it perfect without padding-bottom */
    display: block;
}

/* NOW PLAYING */

.ravens-yt-now-playing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 9px 12px 10px;
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    background: linear-gradient(90deg, rgba(12, 12, 16, 0.98), rgba(12, 12, 16, 0.92));
}

.ravens-yt-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #ffe29a;
    opacity: 0.9;
}

.ravens-yt-now-title {
    font-size: 0.95rem;
    color: #f5f5f5;
    font-weight: 500;
}

/* GRID */

.ravens-yt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    position: relative;
    z-index: 1;
}

.ravens-yt-item {
    cursor: pointer;
    border-radius: 14px;
    background: radial-gradient(circle at top, #111119, #050507 65%);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    transition: 0.2s ease-out;
    border: 1px solid rgba(255, 215, 0, 0.12);
}

.ravens-yt-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 215, 0, 0.3);
}

.ravens-yt-item-active {
    border-color: rgba(255, 215, 0, 0.85);
}

.ravens-yt-thumb-wrap img {
    width: 100%;
    filter: saturate(1.05) contrast(1.03);
    transition: 0.3s ease-out;
}

.ravens-yt-item:hover img {
    transform: scale(1.04);
    filter: saturate(1.2) contrast(1.08);
}

.ravens-yt-play-icon {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    font-size: 2.4rem;
    color: #fafafa;
    opacity: 0;
    transition: 0.25s ease-out;
}

.ravens-yt-item:hover .ravens-yt-play-icon {
    opacity: 0.85;
}

.ravens-yt-meta {
    padding: 8px 10px 10px;
}

.ravens-yt-video-title {
    font-size: 0.9rem;
    color: #f4f4f4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ravens-yt-video-date {
    font-size: 0.78rem;
    color: #d0d0d0;
}

/* ADMIN NOTICE */

.ravens-yt-notice {
    padding: 12px 16px;
    border-radius: 8px;
    border-left: 4px solid #ffcc66;
    background: #1a1406;
    color: #fff6e2;
    margin: 16px 0;
}

/* RESPONSIVE */

@media (max-width: 782px) {
    .ravens-yt-wrapper {
        padding: 16px;
    }

    .ravens-yt-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ravens-yt-title-group {
        max-width: 100%;
    }

    .ravens-yt-title {
        font-size: 1.4rem;
    }

    .ravens-yt-channel-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Force off-white typography inside the YouTube block */
.ravens-yt-wrapper,
.ravens-yt-wrapper h1,
.ravens-yt-wrapper h2,
.ravens-yt-wrapper h3,
.ravens-yt-wrapper h4,
.ravens-yt-wrapper p,
.ravens-yt-wrapper span,
.ravens-yt-wrapper .ravens-yt-video-title,
.ravens-yt-wrapper .ravens-yt-video-date,
.ravens-yt-wrapper .ravens-yt-now-title,
.ravens-yt-wrapper .ravens-yt-label,
.ravens-yt-wrapper a {
    color: #f5f5f5 !important;
}

.ravens-yt-wrapper .ravens-yt-subtitle,
.ravens-yt-wrapper .ravens-yt-subtitle * {
    color: #f5f5f5 !important;
}
