/***************************
File generated by shrinker.ch
DateTime: 2026-07-23, 07:22:56
File list cleaned, combined, and fully debugged.
*****************************/

/* ==========================================================================
   1. Core Styles & Typography
   ========================================================================== */
:root {
    --primary: #2c3e50;
    --accent: #e67e22;
    --bg: #f4f7f6;
    --sub-nav-color: #3498db;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

.spacer {
    height: 20px;
}

#big-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
}

/* ==========================================================================
   2. Header & Main Navigation
   ========================================================================== */
.main-header {
    background-color: var(--primary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 2000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    width: 100%;
    overflow: visible !important;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 10px 20px;
    min-height: var(--header-height);
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 1;
    min-width: 0;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    width: 100px;
    flex-shrink: 0;
    z-index: 2001;
    pointer-events: none;
}

.header-logo {
    height: 90px;
    width: auto;
    border-radius: 8px;
    margin-bottom: -45px;
    margin-left: -10px;
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.3));
    pointer-events: auto;
}

.logo-text {
    font-family: 'Amaranth', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    white-space: nowrap;
}

.logo-tagline {
    font-size: .9rem;
    color: #3498db;
}

.welcome-message {
    font-size: .85rem;
    color: #bdc3c7;
    line-height: 1.3;
    border-left: 1px solid #7f8c8d;
    padding: 4px 0 4px 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-container {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

#pieceSearch,
#pieceDropdown {
    padding: 8px 15px;
    border-radius: 20px;
    border: 0;
    font-size: .85rem;
    outline: 0;
}

/* ==========================================================================
   3. Sub-Navigation Bar & Tally Panel
   ========================================================================== */
.sub-nav-bar {
    position: sticky;
    top: var(--header-height);
    min-height: 40px;
    background-color: var(--sub-nav-color);
    z-index: 1999;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: visible;
}

.sub-nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
    padding: 5px 20px;
}

.button-row {
    display: flex;
    gap: 15px;
}

.nav-btn {
    color: blue;
    background: lightblue;
    text-decoration: none;
    font-size: .9rem;
    padding: 4px 10px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    transition: all .3s;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.2);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.tally-container {
    position: absolute;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
}

.tally-text {
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
}

.tally-number {
    font-size: 32px;
    background: #fff;
    border-radius: 10px;
    padding: 3px 8px;
    font-weight: bold;
    color: red;
    line-height: 1;
    display: flex;
    align-items: center;
    z-index: 2001;
    animation: uniform-flash-slow 5s ease-in-out forwards;
}

@keyframes uniform-flash-slow {
    0%   { opacity: 0; }
    18%  { opacity: 1; }
    25%  { opacity: .1; }
    43%  { opacity: 1; }
    50%  { opacity: .1; }
    68%  { opacity: 1; }
    75%  { opacity: .1; }
    93%  { opacity: 1; }
    100% { opacity: 1; }
}

/* ==========================================================================
   4. Layout Components (Grid, Columns, Content) - FIXED CARD WRAPPING
   ========================================================================== */
#top-slider-bar {
    position: sticky;
    top: -300px;
    z-index: 1000;
    width: 100%;
    min-height: 220px;
    background: #06c;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    box-sizing: border-box;
}

.content {
    padding: 10px 5px 0;
    position: relative;
    width: 100%;
}

.container {
    display: grid;
    /* Center area fills the rest of the window screen */
    grid-template-columns: 200px minmax(0, 1fr) 300px; 
    gap: 15px;
    align-items: start;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
}

.side-col {
    position: sticky;
    top: 140px;
    background: #e6e6e6;
    padding: 4px;
    border-radius: 10px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    z-index: 10;
    width: 100%;
}

.right-list {
    display: block;
    width: 100%;
}

#top-info-bar {
    grid-column: 1 / -1;
    min-height: auto;
    position: sticky;
    top: 120px;
    z-index: 99;
    margin-top: -13px;
    margin-bottom: 10px;
    padding: 6px 15px;
    background: #fff;
    border: 1px solid #d1d9e6;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* The parent element behaves as a standard block layout to let its inner child use full width */
