/* #!SECTION: FONT FAMILY */
@import url('https://fonts.googleapis.com/css2?family=Commissioner:wght@100..900&family=Varela&display=swap');

/* #!SECTION: RESET AND BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #E3FC02;
    --secondary-color: #B8D002;
    --accent-color: #ff6b6b;
    --success-color: #4ecdc4;
    --warning-color: #ffa726;
    --error-color: #ef5350;

    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --bg-tertiary: #1a1a1a;
    --text-dark: #000000;

    --card-bg: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.05);

    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-muted: #777777;

    --border-color: rgba(255, 255, 255, 0.05);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* #!SECTION: BODY */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    outline: none;
    padding: 2px;
}

a:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    text-decoration: underline;
    padding: 2px;
    border-radius: 6px;
}

/*
a:visited {
    outline: none;
    text-decoration: none;
    padding: 2px;
} */

/* #!SECTION: HEADER */
.main-header {
    background-color: var(--bg-secondary);
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 50;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 60;
}

.nav-logo a {
    background: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition);
    font-family: 'Commissioner', sans-serif;
}

.nav-logo a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 70;
}

.nav-links a {
    background: none;
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 1.5rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0.1);
    touch-action: manipulation;
}

.nav-links a:hover {
    color: var(--secondary-color);
    background: none;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--bg-tertiary);
}

.mobile-menu-toggle:active {
    transform: scale(0.95);
}

/* #!SECTION: FOOTER */
.main-footer {
    background-color: var(--bg-secondary);
    padding: 3rem 2rem 0; /* Add padding top, remove bottom for the sub-footer */
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.footer-column h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-column p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.4rem 0;
    display: block;
    transition: var(--transition);
}

.footer-links li a:hover {
    background: none;
    border-left: 5px solid var(--primary-color);
    padding-left: 0.5rem;
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* #!SECTION: MAIN CONTENT */
.page-content {
    max-width: 1400px; /* Matches the header max-width */
    margin: 0rem auto; /* Vertical spacing and horizontal centering */
    padding: 0 2rem;   /* Horizontal padding to prevent content from touching edges */
}

/* This rule is duplicated below, combining for clarity */
.profile-header p {
   margin: 0;
   color: var(--text-secondary);
}

.profile-actions a {
   text-decoration: none;
   background-color: var(--primary-color);
   color: var(--text-primary);
   padding: 10px 20px;
   border-radius: 5px;
   font-weight: bold;
   transition: background-color 0.3s;
}

.profile-actions a:hover {
   background-color: var(--secondary-color);
}
/**
.video-gallery {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
   gap: 1.5rem;
}

.video-card {
   background-color: var(--bg-tertiary);
   border: 1px solid var(--border-color);
   border-radius: 8px;
   overflow: hidden;
}

.video-card video {
   width: 100%;
   height: auto;
   display: block;
}

.video-info {
   padding: 1rem;
}

.video-info h3 {
   margin: 0 0 0.5rem 0;
   color: var(--text-primary);
}

.video-info p {
   margin: 0;
   color: var(--text-secondary);
   font-size: 0.9rem;
}

.no-videos {
   text-align: center;
   padding: 3rem;
   color: var(--text-secondary);
}
   */

/* #!SECTION: BUTTONS */
.join-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-primary);
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    margin-top: 1rem;
    border: none;
    cursor: pointer;
}

.join-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* #!SECTION: INFO SECTIONS (INDEX PAGE) */
.info-section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-section:last-of-type {
    border-bottom: none;
}

.info-section h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.info-section p {
    max-width: 800px;
    margin: 0 auto 1rem auto;
    text-align: center;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* #!SECTION: VIDEO HIGHLIGHTS (INDEX PAGE) */
.video-highlights-section {
    padding: 4rem 0;
}

.video-highlights-section h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 2rem;
}

.highlight-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    justify-content: center;
    width: 100%;
    overflow-x: hidden;
}

