/*
Theme Name: AuntyMaza Tube Pro
Theme URI: https://auntymaza.com/
Author: Web Team
Description: Ultra-fast, lightweight, LiteSpeed-optimized adult video streaming WordPress theme. Features video hover trailer previews, 16:9 responsive player, custom metaboxes, high-CTR ad spots, custom logo, and 100% manual Customizer controls.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: auntymaza
*/

/*--------------------------------------------------------------
# 1. CSS Custom Properties / Design Tokens
Easily customizable in WordPress Customizer or "Additional CSS"
--------------------------------------------------------------*/
:root {
    --am-primary: #ff3565;
    --am-primary-hover: #e02854;
    --am-body-bg: #181818;
    --am-wrapper-bg: #ffffff;
    --am-header-bg: #f5f5f5;
    --am-header-text: #222222;
    --am-nav-bg: #333333;
    --am-nav-text: #ffffff;
    --am-card-bg: #ffffff;
    --am-card-title: #333333;
    --am-card-title-hover: #ff3565;
    --am-card-meta: #777777;
    --am-rating-color: #689f38;
    --am-duration-bg: rgba(0, 0, 0, 0.85);
    --am-duration-text: #ffffff;
    --am-hd-bg: #ff3565;
    --am-hd-text: #ffffff;
    --am-footer-bg: #111111;
    --am-footer-text: #888888;
    --am-grid-columns: 4;

    /* Backward compatibility aliases */
    --fm-primary: var(--am-primary);
    --fm-body-bg: var(--am-body-bg);
    --fm-wrapper-bg: var(--am-wrapper-bg);
}

/*--------------------------------------------------------------
# 2. Reset & Baseline
--------------------------------------------------------------*/
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 14px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--am-body-bg);
    color: #333;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.45;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/*--------------------------------------------------------------
# 3. 18+ Age Verification Modal
--------------------------------------------------------------*/
.am-age-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.am-age-modal-box {
    background: #1f1f1f;
    border: 2px solid var(--am-primary);
    border-radius: 8px;
    color: #ffffff;
    max-width: 500px;
    width: 100%;
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(255, 53, 101, 0.3);
}
.am-age-modal-box h2 {
    color: var(--am-primary);
    font-size: 22px;
    margin-bottom: 12px;
}
.am-age-modal-box p {
    color: #cccccc;
    font-size: 13.5px;
    line-height: 1.6;
    margin-bottom: 25px;
}
.am-modal-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.am-btn-enter {
    background: var(--am-primary);
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}
.am-btn-enter:hover {
    background: var(--am-primary-hover);
    transform: scale(1.02);
}
.am-btn-exit {
    background: #444;
    color: #fff;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-size: 14px;
    cursor: pointer;
}

/*--------------------------------------------------------------
# 4. Header & Top Announcement Bar
--------------------------------------------------------------*/
.am-notice-bar {
    background: var(--am-primary);
    color: #ffffff;
    text-align: center;
    padding: 6px 15px;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.5px;
}
.am-notice-bar a {
    color: #fff;
    text-decoration: underline;
}

.site-header {
    background: var(--am-header-bg);
    border-bottom: 1px solid #dddddd;
    position: relative;
}
.header-row {
    max-width: 1350px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Site Logo */
.site-branding .logo {
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-branding .logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--am-header-text);
    letter-spacing: -0.5px;
}
.site-branding .logo img.custom-icon-logo {
    height: 44px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: inline-block;
}
.site-branding .logo span.accent {
    color: var(--am-primary);
}