.main-content {
    display: block;
    width: 100%;
}

/* The actual card grid gets the grid rules to layout individual cards across rows */
#piece-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
}

.no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #ccd6e0;
    color: #5a6b7d;
    font-family: sans-serif;
}

/* ==========================================================================
   5. Piece Cards & Layout Action Elements
   ========================================================================== */
.piece-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform .3s, box-shadow .3s, background .3s;
    overflow: hidden;
    position: relative;
}

.piece-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    background: #fbfbf0;
}

.piece-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    outline: 6px solid red;
    outline-offset: -6px;
    box-shadow: inset 0 0 0 4px rgba(255,0,0,1), 0 0 15px rgba(255,0,0,0.7);
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.5s ease-out;
    z-index: 5;
}

.piece-card.highlight-flash::after {
    opacity: 1;
    transition: opacity .2s ease-in;
}

.thumb-wrapper {
    padding: 10px;
    background: transparent;
    display: flex;
    justify-content: center;
}

.sheet-thumb {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: -10px;
    border-radius: 10px;
}

.piece-info {
    padding: 5px 15px 15px 15px;
}

.piece-title {
    font-size: 1.3rem;
    line-height: 1.1;
    margin-bottom: 3px;
}

.piece-description {
    font-size: 14px;
}

.actions {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    padding: 10px 0;
}

.btn-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 24px;
    padding: 2px 8px;
    font-size: 13px;
    color: #fff;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid #0b0b41;
    transition: background-color .2s;
    box-sizing: border-box;
    vertical-align: middle;
}

.btn-play {
    background-color: #007bff;
    width: 8ch;
}

.btn-play:hover {
    background-color: #0056b3;
}

.btn-video,
.btn-details {
    background-color: #0059b3;
    width: 8ch;
}

.btn-video:hover,
.btn-details:hover {
    background-color: #0d86ff;
}

.btn-reset {
    background: #f0f4f8;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 12px;
    cursor: pointer;
    color: #4a5568;
    transition: all .2s;
    font-weight: 600;
    margin-left: 10px;
}

.btn-reset:hover {
    background: #e2e8f0;
    border-color: #a0aec0;
    color: #2d3748;
}

/* ==========================================================================
   6. Icons & Graphic Elements
   ========================================================================== */
.play-icon,
.stop-icon,
.video-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5em;
    line-height: 1;
    object-fit: contain;
    animation: iconFade 1s ease-out;
}

.btn-pill img {
    width: auto;
    display: block;
    object-fit: contain;
}

.play-icon img,
.video-icon img {
    height: 14px;
}

.stop-icon img {
    height: 11px;
}

@keyframes iconFade {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================================
   7. Filter Panels, A-Z Lists & Controls
   ========================================================================== */
.category-container {
    background: #cce6ff;
    border-radius: 15px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 250px;
}

.left-nav {
    position: sticky;
    top: 120px;
    align-self: flex-start;
    height: fit-content;
    z-index: 10;
}

.left-filter-title-01,
.left-filter-title-02,
.left-filter-title-03 {
    margin-top: 5px;
    margin-bottom: 5px;
    text-align: center;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: bold;
}

.filter-btn {
    background-color: #007bff;
    color: #fff;
    border: 0;
    padding: 5px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-size: 14px;
    text-align: center;
    transition: background .3s ease;
}

.filter-btn:hover {
    background-color: #0056b3;
}

.filter-select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 0;
}

.filter-select:focus {
    outline: 0;
    border-color: #007bff;
}

#pieceSearch.filter-select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    box-sizing: border-box;
    border: 1px solid #cbd5e0;
    border-radius: 10px;
}

optgroup {
    font-weight: bold;
    font-style: normal;
    color: #555;
}

.az-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 5px 5px 60px 5px;
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #007bff #e6f2ff;
}

.az-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #e6f2ff;
    border: 1px solid #b3d7ff;
    border-radius: 8px;
    padding: 2px;
    transition: background-color .3s ease;
}

