/* ==========================================================================
   videos.css – YouTube-Video-Portal (Querformat)
   Angeglichen an Community-Design
   ========================================================================== */

.page-videos #content.content-videos,
.page-video #content.content-videos {
    --vp-pink: #ff2a6d;
    --vp-border: #2a2a2a;
    --vp-muted: #888;
    --vp-text: #a0a0a0;
    max-width: none;
    padding: 0;
    background: transparent;
}

/* Header – dezent wie Community
   -------------------------------------------------------------------------- */
.vp-hero {
    padding: 2.5rem 2rem 0;
}

.vp-hero-inner,
.vp-section-inner {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
}

.vp-hero-inner {
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
}

.vp-brand {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vp-muted);
    line-height: 1;
    margin: 0 0 0.5rem;
}

.vp-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: 0;
    line-height: 1.15;
    margin: 0 0 0.75rem;
}

.vp-lead {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--vp-text);
    max-width: 40rem;
    margin: 0;
}

/* Featured
   -------------------------------------------------------------------------- */
.vp-featured {
    padding: 2.75rem 2rem 1.5rem;
}

.vp-featured-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(240px, 0.9fr);
    gap: 1.75rem;
    align-items: start;
}

.vp-featured-player .video-embed,
.vp-watch-player .video-embed {
    margin: 0;
    border-color: var(--vp-border);
    background: #000;
}

.vp-player-fallback {
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: #0a0a0a;
    border: 1px solid var(--vp-border);
    color: #999;
    text-align: center;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.vp-player-fallback img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.vp-player-fallback p,
.vp-player-fallback a {
    position: relative;
    z-index: 1;
}

.vp-player-fallback a {
    color: var(--vp-pink);
}

.vp-kicker {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--vp-pink);
    margin: 0 0 0.5rem;
}

.vp-featured-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
    line-height: 1.25;
}

.vp-featured-title a {
    color: #fff;
    text-decoration: none;
}

.vp-featured-title a:hover {
    color: var(--vp-pink);
}

.vp-featured-desc {
    color: #a0a0a0;
    line-height: 1.65;
    margin: 0 0 1rem;
}

.vp-featured-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    color: #777;
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* Mediathek
   -------------------------------------------------------------------------- */
.vp-library {
    padding: 1.5rem 2rem 5rem;
}

.vp-library-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.vp-section-title,
.vp-aside-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vp-section-title i,
.vp-aside-title i {
    color: var(--vp-pink);
    font-size: 0.95em;
}

.vp-aside-title {
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.vp-count {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: #777;
    margin: 0;
}

.vp-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.vp-card {
    opacity: 0;
    transform: translateY(14px);
    animation: vpFadeUp 0.5s ease both;
}

.vp-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--vp-border);
    background: #161616;
    overflow: hidden;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.vp-card-link:hover {
    border-color: rgba(255, 42, 109, 0.55);
    background: #1a1a1a;
    transform: translateY(-2px);
}

.vp-card-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0a0a0a;
}

.vp-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.vp-card-link:hover .vp-card-thumb img {
    transform: scale(1.04);
}

.vp-card-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #555;
    font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 42, 109, 0.08), #141414);
}

.vp-card-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.28);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.vp-card-play i {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--vp-pink);
    color: #fff;
    font-size: 0.9rem;
    padding-left: 2px;
}

.vp-card-link:hover .vp-card-play,
.vp-card.is-active .vp-card-play {
    opacity: 1;
}

.vp-card.is-active .vp-card-link {
    border-color: rgba(255, 42, 109, 0.7);
}

.vp-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.95rem 1rem 1.1rem;
}

.vp-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
}

.vp-card-desc {
    font-size: 0.88rem;
    line-height: 1.45;
    color: #8c8c8c;
}

.vp-card-meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: #666;
}

.vp-empty {
    color: #8a8a8a;
    line-height: 1.6;
    max-width: 40rem;
}

.vp-empty strong {
    color: #cfcfcf;
}

/* CTAs
   -------------------------------------------------------------------------- */
.vp-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.75rem 1.2rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    color: #fff;
    border: 1px solid transparent;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    min-height: 44px;
}

.vp-cta i:last-child {
    transition: transform 0.2s ease;
}

.vp-cta:hover {
    transform: translateY(-1px);
}

.vp-cta:hover i:last-child {
    transform: translateX(3px);
}

.vp-cta--primary {
    background: var(--vp-pink);
    border-color: var(--vp-pink);
}

.vp-cta--primary:hover {
    background: #e02460;
    border-color: #e02460;
}

/* Watch-Seite
   -------------------------------------------------------------------------- */
.vp-watch {
    padding: 2.5rem 2rem 5rem;
}

.vp-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: #666;
}

.vp-breadcrumb a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vp-breadcrumb a:hover {
    color: var(--vp-pink);
}

.vp-watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.75fr);
    gap: 1.75rem;
    align-items: start;
}

.vp-watch-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    color: #fff;
    margin: 1.25rem 0 0.5rem;
}

.vp-watch-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    color: #777;
    margin: 0 0 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.vp-watch-desc {
    color: #b0b0b0;
    line-height: 1.7;
    margin: 0 0 1.25rem;
    max-width: 42rem;
}

.vp-aside-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vp-aside-link {
    display: grid;
    grid-template-columns: 148px 1fr;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
    border: 1px solid var(--vp-border);
    background: #161616;
    overflow: hidden;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.vp-aside-link:hover {
    border-color: rgba(255, 42, 109, 0.55);
    background: #1a1a1a;
}

.vp-aside-thumb {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0a0a0a;
}

.vp-aside-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vp-aside-thumb-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #555;
}

.vp-aside-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.55rem 0.75rem 0.55rem 0;
    min-width: 0;
}

.vp-aside-item-title {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.35;
    margin-bottom: 0.3rem;
}

.vp-aside-link:hover .vp-aside-item-title {
    color: var(--vp-pink);
}

.vp-aside-item-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: #666;
}

@keyframes vpFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .vp-featured-layout,
    .vp-watch-layout {
        grid-template-columns: 1fr;
    }

    .vp-aside-link {
        grid-template-columns: 132px 1fr;
    }
}

@media (max-width: 640px) {
    .vp-hero,
    .vp-watch {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .vp-hero {
        padding-top: 2rem;
    }

    .vp-featured,
    .vp-library {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .vp-library {
        padding-bottom: 3.5rem;
    }

    .vp-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vp-card,
    .vp-card-link,
    .vp-cta,
    .vp-cta i:last-child {
        animation: none !important;
        transition: none !important;
    }

    .vp-card {
        opacity: 1;
        transform: none;
    }
}
