/* assets/css/gallery-hub.css */
/* Modern Artsy/Saatchi Art inspired design with Community Hub foundation */

.khub.gallery-hub {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #222;
}

.gallery-hub h1, .gallery-hub h2, .gallery-hub h3, .gallery-hub h4, .gallery-hub h5 {
    font-family: var(--font-serif, 'Playfair Display', serif);
}

/* Hero Section */
.gallery-hero {
    position: relative;
    padding: 100px 0 80px;
    background-color: #fafafa;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
}

.gallery-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.gallery-hero p.lead {
    font-size: 1.25rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 30px;
}

.gallery-hero .btn-primary {
    background-color: #C9A963;
    border-color: #C9A963;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.gallery-hero .btn-primary:hover {
    background-color: #b59858;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 169, 99, 0.3);
}

/* Section Titles */
.gallery-section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Trending Artworks Grid */
.artworks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.artwork-card {
    position: relative;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.artwork-card:hover {
    opacity: 0.9;
    color: inherit;
}

.artwork-image-wrapper {
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
    margin-bottom: 15px;
    aspect-ratio: 1 / 1;
}

.artwork-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Don't crop art */
    transition: transform 0.5s ease;
}

.artwork-card:hover .artwork-image-wrapper img {
    transform: scale(1.03);
}

.artwork-meta h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.artwork-meta p {
    font-size: 0.9rem;
    color: #777;
    margin: 0;
}

/* Latest Artworks Carousel */
.latest-artworks-controls {
    display: flex;
    gap: 8px;
}

.latest-scroll-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #222;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.latest-scroll-btn:hover {
    border-color: #C9A963;
    background: #C9A963;
    color: #fff;
    transform: translateY(-1px);
}

.latest-artworks-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 2px 2px 18px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #C9A963 #f1f1f1;
}

.latest-artworks-track::-webkit-scrollbar {
    height: 6px;
}

.latest-artworks-track::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.latest-artworks-track::-webkit-scrollbar-thumb {
    background: #C9A963;
    border-radius: 10px;
}

.latest-artworks-track .artwork-card,
.latest-artworks-cta {
    flex: 0 0 calc((100% - 54px) / 4);
    min-width: 0;
    scroll-snap-align: start;
}

.latest-artworks-track .artwork-card {
    padding: 10px;
    border: 1px solid #ece8df;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(33, 28, 19, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.latest-artworks-track .artwork-card:hover {
    opacity: 1;
    transform: translateY(-4px);
    border-color: rgba(201, 169, 99, 0.65);
    box-shadow: 0 12px 28px rgba(33, 28, 19, 0.12);
}

.latest-artworks-track .artwork-image-wrapper {
    margin-bottom: 10px;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
}

.latest-artworks-track .artwork-meta p {
    color: #292929;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-artworks-cta {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px 20px;
    border: 1px solid #C9A963;
    border-radius: 12px;
    background: linear-gradient(145deg, #fbf7ed, #f1e5c8);
    color: #2c261b;
    text-align: center;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.latest-artworks-cta:hover {
    color: #2c261b;
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(98, 75, 28, 0.16);
}

.latest-artworks-cta-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #C9A963;
    color: #fff;
    font-size: 1.2rem;
}

.latest-artworks-cta strong {
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 1.15rem;
}

.latest-artworks-cta span:not(.latest-artworks-cta-icon) {
    color: #75694f;
    font-size: 0.85rem;
}

.latest-artworks-cta-arrow {
    margin-top: 4px;
}

/* Exhibitions Horizontal Scroll */
.exhibitions-scroll {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding-bottom: 20px;
    scrollbar-width: none; /* Firefox */
}

.exhibitions-scroll::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.exhibition-card {
    min-width: 400px;
    flex: 0 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    text-decoration: none;
    color: white;
}

.exhibition-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.exhibition-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.exhibition-overlay h3 {
    margin: 0 0 5px;
    font-size: 1.5rem;
}

/* Featured Artists */
.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
}

.artist-card {
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.artist-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease;
}

