/* Theme Name: BadFans 
Theme URI: https://badfans.net
Author: BadFans
Author URI: https://badfans.net
Description: badfans is a Video Tube theme for WordPress where user can watch Latest Indian Web Series for Free.
Version: 2.0.0
Requires at least: 5.0
Tested up to: 5.0
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

*/

:root {
    --text: #ffffff;
    --text2: #aaaaaa;
    --text3: #9ab2d0;
    --bg: #17202e;
    --bg2: #111827;
    --bg3: #000;
    --hover: #e91e63;
    --active: #ff003c;
    --btn: #293348;
    --link: #00b4ff;
    --link2: #3085ff;
    --border: #374151;
}


/* ===========================
   RESET & BASE STYLES
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.5s ease;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text2);
    background-color: var(--bg2);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--link);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--hover);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text);
    line-height: 1.3;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 {
    font-size: 1.5rem;
}

h2 {
    font-size: 1.3rem;
}

h3 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

ul,
ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

button {
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: inherit;
    color: var(--text);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ===========================
   HEADER & NAVIGATION
   =========================== */

.site-header {
    background-color: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.main-nav {
    width: 100%;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: .3rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.site-branding {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.site-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    margin: 0;
    line-height: 1;
}

.site-title:hover {
    color: var(--hover);
}

.site-description {
    font-size: 0.875rem;
    color: var(--text3);
    margin: 0;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    align-items: center;
    flex: 1;
}

.primary-menu li {
    margin: 0;
}

.primary-menu a {
    color: var(--text3);
    font-weight: 500;
    padding: .5rem 1rem;
    display: block;
    white-space: nowrap;
}

.primary-menu a:hover {
    color: var(--hover);
}

.primary-menu .current-menu-item a,
.primary-menu .current_page_item a {
    color: var(--active);
}

.menu-toggle {
    display: none;
    width: auto;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: var(--bg2);
    border-radius: 4px;
    color: var(--text);
    border: 1px solid var(--border);
}

.upload-btn {
    min-width: 40px;
    height: 40px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg2);
    color: var(--text);
    border: 1px solid var(--border);
}

.menu-toggle:hover,
.upload-btn:hover {
    background: var(--hover);
    color: var(--text);
}


/* Modern Hamburger Menu Icon */

.hamburger-box {
    width: 24px;
    height: 18px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -1px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 24px;
    height: 1.3px;
    background-color: currentColor;
    border-radius: 2px;
    position: absolute;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}


/* Transform to X when active */

.menu-toggle.active .hamburger-inner {
    transform: rotate(45deg);
}

.menu-toggle.active .hamburger-inner::before {
    top: 0;
    transform: rotate(90deg);
}

.menu-toggle.active .hamburger-inner::after {
    bottom: 0;
    opacity: 0;
}

.header-search {
    flex: 0 1 300px;
}

.header-search:focus-within {
    flex: 100%;
}

.search-form {
    position: relative;
}

.search-field {
    width: 100%;
    padding: 0.6rem 2.5rem 0.6rem 1rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.95rem;
}

.search-field:focus {
    outline: none;
    border-color: var(--hover);
}

.search-field::placeholder {
    color: var(--text3);
}

.search-submit {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 1rem;
    background: transparent;
    color: var(--text3);
    transition: color 0.2s ease;
}

.search-submit:hover {
    color: var(--hover);
}


/* ===========================
   MAIN CONTENT
   =========================== */

.site-main {
    min-height: 60vh;
}

.content-wrapper {
    max-width: 1800px;
    margin: 0 auto;
    padding: 1rem;
}

.box-layout {
    max-width: 1100px;
    margin: auto;
}

.page-header {
    text-align: center;
    margin-bottom: .5rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--border);
}

.page-title {
    font-size: 1.7rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.page-description {
    font-size: 1.125rem;
    color: var(--text2);
    margin: 0;
}

.archive-description {
    font-size: 1rem;
    color: var(--text2);
    max-width: 800px;
    margin: 0.5rem auto 0;
}


/* ===========================
   DYNAMIC TAXONOMY MENU
   =========================== */

.taxonomy-menu-wrapper {
    margin-bottom: .5rem;
}

.taxonomy-menu-title {
    font-size: 1.5rem;
    color: var(--text);
    margin: 0;
}

.taxonomy-menu-scroll {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--bg);
}

.taxonomy-menu-scroll::-webkit-scrollbar {
    height: 6px;
}

.taxonomy-menu-scroll::-webkit-scrollbar-track {
    background: var(--bg);
    border-radius: 3px;
}

.taxonomy-menu-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.taxonomy-menu-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--hover);
}

