@font-face {
  font-family: 'Magnolia Script';
  src: url('./fonts/Magnolia_Script.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/*
Theme Name: UsualFans Theme
Author: UsualFans
Version: 1.0
*/

/* ═══════════════════════════════════════════
   1. RESET & BASE
═══════════════════════════════════════════ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #0f0f0f;
    color: #ffffff;
    font-family: Inter, Arial, sans-serif;
}

.container {
    max-width: 1400px;
    margin: auto;
    padding: 40px 20px;
}

/* ═══════════════════════════════════════════
   2. VIDEO GRID
═══════════════════════════════════════════ */

.video-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) {
    .video-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
    .video-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .video-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .related-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 480px) {
    .video-grid { grid-template-columns: 1fr !important; }
}

/* ═══════════════════════════════════════════
   3. VIDEO CARD
═══════════════════════════════════════════ */

.video-item {
    background: #1b1b1b;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.25s ease;
}

.video-item:hover {
    transform: translateY(-6px);
}

.video-item a {
    text-decoration: none;
    color: inherit;
}

/* ═══════════════════════════════════════════
   4. THUMBNAIL
═══════════════════════════════════════════ */

.thumb-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.video-item:hover .thumb-wrapper img {
    transform: scale(1.08);
}

/* Gradient Overlay */
.thumb-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}

/* Play Icon */
.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-item:hover .play-icon {
    opacity: 1;
}

/* Duration Badge */
.duration-badge,
.duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 3px 6px;
    font-size: 12px;
    border-radius: 4px;
}

/* ═══════════════════════════════════════════
   5. VIDEO INFO
═══════════════════════════════════════════ */

.video-info {
    padding: 10px 12px 12px;
}

/* Title — 2 line clamp */
.video-info h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: #fff;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta row — clean flex layout */
.video-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-family: 'Barlow', sans-serif;
    flex-wrap: nowrap;
    overflow: hidden;
}

/* Each stat */
.video-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #777;
    white-space: nowrap;
    flex-shrink: 0;
}

.video-meta span svg {
    width: 12px;
    height: 12px;
    fill: #555;
    flex-shrink: 0;
}

/* Separator dot */
.video-meta .meta-sep {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #333;
    flex-shrink: 0;
    display: block;
    padding: 0;
}

/* Date pushed to right */
.video-meta .meta-date {
    margin-left: auto;
    color: #555;
    font-size: 11px;
}

/* ═══════════════════════════════════════════
   6. SINGLE VIDEO PAGE
═══════════════════════════════════════════ */

.video-card {
    background: #1c1c1c;
    padding: 15px;
    border-radius: 12px;
}

.video-card iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: 10px;
}

.video-title {
    font-size: 26px;
    margin-top: 20px;
}

.meta {
    color: #aaa;
    margin-bottom: 20px;
}

/* ═══════════════════════════════════════════
   7. RELATED GRID
═══════════════════════════════════════════ */

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

@media (max-width: 900px) {
    .related-grid { grid-template-columns: 1fr; }
}

.related-item {
    background: #1b1b1b;
    padding: 10px;
    border-radius: 10px;
}

.related-item img {
    width: 100%;
    border-radius: 8px;
}

/* ═══════════════════════════════════════════
   8. TELEGRAM BOX
═══════════════════════════════════════════ */