.az-item.is-playing {
    background-color: #ffdae9 !important;
    border-color: #ffb6c1;
}

.az-item:hover {
    background-color: #d1e9ff;
}

.az-item span {
    font-weight: 900;
    color: #333;
    font-size: 17px;
    font-family: Pragati Narrow;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 10px;
}

.mini-play {
    background-color: #007bff;
    border: 0;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    cursor: pointer;
}

.mini-play:hover {
    background-color: #0056b3;
}

.mini-play img {
    width: 11px;
    height: 11px;
}

.az-item.is-playing .mini-play {
    background-color: #ff69b4;
}

.az-top-btn {
    display: none;
    position: absolute;
    bottom: 70px;
    right: 20px;
    z-index: 10;
    width: 30px;
    height: 30px;
    background-color: #007bff;
    color: #fff;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: opacity .3s, transform .2s;
}

.az-top-btn:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

/* ==========================================================================
   8. Panels & Specific Widgets
   ========================================================================== */
#left-info-panel {
    background: #fff;
    border: 2px solid blue;
    border-radius: 8px;
    padding-bottom: 6px;
}

#left-info-panel-text-title {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #000;
    text-align: center;
    padding: 4px 6px 0 6px;
}

.left-info-panel-text-content,
.backing-tracks-button-text {
    font-family: Arial, sans-serif;
    color: #000;
    font-weight: 100;
    text-align: center;
}

.left-info-panel-text-content {
    padding: 4px 6px 10px;
    font-size: 14px;
}

.backing-tracks-button-text {
    padding: 0 10px;
    font-size: 12px;
}

.backing-tracks-button-container {
    margin: 10px 0;
    text-align: center;
}

.backing-link-btn {
    display: inline-block;
    padding: 5px;
    background-color: slateblue;
    color: #fff;
    text-decoration: none;
    border-radius: 15px;
    font-weight: bold;
    font-size: 12px;
    transition: background-color .2s ease;
    width: 80%;
}

.backing-link-btn:hover {
    background-color: #0056b3;
}

/* ==========================================================================
   9. Swiper Slider Module
   ========================================================================== */
.swipe-container.swiper {
    width: 100%;
    height: 100%;
    padding: 0 60px;
    box-sizing: border-box;
    position: relative;
}

.swipe-card-item.swiper-slide,
.swiper-slide {
    width: 400px;
    height: 100%;
    display: flex;
    align-items: center;
}

#swiper-title-text {
    position: absolute;
    text-align: center;
    bottom: 0;
    left: 0;
    height: auto;
    padding: 4px;
    background: #3b053b;
    width: 20ch;
    color: #fff;
    border-radius: 5px;
    z-index: 2000;
}

.swipe-card-link {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    box-shadow: 0 10px 10px rgba(0,0,0,0.05);
    width: 400px;
    height: 100%;
    box-sizing: border-box;
    border: 2px solid transparent;
    transition: .2s ease;
}

.swipe-card-content-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.swipe-card-image {
    width: 220px;
    height: 150px;
    object-fit: fill;
    border-radius: 8px;
    margin-top: -5px;
    flex-shrink: 0;
}

.text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    gap: 4px;
}

.swipe-card-title {
    font-size: 18px;
    color: #000;
    font-weight: 900;
    margin: 0;
}

.swipe-badge {
    color: blue;
    font-size: .7rem;
    background: #dde4ff;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 4px;
    margin-bottom: 0;
    width: fit-content;
}

.swipe-card-description {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
}

.swipe-button-row {
    margin-left: 18px;
}

.swipe-badge-red {
    position: absolute;
    top: 0;
    width: 14ch;
    height: 20px;
    margin-left: 35px;
    background: red;
    border-radius: 0;
    text-align: center;
    color: #fff;
    font-family: inter;
    font-size: 14px;
}

.swipe-card-button {
    height: 30px;
    width: 30px;
    color: #5372f0;
    border-radius: 50%;
    border: 1px solid #5382f0;
    background: 0;
    transform: rotate(-45deg);
}