.highlight-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.highlight-video-wrapper {
    position: relative;
    /* 9:16 aspect ratio for short-form video */
    padding-top: 177.77%;
    background-color: var(--bg-primary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.highlight-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.highlight-caption {
    padding: 1rem;
}

.highlight-caption h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.highlight-caption .video-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.video-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.video-meta .uploader {
    color: var(--primary-color);
    font-weight: 500;
}

.video-meta .upload-date,
.video-meta .view-count,
.video-meta .like-count {
    color: var(--text-secondary);
}

/* Video Overlay */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.highlight-video-wrapper:hover .video-overlay {
    opacity: 1;
}

.watch-full-btn {
    background: var(--primary-color);
    color: var(--text-dark);
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.watch-full-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* Video Title Links */
.video-title-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.video-title-link:hover {
    color: var(--primary-color);
}

/* Video Actions */
.video-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.view-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-color);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.view-video-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

/* Username Links */
.username-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.username-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.video-meta .username-link {
    font-weight: 600;
}

.social-links-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.social-links-list li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    display: inline-block; /* Allow links to sit side-by-side */
    transition: var(--transition);
}

.social-links-list li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.social-links-list li {
    display: inline-block; /* Arrange list items horizontally */
    margin: 0 1rem;
}

.animate-on-scroll {
    opacity: 0;
    transform: perspective(1000px) rotateX(-30deg);
    transition: opacity 1s ease, transform 1s ease;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: perspective(1000px) rotateX(0);
}

/* #!SECTION: FAN COUNTER (INDEX PAGE) */
.fan-counter-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: calc(100vh);
    padding: 2rem;
    background: radial-gradient(circle, var(--bg-tertiary) 0%, var(--bg-primary) 70%);
}

.fan-counter-container h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.fan-count {
    font-size: clamp(4rem, 10vw, 6rem); /* Responsive font size */
    font-weight: 900;
    color: var(--primary-color);
    line-height: 1;
    text-shadow: 0 0 15px rgba(227, 252, 2, 0.3);
    animation: glow 5s infinite;
}

/* #!SECTION: ANIMATIONS */
@keyframes glow {
  0%, 100% {
    text-shadow: 0 0 15px rgba(227, 252, 2, 0.3),
                 0 0 25px rgba(227, 252, 2, 0.2);
  }
  50% {
    text-shadow: 0 0 30px rgba(227, 252, 2, 0.6),
                 0 0 40px rgba(227, 252, 2, 0.4);
  }
}

/* #!SECTION: FORMS (LOGIN/REGISTER) */
.form-container {
    background-color: var(--bg-secondary);
    padding: 2rem 3rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    max-width: 1050px;
    margin: 2rem auto;
    box-shadow: var(--shadow-md);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.form-container input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 1rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-container textarea:focus, input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(227, 252, 2, 0.2);
}

.form-button {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--primary-color);
    color: var(--bg-primary);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.form-button:hover {
    background-color: var(--secondary-color);
}

