/**
 * Video Frontend Styles
 *
 * Styles for standalone video archive and single pages
 *
 * @package AnimeHub
 */

/* ==========================================================================
   Video Archive Page
   ========================================================================== */

/* Page Header */
.video-archive-header {
    margin-bottom: 30px;
}

.video-archive-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.video-archive-description {
    color: #999;
    font-size: 16px;
}

/* Filters Bar */
.video-filters-bar {
    background: #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.video-filter-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.video-filter-label {
    color: #999;
    font-size: 14px;
    white-space: nowrap;
}

.video-filter-select {
    padding: 8px 12px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    color: #e0e0e0;
    font-size: 14px;
    min-width: 150px;
}

.video-filter-btn {
    padding: 8px 16px;
    background: #ff6b35;
    border: none;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.video-filter-btn:hover {
    background: #e55a2a;
}

.video-filter-btn--secondary {
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
}

.video-filter-btn--secondary:hover {
    background: #3a3a3a;
}

/* View Toggle */
.video-view-toggle {
    display: flex;
    gap: 5px;
    margin-left: auto;
}

.video-view-btn {
    padding: 8px 12px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    color: #999;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.video-view-btn.active {
    background: #ff6b35;
    color: #fff;
    border-color: #ff6b35;
}

/* Videos Grid - Now using cards-grid--video from base.css */
/* Legacy support: Keep .videos-grid for backward compatibility */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

/* Video Card */
.video-card {
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
}

.video-card__poster {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* 16:9 aspect ratio */
    background: #2a2a2a;
    overflow: hidden;
}

.video-card__poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.video-card:hover .video-card__poster img {
    transform: scale(1.05);
}

.video-card__duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.85);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

