/*
Theme Name: TWT
Author: TWT
Description: A simple theme for TWT
Version: 2.1.4
Text Domain: twt
*/

:root {
    --bg: #1f252f;
    --bg2: #2a3142;
    --text: #e4e6eb;
    --text2: #b0b3b8;
    --link: #ff1493;
    --hover: #ff1493;
    --border: #3e4451;
}


/* Reset and Base Styles */

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg2);
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
}

.footernav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    background: var(--bg2);
    gap: 2px;
    border-bottom: 2px solid var(--bg2);
}

a.fnlink svg {
    width: 24px;
    height: 24px;
}

a.fnlink {
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: var(--bg);
    align-items: center;
    color: var(---text);
    transition: all 0.3s ease;
}

a.fnlink:hover {
    background: var(--link);
    color: var(--bg2);
}

span.ftext {
    font-size: 12px;
}


/* Typography */

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

h1 {
    font-size: 1.5rem;
}

h2 {
    font-size: 1.2rem;
}

h3 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

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

a:hover,
a:focus {
    color: var(--link);
    text-decoration: underline;
}


/* Header Logo */

a.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

a.logo h1 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text);
}

a.logo svg {
    flex-shrink: 0;
}

/* Mobile: Hide title visually but keep for SEO */
@media (max-width: 768px) {
    a.logo h1 {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border-width: 0;
    }

    a.logo {
        gap: 0;
    }
}


/* Layout */

.site {
    flex: 1;
    min-width: 0;
    display: flex;
    background: var(--bg);
    flex-direction: column;
}

@media screen and (min-width: 1000px) {
    .site {
        height: 100vh;
        overflow-y: scroll;
        scrollbar-width: none;
    }
}

.main-content {
    flex: 1;
}

.has-sidebar .main-content {
    flex: 2;
}


/* Navigation */

.main-navigation {
    position: relative;
}

.menu-toggle {
    display: none;
    background: var(--btn);
    color: var(--text);
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 4px;
    align-items: center;
    gap: 0.5rem;
}

.menu-toggle:hover {
    background: var(--hover);
}

.menu-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.menu-bar {
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
}

.primary-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
}

.primary-menu li {
    position: relative;
}

.primary-menu a {
    color: var(--text);
    padding: 0.5rem 0;
    display: block;
    transition: color 0.3s ease;
}

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


/* Posts */

.posts-container {
    display: grid;
    gap: 3rem;
}

.entry-content {
    padding: 10px;
}

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    margin-bottom: 0.5rem;
}

.entry-title a {
    color: var(--text);
}

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