.swipe-piece-title {
    font-family: inter;
    font-size: 30px;
    color: #000;
    font-weight: 900;
    margin: 0;
    line-height: 1.1;
    padding-bottom: 8px;
}

.swipe-footer-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-left: -13px;
}

.swipe-btn {
    height: 22px;
    width: 9ch;
    background: #ccc;
    border: 1px solid #000;
    text-align: center;
    text-decoration: none;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: .8rem;
    font-weight: 500;
    color: black;
}

.swipe-btn:hover {
    background-color: rgba(255,255,255,0.2);
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255,255,255,0.6);
}

.swiper-button-prev,
.swiper-button-next {
    transform: scale(0.6);
    z-index: 10;
    color: hotpink;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-weight: 900;
    font-size: 70px;
    margin-top: -30px;
    -webkit-text-stroke: 0 transparent;
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, -1px 0 0 #fff, 1px 0 0 #fff, 0px -1px 0 #fff, 0px 1px 0 #fff;
}

/* ==========================================================================
   10. Audio Player Component
   ========================================================================== */
#global-player-bar {
    height: 60px;
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 1500px;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
    background: #fff;
    border-top: 2px solid var(--primary);
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 2000;
}

#quick-listen-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 900;
    text-align: center;
}

.audio-player {
    height: 30px;
    width: 350px;
    background: #444;
    box-shadow: 0 0 20px 0 #000a;
    font-family: arial;
    color: #fff;
    font-size: .75em;
    overflow: hidden;
    display: grid;
    grid-template-rows: 6px auto;
}

.audio-player .timeline {
    background: #fff;
    width: 100%;
    position: relative;
    cursor: pointer;
    box-shadow: 0 2px 10px 0 #0008;
}

.audio-player .timeline .progress {
    background: coral;
    width: 0;
    height: 100%;
    transition: .25s;
}

.audio-player .controls {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 0 20px;
}

.audio-player .controls > * {
    display: flex;
    justify-content: center;
    align-items: center;
}

.audio-player .controls .toggle-play.play {
    cursor: pointer;
    position: relative;
    left: 0;
    height: 0;
    width: 0;
    border: 7px solid #0000;
    border-left: 13px solid white;
}

.audio-player .controls .toggle-play.pause {
    height: 22px;
    width: 22px;
    margin-left: -5px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6 19h4V5H6v14zm8-14v14h4V5h-4z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.audio-player .controls .toggle-play.loading {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: coral;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.audio-player .controls .toggle-play:hover {
    transform: scale(1.1);
}

.audio-player .controls .time {
    display: flex;
}

.audio-player .controls .time > * {
    padding: 2px;
}

.audio-player .controls .volume-container {
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.volume-container {
    cursor: ns-resize;
}

.audio-player .controls .volume-container .volume-button {
    height: 26px;
    display: flex;
    align-items: center;
}

.volume {
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
}

.icono-volumeMedium {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z'/%3E%3C/svg%3E");
}

.icono-volumeMute {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='coral'%3E%3Cpath d='M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63zm2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71zM4.27 3L3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9L4.27 3zM12 4L9.91 6.09 12 8.18V4z'/%3E%3C/svg%3E");
}

.audio-player .controls .volume-container .volume-slider {
    position: absolute;
    left: -3px;
    top: 15px;
    z-index: -1;
    width: 0;
    height: 15px;
    background: #fff;
    box-shadow: 0 0 20px #000a;
    transition: .25s;
}

.audio-player .controls .volume-container .volume-slider .volume-percentage {
    background: coral;
    height: 100%;
    width: 75%;
}

.audio-player .controls .volume-container:hover .volume-slider {
    left: -123px;
    width: 120px;
}

/* ==========================================================================
   11. System Interactive Functional Animations
   ========================================================================== */
.piece-card.is-playing,
.swipe-card-link.is-playing {
    background-color: #ffe0e5 !important;
    border-color: #ffb6c1 !important;
    transition: background-color .3s ease;
}

.is-playing .piece-title,
.is-playing .piece-description,
.is-playing .swipe-card-title {
    color: #333 !important;
}

.active-title-box {
    background-color: #ffe0e5;
    color: #333;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block;
    font-weight: bold;
    border: 1px solid #ffb6c1;
}

#current-title.active-title-box {
    display: inline-block;
    transition: background-color .3s ease, border .3s ease;
}

@keyframes titlePulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,182,193,0.7); }
    70%  { box-shadow: 0 0 0 10px rgba(255,182,193,0); }
    100% { box-shadow: 0 0 0 0 rgba(255,182,193,0); }
}