.taxonomy-menu {
    display: flex;
    gap: 0.5rem;
    padding-bottom: .5rem;
}

.taxonomy-menu-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 8px;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.taxonomy-menu-item:hover {
    background: var(--btn);
    border-color: var(--hover);
    transform: translateY(-2px);
}

.taxonomy-menu-item.active {
    background: var(--active);
    border-color: var(--active);
    color: var(--text);
}

.taxonomy-menu-item .term-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.taxonomy-menu-item .term-count {
    font-size: 0.75rem;
    color: var(--text);
    background: #00000069;
    padding: 0.125rem 0.5rem;
    border-radius: 10px;
}

.taxonomy-menu-item.active .term-count {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text);
}


/* ===========================
   VIDEO GRID
   =========================== */

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .8rem;
    margin-bottom: 1rem;
}

.video-grid.is-masonry {
    grid-auto-rows: 4px;
    grid-auto-flow: dense;
}

.video-grid.is-masonry .video-card {
    grid-row-end: span 1;
    align-self: start;
}

.video-card {
    display: block;
    width: 100%;
    margin: 0;
    background: var(--bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid var(--border);
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.video-thumbnail {
    position: relative;
    overflow: hidden;
    background: var(--bg3);
}

.video-card-link {
    position: relative;
    display: block;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: top;
    transition: transform 0.3s ease;
    display: block;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.video-title-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 0.65rem 0.75rem;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.55) 65%, rgba(0, 0, 0, 0));
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.22s ease, transform 0.22s ease;
    pointer-events: none;
}

.video-card:hover .video-title-overlay,
.video-card:focus-within .video-title-overlay {
    opacity: 1;
    transform: translateY(0);
}

.thumbnail-fallback {
    width: 100%;
    min-height: 170px;
    position: relative;
    background: linear-gradient(to top right, transparent calc(50% - 1px), var(--border) calc(50% - 1px), var(--border) calc(50% + 1px), transparent calc(50% + 1px)), linear-gradient(to top left, transparent calc(50% - 1px), var(--border) calc(50% - 1px), var(--border) calc(50% + 1px), transparent calc(50% + 1px)), var(--bg2);
}

.video-card:hover .thumbnail-fallback {
    background: linear-gradient(to top right, transparent calc(50% - 1px), var(--muted) calc(50% - 1px), var(--muted) calc(50% + 1px), transparent calc(50% + 1px)), linear-gradient(to top left, transparent calc(50% - 1px), var(--muted) calc(50% - 1px), var(--muted) calc(50% + 1px), transparent calc(50% + 1px)), var(--bg3);
}

.entry-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: var(--text3);
    margin-bottom: 0.75rem;
}

h1.entry-title {
    margin-bottom: 5px;
}

.entry-meta svg {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.25rem;
}

.entry-meta time,
.views-count,
.entry-meta .category,
.entry-meta .author,
.entry-meta .video-duration {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.vlist-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 12px;
    color: #fff;
    background: #0000004a;
    backdrop-filter: blur(100px);
    padding: 2px 10px;
    border-radius: 5px;
}

.vlist-btn svg {
    width: 16px;
    height: 16px;
}

.entry-excerpt {
    font-size: 0.9rem;
    color: var(--text3);
    line-height: 1.5;
}

.watched {
    position: relative;
    overflow: hidden;
}


/* ===========================
   BREADCRUMBS
   =========================== */

.breadcrumbs {
    margin: 1rem 0;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    font-size: 0.875rem;
    align-items: center;
    overflow-x: scroll;
    scrollbar-width: none;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text3);
}

.breadcrumb-list li:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--text3);
    border-radius: 50%;
    opacity: 0.5;
}

.breadcrumb-list li a {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text3);
    transition: color 0.2s ease;
}

.breadcrumb-list li a:hover {
    color: var(--hover);
}

.breadcrumb-list li a svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.breadcrumb-list li a:hover svg {
    opacity: 1;
}

.breadcrumb-list li:last-child {
    color: var(--text);
    font-weight: 500;
}

.breadcrumb-list li span {
    white-space: nowrap;
}


/* Video Info Section */

.xplayer-play-overlay-btn,
.xplayer-progress-tooltip {
    background: var(--btn);
}

.xplayer-progress-played,
.xplayer-volume-fill {
    background: var(--active);
}

.xplayer-progress-played::after {
    background: var(--active);
    box-shadow: 0 0 0 3px #ff003c42;
}

.video-info {
    padding: 1rem 0;
}

.video-info-single {
    padding: 0 0 1rem 0;
}

.video-info .entry-header {
    margin-bottom: .5rem;
}