.artist-card:hover img {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.artist-card h5 {
    font-size: 1.1rem;
    margin: 0;
}

/* All artists directory */
.artists-directory {
    min-height: 75vh;
}

.artists-directory-hero {
    position: relative;
    overflow: hidden;
    padding: 54px 0 58px;
    background:
        radial-gradient(circle at 85% 20%, rgba(201, 169, 99, 0.2), transparent 30%),
        linear-gradient(135deg, #f8f4eb 0%, #fff 52%, #f7f7f7 100%);
    border-bottom: 1px solid #ebe5d9;
}

.artists-directory-hero::after {
    content: '';
    position: absolute;
    right: -75px;
    bottom: -105px;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(201, 169, 99, 0.28);
    border-radius: 50%;
    box-shadow: 0 0 0 38px rgba(201, 169, 99, 0.05);
    pointer-events: none;
}

.artists-directory-back {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 2.5rem;
    color: #4b5563;
    font-size: 0.85rem;
    font-weight: 700;
    transition: color 0.2s ease, gap 0.2s ease;
}

.artists-directory-back:hover {
    gap: 0.75rem;
    color: #9b7428;
}

.artists-directory-kicker {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.75rem;
    color: #9b7428;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.artists-directory-hero h1 {
    max-width: 760px;
    margin: 0 0 0.9rem;
    color: #171717;
    font-size: clamp(2rem, 5vw, 3.65rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.artists-directory-hero p {
    max-width: 650px;
    margin: 0;
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
}

.artists-directory-content {
    padding-top: 52px;
    padding-bottom: 72px;
}

.artists-directory-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.35rem;
}

.artists-directory-card {
    position: relative;
    overflow: hidden;
    min-width: 0;
    color: #1f2937;
    background: #fff;
    border: 1px solid #ece8df;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(31, 41, 55, 0.07);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.artists-directory-card:hover {
    color: #1f2937;
    border-color: #d8c18e;
    box-shadow: 0 16px 38px rgba(31, 41, 55, 0.13);
    transform: translateY(-6px);
}

.artists-directory-cover {
    display: block;
    height: 112px;
    background-color: #ece7dc;
    background-position: center;
    background-size: cover;
}

.artists-directory-cover::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(18, 18, 18, 0.34), rgba(18, 18, 18, 0.04));
}

.artists-directory-card-body {
    position: relative;
    display: flex;
    min-height: 180px;
    flex-direction: column;
    align-items: center;
    padding: 0 1.15rem 1.3rem;
    text-align: center;
}

.artists-directory-avatar-wrap {
    position: relative;
    display: block;
    width: 92px;
    height: 92px;
    margin-top: -46px;
    margin-bottom: 0.85rem;
}

.artists-directory-avatar {
    display: block;
    width: 92px;
    height: 92px;
    object-fit: cover;
    background: #fff;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.16);
}

.artists-directory-featured {
    position: absolute;
    right: -2px;
    bottom: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    color: #fff;
    background: #c39b47;
    border: 3px solid #fff;
    border-radius: 50%;
    font-size: 0.6rem;
}

.artists-directory-name {
    max-width: 100%;
    color: #171717;
    font-family: var(--font-serif, 'Playfair Display', serif);
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.artists-directory-bio {
    display: -webkit-box;
    max-width: 100%;
    margin-top: 0.55rem;
    overflow: hidden;
    color: #727272;
    font-size: 0.78rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.artists-directory-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-top: auto;
    padding-top: 0.8rem;
    color: #a7843c;
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.artists-directory-card:hover .artists-directory-arrow {
    transform: translateX(4px);
}

.artists-directory-empty {
    display: flex;
    min-height: 280px;
    align-items: center;
    justify-content: center;
    color: #c1a86e;
    background: #faf8f3;
    border: 1px dashed #d8c9a7;
    border-radius: 18px;
    font-size: 3rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .gallery-hero h1 {
        font-size: 2.5rem;
    }
    .exhibition-card {
        min-width: 280px;
    }
    .exhibition-card img {
        height: 200px;
    }
    .latest-artworks-track .artwork-card,
    .latest-artworks-cta {
        flex-basis: min(76vw, 260px);
    }
    .latest-artworks-controls {
        display: none;
    }
    .artists-directory-hero {
        padding: 34px 0 42px;
    }
    .artists-directory-back {
        margin-bottom: 1.8rem;
    }
    .artists-directory-content {
        padding-top: 32px;
        padding-bottom: 50px;
    }
    .artists-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.8rem;
    }
    .artists-directory-cover {
        height: 88px;
    }
    .artists-directory-card-body {
        min-height: 166px;
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }
    .artists-directory-avatar-wrap,
    .artists-directory-avatar {
        width: 78px;
        height: 78px;
    }
    .artists-directory-avatar-wrap {
        margin-top: -39px;
    }
    .artists-directory-name {
        font-size: 0.95rem;
    }
    .artists-directory-bio {
        font-size: 0.72rem;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    .latest-artworks-track .artwork-card,
    .latest-artworks-cta {
        flex-basis: calc((100% - 36px) / 3);
    }
    .artists-directory-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 390px) {
    .artists-directory-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Added for Mobile Responsiveness --- */
@media (max-width: 576px) {
    .gallery-hero .btn {
        display: block !important;
        width: 100% !important;
        margin-bottom: 0.75rem !important;
        margin-right: 0 !important;
    }
    .gallery-hero p.lead {
        font-size: 1.1rem !important;
        padding: 0 1rem;
    }
    .gallery-hero h1 {
        font-size: 2.1rem !important;
    }
}

.exhibition-header-buttons {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
}

.exhibition-header {
    padding: 0;
    position: relative;
    height: 60vh;
    min-height: 400px;
    color: #fff;
}

@media (max-width: 768px) {
    .exhibition-header-buttons {
        top: 1rem !important;
        left: 1rem !important;
        right: 1rem !important;
        flex-wrap: wrap !important;
    }
    .exhibition-header-buttons a {
        font-size: 0.78rem !important;
        padding: 0.35rem 0.7rem !important;
    }
    .exhibition-header {
        height: auto !important;
        min-height: 280px !important;
        padding-top: 5rem !important;
        padding-bottom: 2rem !important;
    }
}

/* YouTube-like Gallery Dark Redesign */
.khub.gallery-hub.yt-gallery {
    background-color: #0f0f0f !important;
    color: #f1f1f1 !important;
    min-height: 100vh;
}

.yt-gallery-layout {
    display: flex;
    max-width: 100%;
    background-color: #0f0f0f;
}

/* Top search and header bar */
.yt-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background-color: #212121;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.yt-search-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
    max-width: 600px;
    margin: 0 auto;
}

.yt-search-form {
    display: flex;
    width: 100%;
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    overflow: hidden;
}

.yt-search-form input {
    flex-grow: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    padding: 8px 16px;
    font-size: 14px;
}

.yt-search-form input::placeholder {
    color: #888;
}

.yt-search-form button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.yt-search-form button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.yt-cam-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
}

.yt-cam-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: scale(1.05);
}

.yt-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.yt-action-icon {
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    text-decoration: none;
    display: inline-flex;
}

.yt-action-icon:hover {
    opacity: 1;
    color: #fff;
}

.yt-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-block;
}

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

