:root {
    --bg-color: #000000;
    --text-primary: #f5f5f5;
    --text-secondary: #a8a8a8;
    --btn-bg: #363636;
    --btn-hover: #262626;
    --border-color: #262626;
    --accent-color: #0095f6;
    --note-bg: #262626;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    padding-top: 40px;
    line-height: 1.2;
}

.container {
    width: 100%;
    max-width: 935px;
    padding: 0 20px;
    margin-top: 60px;
    /* Space for fixed header */
}

/* App Header Styles */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 2000;
}

.header-left .brand-logo-container {
    width: 100px;
    /* Adjust width to control how much of the logo is shown */
    height: 30px;
    /* Match header icon size roughly */
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.brand-logo-cropped {
    height: 100%;
    width: auto;
    object-fit: cover;
    object-position: left;
    /* Anchors image to left, effectively cropping right side */
}

/* App Header Styles */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 2000;
}

.header-left .brand {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
    cursor: pointer;
    background: linear-gradient(45deg, #fff, #a8a8a8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-center {
    flex: 1;
    max-width: 400px;
    margin: 0 40px;
}

.search-bar {
    background: #262626;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 10px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    width: 100%;
    outline: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.header-icon:hover {
    opacity: 1;
}

.header-user img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.header-center {
    flex: 1;
    max-width: 400px;
    margin: 0 40px;
}

.search-bar {
    background: #262626;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 10px;
}

.search-bar input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 14px;
    width: 100%;
    outline: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.header-icon:hover {
    opacity: 1;
}

.header-user img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

/* Discover Container Adjustments */
.discover-container {
    display: flex;
    width: 100%;
    height: calc(100dvh - 60px);
    margin-top: 60px;
}

/* Header Section */
.profile-header {
    display: flex;
    margin-bottom: 44px;
}

.avatar-section {
    flex-basis: 33%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 30px;
}

.avatar-container {
    position: relative;
    width: 150px;
    height: 150px;
}

.avatar-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.info-top {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.info-top h1 {
    font-size: 20px;
    font-weight: 300;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn {
    background-color: var(--btn-bg);
    color: var(--text-primary);
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

.btn.primary {
    background-color: #0095f6;
    color: white;
}

.btn.primary:hover {
    background-color: #1877f2;
}

.stats {
    display: flex;
    margin-bottom: 20px;
}

.stat-item {
    font-size: 16px;
    margin-right: 40px;
}

.stat-count {
    font-weight: 700;
}

.bio-section {
    font-size: 14px;
}

.full-name {
    font-weight: 700;
    margin-bottom: 4px;
}

/* Highlights */
.highlights-section {
    display: flex;
    gap: 15px;
    margin-bottom: 44px;
    overflow-x: auto;
    padding: 10px 0;
    scrollbar-width: none;
}

.highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 85px;
    cursor: pointer;
}

.highlight-ring {
    width: 77px;
    height: 77px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    padding: 3px;
    margin-bottom: 8px;
}

.highlight-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #121212;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.highlight-title {
    font-size: 12px;
    font-weight: 600;
}

/* Tabs */
.profile-tabs {
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 20px;
}

.tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 15px 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    letter-spacing: 1px;
}

.tab.active {
    color: var(--text-primary);
    border-top: 1px solid var(--text-primary);
    margin-top: -1px;
}

/* Stories Overlay */
.stories-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    background: #1a1a1a;
    z-index: 5000;
    display: none;
    /* Flex when active */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.stories-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    color: white;
    font-size: 24px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
}

.stories-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    cursor: pointer;
    z-index: 5100;
}

.stories-track {
    display: flex;
    align-items: center;
    gap: 40px;
    perspective: 1000px;
    height: 85dvh;
    width: 100%;
    justify-content: center;
}

.story-card {
    position: relative;
    width: 400px;
    height: 710px;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
    opacity: 0.4;
    transform: scale(0.6);
}

.story-card.active {
    opacity: 1;
    transform: scale(1);
    z-index: 10;
}

.story-card img.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Story UI Elements */
.story-header {
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    padding: 0 15px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
}

.story-progress-bar {
    position: absolute;
    top: 8px;
    left: 5px;
    right: 5px;
    display: flex;
    gap: 4px;
    height: 2px;
}