.video-info .entry-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.video-info .entry-meta {
    margin-bottom: 0;
}


/* Video Actions */

.video-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--btn);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    justify-content: center;
}

.action-btn svg {
    flex-shrink: 0;
}

.likes-btn svg {
    transition: all 0.3s ease;
}

.likes-btn.liked {
    background: var(--active);
    border-color: var(--active);
    color: var(--text);
}

.likes-btn.liked:hover {
    background: var(--active);
    opacity: 0.9;
}

.likes-btn:active {
    transform: scale(0.95);
}

.likes-counter {
    font-weight: 600;
    min-width: 2ch;
    text-align: left;
}

.action-btn:hover {
    background: var(--hover);
    border-color: var(--hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.action-btn:active {
    transform: translateY(0);
}


/* Video Player */

.video-player {
    margin-bottom: 1rem;
    width: 100%;
}

.video-player-single {
    margin-bottom: .5rem;
    width: 100%;
}

.video-player-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: .75rem;
    align-items: start;
}

.video-player-main {
    min-width: 0;
}

.video-comments-slot {
    width: 100%;
    min-height: 250px;
    border-radius: 8px;
    background: var(--bg2);
    position: relative;
    overflow: hidden;
}

.video-comments-slot {
    border: 1px solid var(--border);
}

.video-sidebar-ad,
.video-comments-panel-wrap {
    height: 100%;
}

.video-sidebar-ad {
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px dashed var(--border);
    border-radius: 8px;
    margin: 0.3rem;
    color: var(--text3);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

.video-comments-panel-wrap {
    height: 100%;
}

@media (min-width: 769px) {
    .video-comments-slot {
        --comments-pop-origin-x: 85%;
        --comments-pop-origin-y: 82%;
    }
    .video-sidebar-ad,
    .video-comments-panel-wrap {
        position: absolute;
        inset: 0;
        transition: opacity 260ms ease, transform 280ms cubic-bezier(0.2, 0.75, 0.2, 1);
        will-change: opacity, transform;
    }
    .video-sidebar-ad {
        display: flex;
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }
    .video-comments-panel-wrap {
        display: block;
        opacity: 0;
        transform: scale(0.92);
        transform-origin: var(--comments-pop-origin-x) var(--comments-pop-origin-y);
        pointer-events: none;
    }
    .video-comments-slot.is-showing-ads .video-sidebar-ad {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }
    .video-comments-slot.is-showing-ads .video-comments-panel-wrap {
        opacity: 0;
        transform: scale(0.92);
        pointer-events: none;
    }
    .video-comments-slot.is-showing-comments .video-sidebar-ad {
        opacity: 0;
        transform: scale(0.98);
        pointer-events: none;
    }
    .video-comments-slot.is-showing-comments .video-comments-panel-wrap {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }
}

@media (max-width: 768px) {
    body.comments-overlay-open {
        overflow: hidden;
    }
    .video-sidebar-ad {
        display: none !important;
    }
    .video-comments-slot {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 10000;
        background: rgba(0, 0, 0, 0.45);
        border: 0;
        border-radius: 0;
        min-height: 0;
    }
    .video-comments-slot.is-mobile-comments-open {
        display: block;
    }
    .video-comments-panel-wrap {
        position: absolute;
        inset: 0;
        display: block !important;
        height: 100dvh;
        background: var(--bg2);
        opacity: 0;
        transform: scale(0.92);
        transform-origin: var(--comments-pop-origin-x, 85%) var(--comments-pop-origin-y, 90%);
        transition: opacity 260ms ease, transform 280ms cubic-bezier(0.2, 0.75, 0.2, 1);
        pointer-events: none;
    }
    .video-comments-slot.is-mobile-comments-open .video-comments-panel-wrap {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }
    .bmaal-comments-panel {
        min-height: 100%;
        max-height: none;
        height: 100%;
    }
    .bmaal-comments-close-btn {
        display: inline-flex !important;
    }
}

.bmaal-comments-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: none;
    height: 100%;
}

.bmaal-comments-head {
    padding: 0.35rem 0.4rem 0.45rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.bmaal-comments-identity {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    min-width: 0;
}

.bmaal-current-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text2);
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#bmaal_comment_name {
    display: none;
    width: 128px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--bg);
    color: var(--text);
    padding: 0rem 0.38rem;
    font: inherit;
    font-size: 0.75rem;
    outline: 0;
}

.bmaal-comments-panel.is-editing-name #bmaal_comment_name {
    display: block;
}

.bmaal-comments-panel.is-editing-name .bmaal-current-name {
    display: none;
}

.bmaal-name-edit-btn .icon-save {
    display: none;
}