/* Sidebar styling */
.yt-sidebar {
    width: 240px;
    flex-shrink: 0;
    background-color: #212121;
    padding: 12px;
    position: sticky;
    top: 65px;
    height: calc(100vh - 65px);
    overflow-y: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.yt-sidebar-menu {
    margin-bottom: 20px;
}

.yt-sidebar-menu h4 {
    font-size: 13px;
    font-weight: bold;
    color: #aaa;
    text-transform: uppercase;
    margin: 8px 12px 12px;
    letter-spacing: 0.5px;
}

.yt-sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.yt-sidebar-menu li {
    margin-bottom: 4px;
}

.yt-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 12px;
    color: #f1f1f1;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.yt-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.yt-menu-item.is-active {
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

.yt-menu-item i {
    width: 24px;
    font-size: 16px;
    text-align: center;
    color: #f1f1f1;
}

.yt-artist-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.yt-sidebar-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 12px 12px;
}

/* Main Content Area */
.yt-main {
    flex-grow: 1;
    padding: 24px;
    background-color: #0f0f0f;
    min-width: 0;
}

/* Banner section */
.yt-banner {
    position: relative;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
}

.yt-banner-cover {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.yt-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 2;
}

.yt-banner-profile {
    display: flex;
    align-items: center;
    gap: 24px;
}

