﻿.vods-channel,
.vods-category {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
}

.documents-thumbnail-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.documents-image-link {
    display: block;
}

.watch-later-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    z-index: 2;
}

.watch-later-btn .watch-later-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    stroke: none;
}

.watch-later-btn:hover {
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.watch-later-btn.is-saved {
    background: var(--primary-blue);
    color: #ffffff;
}

.watch-later-btn.is-saved .watch-later-icon {
    fill: currentColor;
    stroke: currentColor;
}

@media (max-width: 576px) {
    .watch-later-btn {
        width: 28px;
        height: 28px;
        top: 6px;
        right: 6px;
    }

    .watch-later-btn .watch-later-icon {
        width: 14px;
        height: 14px;
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .main-content-wrapper {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .documents-wrapper {
        width: 100%;
        box-sizing: border-box;
    }

    .documents-content {
        width: 100%;
        box-sizing: border-box;
    }

    .documents-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 16px;
    }

    .documents-header {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        box-sizing: border-box;
    }

    .content-header {
        width: 100%;
        box-sizing: border-box;
    }

    .header-filter {
        width: 100%;
        margin: 0;
        padding: 0 16px 16px;
        justify-content: space-between;
        box-sizing: border-box;
    }

    .header-select {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .documents-form-filter-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .documents-filter-input-wrapper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .header-title {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .documents-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .documents-content {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .route {
        padding: 16px 0 8px;
        font-size: 14px;
        flex-wrap: wrap;
    }

    .main-content-wrapper {
        margin-top: 0;
        margin-bottom: 16px;
        padding: 0
    }

    .documents-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 12px;
    }

    .documents-card {
        margin-bottom: 0;
    }

    .documents-image {
        height: 200px;
    }

    .documents-info {
        padding: 12px;
    }

    .documents-title {
        font-size: 15px;
        line-height: 22px;
        min-height: 44px;
    }

    .documents-description {
        font-size: 13px;
        line-height: 18px;
        min-height: 36px;
    }

    .documents-rating {
        margin-top: 8px;
    }

    .documents-rating-text {
        font-size: 11px;
    }

    .interact {
        font-size: 12px;
    }

    .interact-like img,
    .interact-views img {
        width: 16px;
    }

    .documents-header {
        padding: 0;
        box-sizing: border-box;
    }

    .content-header {
        width: 100%;
        box-sizing: border-box;
    }

    .header-title {
        font-size: 16px;
        padding: 12px;
        box-sizing: border-box;
    }

    .header-filter {
        width: 100%;
        padding: 0 12px 12px;
        margin: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        box-sizing: border-box;
    }

    .header-filter-text {
        font-size: 13px;
        white-space: nowrap;
    }

    .header-select {
        width: 100%;
        box-sizing: border-box;
    }

    .documents-form-filter-section {
        width: 100%;
        box-sizing: border-box;
    }

    .documents-filter-input-wrapper {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .documents-filter-input-wrapper input {
        width: 100%;
        max-width: 100%;
        padding: 8px 40px 8px 12px;
        font-size: 14px;
        box-sizing: border-box;
    }

    .documents-content {
        border-radius: 8px;
    }

    .sidebar {
        margin-top: 16px;
    }

    .filter-group {
        margin-bottom: 16px;
    }

    .filter-header {
        padding: 12px;
    }

    .filter-header h3 {
        font-size: 16px;
    }

    .search-bar input {
        font-size: 14px;
        padding: 0 30px 0 12px !important;
    }

    .vods-channel,
    .vods-category {
        font-size: 12px;
        padding: 2px 6px;
    }

    .documents-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 8px;
    }

    .pagination {
        padding: 16px 12px;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .pagination .page-number,
    .pagination .page-arrow {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 12px;
    }

    .route {
        font-size: 13px;
        padding: 12px 0 8px;
    }

    .documents-grid {
        padding: 8px;
        gap: 12px;
    }

    .documents-image {
        height: 180px;
    }

    .documents-info {
        padding: 10px;
    }

    .documents-title {
        font-size: 14px;
        line-height: 20px;
        min-height: 40px;
    }

    .documents-header {
        padding: 0;
    }

    .header-title {
        font-size: 15px;
        padding: 12px;
        box-sizing: border-box;
    }

    .header-filter {
        width: 100%;
        padding: 0 12px 12px;
        margin: 0;
        box-sizing: border-box;
    }

    .documents-filter-input-wrapper {
        width: 100%;
        max-width: 100%;
    }

    .documents-filter-input-wrapper input {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .filter-group {
        margin-bottom: 12px;
    }

    .filter-header {
        padding: 10px;
    }

    .filter-header h3 {
        font-size: 15px;
    }

    .filter-list {
        padding: 8px 10px;
    }

    .filter-list li {
        padding: 8px 0;
        font-size: 14px;
    }

    .pagination {
        padding: 12px 8px;
    }

    .pagination .page-number,
    .pagination .page-arrow {
        min-width: 32px;
        height: 32px;
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .documents-image {
        height: 160px;
    }

    .documents-title {
        font-size: 13px;
    }

    .interact {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}
/* Responsive Pagination */
@media (max-width: 768px) {
    .pagination {
        padding: 16px 8px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .page-number,
    .page-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
        min-width: 36px;
    }
}

@media (max-width: 576px) {
    .pagination {
        padding: 12px 4px;
        gap: 6px;
    }

    .page-number,
    .page-arrow {
        width: 32px;
        height: 32px;
        font-size: 13px;
        min-width: 32px;
    }
}

/* Responsive Documents Grid */
@media (max-width: 992px) {
    .documents-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .documents-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 12px;
    }
}

/* Responsive Documents Header */
@media (max-width: 768px) {
    .documents-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .content-header {
        width: 100%;
    }

    .header-filter {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
}