.bmaal-comments-panel.is-editing-name .bmaal-name-edit-btn .icon-edit {
    display: none;
}

.bmaal-comments-panel.is-editing-name .bmaal-name-edit-btn .icon-save {
    display: block;
}

.bmaal-comments-meta svg {
    width: 18px;
    height: 18px;
}

.bmaal-comments-meta {
    display: inline-flex;
    gap: 0.22rem;
    color: var(--text3);
    font-size: 0.72rem;
    line-height: 1;
    align-items: center;
}

.bmaal-comments-close-btn {
    display: none;
    width: 20px;
    height: 20px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg);
    color: var(--text3);
    align-items: center;
    justify-content: center;
    padding: 0;
    margin-left: 0.18rem;
    cursor: pointer;
}

.bmaal-comments-close-btn:hover {
    color: var(--text);
    border-color: var(--hover);
}

.bmaal-comments-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--bg);
}

.bmaal-comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.bmaal-comment-item {
    margin: 0;
}

ol.children {
    list-style: none;
    margin-left: 0.65rem;
    padding-left: 0.8rem;
    margin-top: 0.15rem;
    margin-bottom: 0;
}

ol.children>.bmaal-comment-item {
    position: relative;
    margin-bottom: 0.35rem;
}

ol.children>.bmaal-comment-item::before {
    content: "";
    position: absolute;
    left: -0.7rem;
    top: -0.5rem;
    bottom: -0.2rem;
    width: 1px;
    background: var(--border);
    opacity: 0.9;
}

ol.children>.bmaal-comment-item::after {
    content: "";
    position: absolute;
    left: -0.7rem;
    top: 0.82rem;
    width: 0.65rem;
    height: 0.65rem;
    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-bottom-left-radius: 10px;
    opacity: 0.9;
}

ol.children>.bmaal-comment-item:last-child::before {
    bottom: auto;
    height: 1.45rem;
}

.bmaal-comment-body {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.38rem 0.48rem;
    position: relative;
}

.bmaal-comment-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.2rem;
}

.bmaal-comment-author {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
}

.bmaal-comment-time {
    font-size: 0.7rem;
    color: var(--text3);
}

.bmaal-comment-text {
    font-size: 0.8rem;
    line-height: 1.32;
}

.bmaal-comment-text p {
    margin: 0;
}

.bmaal-comment-actions {
    position: absolute;
    right: 0;
    bottom: 0px;
}

.bmaal-comment-reply a:hover {
    background: var(--bg2);
    color: var(--text);
}

.bmaal-comment-reply a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    color: var(--link);
    border-radius: 100%;
}

.bmaal-comment-reply a svg {
    width: 15px;
    height: 15px;
}

.bmaal-comment-form-wrap {
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.bmaal-comment-form {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "comment submit";
    gap: 0.24rem;
    align-items: end;
    padding: 5px;
}

.bmaal-name-edit-btn {
    width: 20px;
    height: 20px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg);
    color: var(--text3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.bmaal-name-edit-btn svg,
.bmaal-comments-close-btn svg {
    width: 13px;
    height: 13px;
}

.bmaal-name-edit-btn:hover {
    color: var(--text);
    border-color: var(--hover);
}

.bmaal-comment-name-field,
.bmaal-comment-textarea-field {
    margin: 0;
}

.bmaal-comment-form-wrap #respond,
.bmaal-comment-form-wrap .comment-respond {
    margin: 0;
    padding: 0;
}

.comment-reply-title {
    display: none;
    margin: 0 !important;
    font-size: 13px;
    padding: 0 !important;
    min-height: 0;
    line-height: 0;
}

.comment-reply-title:has(#cancel-comment-reply-link:not([style*="display:none"]):not([style*="display: none"])) {
    display: flex;
    padding: 4px 0 !important;
    line-height: 1.2;
    justify-content: space-between;
}

#cancel-comment-reply-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text2);
    text-decoration: none;
}

a#cancel-comment-reply-link:hover {
    background: var(--hover);
    color: var(--text);
}

#cancel-comment-reply-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--border);
    text-decoration: none;
}

.bmaal-comment-name-field input,
.bmaal-comment-textarea-field textarea {
    width: 100%;
    border: 0;
    border-radius: 99px;
    background: var(--bg);
    color: var(--text);
    padding: 0.38rem 1rem;
    font: inherit;
    font-size: 0.8rem;
    outline: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--bg);
}

.bmaal-comment-textarea-field {
    grid-area: comment;
    display: flex;
}

.bmaal-comment-textarea-field textarea {
    resize: none;
    height: 35px;
}

