/* ===================================================
   DER OFFICIAL YOUTUBE HIGHLIGHT & MINIMAL PIP MONITOR
   =================================================== */

/* --- LEADERBOARD: MINIMAL FLOATING PIP MINI VIDEO MONITOR (Bottom-Right) --- */
.der-yt-pip-wrapper {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    max-width: calc(100vw - 32px);
    background: #0d1014;
    border: 1.5px solid rgba(212, 168, 67, 0.65);
    border-radius: 12px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.85), 0 0 25px rgba(212, 168, 67, 0.2);
    z-index: 1000;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    animation: slideUpIn 0.5s ease forwards;
}

.der-yt-pip-wrapper:hover {
    border-color: rgba(212, 168, 67, 0.9);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 35px rgba(212, 168, 67, 0.35);
}

.der-yt-pip-wrapper.hidden {
    transform: translateY(120%) scale(0.8);
    opacity: 0;
    pointer-events: none;
}

@keyframes slideUpIn {
    0% { transform: translateY(100px) scale(0.9); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.der-yt-pip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    background: rgba(10, 12, 15, 0.95);
    border-bottom: 1px solid rgba(212, 168, 67, 0.25);
}

.der-yt-pip-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: #f0d078;
    text-transform: uppercase;
}

.der-yt-pip-dot {
    width: 7px;
    height: 7px;
    background: #ff4655;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff4655;
    animation: pulseRed 1.8s infinite;
}

@keyframes pulseRed {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
}

.der-yt-pip-close {
    background: transparent;
    border: none;
    color: #8b978f;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.der-yt-pip-close:hover {
    color: #ff4655;
    background: rgba(255, 70, 85, 0.15);
}

.der-yt-pip-video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
    cursor: pointer;
}

.der-yt-pip-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    pointer-events: none;
}

.der-yt-pip-overlay-link {
    position: absolute;
    inset: 0;
    z-index: 5;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.0);
    transition: background 0.2s ease;
}

.der-yt-pip-overlay-hint {
    background: rgba(10, 12, 15, 0.85);
    border: 1px solid rgba(212, 168, 67, 0.6);
    color: #f0d078;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.der-yt-pip-video-container:hover .der-yt-pip-overlay-link {
    background: rgba(0, 0, 0, 0.25);
}

.der-yt-pip-video-container:hover .der-yt-pip-overlay-hint {
    opacity: 1;
    transform: translateY(0);
}

/* --- RESPONSIVE DESIGN FOR PIP --- */
@media (max-width: 1280px) {
    .der-yt-pip-wrapper {
        width: 320px;
    }
}

@media (max-width: 640px) {
    .der-yt-pip-wrapper {
        bottom: 12px;
        right: 12px;
        width: 230px;
    }

    .der-yt-pip-badge {
        font-size: 10px;
    }
}


/* --- TOP / HOME THEATER (FRAMELESS CINEMATIC 2-COLUMN) --- */
.der-yt-home-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 36px;
    align-items: center;
    box-shadow: none;
    position: relative;
    margin-top: 2rem;
}

.der-yt-home-card::before {
    display: none;
}

.der-yt-home-video-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(212, 168, 67, 0.15);
    border: 1.5px solid rgba(212, 168, 67, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.der-yt-home-video-box:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 168, 67, 0.85);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.9), 0 0 35px rgba(212, 168, 67, 0.3);
}

.der-yt-home-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    pointer-events: none;
}

.der-yt-home-overlay-link {
    position: absolute;
    inset: 0;
    z-index: 5;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.0);
    transition: background 0.25s ease;
}

.der-yt-home-overlay-hint {
    background: rgba(10, 12, 15, 0.9);
    border: 1.5px solid rgba(212, 168, 67, 0.7);
    color: #f0d078;
    font-size: 13px;
    font-weight: 800;
    padding: 8px 18px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

.der-yt-home-video-box:hover .der-yt-home-overlay-link {
    background: rgba(0, 0, 0, 0.3);
}

.der-yt-home-video-box:hover .der-yt-home-overlay-hint {
    opacity: 1;
    transform: translateY(0);
}

.der-yt-home-info {
    position: relative;
    z-index: 1;
}

.der-yt-home-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(212, 168, 67, 0.15);
    border: 1px solid rgba(212, 168, 67, 0.4);
    border-radius: 20px;
    color: #f0d078;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.der-yt-home-title {
    font-size: 19px;
    font-weight: 800;
    color: #fff;
    line-height: 1.45;
    margin: 0 0 10px 0;
}

.der-yt-home-desc {
    font-size: 14px;
    color: #9a9aaa;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.der-yt-home-cta-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 860px) {
    .der-yt-home-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 18px;
    }

    .der-yt-home-title {
        font-size: 17px;
    }

    .der-yt-home-desc {
        font-size: 13px;
        margin-bottom: 15px;
    }
}
