.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

.content-wrap.is-tiles {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
@media (min-width: 640px)  { .content-wrap.is-tiles { padding: 2rem 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 768px)  { .content-wrap.is-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .content-wrap.is-tiles { padding: 2rem 3rem; grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .content-wrap.is-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

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

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

.responsive-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.responsive-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.desc-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.player-tab-pane { display: none; }
.player-tab-pane.is-active { display: block; }

.pagination-wrap {
    grid-column: 1 / -1;
    max-width: none;
    width: 100%;
    padding: 1.5rem 0 2rem;
    text-align: center;
    display: block !important;
}

.pagination {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    justify-content: center !important;
    align-items: center !important;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination > * {
    display: inline-flex !important;
    float: none !important;
}

.pagination a,
.pagination span,
.pagination .pnav,
.pagination .swchItem {
    min-width: 38px;
    height: 38px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
    padding: 0 10px;
    text-decoration: none;
}

.pagination a,
.pagination a.swchItem {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}

.pagination a:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

.pagination > span,
.pagination span.nav_ext,
.pagination > .swchItemA {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.pagination span.nav_ext {
    background: transparent;
    color: #9ca3af;
    box-shadow: none;
    min-width: auto;
    padding: 0 4px;
}

.dark .pagination a,
.dark .pagination a.swchItem {
    background: #1f2937;
    color: #d1d5db;
    border-color: #374151;
}

.dark .pagination a:hover {
    background: #374151;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out;
}

.avatar-letter {
    display: block;
    width: 1ch;
    overflow: hidden;
    text-transform: uppercase;
    line-height: 1;
}

.comment-actions a {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.comment-actions a:hover {
    opacity: 0.8;
}

#comments .mass_comments_action,
#comments .comm_selected,
#comments [name="selected_comments[]"],
#comments input[type="checkbox"],
#comments .mass-action,
.comments-mass-action,
.mass_comments_action {
    display: none !important;
}

.space-y-6 > [id^="comment-id-"] {
    margin-top: 1.25rem;
}

.comment-form-wrap input[type="text"],
.comment-form-wrap textarea,
.comment-form-wrap select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #111827;
    font-size: 14px;
    transition: all 0.2s;
}

.comment-form-wrap input[type="text"]:focus,
.comment-form-wrap textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dark .comment-form-wrap input[type="text"],
.dark .comment-form-wrap textarea,
.dark .comment-form-wrap select {
    background: #1f2937;
    border-color: #374151;
    color: #f3f4f6;
}

.dark .comment-form-wrap input[type="text"]:focus,
.dark .comment-form-wrap textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