.entry-meta {
    color: var(--text2);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.entry-meta span {
    margin-right: 1rem;
}

.entry-meta a {
    color: var(--text2);
}

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

.post-thumbnail {
    margin-bottom: 1.5rem;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.entry-footer {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.tags-links {
    color: var(--text2);
    font-size: 0.9rem;
}

.tags-links a {
    color: var(--text2);
    margin-left: 0.5rem;
}

.tags-links a:hover {
    color: var(--hover);
}

.more-link {
    background: var(--btn);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.more-link:hover {
    background: var(--hover);
    text-decoration: none;
}


/* Sidebar */

.sidebar {
    min-width: 300px;
    width: 300px;
    background: var(--bg);
    border-left: 2px solid var(--bg2);
    height: 100vh;
    scrollbar-width: none;
    overflow-y: auto;
    z-index: 9998;
    transform: translateX(0);
    opacity: 1;
    transition: all 0.3s ease;
}

.widget {
    padding: 10px;
    border-bottom: 2px solid var(--bg2);
}

.widget-title {
    color: var(--text);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--hover);
    padding-bottom: 0.5rem;
}

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

.widget li {}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text2);
    display: block;
    transition: background-color 0.2s ease;
    padding: 8px 12px;
    color: var(--text);
    text-decoration: none;
    border-radius: 4px;
}

.widget a:hover {
    color: var(--bg2);
    background: var(--link);
}


/* Footer */

/* Pre-Footer Content Section */

.pre-footer-content {
    background: var(--bg);
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.pre-footer-container {
    max-width: 900px;
    margin: 0 auto;
}

.pre-footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.pre-footer-logo svg {
    width: 32px;
    height: 32px;
}

.pre-footer-logo span {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.pre-footer-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1.25rem 0;
    line-height: 1.2;
}

.pre-footer-text {
    max-width: 800px;
    margin: 0 auto;
}

.pre-footer-text p {
    font-size: 0.95rem;
    color: var(--text2);
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.pre-footer-text p:last-child {
    margin-bottom: 0;
}

/* Responsive Pre-Footer */
@media (max-width: 768px) {
    .pre-footer-content {
        padding: 2rem 1rem;
    }

    .pre-footer-title {
        font-size: 1.75rem;
    }

    .pre-footer-logo span {
        font-size: 1.1rem;
    }

    .pre-footer-logo svg {
        width: 28px;
        height: 28px;
    }

    .pre-footer-text p {
        font-size: 0.9rem;
        margin: 0 0 0.85rem 0;
    }
}


/* Footer Styles */

.site-footer {
    background: var(--bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 1rem;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-left,
.footer-center,
.footer-right {
    display: flex;
    align-items: center;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-logo-wrapper svg {
    flex-shrink: 0;
}

.footer-logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    background: linear-gradient(135deg, var(--hover), var(--link));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-description {
    font-size: 0.85rem;
    color: var(--text2);
    margin: 0.25rem 0 0 0;
    max-width: 300px;
    line-height: 1.4;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-center {
    flex: 1;
    justify-content: center;
}

.footer-menu {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    color: var(--text2);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

/* Mobile Footer Styles */
@media (max-width: 768px) {
    .site-footer {
        padding: 2rem 1rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        align-items: center;
    }

    .footer-left,
    .footer-center,
    .footer-right {
        width: 100%;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .footer-left {
        align-items: center;
    }

    .footer-logo-wrapper {
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    .footer-description {
        text-align: center;
        max-width: 100%;
        margin: 0.5rem 0 0 0;
    }

    .footer-menu {
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
        align-items: center;
    }

    .footer-menu li {
        width: 100%;
    }

    .footer-menu a {
        display: block;
        padding: 0.5rem;
        font-size: 1rem;
    }

    .footer-copyright {
        text-align: center;
        width: 100%;
    }
}



.site-info a {
    color: var(--text2);
}

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


/* Forms */

header.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: var(--bg);
    border-bottom: 2px solid var(--bg2);
    gap: 10px;
}

.header-center {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 5px;
}

a.logo {
    text-decoration: none;
    color: var(---text);
}

a.logo h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    padding-right: 5px;
}

.header-search {
    flex: 1;
}

.search-focused {
    /* Add your focus styles */
    outline: none;
    border: 0;
}

input[type="search"] {
    background: var(--bg2);
    color: var(--text);
    border: none;
    padding: 12px;
    border-radius: 4px;
    width: 100%;
    outline: none;
}


/* Navigation */

.posts-navigation,
.post-navigation {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.nav-previous,
.nav-next {
    flex: 1;
}

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

.nav-links a {
    display: block;
    padding: 1rem;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: var(--hover);
    border-color: var(--hover);
    text-decoration: none;
}


/* Page Headers */

.page-header {
    border-bottom: 2px solid var(--bg2);
}

.page-title {
    margin: 0;
    color: var(--text);
    font-size: 20px;
    font-weight: 400;
    padding: 5px 10px;
}

.dl-description {
    color: var(--text2);
    text-align: center;
    margin: 0.5rem 0 0 0;
    padding: 10px;
    font-size: 20px;
}

.archive-description {
    color: var(--text2);
    margin-top: 1rem;
}


/* Error 404 */

.error-404-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}


/* Accessibility */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.skip-link {
    background: var(--btn);
    color: var(--text);
    padding: 0.5rem 1rem;
    text-decoration: none;
    position: absolute;
    top: -40px;
    left: 6px;
    z-index: 999999;
    border-radius: 0 0 4px 4px;
}

.skip-link:focus {
    top: 6px;
}


/* Twitter Content Styles */

.twt-content-wrapper {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg2);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.twitter-embed-container {
    margin-bottom: 1.5rem;
}

.twitter-embed-container .twitter-tweet {
    margin: 0 auto !important;
}

.twt-video-player {
    position: relative;
    margin-bottom: 1.5rem;
}

.twt-video-player video {
    width: 100%;
    height: auto;
    border-radius: 4px;
    background: var(--bg);
}

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--text);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.twt-social-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text2);
    font-size: 0.9rem;
}

.stat-item.likes .stat-icon {
    color: #e91e63;
}

.stat-item.views .stat-icon {
    color: var(--link);
}

.stat-count {
    font-weight: 600;
    color: var(--text);
}


/* Meta Box Styles for Frontend Display */

.entry-meta .twitter-stats {
    display: inline-flex;
    gap: 1rem;
    margin-left: 1rem;
}

.entry-meta .twitter-stats .stat-item {
    font-size: 0.8rem;
    gap: 0.25rem;
}


/* Authors Horizontal Scroll Section */

.authors-section {
    background: var(--bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    margin-bottom: 1rem;
}

.authors-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 1rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.authors-scroll::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Edge */
}

.author-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.author-item:hover {
    transform: translateY(-3px);
}

.author-avatar {
    width: 85px;
    height: 85px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--hover), var(--link));
    padding: 2px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-item:hover .author-avatar {
    border-color: var(--link);
    box-shadow: 0 0 20px rgba(15, 255, 161, 0.4);
}

.author-avatar img,
.author-avatar .avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: var(--bg2);
    display: block;
}

.author-item .author-name {
    font-size: 12px;
    color: var(--text);
    max-width: 50px;
    text-align: center;
    white-space: nowrap;
    transition: color 0.3s ease;
    display: block;
    overflow: hidden;
}

.author-item:hover .author-name {
    color: var(--link);
}

/* Responsive Authors Section */
@media (max-width: 768px) {
    .author-avatar {
        width: 70px;
        height: 70px;
    }

    .author-item .author-name {
        font-size: 11px;
        max-width: 45px;
    }

    .authors-scroll {
        gap: 1rem;
    }
}


/* All Creators Grid Page */

.creators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 1rem;
}

.creator-card {
    background: var(--bg2);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.creator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(112, 103, 235, 0.3);
    border-color: var(--hover);
}

.creator-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.creator-avatar-large {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid transparent;
    background: linear-gradient(135deg, var(--hover), var(--link));
    padding: 3px;
}

.creator-avatar-large img,
.creator-avatar-large .avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: var(--bg2);
}

.creator-name {
    font-size: 1.2rem;
    color: var(--text);
    margin: 0.5rem 0;
    font-weight: 600;
}

.creator-bio {
    color: var(--text2);
    font-size: 0.9rem;
    margin: 0.5rem 0;
    line-height: 1.5;
}

.creator-stats {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-count {
    color: var(--link);
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsive Creators Grid */
@media (max-width: 768px) {
    .creators-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
        padding: 1rem;
    }

    .creator-card {
        padding: 1.5rem 1rem;
    }

    .creator-avatar-large {
        width: 100px;
        height: 100px;
    }
}





/* Video Player Controls */

.twt-video-player video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.8);
}