/* Central Rounded Search Form */
.header-search {
    flex: 1;
    max-width: 560px;
    margin: 0 25px;
}
.search-form {
    display: flex;
    width: 100%;
}
.search-form .search-field {
    width: 100%;
    height: 44px;
    padding: 0 20px;
    border: 1px solid #cccccc;
    border-right: none;
    border-radius: 25px 0 0 25px;
    font-size: 14.5px;
    outline: none;
    background: #ffffff;
}
.search-form .search-field:focus {
    border-color: var(--am-primary);
}
.search-form .search-submit {
    width: 60px;
    height: 44px;
    background: var(--am-primary);
    border: none;
    border-radius: 0 25px 25px 0;
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.search-form .search-submit:hover {
    background: var(--am-primary-hover);
}

.search-menu-mobile {
    display: none;
    gap: 15px;
    font-size: 20px;
    color: #333333;
    cursor: pointer;
}

/*--------------------------------------------------------------
# 5. Main Navigation Bar
--------------------------------------------------------------*/
.main-navigation {
    background: var(--am-nav-bg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.main-navigation ul {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    list-style: none;
    overflow-x: auto;
}
.main-navigation ul li {
    position: relative;
    white-space: nowrap;
}
.main-navigation ul li a {
    display: block;
    padding: 13px 18px;
    color: var(--am-nav-text);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item a,
.main-navigation ul li.active a {
    color: var(--am-primary);
    border-bottom-color: var(--am-primary);
}
.main-navigation ul li a i {
    margin-right: 5px;
}

/* Submenu / Dropdown */
.main-navigation ul li ul.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #ffffff;
    min-width: 180px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    padding: 8px 0;
    z-index: 999;
}
.main-navigation ul li:hover > ul.sub-menu {
    display: block;
}
.main-navigation ul li ul.sub-menu li a {
    color: #333333;
    padding: 8px 16px;
    border-bottom: none;
}
.main-navigation ul li ul.sub-menu li a:hover {
    background: #f5f5f5;
    color: var(--am-primary);
}

/*--------------------------------------------------------------
# 6. Main Content Area & Layout
--------------------------------------------------------------*/
.site-content {
    max-width: 1350px;
    margin: 20px auto;
    background: var(--am-wrapper-bg);
    padding: 25px 25px 50px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    min-height: 800px;
}

/* Section Title & More button */
.widget-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f2f2f2;
    padding-bottom: 8px;
    margin-bottom: 16px;
}
.widget-title {
    font-size: 18px;
    font-weight: bold;
    color: #222222;
    display: flex;
    align-items: center;
    gap: 6px;
}
.more-videos-btn {
    background: #eeeeee;
    color: #555555;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    transition: 0.2s;
}
.more-videos-btn:hover {
    background: var(--am-primary);
    color: #ffffff;
}

/* Filter Bar */
.filters {
    display: flex;
    gap: 25px;
    border-bottom: 1px solid #eeeeee;
    padding-bottom: 10px;
    margin: 25px 0 18px;
}
.filters-list {
    display: flex;
    gap: 25px;
}
.filters a {
    font-size: 14px;
    font-weight: bold;
    color: #666666;
    padding-bottom: 10px;
    position: relative;
    cursor: pointer;
    transition: color 0.2s;
}
.filters a:hover,
.filters a.active {
    color: var(--am-primary);
}
.filters a.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--am-primary);
}

/*--------------------------------------------------------------
# 7. Video Grid & Cards
--------------------------------------------------------------*/
.videos-list {
    display: grid;
    grid-template-columns: repeat(var(--am-grid-columns, 4), 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.thumb-block {
    background: var(--am-card-bg);
    position: relative;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.post-thumbnail {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
    overflow: hidden;
    border-radius: 4px;
}
.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.thumb-block:hover .post-thumbnail img {
    transform: scale(1.05);
}

/* Hover Video Trailer */
.hover-trailer-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    z-index: 5;
    background: #000;
}

/* Badges */
span.duration {
    position: absolute;
    bottom: 5px;
    left: 5px;
    background: var(--am-duration-bg);
    color: var(--am-duration-text);
    font-size: 11px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 6;
}
span.hd-video {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--am-hd-bg);
    color: var(--am-hd-text);
    font-size: 10px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 3px;
    z-index: 6;
}

.entry-header {
    padding: 8px 2px 4px;
}
.thumb-block .title {
    font-size: 13.5px;
    font-weight: bold;
    color: var(--am-card-title);
    line-height: 1.35;
    height: 38px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 6px;
    transition: color 0.2s;
}
.thumb-block:hover .title {
    color: var(--am-card-title-hover);
}

.under-thumb {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--am-card-meta);
}
.under-thumb .views i {
    margin-right: 3px;
}
.under-thumb .rating {
    color: var(--am-rating-color);
    font-weight: 500;
}
.under-thumb .rating i {
    margin-right: 3px;
}

/* In-feed Ad Card */
.infeed-ad-card {
    background: #f9f9f9;
    border: 1px dashed #d0d0d0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 15px;
    font-size: 12px;
    color: #888;
}

/*--------------------------------------------------------------
# 8. Single Video Watch Page (single.php)
--------------------------------------------------------------*/
.video-player-area {
    margin-bottom: 25px;
}
.responsive-player {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}
.responsive-player video,
.responsive-player iframe,
.responsive-player .am-iframe-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}
.responsive-player video {
    background: #000;
    object-fit: contain;
}

/* 1. Loading Spinner */
.am-player-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 35;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.am-player-loader.is-loading {
    display: flex;
}
.am-spinner-ring {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ff3565;
    border-radius: 50%;
    animation: amSpin 0.75s linear infinite;
    box-shadow: 0 0 20px rgba(255, 53, 101, 0.45);
}
.am-loader-text {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
    background: rgba(0, 0, 0, 0.6);
    padding: 3px 12px;
    border-radius: 12px;
}
@keyframes amSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 2. Big Center Play Button Overlay */
.am-player-big-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 30;
    width: 76px;
    height: 76px;
    background: rgba(18, 18, 18, 0.82);
    border: 2.5px solid #ff3565;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 53, 101, 0.4);
    transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.2s ease, opacity 0.25s ease, box-shadow 0.2s ease;
}
.am-player-big-btn:hover {
    transform: translate(-50%, -50%) scale(1.14);
    background: #ff3565;
    box-shadow: 0 6px 26px rgba(0, 0, 0, 0.9), 0 0 28px rgba(255, 53, 101, 0.7);
}
.am-player-big-btn:active {
    transform: translate(-50%, -50%) scale(0.95);
}
.am-player-big-btn svg {
    width: 32px;
    height: 32px;
    margin-left: 4px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}
