* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #000000;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---------------- Overlay & Verification ---------------- */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    padding: 16px;
    overflow-y: auto;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Pornhub Modal Replica */
.modalMTubes.ageDisclaimer {
    background-color: #000000;
    max-width: 750px;
    width: 100%;
    text-align: center;
    padding: 40px 30px;
    border: 1px solid #1f1f1f;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.9);
    margin: auto;
}

.contentMTubes {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo Styling */
.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    user-select: none;
    font-family: 'Inter', Arial, sans-serif;
}

.logo-text {
    color: #ffffff;
}

.logo-badge {
    background-color: #ff9000;
    color: #000000;
    padding: 2px 10px;
    border-radius: 6px;
    margin-left: 4px;
    font-weight: 900;
}

/* Title */
.heading1 {
    font-size: 26px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

/* Notice Link / Grey Button */
.noticeLink.greyButton {
    background-color: #2b2b2b;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 22px;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.noticeLink.greyButton:hover {
    background-color: #3f3f3f;
}

/* Body Text */
.bodyText {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.6;
    max-width: 680px;
    margin-bottom: 26px;
}

.disclaimerSpan {
    background-color: #000000;
    color: #cccccc;
}

.noticeLawLink {
    color: #ffffff;
    text-decoration: underline;
    font-size: 13px;
    margin-top: 10px;
    display: inline-block;
}

.noticeLawLink:hover {
    color: #ff9000;
}

/* Buttons Section */
.ageDisclaimerButtons {
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
    max-width: 580px;
    margin-top: 10px;
}

.buttonOver18, .buttonUnder18 {
    flex: 1;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 48px;
}

.buttonOver18 {
    background-color: #ff9000;
    color: #000000;
}

.buttonOver18:hover {
    background-color: #ffa526;
    transform: translateY(-1px);
}

.buttonUnder18 {
    background-color: #2b2b2b;
    color: #ffffff;
    border: 1px solid #3d3d3d;
}

.buttonUnder18:hover {
    background-color: #383838;
}

.modal-spacer {
    height: 24px;
}

/* Bottom Text */
.bottomText {
    color: #777777;
    font-size: 12px;
    line-height: 1.6;
}

.bottomText a {
    color: #999999;
    text-decoration: underline;
}

.bottomText a:hover {
    color: #ff9000;
}

.wellness-text {
    margin-top: 10px;
}

/* RTA Disclaimer & Copyright */
.rtaDisclaimerWrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.copyright {
    color: #555555;
    font-size: 12px;
}

/* Language Selector */
.languageWrapper {
    display: inline-block;
    background-color: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 4px;
    padding: 6px 14px;
    cursor: pointer;
    font-size: 13px;
    color: #cccccc;
}

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

.iconSphere {
    font-size: 14px;
}

.dropArrow {
    font-size: 10px;
    color: #888888;
}

/* ---------------- Main Content Layout ---------------- */
.main-content {
    width: 100%;
    background-color: #0e0e0e;
    min-height: 100vh;
    padding-bottom: 60px;
}

.main-content.hidden {
    display: none;
}

/* Navbar */
.navbar {
    background-color: #1b1b1b;
    border-bottom: 1px solid #2a2a2a;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo-nav {
    font-size: 1.8rem;
    margin-bottom: 0;
}

/* Hero Section */
.hero-section {
    max-width: 1280px;
    margin: 25px auto 20px;
    padding: 0 20px;
    text-align: left;
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* Feed Container & Video Grid */
.feed-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 20px;
}

/* Video Card Base */
.video-card {
    background-color: #161616;
    border: 1px solid #262626;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.video-card:hover {
    border-color: #ff9000;
    box-shadow: 0 6px 20px rgba(255, 144, 0, 0.2);
    transform: translateY(-3px);
}

/* Photo Video Card */
.photo-card {
    cursor: pointer;
}

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

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

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

.play-icon {
    background-color: #ff9000;
    color: #000000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(255, 144, 0, 0.7);
}

.hd-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #ff9000;
    color: #000000;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
}

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