.bmaal-comment-form .form-submit {
    grid-area: submit;
    margin: 0;
    display: flex;
    align-items: flex-end;
}

.bmaal-comment-submit {
    border: 1px solid var(--border);
    border-radius: 99px;
    background: var(--btn);
    color: var(--text);
    width: 35px;
    min-width: 35px;
    height: 35px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.bmaal-comment-submit svg {
    width: 16px;
    height: 16px;
}

.bmaal-comment-submit:hover {
    background: var(--hover);
    border-color: var(--hover);
}

.bmaal-no-comments {
    font-size: 0.78rem;
    color: var(--text3);
    margin: 0;
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg3);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* Fallback for browsers without aspect-ratio support */

@supports not (aspect-ratio: 16 / 9) {
    .video-container {
        padding-bottom: 56.25%;
        height: 0;
    }
    .video-container video {
        position: absolute;
        top: 0;
        left: 0;
    }
}

.video-container video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    aspect-ratio: 16 / 9;
}


/* Featured Image Fallback */

.featured-image {
    margin-bottom: .5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}


/* Single post gallery: horizontal scroll strip */

.single-post figure.wp-block-gallery.has-nested-images {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.4rem;
    margin-top: 10px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.single-post figure.wp-block-gallery.has-nested-images .wp-block-image {
    flex: 0 0 auto;
    width: auto !important;
    margin: 0 !important;
    scroll-snap-align: start;
}

.single-post figure.wp-block-gallery.has-nested-images .wp-block-image img {
    display: block;
    width: auto;
    height: var(--gallery-landscape-height) !important;
    max-width: none;
    border-radius: 6px;
    object-fit: cover;
}

.single-post {
    --gallery-landscape-width: 240px;
    --gallery-landscape-height: 145px;
    --gallery-portrait-height: 190px;
    --gallery-portrait-min-width: 120px;
    --gallery-portrait-max-width: 150px;
    --gallery-square-size: 165px;
}

.single-post figure.wp-block-gallery.has-nested-images .wp-block-image.is-landscape img {
    width: auto;
    height: var(--gallery-landscape-height) !important;
    max-width: var(--gallery-landscape-width);
}

.single-post figure.wp-block-gallery.has-nested-images .wp-block-image.is-portrait img {
    height: var(--gallery-portrait-height) !important;
    width: auto;
    min-width: var(--gallery-portrait-min-width);
    max-width: var(--gallery-portrait-max-width);
}

.single-post figure.wp-block-gallery.has-nested-images .wp-block-image.is-square img {
    width: var(--gallery-square-size);
    height: var(--gallery-square-size) !important;
}

.single-post figure.wp-block-gallery.has-nested-images::-webkit-scrollbar {
    height: 8px;
}

.single-post figure.wp-block-gallery.has-nested-images::-webkit-scrollbar-track {
    background: var(--bg2);
    border-radius: 999px;
}

.single-post figure.wp-block-gallery.has-nested-images::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 999px;
}


/* Video Taxonomies */

.taxonomy-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: .5rem;
}

.taxonomy-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text3);
    font-weight: 600;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.taxonomy-label svg {
    color: var(--text3);
    flex-shrink: 0;
}

.taxonomy-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.375rem;
    background: var(--btn);
    color: var(--text);
    padding: 0.375rem 0.875rem;
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    flex: auto;
}

.taxonomy-link svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.taxonomy-link:hover {
    background: var(--hover);
    color: var(--text);
    border-color: var(--hover);
}

.taxonomy-link:hover svg {
    opacity: 1;
}


/* Duration Badge on Thumbnail */

.video-duration-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgb(0 0 0 / 44%);
    backdrop-filter: blur(10px);
    color: var(--text);
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.entry-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text2);
    margin-bottom: 1rem;
}

.entry-content h2,
.entry-content h3 {
    margin-bottom: 1rem;
}

.entry-content p {
    margin-bottom: 1rem;
}

.entry-content a {
    color: var(--link2);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--hover);
}

.entry-content img {
    border-radius: 4px;
    margin: 2rem 0;
}