.progress-segment {
    flex: 1;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    height: 100%;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: white;
    width: 0%;
}

.progress-segment.completed .progress-fill {
    width: 100%;
}

.progress-segment.active .progress-fill {
    width: 100%;
    /* JS will animate this if needed, for now simplified */
}

.story-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.story-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.story-username {
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.story-time {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-left: 6px;
}

.story-caption {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    font-size: 24px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    padding: 0 20px;
}

.story-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.story-reply {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 22px;
    background: transparent;
    color: white;
    padding: 0 20px;
    font-size: 14px;
}

.story-reply::placeholder {
    color: white;
}

.story-actions svg {
    cursor: pointer;
    transition: transform 0.2s;
}

.story-actions svg:hover {
    transform: scale(1.1);
}

/* Navigation Controls */
.story-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    opacity: 0.6;
}

.story-nav-btn:hover {
    opacity: 1;
}

.story-prev {
    left: calc(50% - 280px);
}

.story-next {
    right: calc(50% - 280px);
}

@media (max-width: 600px) {
    .story-card {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .story-card.active {
        transform: none;
    }

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

    .stories-track {
        gap: 0;
    }
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-bottom: 60px;
}

.grid-item {
    position: relative;
    aspect-ratio: 1/1;
    cursor: pointer;
    overflow: hidden;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s;
    color: white;
    font-weight: 700;
    font-size: 14px;
    gap: 15px;
}

.grid-item:hover .grid-overlay {
    opacity: 1;
}

.overlay-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Price Badge */
.price-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
    font-weight: 600;
}

@media (max-width: 735px) {
    .profile-header {
        margin-bottom: 24px;
    }

    .avatar-section {
        margin-right: 0;
    }

    .avatar-container {
        width: 77px;
        height: 77px;
    }

    .stat-item {
        margin-right: 20px;
        font-size: 14px;
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #000;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast svg {
    color: #4bb543;
}

/* Cart animation */
@keyframes cart-pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Social Menu Buttons */
.action-item svg {
    transition: transform 0.2s, fill 0.2s;
    cursor: pointer;
}

.action-item:hover svg {
    transform: scale(1.1);
}

.action-item.liked svg {
    fill: #ff3b30;
    stroke: #ff3b30;
}

/* Sidebar E-commerce */
.sidebar {
    width: 280px;
    border-right: 1px solid var(--border-color);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    background: #000;
}

.sidebar-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.contact-info {
    font-size: 14px;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-item:hover {
    color: var(--text-primary);
}

.cart-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.cart-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
    scrollbar-width: none;
}

.cart-list::-webkit-scrollbar {
    display: none;
}

.cart-empty-msg {
    color: var(--text-secondary);
    font-size: 13px;
    font-style: italic;
    text-align: center;
    margin-top: 20px;
}

.cart-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.cart-item-remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
    opacity: 0.6;
}

.cart-item-remove:hover {
    background: rgba(255, 59, 48, 0.1);
    opacity: 1;
}

.cart-item img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-price {
    font-size: 12px;
    color: var(--accent-color);
}

.cart-item-qty {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.cart-qty-control {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.05);
    width: fit-content;
    padding: 4px 8px;
    border-radius: 6px;
}

.cart-qty-control button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.cart-qty-control button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cart-qty-control span {
    font-size: 13px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.cart-footer {
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    font-weight: 700;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background: var(--text-primary);
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.checkout-btn:hover {
    transform: scale(1.02);
    background: #fff;
}


/* Product Spec Card - Rich Overlay */
.spec-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    max-height: 85%;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 32px 24px 24px 24px;
    color: #fff;
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1000;
    overflow-y: auto;
    scrollbar-width: none;
}

.spec-card::-webkit-scrollbar {
    display: none;
}

.spec-card.show {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}

.spec-header {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: center;
    padding-right: 40px;
    /* Space for close button */
}

#spec-img {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.spec-info h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
    color: #fff;
    border: none;
    padding: 0;
}

.spec-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-color);
}

.spec-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    font-size: 13px;
    color: #ffb800;
}

.spec-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin: 20px 0 10px 0;
}

.spec-description {
    font-size: 14px;
    line-height: 1.5;
    color: #e0e0e0;
    margin-bottom: 20px;
}