.form-switch {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.form-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.error-box {
    background-color: rgba(239, 83, 80, 0.1);
    border: 1px solid var(--error-color);
    color: var(--error-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.success-box {
    background-color: rgba(78, 205, 196, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

/* #!SECTION: PROFILE PAGE */
.profile-container {
   width: 90%;
   max-width: 1200px;
   margin: 2rem auto;
   padding: 2rem;
   background-color: var(--bg-secondary);
   border-radius: 8px;
}

.profile-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.profile-header h2 {
    margin: 0;
    color: var(--text-primary);
}

.profile-header p {
    margin: 0;
}

.membership-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    margin-left: 10px;
    vertical-align: middle; /* Aligns the badge nicely with the text */
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Profile URL Section */
.profile-url-section {
    margin: 1rem 0;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.profile-url-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.url-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-width: 70px;
}

.url-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.profile-url {
    background: var(--bg-tertiary);
    color: var(--primary-color);
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    flex: 1;
    word-break: break-all;
}

.copy-url-btn {
    background: var(--primary-color);
    color: var(--text-dark);
    border: none;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.copy-url-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-1px);
}

.profile-handle-display {
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.handle-text {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(227, 252, 2, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
}


/* #!SECTION: UPLOAD FORM */
.form-container textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 1rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit; /* Ensures textarea uses the same font as other inputs */
    resize: none;
    min-height: 400px;
    outline: none;
}

.form-container label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    text-align: left;
    font-weight: 500;
}

.form-container input[type="file"] {
    padding: 10px;
}

/* Custom File Upload Styling */
.file-upload-wrapper {
    margin-bottom: 1rem;
}

.file-upload-wrapper input[type="file"] {
    /* Hide the default file input */
    width: 0.1px;
    height: 0.1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    z-index: -1;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    background-color: var(--bg-tertiary);
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

/* Enhanced homepage layout styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    background: rgba(0,0,0,0.6);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 255, 0, 0.3);
}

.stat-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

/* Activity Feed */
.activity-feed {
    background: rgba(0,0,0,0.6);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--primary-color);
    margin: 20px 0;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background: rgba(0,0,0,0.4);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    transition: transform 0.2s ease;
}

.activity-item:hover {
    transform: translateX(10px);
}

.activity-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: var(--primary-color);
}

.activity-content {
    flex: 1;
}

.activity-text {
    color: #fff;
    margin: 0;
}

.activity-time {
    color: #aaa;
    font-size: 0.9rem;
}

/* Social Media Banner */
.social-banner {
    background: linear-gradient(135deg, rgba(0,0,0,0.9), rgba(0,30,0,0.8));
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    margin: 30px 0;
    border: 2px solid var(--primary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.6);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    line-height: 1;
}

.social-link i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-style: normal;
    line-height: 1;
    text-align: center;
}

.social-link:hover {
    background: var(--primary-color);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.6);
}

.glow-register-btn {
    background: var(--primary-color);
    color: #000;
    border: none;
    padding: 15px 35px;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin-top: 25px;
    transition: all 0.3s ease;
    box-shadow:
    0 0 20px rgba(227, 252, 2, 0.4),
    0 0 20px rgba(0, 255, 0, 0.2),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.glow-register-btn span {
    position: relative;
    z-index: 10;
    display: inline-block;
    transition: all 0.3s ease;
}

.glow-register-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
    0 0 30px rgba(227, 252, 2, 0.4),
    0 0 10px rgba(0, 255, 0, 0.4),
    0 5px 20px rgba(0, 0, 0, 0.3),
    inset 0 0 30px rgba(255, 255, 255, 0.2);
    background: var(--primary-color);
}

.glow-register-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.glow-register-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 100%
    );
    transition: left 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform: skewX(-20deg);
    z-index: 1;
}

.glow-register-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -200%;
    width: 30%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(227, 252, 2, 0.4) 30%,
        rgba(227, 252, 2, 0.8) 50%,
        rgba(227, 252, 2, 0.4) 70%,
        transparent 100%
    );
    transition: left 1s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform: skewX(-25deg);
    z-index: 2;
    filter: blur(1px);
}

.glow-register-btn:hover::before {
    left: 150%;
}

.glow-register-btn:hover::after {
    left: 200%;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .main-header {
        position: relative;
        z-index: 100;
    }

    .main-nav {
        position: relative;
        z-index: 101;
    }

    .nav-links {
        position: relative;
        z-index: 102;
    }

    .page-content {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        position: relative;
        z-index: 5;
    }

    .video-highlights-section {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 20px 0;
    }

    .stat-card {
        padding: 20px;
        margin: 0 10px;
    }

    .social-links {
        gap: 15px;
    }

    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .activity-feed {
        margin: 15px 10px;
        padding: 20px;
    }

    .activity-item {
        padding: 12px;
        margin: 8px 0;
    }

    .social-banner {
        margin: 20px 10px;
        padding: 25px 15px;
    }
}

