/* Drama Hub Widget Styles */
/* Reset and Base Styles */
.drama-sidebar * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* AGGRESSIVE SCROLLBAR REMOVAL FOR ALL BROWSERS */
.drama-sidebar *::-webkit-scrollbar,
.sidebar.single-post-sidebar::-webkit-scrollbar,
.sidebar-single-post-sidebar::-webkit-scrollbar,
aside#secondary.sidebar::-webkit-scrollbar,
aside#secondary.sidebar.single-post-sidebar::-webkit-scrollbar,
.sidebar .drama-sidebar::-webkit-scrollbar,
.sidebar-single-post-sidebar .drama-sidebar::-webkit-scrollbar,
aside.sidebar.single-post-sidebar::-webkit-scrollbar,
aside#secondary::-webkit-scrollbar,
aside.sidebar::-webkit-scrollbar,
.widget.drama-hub-widget::-webkit-scrollbar,
section#drama_hub_widget-2::-webkit-scrollbar,
.widget.drama-hub-widget .drama-sidebar::-webkit-scrollbar,
.drama-sidebar::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
    background: transparent !important;
}

.drama-sidebar *,
.sidebar.single-post-sidebar,
.sidebar-single-post-sidebar,
aside#secondary.sidebar,
aside#secondary.sidebar.single-post-sidebar,
.sidebar .drama-sidebar,
.sidebar-single-post-sidebar .drama-sidebar,
aside.sidebar.single-post-sidebar,
aside#secondary,
aside.sidebar,
.widget.drama-hub-widget,
section#drama_hub_widget-2,
.widget.drama-hub-widget .drama-sidebar,
.drama-sidebar {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    overflow: visible !important; 
    overflow-y: visible !important;
    max-height: none !important;
}

/* Fix specifically for the single-post-sidebar */
aside#secondary.sidebar.single-post-sidebar,
.sidebar-single-post-sidebar,
.sidebar.single-post-sidebar,
aside.sidebar.single-post-sidebar {
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
    height: auto !important;
    max-height: none !important;
}

.drama-list {
    max-height: none !important;
    overflow: visible !important;
    overflow-y: visible !important;
}

.drama-sidebar {
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    border: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    box-shadow: none;
    overflow: visible;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    padding: 0;
}

/* Header Styles */
.sidebar-header {
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
    background: #ffffff;
}

.header-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.logo-text h2 {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin: 0;
}

.logo-text p {
    font-size: 12px;
    color: #6b7280;
    opacity: 0.8;
    margin: 0;
}

.search-container {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

.search-input {
    width: 100%;
    padding: 8px 10px 8px 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
}

.search-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.1);
}

/* Content Styles */
.sidebar-content {
    flex: 1;
    padding: 0;
    overflow: visible;
    height: auto;
    width: 100%;
}

.tabs-container {
    height: auto;
    display: flex;
    flex-direction: column;
    padding: 0;
    width: 100%;
}

.tabs-list {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
    padding: 0;
}

.tab-trigger {
    flex: 1;
    padding: 8px 5px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #666;
    border-bottom: 2px solid transparent;
}

.tab-trigger.active {
    border-bottom: 2px solid #007bff;
    color: #007bff;
    font-weight: 500;
}

.tab-trigger:hover:not(.active) {
    color: #374151;
}

.tab-content {
    display: none;
    flex-direction: column;
    overflow: visible;
    padding: 0;
    height: auto;
    width: 100%;
}

.tab-content.active {
    display: flex;
}

.tab-header {
    display: none;
}

.drama-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    margin-bottom: 0;
    height: auto;
    max-height: none;
    overflow: visible;
    width: 100%;
}

/* Drama Item Styles */
.drama-item {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 0;
    overflow: visible;
    transition: background-color 0.2s;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 0;
    padding: 0;
    width: 100%;
}

.drama-item:hover {
    background-color: rgba(0,0,0,0.02);
}

.drama-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 10px;
    width: 100%;
    position: relative;
}

.drama-poster {
    position: relative;
    width: 70px;
    flex-shrink: 0;
    margin-right: 5px;
}

.poster-image {
    width: 100%;
    height: auto;
    border-radius: 4px;
    aspect-ratio: 2/3;
    object-fit: cover;
}

.badge {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
    color: white;
}

.badge-new {
    background-color: #ff4757;
}

.badge-hot {
    background-color: #ff6b6b;
}

.drama-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: calc(100% - 90px);
    padding-left: 3px;
}