.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 24px;
    border: none;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spec-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 500;
    display: block;
    margin-bottom: 0;
}

.spec-value {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

.spec-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.spec-tag {
    font-size: 11px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: #fff;
    font-weight: 500;
}

.close-spec {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 1100;
    color: #000;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.close-spec:hover {
    transform: scale(1.1);
    background: #f0f0f0;
}


.player-container {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    position: relative;
}

/* Discovery Page Layout Refinements */
.right-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    z-index: 100;
    margin-bottom: 30px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.rotating-disk {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 8px solid #333;
    animation: rotate-disk 5s linear infinite;
    overflow: hidden;
}

.rotating-disk img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Content Overlay */
.video-content-overlay {
    position: absolute;
    bottom: 20px;
    left: 15px;
    right: 15px;
    color: #fff;
    pointer-events: none;
    z-index: 50;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.author-info strong {
    font-size: 15px;
    font-weight: 700;
}

.verified-badge {
    display: flex;
}

.video-caption {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    pointer-events: auto;
}

.video-music {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
}

.video-music svg {
    animation: rotate-audio 4s linear infinite;
}

@keyframes rotate-audio {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1024px) {
    .sidebar {
        width: 240px;
    }
}

.sidebar-header-mobile {
    display: none;
    /* Hidden on desktop */
}

.interaction-overlay {
    display: none;
    /* Hidden on desktop */
}

.top-control {
    display: none;
    /* Hidden on desktop by default */
}

@media (max-width: 768px) {
    .sidebar {
        display: flex;
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: 85%;
        max-width: 320px;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 3000;
        background: #000;
        border-right: 1px solid #333;
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar-header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .footer-logo.desktop-only {
        display: none;
    }

    .header-center {
        display: none;
    }

    .header-icon {
        cursor: pointer;
    }

    /* Top Floating Controls */
    .top-control {
        position: absolute;
        top: 20px;
        z-index: 100;
        cursor: pointer;
        background: rgba(0, 0, 0, 0.4);
        /* Slight background for visibility */
        padding: 8px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
        backdrop-filter: blur(4px);
    }

    .top-control:hover {
        background: rgba(0, 0, 0, 0.6);
    }

    .left-control {
        left: 16px;
    }

    .right-control {
        right: 16px;
    }

    .top-control {
        display: flex !important;
        /* Show on mobile */
    }

    /* Show desktop right-menu on mobile */
    .right-menu {
        display: flex !important;
        position: absolute;
        right: 12px;
        bottom: 10px;
        /* Lowered significantly */
        flex-direction: column;
        gap: 20px;
        z-index: 100;
    }

    /* Hide the duplicate interaction overlay */
    .interaction-overlay {
        display: none !important;
    }

    /* Force Fullscreen Video */
    .player-container {
        display: block !important;
        align-items: unset !important;
        gap: 0 !important;
    }

    .video-slide .player-container {
        height: 100% !important;
        width: 100% !important;
        max-height: none !important;
        aspect-ratio: unset !important;
    }

    .player-box {
        border-radius: 0 !important;
        width: 100%;
        height: 100%;
    }

    .slide-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
    }

    /* Move overlay content up to make room for bottom nav if any, or just spacing */
    .video-content-overlay {
        bottom: 40px;
        left: 16px;
        width: 70%;
        /* Limit width so it doesn't overlap actions */
    }

    .interaction-overlay {
        position: absolute;
        bottom: 70px;
        right: 12px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        z-index: 10;
    }

    .action-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: transform 0.2s;
    }

    .action-btn:active {
        transform: scale(0.9);
    }

    .action-btn svg {
        filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.8));
        display: block;
    }

    .action-btn span {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
        font-size: 12px;
    }
}

.shop-now-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s, background 0.2s;
}

.shop-now-btn:hover {
    transform: scale(1.02);
    background: #f0f0f0;
}

/* Main Feed Scroll */
.main-feed {
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #000;
}