.yt-banner-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.yt-banner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.yt-banner-text h1 {
    color: #fff !important;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    font-family: 'Inter', sans-serif !important;
}

.yt-banner-text p {
    color: #aaa !important;
    font-size: 14px;
    margin: 6px 0 0 0;
}

/* Facebook share button */
.btn-fb-share {
    background-color: #1877f2;
    color: #fff !important;
    font-weight: 700;
    border-radius: 30px;
    padding: 10px 24px;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(24, 119, 242, 0.3);
}

.btn-fb-share:hover {
    background-color: #1565c0;
    transform: translateY(-1px);
}

/* YouTube-like Red Share button (SUBSCRIBE visual styling) */
.btn-red-share {
    background-color: #cc0000;
    color: #fff !important;
    font-weight: 700;
    border-radius: 4px;
    padding: 10px 24px;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(204, 0, 0, 0.3);
    text-decoration: none;
}

.btn-red-share:hover {
    background-color: #e60000;
    transform: translateY(-1px);
    color: #fff !important;
}

/* Featured row */
.yt-section-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.yt-featured-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

@media (max-width: 1200px) {
    .yt-featured-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 992px) {
    .yt-featured-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .yt-featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 480px) {
    .yt-featured-grid {
        grid-template-columns: 1fr;
    }
}

.yt-category-card {
    display: flex;
    flex-direction: column;
    background: #1f1f1f;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.yt-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}

.yt-category-card-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #121212;
}

.yt-category-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.yt-category-card:hover .yt-category-card-thumb img {
    transform: scale(1.04);
}

.yt-category-card-info {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.yt-category-card-title {
    color: #f3ebd6 !important;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yt-category-card-count {
    color: #aaa !important;
    font-size: 13px;
    margin: 0;
}


/* Artworks Grid */
.yt-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.yt-work-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.yt-work-card:hover {
    color: inherit;
}

.yt-work-thumb {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.yt-work-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.yt-work-card:hover .yt-work-thumb img {
    transform: scale(1.04);
}

.yt-work-details {
    display: flex;
    gap: 12px;
}

.yt-work-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.1);
}

.yt-work-info {
    flex-grow: 1;
    min-width: 0;
}

.yt-work-title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yt-work-artist {
    color: #aaa;
    font-size: 13px;
    margin: 0;
    text-decoration: none;
    display: block;
}

.yt-work-artist:hover {
    color: #fff;
}

.yt-work-stats {
    color: #888;
    font-size: 12px;
    margin: 4px 0 0 0;
}

/* Category menu separator */
.yt-cat-separator {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .yt-sidebar {
        display: none; /* Hide sidebar on mobile */
    }
    
    .yt-main {
        padding: 16px;
    }
    
    .yt-banner {
        height: 160px;
        margin-bottom: 20px;
    }
    
    .yt-banner-overlay {
        padding: 0 20px;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 16px;
    }
    
    .yt-banner-profile {
        gap: 16px;
    }
    
    .yt-banner-avatar {
        width: 54px;
        height: 54px;
        font-size: 10px;
    }
    
    .yt-banner-text h1 {
        font-size: 20px;
    }
    
    .yt-banner-text p {
        font-size: 12px;
    }
    
    .btn-fb-share {
        padding: 8px 18px;
        font-size: 12px;
    }
    
    .yt-search-container {
        max-width: 100%;
    }
    
    .yt-header-bar {
        padding: 10px 16px;
    }
    
    .yt-header-actions {
        display: none; /* Hide top bar notifications/avatar on mobile to save space */
    }
}