.telegram-btn {
    display: inline-block;
    background: #229ED9;
    color: #fff;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}

.telegram-btn:hover {
    background: #1b8ac4;
}

/* ═══════════════════════════════════════════
   9. AFFILIATE BOX
═══════════════════════════════════════════ */

.affiliate-box {
    background: #111;
    padding: 20px;
    border-radius: 12px;
    margin: 30px 0;
    text-align: center;
}

.affiliate-box a {
    background: #ff2d6b;
    padding: 12px 20px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

/* ═══════════════════════════════════════════
   10. AD BANNERS
═══════════════════════════════════════════ */

.banner-728 {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
}

@media (min-width: 768px) {
    .banner-728 { width: 728px; height: 90px; }
}

@media (max-width: 767px) {
    .banner-728 { width: 320px; height: 100px; }
}

/* ═══════════════════════════════════════════
   11. PAGINATION
═══════════════════════════════════════════ */

.pagination {
    margin: 50px 0 20px;
    text-align: center;
}

.pagination-list {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-item a,
.pagination-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: #1c1c1c;
    color: #ccc;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

/* Hover state — all clickable items */
.pagination-item a:hover {
    background: #2a2a2a;
    color: #fff;
    border-color: #d946ef;
    transform: translateY(-2px);
}

/* Active / current page */
.pagination-item.is-current span,
.pagination-item span.current {
    background: #d946ef;
    color: #fff;
    border-color: #d946ef;
    cursor: default;
}

/* Prev / Next buttons */
.pagination-item a.prev,
.pagination-item a.next {
    padding: 0 18px;
    font-size: 13px;
    letter-spacing: 0.3px;
}

/* Dots ... */
.pagination-item span.dots {
    background: transparent;
    border-color: transparent;
    color: #555;
    cursor: default;
    min-width: 20px;
    padding: 0;
}

/* Page counter below */
.pagination-info {
    margin-top: 12px;
    font-size: 12px;
    color: #555;
    letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════
   12. AGE GATE POPUP
═══════════════════════════════════════════ */

/* Age gate styles moved to header.php */

/* ═══════════════════════════════════════════
   13. FOOTER
═══════════════════════════════════════════ */

.site-footer {
    background: #111;
    color: #ccc;
    margin-top: 80px;
    padding: 50px 20px;
    font-size: 14px;
}

.footer-main {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-brand h2 {
    color: #ff6600;
    margin-bottom: 10px;
}

.footer-main h3 {
    color: #fff;
    margin-bottom: 10px;
}

.footer-main ul {
    list-style: none;
    padding: 0;
}

.footer-main li {
    margin-bottom: 8px;
}

.footer-main a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-main a:hover {
    color: #fff;
}

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

.tag-list a {
    background: #1f1f1f;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
}

.footer-bottom {
    border-top: 1px solid #222;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #777;
}

@media (max-width: 900px) {
    .footer-main { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 500px) {
    .footer-main { grid-template-columns: 1fr; text-align: center; }
    .tag-list { justify-content: center; }
}

/* ═══════════════════════════════════════════
   ARCHIVE / TAXONOMY HEADINGS
═══════════════════════════════════════════ */
.archive-header {
    margin-bottom: 8px;
}
.archive-heading {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 14px;
    border-bottom: 3px solid #d946ef;
    display: inline-block;
    margin-bottom: 4px;
}
.archive-desc {
    color: #666;
    font-size: 13px;
    margin-top: 8px;
    margin-bottom: 0;
}



/* ── DISLIKE active state ── */
.sv-btn-dislike.disliked {
    background: #555;
    border-color: #666;
    color: #fff;
}
.sv-btn-like,
.sv-btn-dislike {
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
/* ═══════════════════════════════════════════
   MOBILE — filter bar only
═══════════════════════════════════════════ */
@media (max-width: 640px) {
    .filter-bar-label { display: none; }
    .filter-btn { display: none !important; }
    .sort-dropdown-wrap { display: block !important; }
    .sort-dropdown-trigger { padding: 8px 12px; font-size: 12px; }
}

/* ═══════════════════════════════════════════
   SAVE BUTTON
═══════════════════════════════════════════ */
.video-card-top {
    display: flex; align-items: flex-start;
    justify-content: space-between; gap: 8px;
    margin-bottom: 6px;
}
.video-card-top h3 { margin-bottom: 0; flex: 1; }
.save-btn {
    flex-shrink: 0; width: 28px; height: 28px;
    background: none; border: none; cursor: pointer;
    color: #444; padding: 0; margin-top: 1px;
    transition: color 0.2s, transform 0.15s;
    display: flex; align-items: center; justify-content: center;
}
.save-btn svg { width: 16px; height: 16px; fill: currentColor; }
.save-btn:hover { color: #d946ef; transform: scale(1.15); }
.save-btn.saved { color: #d946ef; }
.save-btn.saved svg { filter: drop-shadow(0 0 4px rgba(217,70,239,0.5)); }

/* ═══════════════════════════════════════════
   BUTTON FOCUS STYLES (Fix 2)
═══════════════════════════════════════════ */
.save-btn:focus-visible, .like-btn:focus-visible, .dislike-btn:focus-visible, .share-btn:focus-visible, .download-btn:focus-visible {
    outline: 2px solid #d946ef;
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════
   SEARCH RESULTS (Fix 5)
═══════════════════════════════════════════ */
.search-results-title {
    color: #e0e0e0;
    font-size: 18px;
    margin-bottom: 20px;
}
.search-no-results {
    color: #888;
    text-align: center;
    padding: 60px 20px;
    font-size: 15px;
}
.search-no-results a {
    color: #d946ef;
    text-decoration: none;
}

/* ═══════════════════════════════════════════
   VIDEO CARD LAZY LOADING (Fix 6)
═══════════════════════════════════════════ */
.video-card img {
    content-visibility: auto;
}

/* ═══════════════════════════════════════════
   FOOTER LINK CONTRAST (Fix 1)
═══════════════════════════════════════════ */
.footer-col ul li a {
    color: #aaa;
}