.video-scroller {
    height: 100%;
    width: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.video-scroller::-webkit-scrollbar {
    display: none;
}

.video-slide {
    height: 100%;
    width: 100%;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Player Container in Slide */
.video-slide .player-container {
    height: 90%;
    max-height: 800px;
    width: auto;
    aspect-ratio: 9/16;
}

/* No changes needed */

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 0;
    }

    .container {
        padding: 0 12px;
        margin-top: 65px;
        /* Clear fixed header with small gap */
    }

    /* [Moved to end of file] */

    .profile-header {
        display: grid;
        grid-template-areas:
            "avatar stats"
            "bio bio"
            "actions actions";
        grid-template-columns: 80px 1fr;
        gap: 12px;
        margin-bottom: 16px;
        /* Reduced bottom margin */
        align-items: center;
    }


    .avatar-section {
        grid-area: avatar;
        flex-basis: auto;
        margin-right: 0;
        justify-content: flex-start;
    }

    .avatar-container {
        width: 80px;
        height: 80px;
    }

    .profile-info {
        display: contents;
        /* Unwrap to grid */
    }

    .info-top {
        display: contents;
        /* Unwrap h1 and buttons */
    }

    .info-top h1 {
        display: none;
        /* Hide simplified handle, usually in app bar */
    }

    /* Mobile specific title (from bio or re-used) */
    .bio-section .full-name {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 4px;
    }

    .stats {
        grid-area: stats;
        margin-bottom: 0;
        justify-content: space-around;
        gap: 10px;
    }

    .stat-item {
        margin-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 13px;
        color: var(--text-primary);
    }

    .stat-count {
        font-size: 16px;
        margin-bottom: 2px;
    }

    .bio-section {
        grid-area: bio;
        margin-top: 0;
    }

    /* Mobile Action Buttons */
    .action-buttons {
        grid-area: actions;
        display: flex !important;
        /* Force show */
        width: 100%;
        gap: 8px;
        margin-top: 10px;
    }



    .btn {
        flex: 1;
        text-align: center;
        background-color: #363636;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        padding: 0;
    }

    .highlights-section {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 10px;
        scrollbar-width: none;
        /* Firefox */
    }

    .highlights-section::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .highlight {
        flex-shrink: 0;
        margin-right: 10px;
        /* Reduced padding/margin */
    }

    /* Fix Tabs for Mobile - Scrollable */
    .profile-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        gap: 20px;
        /* Space between tabs */
        padding: 0 5px;
        scrollbar-width: none;
    }

    .profile-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab {
        flex: 0 0 auto;
        /* Allow natural width */
        padding: 12px 0;
        font-size: 12px;
        white-space: nowrap;
    }
}

/* Spec Card Styles (Universal - Dark Mode) */
.spec-card {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1a1a1c;
    border-radius: 20px 20px 0 0;
    padding: 36px 20px 40px 20px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 2000;
    max-height: 80dvh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: white;
}

.spec-card.show {
    transform: translateY(0);
}

.close-spec {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    z-index: 2010;
}

.spec-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.spec-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    /* Removing gap, using border for separation */
    background: #1a1a1a;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid #333;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #333;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    color: #a8a8a8;
    /* Muted text */
    font-size: 14px;
    font-weight: 500;
}

.spec-value {
    color: #fff;
    /* White text */
    font-size: 14px;
    font-weight: 600;
    text-align: right;
}

/* Ensure title and price in header are white */
.spec-info h3 {
    color: white;
}

.spec-price {
    color: #0095f6;
    font-weight: 600;
}

.shop-now-btn {
    width: 100%;
    background: #0095f6;
    color: white;
    border: none;
    padding: 16px;
    font-weight: 700;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 8px;
}


/* New Visual Elements for Spec Card */

/* Drag Handle */
.spec-handle-bar {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 5px;
    background: #ffffff;
    border-radius: 3px;
    opacity: 0.8;
}

/* Size Selector */
.size-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.size-label {
    color: #a8a8a8;
    font-size: 12px;
    font-weight: 600;
}

.size-options {
    display: flex;
    gap: 10px;
}

.size-btn {
    flex: 1;
    height: 40px;
    border: 1px solid #333;
    background: transparent;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.size-btn:hover {
    border-color: #666;
}

.size-btn.selected {
    background: white;
    color: black;
    border-color: white;
}

/* Hide Overlay when Spec Card is Open */
.video-content-overlay {
    transition: opacity 0.2s, visibility 0.2s;
}

.video-content-overlay.hidden {
    opacity: 0 !important;
    visibility: hidden;
}