.videok-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    gap: 1rem;
}

/* Első div: engedjük összemenni és ha kell, vágja le három ponttal (...) */
.videok-topbar > div:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Második div: tilos összenyomni és sorba törni */
.videok-topbar > div:last-child {
  flex-shrink: 0;
  white-space: nowrap;
}

.result-count {
    font-size: 14px;
    opacity: 0.9;
}

.layout {
    display: flex;
    width: 100%;
    align-items: flex-start;
}

/* Sidebar */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    padding: 20px;
    background: var(--c-lgt-2);
    border-right: 1px solid #e5e5ea;
    position: sticky;
    top: 0;
    max-height: 100vh;
    overflow-y: auto;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group select {
    margin: 0;
}

.filter-label-checkbox {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: .5rem;
    margin: 0;
    border: 0;
    cursor: pointer;
    background: var(--c-mid);
}

.arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.filter-label-checkbox.is-open .arrow {
    transform: rotate(180deg);
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 200px;
    padding: 1rem .5rem;
    overflow-y: auto;
    background: var(--c-lgt-3);
}

.checkbox-list input {
  margin: 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-item input {
    accent-color: #b5305a;
}

/* Content */
.content {
    flex: 1;
    padding: 24px;
    min-width: 0;
}

.status {
    padding: 40px;
    text-align: center;
    color: #6e6e73;
}

.status.error {
    color: #c0392b;
}

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

.card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #eee;
    overflow: hidden;
}

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

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    padding-left: 4px;
}

.card-body {
    padding: 12px;
}

.card-title {
    font-size: 15px;
    margin-bottom: 4px;
}

.card-meta {
    font-size: 13px;
    color: #b5305a;
}

.card-sub {
    font-size: 12px;
    color: #6e6e73;
}

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 28px;
}

.pagination button {
    min-width: 38px;
    padding: 8px 12px;
    border: 1px solid var(--c-mid);
    background: var(--c-lgt);
    border-radius: 8px;
    cursor: pointer;
    color: var(--c-blk);
}

.pagination button:hover:not(:disabled) {
    background: var(--c-alt);
    border-color: var(--c-alt);
    color: var(--c-wht);
}

.pagination button.active {
    background: var(--c-drk);
    color: #fff;
    border-color: var(--c-drk);
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination button:disabled:hover {
    background: var(--c-alt);
    border-color: var(--c-alt);
    color: var(--c-wht);
}


.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
}

.active-filters-title {
    font-size: 13px;
    font-weight: 600;
    color: #6e6e73;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px 6px 12px;
    margin: 0;
    background: var(--c-lgt-3);
    border: 1px solid var(--c-lgt-2);
    border-radius: 20px;
    font-size: 13px;
    color: var(--c-drk);
    cursor: pointer;
    transition: background 0.15s;
}

.chip:hover {
    background: var(--c-mid);
}

.chip-label {
    font-weight: 700;
}

.chip-value {
    color: #1c1c1e;
}

.chip-remove {
    font-size: 16px;
    line-height: 1;
    margin-left: 2px;
}

.chip-clear {
    background: #f5f5f7;
    border-color: #d1d1d6;
    color: #6e6e73;
}

.chip-clear:hover {
    background: #ececf0;
}


/* Responsive */
@media (max-width: 768px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        position: static;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid #e5e5ea;
    }
}

/*

*/
.main-video-page {
    display: grid;
    grid-template-columns: 2fr 4fr;
    gap: 1rem;
}

.main-video {
}

.main-video-container {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    
    .video-caption {
        padding-block: 1rem;
        font-weight: 400;
        font-style: italic;
    }
}

.main-video-container video {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    display: block;
    background-color: #fff;
}

.video-description {
    padding-block: 1rem;
    background-color: #fff;
    border-top: 1px solid #eee;
}

.main-video-aside {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-video-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--c-lgt-3);
    border: 1px solid var(--c-lgt-2);
    
    .details-elem {
        display: grid;
        grid-template-columns: 2fr 3fr;
        gap: 1rem;
        
        .details-label {
            padding-left: 2.25rem;
            font-weight: 700;
            background-repeat: no-repeat;
            background-position: left top;
            background-size: 1.5rem;
            
        }
        .i-rose {
            background-image: url('/img/rose.svg');
        }
        .i-play {
            background-image: url('/img/play.svg');
        }
        .i-label {
            background-image: url('/img/label.svg');
        }
        .i-collection {
            background-image: url('/img/collection.svg');
        }
        .i-leaf {
            background-image: url('/img/leaf.svg');
        }
        .i-calendar {
            background-image: url('/img/calendar.svg');
        }
        .i-leaf {
            background-image: url('/img/leaf.svg');
        }
        .i-clock {
            background-image: url('/img/clock.svg');
        }
    }
}

.main-video-aside {
    .rose-link {
        padding: 1rem;
        background-color: var(--c-lgt-2);
        border: 1px solid var(--c-lgt);
        
        .rose-link-button {
            display: inline-block;
            padding: 1rem 1.5rem;
            border-radius: .5rem;
            font-weight: 700;
            text-decoration: none;
            background-color: var(--c-alt);
            color: #fff;
            transition: background .3s ease;
            
            &:hover {
                background-color: var(--c-drk);
            }
        }
    }
}

.main-video-aside { 
    .related-videos {
        padding: 1rem;
        background-color: var(--c-lgt-3);
        border: 1px solid var(--c-lgt-2);
        
        .videos-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            
            .videos-elem {
                display: flex;
                gap: 1rem;
                color: #000;
                
                &:hover {
                    background-color: var(--c-lgt-2);
                }
                
                img {
                  max-width: 100px;
                }
            }
        }
    }
}