/* High-DPI Mobile Devices (430px @ 3x scale - iPhone 14 Pro Max, etc.) */
@media (max-width: 430px) and (-webkit-min-device-pixel-ratio: 2.5) {
    .page-content {
        padding: 0 15px;
    }

    .fan-counter-container {
        padding: 1.5rem 15px;
        min-height: 70vh;
    }

    .fan-counter-container h2 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .fan-count {
        font-size: 3.5rem;
        margin: 15px 0;
    }

    .glow-register-btn {
        padding: 12px 25px;
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .stats-grid {
        gap: 12px;
        margin: 15px 0;
    }

    .stat-card {
        padding: 15px;
        margin: 0 5px;
    }

    .stat-card .number {
        font-size: 2rem;
    }

    .stat-card h3 {
        font-size: 1.2rem;
    }

    .activity-feed {
        margin: 10px 5px;
        padding: 15px;
    }

    .activity-item {
        padding: 10px;
        margin: 6px 0;
        border-radius: 8px;
    }

    .activity-icon {
        font-size: 1.3rem;
        margin-right: 12px;
    }

    .info-section {
        padding: 2rem 0;
    }

    .info-section h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .info-section p {
        font-size: 0.95rem;
        padding: 0 10px;
        line-height: 1.6;
    }

    .social-banner {
        margin: 15px 5px;
        padding: 20px 10px;
    }

    .social-banner h2 {
        font-size: 1.5rem;
    }

    .social-links {
        gap: 12px;
        margin-top: 20px;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    /* Video highlights responsive */
    .highlight-gallery {
        grid-template-columns: 1fr !important;
        gap: 15px;
        padding: 0 10px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        overflow-x: hidden;
    }

    .highlight-card {
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .highlight-video-wrapper {
        padding-top: 140%; /* Slightly less tall for mobile */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .highlight-caption {
        padding: 12px;
    }

    .highlight-caption h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .video-description {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .video-meta {
        font-size: 0.75rem;
        gap: 0.2rem;
    }

    .view-video-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    /* Footer adjustments */
    .main-footer {
        padding: 2rem 15px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-column h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .footer-links {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .fan-count {
        font-size: 3rem;
    }

    .glow-register-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}


/* #!SECTION: RESPONSIVE DESIGN */

/* Mobile overflow prevention */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .page-content {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .video-highlights-section {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .main-header {
        padding: 1rem;
        position: sticky;
        top: 0;
        z-index: 100;
        background-color: var(--bg-secondary);
    }

    .main-nav {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        padding: 0;
        position: relative;
    }

    .nav-logo {
        flex: 1;
    }

    .nav-logo a {
        font-size: 1.25rem;
    }

    /* Show hamburger menu on mobile */
    .mobile-menu-toggle {
        display: flex;
        order: 2;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        padding: 1rem;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
        z-index: 99;
        margin-top: 1rem;
    }

    /* Show nav when active */
    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 0;
        padding: 0.875rem 1rem;
        text-align: center;
        background: var(--bg-tertiary);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-primary);
        text-decoration: none;
        font-weight: 500;
        transition: var(--transition);
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
        touch-action: manipulation;
        min-height: 48px;
        line-height: 1.4;
        font-size: 15px;
        border: 1px solid var(--border-color);
        width: 100%;
    }

    .nav-links a:hover,
    .nav-links a:focus,
    .nav-links a:active {
        background: var(--bg-primary);
        color: var(--primary-color);
        transform: translateY(-2px);
        box-shadow: 0 2px 8px rgba(227, 252, 2, 0.3);
        border-color: var(--primary-color);
    }

    /* Video Highlights Mobile Override - Enhanced with Z-Index Fix */
    .video-highlights-section .highlight-gallery,
    .highlight-gallery {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        box-sizing: border-box !important;
        position: relative !important;
        z-index: 10 !important;
    }

    .video-highlights-section .highlight-video-wrapper,
    .highlight-video-wrapper {
        /* Adjust aspect ratio for mobile - slightly less tall */
        padding-top: 150% !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        position: relative !important;
        display: block !important;
        overflow: hidden !important;
        z-index: 20 !important;
        background: var(--bg-primary) !important;
    }

    .video-highlights-section .highlight-card,
    .highlight-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        display: block !important;
        margin: 0 !important;
        position: relative !important;
        z-index: 15 !important;
        background: var(--bg-secondary) !important;
    }

    .video-highlights-section .highlight-video-wrapper video,
    .highlight-video-wrapper video {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
        z-index: 25 !important;
        background: #000 !important;
    }

    .video-highlights-section {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 2rem 0 !important;
        position: relative !important;
        z-index: 5 !important;
    }

    /* Force visibility on mobile */
    .highlight-gallery,
    .highlight-card,
    .highlight-video-wrapper,
    .highlight-video-wrapper video {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }

    /* Mobile video debug - ensure nothing covers videos */
    .highlight-video-wrapper video {
        pointer-events: auto !important;
        transform: translateZ(0) !important; /* Force hardware acceleration */
        -webkit-transform: translateZ(0) !important;
    }

    /* Prevent any overlays from hiding videos on mobile */
    .video-overlay {
        pointer-events: none !important;
        z-index: 30 !important;
    }

    .video-overlay:hover {
        pointer-events: auto !important;
    }

    .highlight-card {
        max-width: 100%;
        margin: 0 auto;
    }

    /* Video overlay adjustments for mobile */
    .video-overlay {
        background: rgba(0, 0, 0, 0.8);
        opacity: 0.9; /* More visible on mobile */
    }

    .watch-full-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    /* Page content spacing */
    .page-content {
        padding: 0 1rem;
    }

    /* Info sections */
    .info-section {
        padding: 2rem 0;
    }

    .info-section p {
        text-align: left;
        padding: 0 1rem;
    }

    /* Fan counter */
    .fan-counter-container {
        min-height: 80vh;
        padding: 1.5rem 1rem;
    }

    /* Profile page */
    .profile-container {
        width: 95%;
        padding: 1rem;
        margin: 1rem auto;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .profile-url-display {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .url-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .profile-url {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    /* Forms */
    .form-container {
        padding: 1.5rem;
        margin: 1rem;
    }

    .form-container textarea {
        min-height: 250px;
    }
}

.file-upload-label {
    text-align: center;
}

.file-upload-label:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--bg-secondary);
}

.file-upload-icon {
    font-size: 1.5rem;
    margin-right: 10px;
}

.file-upload-text {
    /* Prevent long filenames from breaking the layout */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-upload-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.75rem;
}

/* Progress Bar Styling */
.progress-container {
    width: 100%;
    background-color: var(--bg-tertiary);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    position: relative;
    height: 30px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-bar {
    background-color: var(--success-color);
    height: 100%;
    width: 0;
    border-radius: 8px;
    transition: width 0.2s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
}

.progress-text {
    z-index: 2;
    color: var(--text-primary);
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.progress-details {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* #!SECTION: UPDATES PAGE */
.updates-container {
    max-width: 800px;
    margin: 0 auto;
}

.updates-main-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--primary-color);
    margin-bottom: 2.5rem;
}

.update-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.update-header {
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.update-title {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin: 0;
}

.update-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.update-content {
    color: var(--text-secondary);
    line-height: 1.7;
}

.no-updates {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

/* High-DPI Mobile Devices (430px @ 3x scale - iPhone 14 Pro Max, etc.) */
@media (max-width: 430px) and (-webkit-min-device-pixel-ratio: 2.5) {
    /* Navigation optimizations */
    .main-nav {
        padding: 0.75rem;
    }

    .nav-logo a {
        font-size: 1.4rem;
        padding: 0.5rem 0;
    }

    .nav-links a {
        padding: 0.6rem;
        font-size: 0.9rem;
        display: block;
        background: var(--bg-tertiary);
        color: var(--text-primary);
        text-decoration: none;
        border-radius: 8px;
        text-align: center;
        cursor: pointer;
        user-select: none;
        -webkit-tap-highlight-color: rgba(0,0,0,0.1);
        touch-action: manipulation;
        min-height: 44px;
        line-height: 1.4;
        position: relative;
        z-index: 10;
        transition: var(--transition);
    }

    .nav-links a:hover,
    .nav-links a:focus,
    .nav-links a:active {
        background: var(--bg-secondary);
        color: var(--primary-color);
        transform: translateY(-1px);
        box-shadow: 0 2px 6px rgba(0, 255, 0, 0.2);
    }

    /* Video gallery optimizations - 430px Enhanced with Z-Index */
    .video-highlights-section .highlight-gallery,
    .highlight-gallery {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        padding: 0 0.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        box-sizing: border-box !important;
        position: relative !important;
        z-index: 10 !important;
    }

    .video-highlights-section .highlight-video-wrapper,
    .highlight-video-wrapper {
        padding-top: 140% !important; /* Better aspect ratio for narrow screens */
        border-radius: 12px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        position: relative !important;
        display: block !important;
        overflow: hidden !important;
        z-index: 20 !important;
        background: var(--bg-primary) !important;
    }

    .video-highlights-section .highlight-card,
    .highlight-card {
        margin: 0 !important;
        box-shadow: var(--shadow-sm);
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        display: block !important;
        position: relative !important;
        z-index: 15 !important;
        background: var(--bg-secondary) !important;
    }

    .video-highlights-section .highlight-video-wrapper video,
    .highlight-video-wrapper video {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
        z-index: 25 !important;
        background: #000 !important;
    }

    /* Force visibility on 430px devices */
    .highlight-gallery,
    .highlight-card,
    .highlight-video-wrapper,
    .highlight-video-wrapper video {
        opacity: 1 !important;
        visibility: visible !important;
        z-index: auto !important;
    }

    .highlight-caption {
        padding: 1rem;
    }

    .highlight-caption h3 {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }

    .video-description {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }

    .video-meta {
        font-size: 0.75rem;
        gap: 0.3rem;
        flex-wrap: wrap;
    }

    .username-link, .upload-date, .view-count, .like-count {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .view-video-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        margin-top: 0.75rem;
    }

    /* Video overlay for touch devices */
    .video-overlay {
        opacity: 0.95;
        background: rgba(0, 0, 0, 0.85);
    }

    .watch-full-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        border-radius: 6px;
    }

    /* Page content adjustments */
    .page-content {
        padding: 0 0.75rem;
    }

    /* Fan counter container */
    .fan-counter-container {
        padding: 1.25rem 0.75rem;
        min-height: 75vh;
    }

    .fan-counter-container h2 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .fan-counter-container p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    /* Info sections */
    .info-section {
        padding: 1.5rem 0;
    }

    .info-section h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .info-section p {
        font-size: 0.9rem;
        line-height: 1.6;
        padding: 0 0.5rem;
    }

    /* Profile page adjustments */
    .profile-container {
        width: 98%;
        padding: 0.75rem;
        margin: 0.5rem auto;
    }

    .profile-header {
        gap: 0.75rem;
    }

    .profile-url-display {
        gap: 0.5rem;
    }

    .url-container {
        gap: 0.4rem;
    }

    .profile-url {
        font-size: 0.75rem;
        padding: 0.4rem;
        word-break: break-all;
    }

    .copy-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
        min-width: 60px;
    }

    /* Form adjustments */
    .form-container {
        padding: 1rem;
        margin: 0.5rem;
    }

    .form-group {
        margin-bottom: 1rem;
    }

    .form-input, .form-textarea, .form-select {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 0.75rem;
    }

    .form-container textarea {
        min-height: 200px;
    }

    /* Button adjustments */
    .btn, .btn-primary, .btn-secondary {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        min-height: 44px; /* Touch target size */
    }

    /* Footer adjustments */
    .main-footer {
        padding: 1.5rem 0.75rem 0;
    }

    .footer-content {
        gap: 1.25rem;
    }

    .footer-column h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .footer-links li a {
        font-size: 0.85rem;
        padding: 0.25rem 0;
    }

    /* Progress bar for uploads */
    .progress-container {
        height: 25px;
        margin-bottom: 0.75rem;
    }

    .progress-text {
        font-size: 0.8rem;
    }

    .progress-details {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
}

/* Extra narrow devices */
@media (max-width: 360px) {
    .highlight-gallery {
        padding: 0 0.25rem;
    }

    .highlight-caption {
        padding: 0.75rem;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    .profile-url {
        font-size: 0.7rem;
    }

    .copy-btn {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

@media (max-width: 900px) {
    .contacts-sidebar {
        display: none;
        position: absolute;
        top: 0;
        left: 0;
        height: 100vh;
        width: 80vw;
        max-width: 320px;
        background: var(--bg-secondary);
        box-shadow: var(--shadow-md);
        z-index: 100;
    }
}