﻿@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 20px;
    align-items: start;
}

@media (max-width: 1100px) {
    .layout {
        grid-template-columns: 1fr;
    }

    .player {
        order: -1;
    }
}

.toolbar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0 14px;
}

.search {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    width: 100%;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #fafafa;
    cursor: pointer;
}

    .chip.active {
        background: #1f6feb;
        color: white;
        border-color: #1f6feb;
    }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.card {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    cursor: pointer;
    transition: transform .05s ease, box-shadow .1s ease;
}

    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,0,0,.07);
    }

/*.thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #f6f6f6;
}

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

.badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    background: rgba(0,0,0,.7);
    color: #fff;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 6px;
}

.meta {
    padding: 8px 10px;
}

.title {
    font-weight: 600;
    margin-bottom: 2px;
}

.cats {
    color: #666;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player {
    position: sticky;
    top: 16px;
}

    .player video {
        width: 100%;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0,0,0,.08);
        background: #000;
    }

.nowPlaying {
    margin-top: 6px;
    color: #333;
    font-size: 14px;
}

.actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.btn {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #f7f7f7;
    cursor: pointer;
}

    .btn.outline {
        background: #fff;
    }

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    width: min(90vw,480px);
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

    .modal h4 {
        margin: 0 0 8px;
    }

    .modal img {
        width: 100%;
        height: auto;
        display: block;
    }

    .modal .hint {
        margin-top: 8px;
        color: #555;
        font-size: 13px;
    }

/* sanfter Fade für den Hintergrund */
.modal-backdrop {
    opacity: 0;
    transition: opacity .18s ease-out;
}

    .modal-backdrop.show {
        opacity: 1;
    }

/* Pop/Fade-In fürs Dialogfenster */
@keyframes modalPopIn {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(.98);
    }

    60% {
        opacity: 1;
        transform: translateY(0) scale(1.005);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal.fade-in {
    animation: modalPopIn .18s ease-out;
    will-change: transform, opacity;
}



input { text-align:center}

.app-logo-img {
    max-height: 36px;
}

.app-logo-text {
    font-size: clamp(2rem, 8vw, 8rem);
    font-weight: 700;
    line-height: 2.1;
}

.app-logo-img-large {
    max-height: clamp(2rem, 8vw, 10rem);
}

.text-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thumb-wrap{
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;          /* <-- garantiert 16:9 */
    overflow: hidden;

    border-top-left-radius: var(--bs-card-inner-border-radius);
    border-top-right-radius: var(--bs-card-inner-border-radius);
}

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

.video-placeholder{
    width: 100%;
    height: 100%;
    background: var(--bs-light);
    color: var(--bs-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-overlay{
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.play-overlay i{
    font-size: 3.2rem;
    line-height: 1;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 999px;
    display: grid;
    place-items: center;

    background: rgba(0,0,0,.35);
    color: rgba(255,255,255,.85);
    box-shadow: 0 6px 18px rgba(0,0,0,.18);

    opacity: .25;                 /* <-- nur leicht sichtbar */
    transform: translateY(-2px);
}

.video-card:active .play-overlay i{
    opacity: .85;
    background: rgba(0,0,0,.55);
    color: #fff;
}


/* Container MUSS 100% nehmen, auch wenn irgendwo Flex/width reinfunkt */
.ks-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    /* wichtig: NICHT wachsen */
    flex: none !important;
    border-top-left-radius: var(--bs-card-inner-border-radius);
    border-top-right-radius: var(--bs-card-inner-border-radius);
}

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

.ks-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bs-light);
    color: var(--bs-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Overlay dezent */
.ks-play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

    .ks-play-overlay i {
        font-size: 3.2rem;
        line-height: 1;
        width: 3.6rem;
        height: 3.6rem;
        border-radius: 999px;
        display: grid;
        place-items: center;
        background: rgba(0,0,0,.35);
        color: rgba(255,255,255,.85);
        box-shadow: 0 6px 18px rgba(0,0,0,.18);
        opacity: .25; /* leicht sichtbar */
        transform: translateY(-2px);
    }

.video-card:active .ks-play-overlay i {
    opacity: .85;
    background: rgba(0,0,0,.55);
    color: #fff;
}

.video-title {
    line-height: 1.5; /* reicht für g, y, p */
}