.twt-video-player video::-webkit-media-controls-play-button,
.twt-video-player video::-webkit-media-controls-mute-button,
.twt-video-player video::-webkit-media-controls-fullscreen-button {
    filter: invert(1);
}


/* Author info in post meta */

.entry-meta .author-twitter-info {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

.entry-meta .twitter-avatar-small {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    vertical-align: middle;
}

.entry-meta .twitter-username-small {
    color: var(--link);
    font-size: 0.8rem;
}


/* Masonry Grid Layout for Videos */

.videos {
    column-count: 5;
    column-gap: clamp(8px, 1vw, 15px);
    margin: 0 auto;
    padding: 10px;
    border-bottom: 2px solid var(--bg2);
    width: 100%;
    max-width: 100%;
    transition: column-count 0.3s ease;
}

.video {
    display: inline-block;
    width: 100%;
    margin-bottom: clamp(5px, 1vw, 10px);
    break-inside: avoid;
    background: var(--bg2);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 8px var(--shadow);
    position: relative;

    /* Staggered fade-in animation */
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Staggered animation delays for first 30 items */
.video:nth-child(1) {
    animation-delay: 0.05s;
}

.video:nth-child(2) {
    animation-delay: 0.1s;
}

.video:nth-child(3) {
    animation-delay: 0.15s;
}

.video:nth-child(4) {
    animation-delay: 0.2s;
}

.video:nth-child(5) {
    animation-delay: 0.25s;
}

.video:nth-child(6) {
    animation-delay: 0.3s;
}

.video:nth-child(7) {
    animation-delay: 0.35s;
}

.video:nth-child(8) {
    animation-delay: 0.4s;
}

.video:nth-child(9) {
    animation-delay: 0.45s;
}

.video:nth-child(10) {
    animation-delay: 0.5s;
}

.video:nth-child(11) {
    animation-delay: 0.55s;
}

.video:nth-child(12) {
    animation-delay: 0.6s;
}

.video:nth-child(n+13) {
    animation-delay: 0.65s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.video:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(112, 103, 235, 0.4),
        0 0 0 2px var(--hover);
    z-index: 10;
}

.twt-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

/* Gradient overlay on hover */
.twt-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.video:hover .twt-link::before {
    opacity: 1;
}

.video .twt-thumb {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px 12px 0 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    will-change: transform;
}

.video:hover .twt-thumb {
    transform: scale(1.08);
    opacity: 0.95;
}

/* Author Username Badge */
.video-author-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    z-index: 10;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
}

.video-author-badge:hover {
    background: rgba(112, 103, 235, 0.9);
    border-color: var(--hover);
    transform: scale(1.05);
    color: #fff;
}

.video-info {
    position: absolute;
    bottom: 0;
    z-index: 15;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 12px;
    color: var(--text);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    transition: background 0.3s ease, padding 0.3s ease;
}

.video:hover .video-info {
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 12px;
}

.video-info span {
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.video:hover .video-info span {
    transform: scale(1.05);
}

.views::before {
    content: "";
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1'%3E%3Cpath stroke-linecap='round' d='M9 4.46A9.8 9.8 0 0 1 12 4c4.182 0 7.028 2.5 8.725 4.704C21.575 9.81 22 10.361 22 12c0 1.64-.425 2.191-1.275 3.296C19.028 17.5 16.182 20 12 20s-7.028-2.5-8.725-4.704C2.425 14.192 2 13.639 2 12c0-1.64.425-2.191 1.275-3.296A14.5 14.5 0 0 1 5 6.821'/%3E%3Cpath d='M15 12a3 3 0 1 1-6 0a3 3 0 0 1 6 0Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    width: 16px;
    height: 16px;
    font-size: 10px;
}

.likes::before {
    content: "";
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='m12 21.35l-1.45-1.32C5.4 15.36 2 12.27 2 8.5C2 5.41 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.08C13.09 3.81 14.76 3 16.5 3C19.58 3 22 5.41 22 8.5c0 3.77-3.4 6.86-8.55 11.53z'/%3E%3C/svg%3E");
    background-size: contain;
    width: 16px;
    height: 16px;
    font-size: 10px;
}

.video-info .duration::before {
    content: "";
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' fill-rule='evenodd' d='M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12m10-4a1 1 0 1 0-2 0v5a1 1 0 0 0 1 1h5a1 1 0 1 0 0-2h-4z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-size: contain;
    width: 16px;
    height: 16px;
    font-size: 10px;
}

.download::before {
    content: "";
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='m12 16l-5-5l1.4-1.45l2.6 2.6V4h2v8.15l2.6-2.6L17 11zm-6 4q-.825 0-1.412-.587T4 18v-3h2v3h12v-3h2v3q0 .825-.587 1.413T18 20z'/%3E%3C/svg%3E");
    background-size: contain;
    width: 16px;
    height: 16px;
    font-size: 10px;
}

.share::before {
    content: "";
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='m21 12l-7-7v4C7 10 4 15 3 20c2.5-3.5 6-5.1 11-5.1V19z'/%3E%3C/svg%3E");
    background-size: contain;
    width: 16px;
    height: 16px;
    font-size: 10px;
}


/* Responsive Masonry Grid */

@media (max-width: 1200px) {
    .videos {
        column-count: 4;
        column-gap: clamp(8px, 1vw, 12px);
    }
}

@media (max-width: 900px) {
    .videos {
        column-count: 3;
        column-gap: 10px;
    }
}

@media (max-width: 600px) {
    .videos {
        column-count: 2;
        column-gap: 8px;
    }

    .video-modal-content {
        height: auto !important;
    }

    /* Reduce animation delays on mobile */
    .video:nth-child(n+1) {
        animation-delay: 0.1s !important;
    }
}


/* Loading animation for images */

.video .twt-thumb {
    background: linear-gradient(90deg, var(--bg) 25%, var(--bg2) 50%, var(--bg) 75%);
    background-size: 200% 100%;
    animation: loading 2s infinite;
}

.video .twt-thumb[src] {
    background: none;
    animation: none;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}


/* Empty state styling */

.videos:empty::after {
    content: "No videos found";
    display: block;
    text-align: center;
    color: var(--text2);
    font-size: 18px;
    padding: 60px 20px;
    column-span: all;
}


/* Pagination styling */

.posts-navigation {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
}

.posts-navigation .nav-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.posts-navigation a {
    background: var(--btn);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.posts-navigation a:hover {
    background: var(--hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}


/* Quick Play Button */

.quickplay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgb(0 0 0 / 23%);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.quickplay:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.quickplay svg {
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.video {
    position: relative;
}

.video:hover .quickplay {
    opacity: 1;
}


/* Video Modal */

.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 38%);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.video-modal-content {
    position: relative;
    background: var(--bg2);
    border-radius: 12px;
    overflow: hidden;
    max-width: 800px;
    max-height: 90vh;
    width: 100%;
    height: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.video-modal-header {
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #0000004f;
    position: absolute;
    top: 0;
    z-index: 9;
    width: 100%;
    gap: 10px;
}

.video-modal-header h3 {
    margin: 0;
    color: var(--text);
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-modal-nav,
.video-modal-close {
    background: none;
    border: none;
    color: var(--text2);
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
}

.video-modal-nav:hover,
.video-modal-close:hover {
    background: var(--hover);
    color: white;
    transform: scale(1.1);
}

.video-modal-nav:active,
.video-modal-close:active {
    transform: scale(0.95);
}

.video-modal-nav[style*="none"] {
    display: none !important;
}

.video-modal-player {
    position: relative;
    background: black;
    height: 100%;
}

.video-modal-player video {
    width: 100%;
    height: 100%;
    display: block;
    outline: none;
}


/* Hide play button on mobile touch devices initially */

@media (hover: none) and (pointer: coarse) {
    .quickplay {
        opacity: 1;
    }
}


/* Playing state indicator for video queue */

.video.playing {
    transform: scale(0.98);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.4);
    border: 2px solid var(--primary);
    position: relative;
}

.video.playing::after {
    content: "NOW PLAYING";
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    z-index: 2;
    letter-spacing: 0.5px;
}

.video.playing .quickplay {
    background: var(--primary);
    color: white;
}

.video.playing .quickplay svg {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}


/* Pagination Container */

nav.pagination-nav {
    margin: 10px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagenum {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: auto;
    color: var(--text2);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

span.pagination-dots.pagenum {
    display: none;
}

.pagenum:hover {
    color: var(--bg2);
    background: var(--link);
    border-color: var(--link);
    transform: translateY(-2px);
}

.pagination-current {
    color: var(--bg2);
    background: var(--link);
    border: 1px solid var(--link);
    font-weight: 600;
}

@media (max-width: 480px) {

    .pagination-prev,
    .pagination-next {
        display: none;
    }
}


/* Sidebar Toggle Functionality */


/* Toggle button styles */

.menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    color: var(--text);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.menu-toggle svg {
    width: 30px;
    height: 30px;
}

.menu-toggle:hover {
    transform: translateY(-1px);
}

.menu-toggle:active {
    transform: translateY(0);
}

.toggle-icon {
    transition: all 0.3s ease;
    color: currentColor;
    flex-shrink: 0;
    opacity: 1;
    position: relative;
    display: block;
}


/* Menu and Cross icon specific styles */

.menu-icon,
.cross-icon {
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle:hover .menu-icon {
    transform: scale(1.1);
}

.menu-toggle:hover .cross-icon {
    transform: scale(1.1) rotate(90deg);
}

.menu-toggle:active .toggle-icon {
    transform: scale(0.95);
}

.toggle-text {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}


/* Sidebar States */

.sidebar {
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: relative;
    z-index: 100;
}

body.right-sidebar-hidden {
    display: block;
}


/* Desktop Sidebar */

@media (min-width: 769px) {
    .right-sidebar-hidden .sidebar {
        display: none;
    }

    .content-area {
        transition: margin-right 0.3s ease;
    }

    .right-sidebar-hidden .content-area {
        margin-right: 0;
    }
}


/* Mobile Sidebar */

@media (max-width: 768px) {
    .mobile-layout .sidebar {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 280px;
        overflow-y: auto;
        z-index: 9998;
        transform: translateX(0);
        opacity: 1;
        transition: all 0.3s ease;
    }

    .mobile-layout.right-sidebar-hidden .sidebar {
        transform: translateX(100%);
        opacity: 0;
    }

    .mobile-layout:not(.right-sidebar-hidden)::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 9997;
        backdrop-filter: blur(2px);
    }

    .mobile-layout:not(.right-sidebar-hidden) {
        overflow: hidden;
    }
}


/* Header Toggle Button Positioning */

.header-right {
    position: relative;
    z-index: 9999;
}


/* Ensure sidebar content is properly styled */

.sidebar .widget-title {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}


/* Sidebar scrollbar styling */

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: var(--bg2);
}

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

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--hover);
}


/* single post */

.video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
}

.shed {
    display: flex;
    align-items: center;
}

h1.s-title {
    font-size: 18px;
    padding: 5px 10px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 0;
    font-weight: 400;
}

a.twt-icon {
    padding: 8px 10px;
}

a.twt-icon svg {
    width: 24px;
    height: 24px;
}

a.twt-icon svg {
    width: 26px;
    height: 26px;
    color: var(--link);
}

a.twt-icon svg:hover {
    color: #55acee;
}

.s-video {
    aspect-ratio: 16 / 9;
    width: 100%;
    display: block;
    backdrop-filter: blur(100px);
    outline: none;
}

.svideo-info {
    display: flex;
    padding: 0 10px;
    align-items: center;
    border-bottom: 2px solid var(--bg2);
}

.video-meta {
    display: flex;
    flex: 1;
    gap: 5px;
    align-items: center;
}

.video-links {
    display: flex;
    gap: 2px;
}

.video-meta span,
.video-links a {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 300;
    font-size: 14px;
}

a.svbtn {
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
}

a.download.svbtn {
    border-right: 2px solid var(--bg2);
    border-left: 2px solid var(--bg2);
}

a.svbtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.taxonomies {
    padding: 10px;
    border-bottom: 2px solid var(--bg2);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

a.taxonomy-link {
    color: var(--link);
    background: #0fffa10a;
    padding: 5px 10px;
    text-decoration: none;
    font-size: 14px;
    flex: auto;
    text-align: center;
}

a.taxonomy-link:hover {
    background: var(--bg2);
    color: var(--link);
}

.s-author {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid var(--bg2);
}

.s-author-avatar-box {
    display: flex;
}

img.s-author-avatar {
    width: 100px;
}

.saut-btn {
    display: flex;
    gap: 5px;
    align-items: center;
}

a.atbtn {
    color: var(--link);
    background: #0fffa10a;
    padding: 5px 10px;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    font-size: 14px;
}

a.atbtn:hover {
    background: var(--bg2);
    color: var(--link);
}

.s-author-details {
    flex: 1;
}

.s-author-username {
    color: var(--text2);
    font-size: 0.9rem;
    margin: -4px 0 0 0;
    display: block;
    transition: color 0.3s ease;
}

.s-author-username:hover {
    color: var(--link);
}

.s-author-meta {
    color: var(--text2);
    margin-bottom: 5px;
    display: block;
}

.s-author-details h3 {
    margin: 0;
    font-size: 16px;
}


/* ===== Profile Header ===== */

.author-banner {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, #54d0c6, #92e3da);
    background-size: cover;
    background-position: center;
}

.author-banner.has-img {
    background-image: var(--banner);
}

.author-head {
    position: relative;
    padding: 0 16px 16px;
    border-bottom: 2px solid var(--bg2);
}

img.author-avatar {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 128px;
    height: 128px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    background: #eee;
}

.author-actions {
    position: absolute;
    right: 0;
    top: -25px;
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.author-btn {
    padding: 6px 20px;
    border-radius: 999px;
    border: 2px solid transparent;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

/* Hot Pink for Follow button (first button) */
.author-btn:first-child {
    background: #ff1493;
    border-color: #ff1493;
}

.author-btn:first-child:hover {
    background: #ff006e;
    border-color: #ff006e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 20, 147, 0.4);
}

/* Sea Green for Website button (second button) */
.author-btn:last-child {
    background: #20c997;
    border-color: #20c997;
}

.author-btn:last-child:hover {
    background: #17a589;
    border-color: #17a589;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(32, 201, 151, 0.4);
}


/* Name + handle + bio */

.author-meta {
    padding-top: 12px;
}

.author-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-handle {
    margin: 2px 0 8px;
}

.author-bio {
    margin: 8px 0 10px;
    font-size: 15px;
    color: var(--text2);
}


/* Links row */

.author-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: .95rem;
}

.author-links a {
    text-decoration: none;
}

.author-links a:hover {
    text-decoration: underline;
}


/* Stats row */

.author-stats {
    display: flex;
    gap: 18px;
}

.author-stat b {}

.author-stat span {
    margin-left: 6px;
    color: var(--text2);
}


/* ========== Authors Directory ========== */

.authors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    background: var(--bg2);
    border-bottom: 2px solid var(--bg2);
}

.author-loop {
    display: flex;
    text-decoration: none;
    color: var(---text);
    flex: auto;
    width: 300px;
    background: var(--bg);
}

a.author-loop:hover {
    background: var(--bg2);
}

img.author-card-avatar {
    width: 100px;
}

.alof h3 {
    font-size: 16px;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alof {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    padding: 5px 10px;
    position: relative;
    color: unset;
}

.alof:hover {
    text-decoration: none;
    color: var(---text);
}


/* Twitter Icon Hover Effect for Author Avatars */

.thandel {
    position: relative;
    display: inline-block;
    overflow: hidden;
    border-radius: 0;
    transition: all 0.3s ease;
}

.thandel::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23ffffff' d='M5.026 15c6.038 0 9.341-5.003 9.341-9.334q.002-.211-.006-.422A6.7 6.7 0 0 0 16 3.542a6.7 6.7 0 0 1-1.889.518a3.3 3.3 0 0 0 1.447-1.817a6.5 6.5 0 0 1-2.087.793A3.286 3.286 0 0 0 7.875 6.03a9.32 9.32 0 0 1-6.767-3.429a3.29 3.29 0 0 0 1.018 4.382A3.3 3.3 0 0 1 .64 6.575v.045a3.29 3.29 0 0 0 2.632 3.218a3.2 3.2 0 0 1-.865.115a3 3 0 0 1-.614-.057a3.28 3.28 0 0 0 3.067 2.277A6.6 6.6 0 0 1 .78 13.58a6 6 0 0 1-.78-.045A9.34 9.34 0 0 0 5.026 15'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.thandel:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.thandel:hover .author-card-avatar {
    filter: brightness(0.7);
    transform: scale(1.05);
}

.author-card-avatar {
    transition: all 0.3s ease;
    display: block;
}


/* Ensure the overlay works on different author avatar contexts */

.thandel:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 161, 242, 0.2);
    z-index: 1;
    border-radius: inherit;
    transition: all 0.3s ease;
}


/* Additional hover effects for better UX */

.thandel:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* Responsive adjustments */

@media (max-width: 768px) {
    .thandel::after {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .thandel::after {
        width: 18px;
        height: 18px;
    }
}


/* ==========================================================================
   Video Downloader Page Styles
   ========================================================================== */


/* Input Section */

.input-group {
    display: flex;
}

.input-group input[type="url"] {
    flex: 1;
    padding: 10px 20px;
    background: var(--bg2);
    color: var(--text);
    font-size: 16px;
    transition: all 0.3s ease;
    border: 0;
}

.input-group input[type="url"]:focus {
    outline: none;
    border-color: var(--bg2);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.fetch-btn {
    padding: 10px 20px;
    background: var(--btn);
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

.fetch-btn:hover:not(:disabled) {
    background: var(--hover);
}

.fetch-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.spinner {
    width: 20px;
    height: 20px;
    color: currentColor;
}

.input-help {
    color: var(--text2);
    font-size: 14px;
    text-align: center;
}


/* Error Messages */

.error-message {
    background: #ff6b6b;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Video Preview Section */

.video-preview-section {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Video Info Card */

.video-info-card {
    border-bottom: 1px solid var(--bg2);
    padding: 20px;
}

.video-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar-small {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.author-details p {
    margin: 2px 0 0 0;
    font-size: 14px;
    color: var(--text2);
}

.video-stats {
    display: flex;
    gap: 20px;
}

.stat-item.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
}

.logo svg {
    flex-shrink: 0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text2);
    font-size: 14px;
    font-weight: 500;
}

.stat-item svg {
    opacity: 0.8;
}

.video-text {
    color: var(--text);
    line-height: 1.5;
    margin: 0;
    font-size: 15px;
}


/* Video Player */

.video-player-container {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--bg2);
}

.video-player-container video {
    width: 100%;
    height: auto;
    display: block;
    background: var(--bg2);
    aspect-ratio: 16 / 9;
}

.video-duration-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    pointer-events: none;
}


/* Download Options */

.download-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px;
}

.download-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 10px;
}

.download-link {
    display: flex;
    flex-wrap: wrap;
    flex: auto;
    background: var(--btn);
    gap: 10px;
    align-items: center;
    border-radius: 5px;
    color: var(---text);
}

.download-link:hover {
    background: var(--hover);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(---text);
}

.dltico {
    padding: 6px;
    display: flex;
    align-items: center;
    background: #00000061;
}

.dltico svg {
    color: #fff;
}

.download-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quality-label {
    font-weight: 600;
    color: var(--text);
    font-size: 16px;
}

.quality-size {
    font-size: 13px;
    color: var(--text2);
}

.download-link svg {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.download-link:hover svg {
    transform: scale(1.1);
}

.dltico {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.dltico svg {
    color: var(--primary);
    transition: all 0.3s ease;
}

.download-link:hover .dltico svg {
    color: var(--hover);
    transform: scale(1.1);
}

.aloh {
    display: flex;
}

.alof span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 300;
    font-size: 14px;
}

span.alotw {
    color: var(--text2);
}

.alome svg {
    color: var(--text2);
}

.alome {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alome span {
    display: flex;
    gap: 2px;
}

/* Mobile Sidebar Styles */

/* Overlay for mobile sidebar */
.mobile-layout:not(.right-sidebar-hidden)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9997;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.mobile-layout.right-sidebar-hidden::before {
    opacity: 0;
    pointer-events: none;
}

.mobile-layout .sidebar {
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    width: 280px;
    overflow-y: auto;
    z-index: 9998;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

/* Visible state for mobile sidebar */
.mobile-layout:not(.right-sidebar-hidden) .sidebar {
    transform: translateX(0);
    opacity: 1;
}

/* Hidden state for mobile sidebar */
.mobile-layout.right-sidebar-hidden .sidebar {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
}

/* Prevent layout shift on initial load */
body:not(.loaded) .mobile-layout .sidebar {
    transition: none !important;
}

body:not(.loaded) .authors-section {
    opacity: 0;
}

body.loaded .authors-section {
    opacity: 1;
    transition: opacity 0.3s ease;
}