.video-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-meta {
    font-size: 0.78rem;
    color: #888888;
}

/* Audio Video Card */
.audio-card {
    background-color: #1c1c1c;
    border: 1px solid #ff9000;
    padding: 16px;
    justify-content: space-between;
}

.audio-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.audio-badge {
    background-color: #ff9000;
    color: #000000;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.audio-time {
    font-size: 0.75rem;
    color: #888888;
    font-weight: bold;
}

.audio-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.3;
}

.audio-player-wrapper {
    background-color: #0a0a0a;
    border: 1px solid #333333;
    border-radius: 6px;
    padding: 4px;
}

.audio-player-wrapper audio {
    width: 100%;
    height: 38px;
    outline: none;
    border-radius: 4px;
}

/* ---------------- Lightbox Overlay ---------------- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    padding: 16px;
    backdrop-filter: blur(10px);
    opacity: 1;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.hidden {
    display: none;
    opacity: 0;
}

.lightbox-content {
    position: relative;
    max-width: 95vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 95vw;
    max-height: 82vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 144, 0, 0.2);
    border: 2px solid #ff9000;
    object-fit: contain;
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: -48px;
    right: 0;
    background-color: #ff9000;
    color: #000000;
    border: none;
    font-size: 26px;
    font-weight: bold;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 144, 0, 0.5);
    line-height: 1;
    z-index: 100001;
}

.lightbox-close:hover {
    background-color: #ffa526;
    transform: scale(1.1);
}

/* ---------------- Mobile Responsive Optimizations ---------------- */

/* Tablets & Small Laptops (<= 900px) */
@media (max-width: 900px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
        gap: 16px;
    }
}

/* Smartphones (<= 600px) */
@media (max-width: 600px) {
    /* Modal Verification */
    .overlay {
        padding: 12px;
    }

    .modalMTubes.ageDisclaimer {
        padding: 24px 16px;
        border-radius: 12px;
    }

    .logo {
        font-size: 2.2rem;
        margin-bottom: 14px;
    }

    .logo-nav {
        font-size: 1.5rem;
    }

    .heading1 {
        font-size: 20px;
        margin-bottom: 14px;
    }

    .noticeLink.greyButton {
        font-size: 12px;
        padding: 6px 14px;
        margin-bottom: 18px;
    }

    .bodyText {
        font-size: 12.5px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .ageDisclaimerButtons {
        flex-direction: column;
        gap: 10px;
        margin-top: 5px;
    }

    .buttonOver18, .buttonUnder18 {
        width: 100%;
        padding: 14px;
        font-size: 15px;
        border-radius: 6px;
    }

    .bottomText {
        font-size: 11px;
    }

    .modal-spacer {
        height: 16px;
    }

    /* Main Page Content */
    .hero-section {
        margin: 18px auto 14px;
        padding: 0 14px;
    }

    .hero-title {
        font-size: 1.35rem;
    }

    .feed-container {
        padding: 0 12px;
    }

    .video-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Voice Notes stretch full width on mobile for optimal listening experience */
    .audio-card {
        grid-column: 1 / -1;
        padding: 14px;
    }

    .audio-title {
        font-size: 0.98rem;
        margin-bottom: 12px;
    }

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

    .video-title {
        font-size: 0.85rem;
    }

    .video-meta {
        font-size: 0.7rem;
    }

    /* Lightbox Mobile Adjustments */
    .lightbox-close {
        top: -42px;
        right: 0;
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .lightbox-content img {
        max-width: 94vw;
        max-height: 75vh;
    }
}

/* Very Small Phones (<= 380px) */
@media (max-width: 380px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
    .logo {
        font-size: 1.8rem;
    }
    .heading1 {
        font-size: 18px;
    }
    .buttonOver18, .buttonUnder18 {
        font-size: 14px;
    }
}