.am-player-big-btn.is-hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

/* 3. Flash Feedback Ripple */
.am-player-flash {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 40;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
}
.am-player-flash.animate-flash {
    animation: amFlashFeedback 0.45s ease-out forwards;
}
.am-player-flash svg {
    width: 30px;
    height: 30px;
}
@keyframes amFlashFeedback {
    0% {
        opacity: 0.95;
        transform: translate(-50%, -50%) scale(0.7);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.4);
    }
}

/* Under Player Ad Banner */
.happy-under-player {
    background: #f7f7f7;
    border: 1px dashed #cccccc;
    padding: 18px;
    text-align: center;
    margin: 15px 0;
    border-radius: 4px;
    font-size: 13px;
    color: #777777;
}

/* Video Infos & Big Download Button */
.video-infos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eeeeee;
    flex-wrap: wrap;
    gap: 15px;
}
.video-infos .title-views h1 {
    font-size: 20px;
    font-weight: bold;
    color: #222222;
}
.video-infos .views {
    color: #777777;
    font-size: 13px;
    margin-top: 4px;
}

.tracking-btn .button {
    background: var(--am-primary);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(255, 53, 101, 0.3);
    transition: background 0.2s;
}
.tracking-btn .button:hover {
    background: var(--am-primary-hover);
}

/* Reaction & Social Share Bar */
.video-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f0f0f0;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 15px 0;
    flex-wrap: wrap;
    gap: 10px;
}
.post-like {
    display: flex;
    align-items: center;
    gap: 10px;
}
.post-like .vote-btn {
    background: #ffffff;
    border: 1px solid #dddddd;
    padding: 7px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}
.post-like .vote-btn.like:hover { border-color: #689f38; color: #689f38; }
.post-like .vote-btn.dislike:hover { border-color: #ff3565; color: #ff3565; }

.share-buttons {
    display: flex;
    gap: 8px;
}
.share-buttons .btn-share {
    padding: 7px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.btn-share.whatsapp { background: #25D366; }
.btn-share.telegram { background: #0088cc; }
.btn-share.copy { background: #555555; }

/* Tags Pills */
.video-tags {
    margin: 15px 0;
}
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tags-list .label {
    background: #f0f0f0;
    color: #444444;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: 0.2s;
}
.tags-list .label:hover {
    background: var(--am-primary);
    color: #ffffff;
}

/* Video Description */
.video-description {
    background: #fafafa;
    border-left: 3px solid var(--am-primary);
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 4px 4px 0;
    font-size: 13.5px;
    color: #555555;
    line-height: 1.6;
}

/* Comments */
#comments {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid #eeeeee;
}
.comment-reply-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    margin-bottom: 12px;
    outline: none;
}
.comment-form textarea {
    min-height: 100px;
}
.comment-form .submit {
    background: var(--am-primary);
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

/*--------------------------------------------------------------
# 9. Numbered Pagination
--------------------------------------------------------------*/
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 30px 0;
}
.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    background: #eeeeee;
    color: #333333;
    font-weight: bold;
    border-radius: 4px;
    transition: 0.2s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--am-primary);
    color: #ffffff;
}

/*--------------------------------------------------------------
# 10. Footer & Floating Elements
--------------------------------------------------------------*/
.site-footer {
    background: var(--am-footer-bg);
    color: var(--am-footer-text);
    padding: 40px 20px;
    font-size: 13px;
    border-top: 3px solid var(--am-primary);
    text-align: center;
}
.footer-row {
    max-width: 1350px;
    margin: 0 auto;
}
.footer-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}
.footer-categories a {
    color: #ffffff;
    transition: 0.2s;
}
.footer-categories a:hover {
    color: var(--am-primary);
}
.footer-disclaimer {
    max-width: 800px;
    margin: 0 auto 15px;
    line-height: 1.6;
    color: #777777;
}

/* Toast Message */
.am-toast {
    position: fixed;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.88);
    color: #ffffff;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 999999;
}
.am-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Back to Top */
#am-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 25px;
    width: 42px;
    height: 42px;
    background: var(--am-primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 9999;
}
#am-back-to-top.show {
    opacity: 1;
}

/* Sticky Mobile Ad Banner */
.sticky-mobile-banner {
    display: none;
}
@media (max-width: 768px) {
    .sticky-mobile-banner {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #111;
        text-align: center;
        padding: 5px 0;
        z-index: 99990;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.5);
    }
}

/*--------------------------------------------------------------
# 11. Responsive Breakpoints
--------------------------------------------------------------*/
@media (max-width: 1100px) {
    .videos-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .videos-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .header-search {
        display: none;
    }
    .header-search.active {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 10px 15px;
        background: var(--am-header-bg);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        z-index: 100;
    }
    .search-menu-mobile {
        display: flex;
    }
    .main-navigation.toggled {
        display: block;
    }
    .site-content {
        padding: 15px 12px 30px;
    }
}