.entry-footer {
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

.tags-list {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.tags-list svg {
    color: var(--text3);
}

.tags-list a {
    background: var(--btn);
    color: var(--text2);
    padding: 0.375rem 0.875rem;
    border-radius: 4px;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.tags-list a:hover {
    background: var(--hover);
    color: var(--text);
    border-color: var(--hover);
}


/* ===========================
   POST NAVIGATION
   =========================== */

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 2px solid var(--border);
}

.post-navigation a {
    display: block;
    padding: 1.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.post-navigation a:hover {
    background: var(--btn);
    border-color: var(--hover);
}

.post-navigation .nav-next {
    text-align: right;
}

.nav-subtitle {
    display: block;
    font-size: 0.875rem;
    color: var(--text3);
    margin-bottom: 0.5rem;
}

.nav-title {
    display: block;
    color: var(--text);
    font-weight: 600;
}


/* ===========================
   PAGINATION
   =========================== */

.nav-links {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.ajax-load-more-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0 1rem;
}

.pagination-fallback.is-hidden {
    display: none;
}

.ajax-load-more-status {
    min-height: 1.2rem;
    font-size: 0.85rem;
    color: var(--text3);
}

.pagination .page-numbers {
    flex: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 8px;
    background: var(--bg);
    color: var(--text2);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination .page-numbers svg {
    flex-shrink: 0;
}

.pagination .page-numbers:hover {
    background: var(--btn);
    color: var(--text);
    border-color: var(--hover);
}

.pagination .page-numbers.current {
    background: var(--active);
    color: var(--text);
    border-color: var(--active);
}

.pagination .dots {
    color: var(--text3);
    display: none;
}

.pagination-text {
    display: inline;
}


/* ===========================
   NO RESULTS
   =========================== */

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.no-results h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.no-results p {
    font-size: 1.125rem;
    color: var(--text3);
    margin-bottom: 2rem;
}

.search-suggestions {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 600px;
    text-align: left;
}

.search-suggestions p {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-suggestions li {
    font-size: 0.95rem;
    color: var(--text3);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.search-suggestions li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--active);
    font-weight: bold;
}


/* ===========================
   404 ERROR PAGE
   =========================== */

.error-404 {
    text-align: center;
    padding: 2rem 0;
}

.error-content {
    max-width: 600px;
    margin: 0 auto 4rem;
}

.error-title {
    font-size: 8rem;
    color: var(--active);
    margin-bottom: 0;
    line-height: 1;
}

.error-subtitle {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.125rem;
    color: var(--text3);
    margin-bottom: 2rem;
}

.error-search {
    margin-bottom: 2rem;
}

.error-search h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.error-links {
    margin-top: 2rem;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--active);
    color: var(--text);
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-home:hover {
    background: var(--hover);
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 60, 0.3);
}

.recent-videos {
    margin-top: 3rem;
}

.recent-videos h3 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
}


/* ===========================
   SEARCH RESULTS
   =========================== */

.search-results-count {
    font-size: 1rem;
    color: var(--text3);
    margin-top: 0.5rem;
}

.search-info {
    font-size: 0.875rem;
    color: var(--muted);
    margin-top: 0.25rem;
    font-style: italic;
}


/* ===========================
   FOOTER
   =========================== */

.site-footer {
    background-color: var(--bg);
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.footer-nav {
    padding: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.footer-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    margin: 0;
}

.footer-menu a {
    color: var(--text3);
    font-size: 0.95rem;
}

.footer-menu a:hover {
    color: var(--hover);
}

.footer-info {
    text-align: center;
}

.copyright {
    font-size: 0.9rem;
    color: var(--text2);
    margin-bottom: 0.5rem;
}

.footer-text {
    font-size: 0.875rem;
    color: var(--text2);
}

.footer-text p {
    margin: 0;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.footer-links-column {
    min-width: 0;
}

.footer-links-title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
    margin: 0 0 .8rem 0;
    text-align: center;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li a {
    background: var(--bg2);
    color: var(--text2);
    text-decoration: none;
    font-size: 0.9rem;
    display: block;
    padding: .5rem 1rem;
    transition: color 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
    border-radius: 5px;
}

.footer-links-list li a:hover {
    background: var(--active);
    color: var(--text);
    transform: translateX(2px);
}

.back-to-top {
    text-align: center;
    margin-top: 1.5rem;
}

.back-to-top button {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg2);
    color: var(--text);
    border-radius: 50%;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.back-to-top button:hover {
    background: var(--hover);
    border-color: var(--hover);
    transform: translateY(-2px);
}


/* ===========================
   RESPONSIVE DESIGN
   =========================== */

@media (max-width: 1024px) {}

@media (max-width: 768px) {
    span.action-btn-text {
        display: none;
    }
    .nav-container {
        padding: 0.3rem 0.5rem;
        gap: 0.3rem;
    }
    .taxonomy-menu-title {
        font-size: 1.25rem;
    }
    .taxonomy-menu-item {
        padding: 0.4rem .8rem;
    }
    .taxonomy-menu-item .term-name {
        font-size: 0.875rem;
    }
    .video-container {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
    .action-btn {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
        flex: auto;
    }
    .action-btn svg {
        width: 18px;
        height: 18px;
    }
    .breadcrumbs {
        padding: 0.5rem 0;
    }
    .breadcrumb-list {
        font-size: 0.8rem;
        gap: 0.375rem;
    }
    .primary-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        gap: 0;
        border-top: 1px solid var(--border);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
    .header-search {
        flex: auto;
    }
    .menu-open .primary-menu {
        display: flex;
    }
    .primary-menu li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    .primary-menu li:last-child {
        border-bottom: none;
    }
    .primary-menu a {
        padding: 0.5rem;
    }
    .menu-toggle {
        display: flex;
        padding: 10px;
    }
    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .5rem;
    }
    .content-wrapper {
        padding: .5rem;
    }
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: .5rem;
    }
    .single-post .entry-meta {
        font-size: 0.9rem;
        gap: 1rem;
    }
    .entry-content {
        font-size: 1rem;
    }
    .post-navigation {
        grid-template-columns: 1fr;
    }
    .post-navigation .nav-next {
        text-align: left;
    }
    .error-title {
        font-size: 5rem;
    }
    .bmaal-notification {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
        font-size: 0.875rem;
        padding: 0.875rem 1.25rem;
    }
    .report-modal-content {
        padding: 1rem;
        max-height: 95vh;
    }
    .report-modal-content h2 {
        font-size: 1.25rem;
    }
    .form-actions {
        flex-direction: column;
    }
    .form-actions button {
        width: 100%;
    }
    .pagination-text {
        line-height: 1;
    }
    .pagination .page-numbers {
        padding: 10px;
        min-width: 40px;
    }
    .pagination .page-numbers:not(.prev):not(.next) {
        display: none;
    }
    .pagination .prev,
    .pagination .next {
        flex: auto;
    }
    .page-description {
        font-size: 0.9rem;
    }
    .video-player-single {
        width: auto;
        margin: -8px;
        margin-bottom: 5px;
    }
    .video-player-layout {
        grid-template-columns: 1fr;
        gap: .5rem;
    }
    .video-comments-slot {
        min-height: 90px;
    }
    .bmaal-comments-panel {
        min-height: 0;
        max-height: none;
        height: 100%;
    }
    .single-post figure.wp-block-gallery.has-nested-images .wp-block-image img {
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .single-post {
        --gallery-landscape-width: 190px;
        --gallery-landscape-height: 115px;
        --gallery-portrait-height: 150px;
        --gallery-portrait-min-width: 95px;
        --gallery-portrait-max-width: 120px;
        --gallery-square-size: 125px;
    }
    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .related-videos .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .video-grid.is-masonry .video-card.is-horizontal {
        grid-column: 1 / -1;
    }
    .related-videos .video-grid.is-masonry .video-card.is-horizontal {
        grid-column: 1 / -1;
    }
    .video-container {
        min-height: 100%;
        border-radius: 6px;
    }
    .video-comments-slot {
        min-height: 80px;
    }
    .bmaal-comments-panel {
        min-height: 0;
        max-height: none;
        height: 100%;
    }
}


/* ===========================
   REPORT MODAL
   =========================== */

.report-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.report-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 20%);
    backdrop-filter: blur(15px);
}

.report-modal-content {
    position: relative;
    backdrop-filter: blur(100px);
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.report-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--btn);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-modal-close:hover {
    background: var(--hover);
    border-color: var(--hover);
    transform: rotate(90deg);
}

.report-modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.report-description {
    font-size: 0.95rem;
    color: var(--text3);
    margin-bottom: 1.5rem;
}

.report-form .form-group {
    margin-bottom: 1.25rem;
}

.report-form label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.report-form .required {
    color: var(--active);
}

.report-form select,
.report-form textarea,
.report-form input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    background: #1118273b;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.report-form select:focus,
.report-form textarea:focus,
.report-form input[type="email"]:focus {
    outline: none;
    border-color: var(--link2);
}

.report-form select {
    cursor: pointer;
}

.report-form textarea {
    resize: vertical;
    min-height: 120px;
}

.report-form small {
    display: block;
    font-size: 0.85rem;
    color: var(--text3);
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.form-actions button {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel {
    background: var(--btn);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-cancel:hover {
    background: var(--bg2);
}

.btn-submit {
    background: var(--active);
    color: var(--text);
    border: 1px solid var(--active);
}

.btn-submit:hover {
    background: var(--hover);
    border-color: var(--hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.4);
}

.btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.report-success {
    text-align: center;
    padding: 2rem 1rem;
}

.report-success svg {
    color: #10b981;
    margin: 0 auto 1rem;
}

.report-success h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.report-success p {
    color: var(--text3);
    margin-bottom: 1.5rem;
}

.btn-close-success {
    padding: 0.75rem 2rem;
    background: var(--btn);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close-success:hover {
    background: var(--active);
    border-color: var(--active);
}


/* ===========================
   AGE VERIFICATION MODAL
   =========================== */

.age-verify-content {
    text-align: center;
    padding: 3rem 2.5rem;
}

.age-verify-icon {
    margin-bottom: 1.5rem;
    color: var(--active);
}

.age-verify-icon svg {
    display: inline-block;
}

.age-verify-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.age-verify-content .report-description {
    margin-bottom: 2rem;
}

.age-verify-content .report-description p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.age-verify-content .report-description p:last-child {
    margin-bottom: 0;
}

.age-verify-content .form-actions {
    justify-content: center;
    margin-top: 2rem;
}

.age-verify-content .action-btn {
    min-width: 140px;
}


/* Responsive */

@media (max-width: 640px) {
    .age-verify-content {
        padding: 2rem 1.5rem;
    }
    .age-verify-content h2 {
        font-size: 1.5rem;
    }
    .age-verify-content .report-description p {
        font-size: 0.9375rem;
    }
    .age-verify-content .form-actions {
        flex-direction: column;
    }
    .age-verify-content .action-btn {
        width: 100%;
    }
}


/* ===========================
   NOTIFICATION SYSTEM
   =========================== */

.bmaal-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg);
    color: var(--text);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    max-width: 320px;
}

.bmaal-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.bmaal-notification-success {
    border-left: 4px solid #10b981;
}

.bmaal-notification-error {
    border-left: 4px solid var(--active);
}


/* ===========================
   PERFORMANCE OPTIMIZATIONS
   =========================== */


/* ========================================
   MY FAVORITES PAGE
   ======================================== */

.favorites-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .5rem;
    gap: .5rem;
}

.favorites-info {
    color: var(--muted);
    font-size: 0.9375rem;
}

.favorites-info span {
    color: var(--active);
    font-weight: 600;
    font-size: 1.125rem;
}

.btn-clear-favorites {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: rgba(244, 63, 94, 0.1);
    color: var(--active);
    border: 1px solid rgba(244, 63, 94, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear-favorites:hover {
    background: var(--active);
    color: var(--text);
    border-color: var(--active);
    transform: translateY(-1px);
}

.btn-clear-favorites svg {
    flex-shrink: 0;
}

.favorites-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.favorites-loading svg {
    color: var(--active);
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.favorites-loading p {
    color: var(--muted);
    font-size: 1rem;
}

.favorites-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.favorites-empty svg {
    color: var(--muted);
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.favorites-empty h2 {
    color: var(--text);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.favorites-empty p {
    color: var(--muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.btn-browse {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--active);
    color: var(--text);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-browse:hover {
    background: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}


/* Responsive - Favorites Page */

@media (max-width: 640px) {
    .favorites-header {
        flex-direction: column;
    }
    .btn-clear-favorites {
        width: 100%;
        justify-content: center;
    }
}


/* Tag specific styles */

.taxonomy-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.taxonomy-item:hover {
    background: var(--active);
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.taxonomy-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--bg);
    color: var(--text);
    padding: 0.375rem 0.875rem;
    border-radius: 4px;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    transition: all 0.2s ease;
    justify-content: space-between;
}

.taxonomy-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Taxonomy Grid with Images (Categories/Platforms) */

.taxonomy-grid-with-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: .75rem;
    margin-top: 1rem;
}

.taxonomy-item-card {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.taxonomy-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border-color: var(--active);
}

.taxonomy-card-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg3);
}

.taxonomy-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    object-position: top;
}

.taxonomy-item-card:hover .taxonomy-card-image img {
    transform: scale(1.05);
}

.taxonomy-card-content {
    padding: .5rem 1rem;
    display: flex;
    gap: 0.25rem;
    align-items: center;
    justify-content: space-between;
}

.taxonomy-card-content .taxonomy-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    white-space: normal;
    overflow: visible;
}

.taxonomy-card-content .taxonomy-count {
    font-size: 0.875rem;
    color: var(--text3);
    display: flex;
    gap: 5px;
    align-items: center;
}


/* Responsive */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}


/* Print styles */

@media print {
    .site-header,
    .site-footer,
    .post-navigation,
    .related-videos {
        display: none;
    }
}

.taxo86 {
    color: #FF5722;
}

.taxo1 {
    color: #FFC107;
}

.taxo101 {
    color: #E91E63;
}

.taxo127 {
    color: #2196F3;
}