.active-title-box.pulse-animation {
    animation: titlePulse 2s infinite;
    border: 1px solid #ff69b4;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-animate {
    opacity: 0;
    animation: fadeInUp .4s ease forwards;
}

.grid-fade-out {
    opacity: 0;
    transition: opacity .1s ease;
}

/* ==========================================================================
   12. Universal Modals & Overlays
   ========================================================================== */
@keyframes bounceZoom {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.youTube-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
}

.youTube-modal-content {
    position: relative;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    width: 65vw;
    min-width: 320px;
    max-width: 800px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
    animation: bounceZoom .4s cubic-bezier(0.175,0.885,0.32,1.275);
}

.youTube-video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.youTube-video-container iframe,
#youTube-modalVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.youTube-close-btn {
    position: absolute !important;
    top: 0 !important;
    right: 4px !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    z-index: 10001 !important;
    transition: transform .2s ease-in-out;
}

.close-icon-img {
    width: 50px !important;
    height: 50px !important;
    display: block !important;
}

.youTube-close-btn:hover {
    transform: scale(1.08);
    opacity: .9;
}

.youTube-modal-footer {
    height: auto;
    min-height: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 5px;
    font-size: 1rem;
    border-top: 1px solid #eee;
    margin-top: 5px;
    text-align: center;
    overflow: hidden;
}

/* Read more link styling */
.read-more-btn {
    color: yellow; /* Crisp white text */
    text-decoration: none; /* Removes the underline */
    cursor: pointer;
    display: inline-flex; /* Flex helps align the text and icon perfectly */
    align-items: center;
    gap: 6px; /* Small space between the text and the play icon */
    margin-left: 5px;
    transition: color 0.2s ease;
}

/* Cream color on hover */
.read-more-btn:hover {
    color: #fffdd0; /* Classic cream color (adjust hex if you want it warmer) */
}

/* CSS-only Forward Play Icon */
.read-more-btn::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    /* Draws a perfect right-pointing triangle */
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid currentColor; /* 'currentColor' makes it automatically match the white/cream text color */
    transition: border-left-color 0.2s ease;
}
.welcome-modal {
    display: flex; /* Always flex, but hidden by visibility/opacity */
    position: fixed; 
    z-index: 9999; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0, 0, 0, 0.6); 
    align-items: center;
    justify-content: center;
    
    /* Animation setup for backdrop */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* ACTIVE STATE: Triggered by JavaScript */
.welcome-modal.show-modal {
    opacity: 1;
    visibility: visible;
}
/* Zoom the content box to normal size when open */
.welcome-modal.show-modal .modal-content {
    transform: scale(1);
}


