/**
 * MNG Studio Tube Suite Stylesheet
 * Optimized for HornySimp White Theme
 * Tag, Model, and Models Directory Archives
 * 4-Column Desktop / 1-Column Mobile 16:9 Video Grid
 */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700;800&family=Roboto:wght@300;400;500;700&display=swap');

/* Container & Layout */
.mng-tube-page-wrap {
    width: 100%;
    padding: 20px 0 60px;
    box-sizing: border-box;
}

.mng-tube-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ===============================
   TAG HEADER & SMALL SEO TEXT
   =============================== */
.mng-tag-header {
    text-align: center;
    margin: 20px auto 40px;
    max-width: 850px;
    padding: 0 15px;
}

.mng-tag-heading {
    font-family: 'Oswald', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin: 0 0 12px 0;
    color: #74143B !important;
    text-transform: capitalize;
    line-height: 1.2;
}

.mng-tag-seo-desc {
    font-family: 'Roboto', sans-serif;
    font-size: 13.5px !important;
    line-height: 1.65;
    color: #4b5563 !important;
    margin: 0 auto;
    max-width: 760px;
    text-align: center;
    font-weight: 400;
}

.mng-tag-seo-desc p {
    font-family: 'Roboto', sans-serif;
    font-size: 13.5px !important;
    color: #4b5563 !important;
    margin: 0 0 6px 0;
    line-height: 1.65;
}

/* ===============================
   MODEL HEADER, AVATAR & BIO
   =============================== */
.mng-model-header {
    text-align: center;
    margin: 25px auto 45px;
    max-width: 850px;
    padding: 0 15px;
}

.mng-model-avatar-wrap {
    width: 140px;
    height: 140px;
    margin: 0 auto 18px;
    border-radius: 50%;
    overflow: hidden;
    border: 3.5px solid #74143B;
    box-shadow: 0 8px 24px rgba(116, 20, 59, 0.25);
    background: #f3f4f6;
    position: relative;
}

.mng-model-avatar {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

.mng-model-heading {
    font-family: 'Oswald', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin: 0 0 12px 0;
    color: #74143B !important;
    line-height: 1.2;
}

.mng-model-bio {
    font-family: 'Roboto', sans-serif;
    font-size: 13.5px !important;
    line-height: 1.65;
    color: #4b5563 !important;
    margin: 0 auto;
    max-width: 750px;
    text-align: center;
    font-weight: 400;
}

.mng-model-bio p {
    font-family: 'Roboto', sans-serif;
    font-size: 13.5px !important;
    color: #4b5563 !important;
    margin: 0 0 8px 0;
}

/* ===============================
   VIDEO GRID - 4 COLUMNS DESKTOP
   =============================== */
.mng-video-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    justify-content: center;
    box-sizing: border-box;
}

/* Video Card */
.mng-video-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    transition: transform 0.2s ease;
}

/* 16:9 (1280x720) Thumbnail Box */
.mng-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: #000000;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.mng-thumb-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
}

.mng-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.mng-video-card:hover .mng-thumb-img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

/* Red / Black Gradient Overlay on Hover */
.mng-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.mng-video-card:hover .mng-thumb-overlay {
    opacity: 1;
}

.mng-play-btn {
    width: 48px;
    height: 48px;
    background: rgba(116, 20, 59, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    transform: scale(0.9);
    transition: transform 0.2s ease, background 0.2s ease;
}

.mng-play-btn svg {
    width: 22px;
    height: 22px;
    margin-left: 2px;
}

.mng-video-card:hover .mng-play-btn {
    transform: scale(1.1);
    background: #74143B;
}

/* Video Title under Thumbnail */
.mng-video-title {
    margin: 10px 0 0 0;
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.mng-video-title a {
    color: #1f2937 !important;
    text-decoration: none !important;
    font-family: 'Roboto', sans-serif;
    transition: color 0.2s ease;
}

.mng-video-title a:hover {
    color: #74143B !important;
}

/* ===============================
   CENTERED PAGINATION (LIGHT THEME)
   =============================== */
.mng-pagination-wrap {
    margin-top: 50px;
    text-align: center;
    width: 100%;
}

.mng-pagination-wrap ul.page-numbers {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mng-pagination-wrap .page-numbers li {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mng-pagination-wrap .page-numbers a,
.mng-pagination-wrap .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #374151 !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.mng-pagination-wrap .page-numbers a:hover {
    background: #f9fafb;
    border-color: #74143B;
    color: #74143B !important;
    transform: translateY(-1px);
}

.mng-pagination-wrap .page-numbers .current {
    background: #74143B !important;
    border-color: #74143B !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(116, 20, 59, 0.3);
}

.mng-pagination-wrap .page-numbers .dots {
    border: none;
    background: transparent;
    color: #9ca3af;
    box-shadow: none;
}

.mng-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* Tablet Breakpoint (769px to 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .mng-video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Mobile Breakpoint - STRICTLY 1 COLUMN ON ANY MOBILE VIEW (<= 768px) */
@media (max-width: 768px) {
    .mng-tube-container {
        padding: 0 15px;
    }

    .mng-tag-header, .mng-model-header {
        margin: 15px auto 30px;
    }

    .mng-model-avatar-wrap {
        width: 110px;
        height: 110px;
        margin-bottom: 14px;
    }

    .mng-tag-heading, .mng-model-heading {
        font-size: 1.8rem;
    }

    .mng-tag-seo-desc, .mng-model-bio {
        font-size: 12.5px !important;
        padding: 0 5px;
    }

    .mng-video-grid {
        grid-template-columns: 1fr !important;
        max-width: 500px;
        margin: 0 auto;
        gap: 22px;
    }

    .mng-video-title {
        font-size: 14px !important;
        margin-top: 8px !important;
    }

    .mng-pagination-wrap .page-numbers a,
    .mng-pagination-wrap .page-numbers span {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 10px;
    }
}

/* ===============================
   MODELS DIRECTORY (/models/)
   Light Theme
   =============================== */
.mng-directory-header {
    text-align: center;
    margin: 25px auto 40px;
    max-width: 800px;
}

.mng-directory-heading {
    font-family: 'Oswald', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #74143B !important;
    margin: 0 0 10px 0;
    letter-spacing: -0.3px;
}

.mng-directory-sub {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    color: #4b5563 !important;
    margin: 0;
}

.mng-models-directory-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

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

@media (max-width: 850px) {
    .mng-models-directory-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 550px) {
    .mng-models-directory-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

.mng-directory-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px 10px 18px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.mng-directory-card:hover {
    transform: translateY(-4px);
    border-color: #74143B;
    box-shadow: 0 8px 24px rgba(116, 20, 59, 0.15);
}

.mng-directory-card-link {
    text-decoration: none;
    display: block;
}

.mng-directory-avatar-wrap {
    width: 105px;
    height: 105px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #74143B;
    box-shadow: 0 4px 14px rgba(116, 20, 59, 0.2);
    background: #f3f4f6;
}

.mng-directory-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.mng-directory-card:hover .mng-directory-avatar {
    transform: scale(1.06);
}

.mng-directory-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #111827 !important;
    margin: 0 0 6px 0;
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mng-directory-count {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 600;
    color: #74143B !important;
    background: rgba(116, 20, 59, 0.08) !important;
    padding: 3px 10px;
    border-radius: 9999px;
}