.drama-title {
    margin: 0 0 2px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left: 2px;
}

.drama-genre {
    margin: 0 0 3px 0;
    font-size: 12px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left: 2px;
}

.drama-description {
    display: none;
}

.drama-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: #666;
    margin-top: 3px;
    padding-left: 2px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.drama-rating {
    display: flex;
    gap: 10px;
    font-size: 12px;
}

.rating-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-value {
    font-weight: 500;
    color: #ff9f43;
}

.popularity-value {
    font-weight: 500;
    color: #2e86de;
}

.drama-action-row {
    display: flex;
    gap: 8px;
    margin-top: 5px;
    padding-left: 2px; /* Added padding */
}

.coming-soon {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #ff6b6b;
    font-weight: 500;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    background-color: #f8f9fa;
    color: #495057;
    transition: all 0.2s;
}

.like-btn:hover {
    background-color: #ffeaea;
    color: #ff6b6b;
}

.watch-btn:hover {
    background-color: #e3f2fd;
    color: #2196f3;
}

/* Release date styles */
.upcoming-date {
    color: #ff6600;
    font-weight: 500;
}

.released-date {
    color: #28a745;
    font-weight: 500;
}

.upcoming-date small {
    font-size: 80%;
    opacity: 0.8;
    margin-left: 4px;
}

/* No results */
.no-results {
    padding: 10px;
    text-align: center;
    color: #666;
    font-size: 13px;
}

/* Debug info */
.debug-info {
    font-size: 10px !important;
    color: #999 !important;
    margin-top: 10px;
    padding: 5px;
    background: #f5f5f5;
    border-radius: 4px;
}

/* Specific adjustments for sidebar */
.sidebar .drama-sidebar {
    padding: 0;
}

.sidebar .sidebar-header,
.sidebar .tabs-container {
    padding: 0;
}

.sidebar .header-content {
    padding: 5px 0;
}

.sidebar .drama-list {
    padding: 0;
}

/* Specific adjustments for 320px sidebar */
.sidebar-single-post-sidebar .drama-sidebar {
    width: 320px;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0;
}

.sidebar-single-post-sidebar .drama-sidebar .sidebar-header,
.sidebar-single-post-sidebar .drama-sidebar .tabs-container {
    padding: 0;
}

.sidebar-single-post-sidebar .drama-sidebar .header-content {
    padding: 5px 0;
}

.sidebar-single-post-sidebar .drama-sidebar .drama-content {
    padding: 8px 0;
    gap: 8px;
}

.sidebar-single-post-sidebar .drama-sidebar .drama-poster {
    width: 60px;
}

.sidebar-single-post-sidebar .drama-sidebar .drama-title {
    font-size: 13px;
}

.sidebar-single-post-sidebar .drama-sidebar .drama-genre {
    font-size: 11px;
}

.sidebar-single-post-sidebar .drama-sidebar .meta-item,
.sidebar-single-post-sidebar .drama-sidebar .rating-item,
.sidebar-single-post-sidebar .drama-sidebar .coming-soon {
    font-size: 11px;
    gap: 3px;
}

.sidebar-single-post-sidebar .drama-sidebar .action-btn {
    font-size: 10px;
    padding: 3px 6px;
}

.sidebar-single-post-sidebar .drama-sidebar .drama-list {
    padding: 0;
    gap: 0;
}

.sidebar-single-post-sidebar .drama-sidebar .tab-header {
    display: none;
}

.sidebar-single-post-sidebar .drama-sidebar .tab-trigger {
    padding: 6px 3px;
}

/* Specific class targeting from the dev tools screenshot */
aside#secondary.sidebar.single-post-sidebar {
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
    height: auto !important;
    max-height: none !important;
}

.drama-sidebar {
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
}

.widget.drama-hub-widget {
    overflow: visible !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
}

div.drama-sidebar {
    overflow: visible !important;
}

/* For very narrow screens */
@media (max-width: 350px) {
    .drama-sidebar .drama-content {
        padding: 8px 0;
    }
    
    .drama-sidebar .drama-poster {
        width: 60px;
    }
    
    .drama-sidebar .drama-title {
        font-size: 13px;
    }
    
    .drama-sidebar .drama-genre {
        font-size: 11px;
    }
    
    .drama-sidebar .meta-item,
    .drama-sidebar .rating-item,
    .drama-sidebar .coming-soon {
        font-size: 11px;
    }
    
    .drama-sidebar .action-btn {
        font-size: 10px;
        padding: 3px 6px;
    }
} 