/* Modal Box Content (Handles the classy zoom-in) */
.welcome-modal .modal-content {
    background-color: #fff;
    padding: 30px 25px 25px 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 900px; 
    max-height: 60vh; /* Keeps the modal constrained to 60% of the viewport height */
    
    /* NEW: Forces the modal box to layout as a flex column and hide raw overflows */
    display: flex;
    flex-direction: column;
    overflow: hidden; 
    
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: #333;
    
    /* Animation setup for the zoom effect */
    transform: scale(0.85);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
/* Modal Body (Where the actual scrolling happens) */
.welcome-modal .modal-body {
    overflow-y: auto; /* Show vertical scrollbars only when content overflows 60vh */
    padding-right: 5px; /* Tiny buffer so scrollbar doesn't hug your text too closely */
}


/* White cross inside a Red Circle Close Button */
.welcome-modal .close-modal {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #d9534f; 
    color: white; 
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.welcome-modal .close-modal:hover {
    transform: scale(1.1);
    background-color: #c9302c; 
}

.welcome-modal .modal-body h2 {
    margin-top: 0;
}

.welcome-modal .modal-body h3 {
	font-size:1em;
	font-weight: 900;
    margin-top: 10px;
}

.welcome-modal .modal-body p {
     margin-top: 6px;
	 margin-bottom: 14px;
}
.welcome-modal .modal-body li {
     margin-left: 5%;
	
}

.modal-footer {
    height: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5px;
    font-size: .85rem;
    overflow: hidden;
    border-top: 1px solid #eee;
    margin-top: 5px;
}

#modalVideo {
    width: 100%;
    height: auto;
    display: block;
}

.details-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    overflow-y: auto;
    padding: 40px 0;
    justify-content: center;
    align-items: flex-start;
}

.details-modal-content {
    background-color: #fffff3;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    animation: bounceZoom .4s cubic-bezier(0.175,0.885,0.32,1.275);
    overflow: visible;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
}

#detailsModalImage {
    max-width: 100%;
    height: auto;
    display: block;
    top: 30px;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.details-info-side {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 5px;
}

#details-title {
    font-family: inter, sans-serif;
    font-size: 20px;
    font-weight: 900;
    margin: 0;
    padding-left: 6px;
}

#details-description {
    font-family: Pragati Narrow, sans-serif;
    font-size: 18px;
    font-weight: 900;
    margin: 0;
    border-top: 1px solid grey;
    border-bottom: 1px solid grey;
    padding: 4px 4px 4px 6px;
}

.details-list {
    font-family: inter, sans-serif;
    font-size: 16px;
    margin: 0 0 0 20px;
}

#details-modal-notes {
    font-style: italic;
    font-size: 16px;
    color: #555;
    margin: 15px 0 15px 10px;
    line-height: 1.4;
    border-left: 3px solid blue;
    padding-left: 20px;
    padding-right: 10px;
}

.details-modal-footer {
    height: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    padding-right: 5px;
    padding-left: 5px;
    font-size: .85rem;
    grid-column: span 2;
    border-top: 1px solid #eee;
    margin-top: 10px;
}

.details-close-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background-color: red;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 38px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10002;
}

.details-close-btn:hover {
    background-color: #d00000;
}

/* ==========================================================================
   13. Global Structural Breakpoints & Responsive Adaptations
   ========================================================================== */
.mob-only-logo-tagline,
.mob-only-welcome-message,
.mob-only-filter,
.intermediate-text {
    display: none;
}

@media(max-width:1250px) {
    .welcome-message {
        display: none;
    }
    .logo-text {
        font-size: 1.5rem;
    }
}

@media(max-width:1100px) {
    .container {
        grid-template-columns: 200px 1fr;
    }
    .right-list {
        display: none;
    }
}

@media(min-width:1050px) and (max-width:1300px) {
    .desktop-text {
        display: none !important;
    }
    .intermediate-text {
        display: inline !important;
    }
    .sub-nav-bar {
        height: 34px !important;
    }
    .sub-nav-inner {
        padding: 0 10px !important;
        gap: 10px !important;
    }
    .button-row {
        gap: 6px !important;
    }
    .button-row button,
    .button-row .btn,
    .button-row .nav-btn,
    .sub-nav-inner button,
    .sub-nav-inner a {
        padding: 4px 10px !important;
        font-size: 12px !important;
        height: auto !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }
    .button-row button:first-child,
    .button-row .btn:first-child,
    .button-row a:first-child {
        margin-left: 50px !important;
    }
    .tally-container {
        right: 10px !important;
        height: 34px !important;
    }
    .tally-text {
        font-size: 14px !important;
        line-height: 1.1 !important;
    }
    .tally-number {
        font-size: 20px !important;
        margin-left: 3px !important;
    }
}