/* Views Badge (Top Left) - Match episode card style */
.video-card__views {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-card__views svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.video-card__category {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    z-index: 2;
}

.video-card__category--movie { background: #4a9eff; }
.video-card__category--clip { background: #ff6b35; }
.video-card__category--special { background: #9b59b6; }
.video-card__category--ova { background: #27ae60; }
.video-card__category--short { background: #f39c12; }

/* Video Card Badges in cards-grid--video (similar to anime-card__meta-badges) */
/* Override category badge position when in cards-grid--video */
.cards-grid .video-card__poster,
.cards-grid--video .video-card__poster,
.cards-grid.cards-grid--video .video-card__poster {
    position: relative !important;
}

/* Override category badge for all cards-grid contexts */
.cards-grid .video-card__category,
.cards-grid--video .video-card__category,
.cards-grid.cards-grid--video .video-card__category {
    position: absolute !important;
    bottom: 8px !important;
    left: 8px !important;
    top: auto !important;
    right: auto !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    z-index: 3 !important;
}

/* Hover Overlay */
.video-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
}

.video-card:hover .video-card__overlay {
    opacity: 1;
}

.video-card__play {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ff6b35;
    border-radius: 50%;
    color: #fff;
    transform: scale(0.8);
    transition: transform 0.2s ease;
}

.video-card:hover .video-card__play {
    transform: scale(1);
}

.video-card__play svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

.video-card__info {
    padding: 12px;
}

.video-card__title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.video-card__meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

/* List View */
.videos-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.video-list-item {
    background: #1a1a1a;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    padding: 15px;
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}

.video-list-item:hover {
    background: #2a2a2a;
}

.video-list-item__thumb {
    width: 250px;
    min-width: 250px;
    aspect-ratio: 16/9;
    border-radius: 6px;
    overflow: hidden;
    background: #2a2a2a;
    position: relative;
}

.video-list-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-list-item__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-list-item__title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.video-list-item__meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.video-list-item__description {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* No Results */
.archive-video-page .no-results {
    text-align: center;
    padding: 60px 20px;
    margin: 60px auto;
    width: 100%;
}

.archive-video-page .no-results h2 {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.archive-video-page .no-results p {
    font-size: 16px;
    color: #999;
    margin-bottom: 25px;
}

.archive-video-page .no-results .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Pagination */
.video-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.video-pagination__btn {
    padding: 10px 16px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.video-pagination__btn:hover {
    background: #2a2a2a;
}

.video-pagination__btn.current {
    background: #ff6b35;
    border-color: #ff6b35;
    color: #fff;
}

/* ==========================================================================
   Single Video Page
   ========================================================================== */

/* Page Layout Wrapper - Limit width and center */
.animehub-page-with-sidebar.animehub-video-page {
    max-width: var(--animehub-container, 1400px) !important;
    margin: 0 auto !important;
    padding: 0 var(--animehub-gap, 24px);
    width: 100%;
    box-sizing: border-box;
}

/* Page Layout - Ensure grid layout works */
.animehub-page-with-sidebar.animehub-video-page .animehub-content-wrapper {
    display: grid !important;
    grid-template-columns: 1fr 320px !important;
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
}

.animehub-video-page .animehub-main-content {
    flex: 1;
    min-width: 0;
    width: 100%;
}

/* Sidebar */
#secondary.widget-area {
    position: sticky;
    top: 90px;
    height: fit-content;
    width: 100%;
}

#secondary .widget {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

#secondary .widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b35;
}

/* Player Section */
.animehub-episode-player-section.video-player-section {
    max-width: var(--animehub-container, 1400px);
    margin: 0 auto 20px;
    padding: 0 var(--animehub-gap, 24px);
    width: 100%;
}

.video-player-section {
    width: 100%;
    margin-bottom: 20px;
}

.video-player-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Note: .video-player-wrapper aspect ratio now handled by animehub-player.css */
/* Keep this for fallback/legacy support only */
.video-player-wrapper:not(:has(#player-container)) {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
}

.video-player-wrapper:not(:has(#player-container)) video,
.video-player-wrapper:not(:has(#player-container)) iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Player Controls */
.video-controls {
    background: #1a1a1a;
    padding: 15px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    border-top: 1px solid #2a2a2a;
}

.video-control-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.video-control-label {
    font-size: 13px;
    color: #999;
    white-space: nowrap;
}

/* Server Switcher */
.video-server-switcher {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.video-server-btn {
    padding: 6px 14px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.video-server-btn:hover {
    background: #3a3a3a;
    border-color: #ff6b35;
}

.video-server-btn.active {
    background: #ff6b35;
    border-color: #ff6b35;
    color: #fff;
}

.video-server-btn small {
    display: block;
    font-size: 10px;
    opacity: 0.8;
    margin-top: 2px;
}

/* Enhanced Controls */
.video-enhanced-controls {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.video-control-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    color: #e0e0e0;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.video-control-btn:hover {
    background: #ff6b35;
    border-color: #ff6b35;
    color: #fff;
}

/* Main Content Layout */
.video-page-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
    margin-bottom: 40px;
}

/* Video Header */
.video-header {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 25px 30px;
    margin-bottom: 20px;
}

.video-title-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.video-category-badge {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}

.video-category-badge--movie { background: #4a9eff; }
.video-category-badge--clip { background: #ff6b35; }
.video-category-badge--special { background: #9b59b6; }
.video-category-badge--ova { background: #27ae60; }

.video-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

/* Video Info Section */
.video-info-section {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
}

.video-content-top {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.video-poster-section {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.video-poster-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
}

.video-share-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.video-share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    border-radius: 50%;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.2s;
}

.video-share-btn:hover {
    background: #ff6b35;
    color: #fff;
}

/* Video Info List */
.video-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.video-info-label {
    font-size: 13px;
    color: #999;
    min-width: 100px;
    flex-shrink: 0;
}

.video-info-value {
    font-size: 15px;
    color: #fff;
    flex: 1;
}

.video-info-value a {
    color: #ff6b35;
    text-decoration: none;
}

.video-info-value a:hover {
    text-decoration: underline;
}

.video-main-title {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #2a2a2a;
    flex-direction: column;
    align-items: flex-start;
}

.video-title-primary {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px 0;
}

.video-title-native {
    font-size: 14px;
    color: #999;
    display: block;
    margin-top: 5px;
}

.video-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.video-tag {
    padding: 4px 10px;
    background: #2a2a2a;
    border-radius: 4px;
    font-size: 12px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.2s;
}

.video-tag:hover {
    background: #ff6b35;
    color: #fff;
}

/* Description Section */
.video-description-section {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
}

.video-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    display: inline-block;
    border-bottom: 2px solid #ff6b35;
}

.video-description-content {
    font-size: 15px;
    line-height: 1.8;
    color: #ccc;
}

.video-description-content p {
    margin-bottom: 15px;
}

.video-description-content p:last-child {
    margin-bottom: 0;
}

/* Screenshots Section */
.video-screenshots-section {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
}

.video-screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.video-screenshot-item {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.video-screenshot-item:hover {
    transform: scale(1.05);
}

.video-screenshot-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sidebar */
.video-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.video-sidebar-widget {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.video-widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b35;
}

/* Related Videos in Sidebar */
.video-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.video-related-card {
    display: flex;
    gap: 12px;
    background: #2a2a2a;
    border-radius: 8px;
    padding: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.video-related-card:hover {
    border-color: #ff6b35;
    transform: translateY(-3px);
}

.video-related-thumb {
    position: relative;
    width: 120px;
    min-width: 120px;
    height: 68px;
    border-radius: 6px;
    overflow: hidden;
    background: #1a1a1a;
}

.video-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-related-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.video-related-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-related-meta {
    font-size: 12px;
    color: #999;
}

/* ==========================================================================
   Related Videos Section
   ========================================================================== */

.related-videos-section {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 25px 30px;
    margin-top: 30px;
}

.related-videos-section .section-header {
    margin-bottom: 20px;
}

.related-videos-section .section-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #ff6b35;
}

.related-videos-section .section-title svg {
    color: #ff6b35;
    flex-shrink: 0;
}

.related-videos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Ensure video cards in related section have proper sizing */
.related-videos-grid .video-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

/* Responsive Related Videos Grid */
@media (max-width: 1200px) {
    .related-videos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .related-videos-section {
        padding: 20px;
    }
    
    .related-videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .related-videos-section {
        padding: 15px;
        margin-top: 20px;
    }
    
    .related-videos-section .section-title {
        font-size: 18px;
    }
    
    .related-videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Ad Placeholders */
.video-ad-placeholder {
    background: #1a1a1a;
    padding: 15px 0;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 20px;
}

.video-ad-content {
    background: #2a2a2a;
    border: 2px dashed #444;
    border-radius: 8px;
    padding: 40px 20px;
    color: #666;
    font-size: 14px;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 1200px) {
    .animehub-video-page .animehub-content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    #secondary.widget-area {
        position: static;
    }
}

@media (max-width: 1024px) {
    .animehub-video-page .animehub-content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    #secondary.widget-area {
        position: static;
    }
    
    .video-filters-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        gap: 12px;
    }
    
    .video-filter-group {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .video-filter-select {
        width: 100%;
        min-width: auto;
    }
    
    .video-view-toggle {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    
    .video-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .video-enhanced-controls {
        margin-left: 0;
        justify-content: center;
    }
    
    .video-content-top,
    .episode-content-top {
        grid-template-columns: 1fr;
    }
    
    .video-poster-section {
        position: static;
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }
    
    .video-poster-image {
        width: 150px;
        min-width: 150px;
        margin-bottom: 0;
    }
    
    .video-share-buttons {
        align-self: center;
    }
    
    .video-header {
        padding: 20px;
    }
    
    .video-page-title {
        font-size: 24px;
    }
    
    .video-info-section,
    .video-description-section,
    .video-screenshots-section {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .video-archive-title {
        font-size: 26px;
    }
    
    .videos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .video-list-item__thumb {
        width: 180px;
        min-width: 180px;
    }
    
    .video-list-item__title {
        font-size: 16px;
    }
    
    .video-controls {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .video-control-item {
        width: 100%;
    }
    
    .video-server-switcher {
        width: 100%;
    }
    
    .video-server-btn {
        flex: 1;
        min-width: 80px;
        min-height: 44px;
    }
    
    .video-enhanced-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .video-poster-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .video-poster-image {
        width: 100%;
        max-width: 200px;
    }
    
    .video-page-title {
        font-size: 20px;
    }
    
    .video-title-primary {
        font-size: 18px;
    }
    
    .video-info-label {
        min-width: 80px;
        font-size: 12px;
    }
    
    .video-info-value {
        font-size: 14px;
    }
    
    .video-screenshots-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .video-archive-title {
        font-size: 22px;
    }
    
    .video-filters-bar {
        padding: 12px;
        gap: 10px;
    }
    
    .video-filter-group {
        width: 100%;
    }
    
    .video-filter-label {
        font-size: 12px;
    }
    
    .video-filter-select {
        font-size: 13px;
        padding: 10px 12px;
        min-height: 44px;
    }
    
    .video-filter-btn {
        width: 100%;
        min-height: 44px;
        padding: 12px 16px;
    }
    
    .video-view-btn {
        min-height: 44px;
        padding: 10px 12px;
    }
    
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .video-card__title {
        font-size: 13px;
    }
    
    .video-list-item {
        flex-direction: column;
        padding: 12px;
    }
    
    .video-list-item__thumb {
        width: 100%;
        min-width: 100%;
    }
    
    /* Video Page Layout - Responsive */
    .animehub-video-page .animehub-content-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    #secondary.widget-area {
        position: static;
    }
    
    .video-controls {
        padding: 10px 12px;
    }
    
    .video-server-btn {
        min-height: 44px;
    }
    
    .video-header {
        padding: 15px;
    }
    
    .video-page-title {
        font-size: 18px;
    }
    
    .video-info-section,
    .video-description-section,
    .video-screenshots-section {
        padding: 15px;
    }
    
    .video-content-top {
        gap: 15px;
    }
    
    .video-poster-image {
        max-width: 150px;
    }
    
    .video-title-primary {
        font-size: 16px;
    }
    
    .video-screenshots-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Video Card Badge Override for cards-grid (Force at end of file)
   ========================================================================== */

/* Ensure video card category badge displays as badge on poster in cards-grid */
.cards-grid .video-card__category,
.cards-grid--video .video-card__category,
.cards-grid.cards-grid--video .video-card__category,
.archive-video-page .cards-grid--video .video-card__category,
.archive-video-page .cards-grid .video-card__category {
    position: absolute !important;
    bottom: 8px !important;
    left: 8px !important;
    top: auto !important;
    right: auto !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    z-index: 3 !important;
}