/* Premium sidebar artist portal CTA button */
.loc-root .yt-menu-portal-btn,
.yt-menu-portal-btn {
    background: rgba(201, 169, 99, 0.15) !important;
    border: 1px solid #C9A963 !important;
    color: #C9A963 !important;
    font-weight: 700 !important;
    margin: 8px 12px !important;
    justify-content: center !important;
    transition: all 0.2s ease-in-out !important;
}

.loc-root .yt-menu-portal-btn:hover,
.yt-menu-portal-btn:hover {
    background: #C9A963 !important;
    color: #0f0f0f !important;
    box-shadow: 0 4px 12px rgba(201, 169, 99, 0.3) !important;
}

.loc-root .yt-menu-portal-btn i,
.yt-menu-portal-btn i {
    color: inherit !important;
}

/* Premium Gold Portal Button for banner */
.btn-gold-portal {
    background-color: rgba(201, 169, 99, 0.15) !important;
    border: 1px solid #C9A963 !important;
    color: #C9A963 !important;
    font-weight: 700 !important;
    border-radius: 30px !important;
    padding: 10px 24px !important;
    font-size: 13.5px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease-in-out !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
}

.btn-gold-portal:hover {
    background-color: #C9A963 !important;
    color: #0f0f0f !important;
    box-shadow: 0 4px 12px rgba(201, 169, 99, 0.3) !important;
    transform: translateY(-1px) !important;
}

/* See All Link styled next to titles */
.yt-see-all-link {
    font-size: 14px;
    font-weight: 600;
    color: #C9A963 !important;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s ease;
}

.yt-see-all-link:hover {
    opacity: 0.8;
}

/* Featured Artists Horizontal Scroll (YouTube channel style) */
.yt-artists-scroll {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 16px;
    margin-bottom: 40px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.yt-artists-scroll::-webkit-scrollbar {
    height: 6px;
}

.yt-artists-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.yt-artist-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 120px;
    text-decoration: none;
    color: #fff !important;
    transition: transform 0.2s;
}

.yt-artist-card:hover {
    transform: translateY(-4px);
}

.yt-artist-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.2s;
}

.yt-artist-card:hover img {
    border-color: #C9A963;
}

.yt-artist-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.yt-artist-count {
    font-size: 12px;
    color: #aaaaaa;
}

/* Banner actions container */
.yt-banner-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* Mobile responsive styles for YouTube-like banner overlay */
@media (max-width: 768px) {
    .yt-banner {
        height: auto !important;
        overflow: visible !important;
        margin-bottom: 30px !important;
        background-image: none !important;
    }
    .yt-banner-cover {
        position: relative !important;
        height: 120px !important;
        border-radius: 12px !important;
        z-index: 1 !important;
        width: 100% !important;
    }
    .yt-banner-overlay {
        position: relative !important;
        inset: auto !important;
        height: auto !important;
        background: transparent !important;
        padding: 0 !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 16px !important;
        margin-top: -40px !important;
        z-index: 2 !important;
    }
    .yt-banner-profile {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
    }
    .yt-banner-avatar {
        width: 80px !important;
        height: 80px !important;
        border: 3px solid #0f0f0f !important;
        box-shadow: 0 4px 10px rgba(0,0,0,0.5) !important;
        z-index: 3 !important;
    }
    .yt-banner-text {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .yt-banner-text h1 {
        font-size: 20px !important;
        margin-top: 4px !important;
        text-align: center !important;
    }
    .yt-banner-text p {
        font-size: 13px !important;
        margin: 6px 0 12px 0 !important;
        padding: 0 16px !important;
        text-align: center !important;
        line-height: 1.4 !important;
    }
    .yt-banner-text .btn-fb-share {
        margin-top: 0 !important;
        width: auto !important;
        padding: 8px 20px !important;
    }
    .yt-banner-actions {
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        padding: 0 16px !important;
        align-items: stretch !important;
    }
    .yt-banner-actions .btn,
    .yt-banner-actions .btn-gold-portal {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        margin: 0 !important;
        display: inline-flex !important;
        box-sizing: border-box !important;
    }
}