@media(max-width:1049px) {
    .tally-container {
        display: none !important;
    }
}

@media(min-width:900px) and (max-width:1049px) {
    .button-row button,
    .button-row .btn,
    .button-row .nav-btn,
    .sub-nav-inner button,
    .sub-nav-inner a {
        padding: 4px 10px !important;
        font-size: 12px !important;
        height: auto !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }
    .button-row button:first-child,
    .button-row .btn:first-child,
    .button-row a:first-child {
        margin-left: 300px !important;
    }
}

@media(max-width:900px) {
    .sub-nav-bar {
        display: none !important;
    }
    .sub-nav-inner {
        flex-direction: column;
        gap: 12px;
        padding: 0 10px;
    }
    .button-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .tally-container {
        position: static;
        justify-content: center;
        height: auto;
        padding-top: 5px;
    }
}

@media(max-width:768px) {
    .container {
        grid-template-columns: 1fr;
    }
    .side-col,
    .left-nav,
    #top-slider-bar,
    #top-info-bar,
    .logo-tagline {
        display: none !important;
    }
    .header-inner {
        flex-direction: column;
        min-height: auto;
        padding-bottom: 20px;
    }
    .nav-container {
        margin-top: 8px !important;
        flex-direction: column;
        gap: 8px !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        width: 100% !important;
        padding: 0 5px !important;
    }
    .header-logo {
        margin-bottom: 10px;
    }
    .main-header {
        padding: 8px 10px !important;
    }
    .brand-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 2px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    .logo-wrapper {
        display: none !important;
    }
    .name-wrapper {
        text-align: center !important;
        width: 100% !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .logo-text {
        font-size: 1.3rem !important;
        line-height: 1.1 !important;
        margin: 0 auto !important;
    }
    .mob-only-logo-tagline {
        display: block !important;
        color: #3498db;
        font-size: .75rem !important;
        margin: 2px auto 0 auto !important;
    }
    .mob-only-welcome-message {
        display: block !important;
        font-size: .72rem !important;
        line-height: 1.3 !important;
        margin: 4px auto 0 auto !important;
        padding: 0 5px !important;
        text-align: center !important;
        color: #bdc3c7;
        width: 100% !important;
    }
    .mob-only-filter {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
    }
    .mob-only-filter select {
        width: 100% !important;
        padding: 6px 10px !important;
        border-radius: 12px !important;
        font-size: .8rem !important;
    }
    .nav-container > .nav-item:not(.mob-only-filter) {
        grid-column: span 2 !important;
        width: 100% !important;
    }
    .nav-container > .nav-item:not(.mob-only-filter) select {
        width: 100% !important;
        padding: 6px 10px !important;
        border-radius: 12px !important;
        font-size: .8rem !important;
    }
    .piece-card {
        scroll-margin-top: 110px !important;
    }
    .details-modal-content {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        width: 92% !important;
        padding: 15px !important;
    }
    #details-modal-notes {
        font-size: 12px !important;
        line-height: 1.3 !important;
        padding-left: 12px !important;
        margin: 10px 0 10px 5px !important;
    }
    .mob-hide-image {
        display: none !important;
    }
    .details-info-side {
        width: 100% !important;
    }
}

@media(max-width:480px) {
    .tally-text {
        font-size: 12px;
    }
    .tally-number {
        font-size: 28px;
    }
}

/* Responsive typography for Tablets and Mobile Phones */
@media (max-width: 768px) {
    .welcome-modal .modal-body h2 {
        font-size: 1.4rem; /* Scales down the main title */
    }
    
    .welcome-modal .modal-body h3 {
        font-size: 0.95rem; /* Scales down sub-headings */
    }
    
    .welcome-modal .modal-body p, 
    .welcome-modal .modal-body li {
        font-size: 0.875rem; /* Comfortable, slightly smaller reading size for text/lists */
    }
    
    /* Optional: slightly shrink modal padding on small screens to save valuable screen space */
    .welcome-modal .modal-content {
        padding: 25px 15px 15px 15px;
    }
}