/* =========================
   VOTE TITLE
========================= */
#vote{
  margin-top:0 !important;
  padding:0;
}

#vote .global-content{
  margin-top:0 !important;
  padding:0 16px;
}

.page.vote-page{
    width:100%;
    max-width:768px;
    margin:0 auto;
    padding-top:0;
}

.page.vote-page .vote-sticky{
    position:sticky;
    top:0;
    z-index:1000;
    background:var(--bg-gradient1);
    width:100%;
}


/* VOTE */
.page.vote-page .vote-title-logo{
    width:25px;
    height:25px;
    object-fit:contain;
    flex:0 0 auto;
    border-radius:5px;
}

.page.vote-page .vote-title{
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px 16px 0 16px;
}

.page.vote-page .vote-title h2{
    margin:0;
    font-size:var(--title);
    font-weight:700;
    color:#fff;
    padding:0;
}

/* STATUS TABS */

.page.vote-page .vote-status-tabs{
    height:50px;
    display:flex;
    align-items:stretch;
    margin-top:0;
}

.page.vote-page .status-filter{
    position:relative;
    flex:1;
    height:50px;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:0;
    border:none;
    background:transparent;
    font-family:inherit;
    font-size:14px;
    font-weight:600;
    color:rgba(255,255,255,.65);
    cursor:pointer;
}

.page.vote-page .status-filter.active{
    color:#fff;
}

.page.vote-page .status-filter.active::after{
    content:"";
    position:absolute;
    left:18%;
    right:18%;
    bottom:0;
    height:3px;
    background:#fff;
    border-radius:3px 3px 0 0;
}

/* =========================================================
   SORT / ARTIST BUTTON
========================================================= */

.vote-sort,
.artist-filter {
    position: relative;
}

.sort-btn,
.artist-btn {
    display: flex;
    align-items: center;
    border: none;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    gap:8px;
    border-radius:12px;
    background:#f5f5f5;
    transition:.25s;
}

.sort-btn span,
.artist-btn span {
    margin-left: 3px;
    font-size: 9px;
    transition: transform 0.2s ease;
}

/* =========================
   SORT + ARTIST ROW
========================= */

.vote-filter-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-top:10px;
    margin-bottom: 16px;
}


/* =========================
   SORT
========================= */

.vote-sort{
    position:relative;
    display:flex;
    justify-content:flex-start;
    z-index:100;
}

.sort-btn:hover,
.artist-btn:hover{
    background:#ededed;
}


/* =========================
   SORT DROPDOWN
========================= */

.sort-dropdown,
.artist-dropdown{
    position:absolute;

    top:calc(100% + 8px);
    left:0;

    display:none;

    min-width:190px;

    padding:8px;

    border-radius:18px;

    background:rgba(255,255,255,.85);

    backdrop-filter:blur(30px);
    -webkit-backdrop-filter:blur(30px);

    border:1px solid rgba(255,255,255,.5);

    box-shadow:
        0 12px 30px rgba(0,0,0,.12),
        inset 0 1px rgba(255,255,255,.4);

    z-index:9999;
}


/* OPEN */

.sort-dropdown.active,
.artist-dropdown.active{
    display:block;
}


/* =========================
   OPTIONS
========================= */

.sort-option,
.artist-option{
    display:flex;
    align-items:center;

    padding:12px 14px;

    margin:2px 0;

    border-radius:10px;

    color:#555;

    font-size:14px;
    font-weight:500;

    cursor:pointer;

    transition:.2s;
}

.sort-option:hover,
.artist-option:hover{
    background:rgba(0,0,0,.05);
}

.sort-option.active,
.artist-option.active{
    background:rgba(0,0,0,.06);

    color:#111;

    font-weight:600;
}

.artist-filter{
    position:relative;
    z-index:100;
}

/* =========================
   LIST
========================= */

.vote-loading{
    min-height:420px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:14px;
    color:#6b7280;
    font-weight:600;
}

.loading-spinner{
    width:30px;
    height:30px;
    border:3px solid #d9e6e3;
    border-top-color:#91d3ca;
    border-radius:50%;
    animation:spin .8s linear infinite;
}

@keyframes spin{
    to{
        transform:rotate(360deg);
    }
}

.vote-list{
    display:grid;
    grid-template-columns:1fr;
    gap:16px;
}

/* =========================
   VOTE CARD
========================= */

.vote-card{
    position:relative;
    width:100%;
    aspect-ratio:16 / 9;
    padding:16px;
    border-radius:24px;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--app-color), white 35%),
        color-mix(in srgb, var(--app-color), white 70%)
    );
    overflow:hidden;
    display:flex;
    flex-direction:column;
}


/* =========================
   HEADER
========================= */

.vote-header{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    flex-shrink:0;
}

.vote-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 10px;
}

.vote-status{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:13px;
}

.status{
    padding:5px 10px;
    border-radius:999px;
    background:#fff;
    color:#111;
    font-weight:700;
}

.countdown{
    font-weight:600;
    color:#444;
}


/* =========================
   CENTER CONTENT
========================= */

.vote-body{
    flex:1;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.vote-app{
    font-size:13px;
    font-weight:700;
    color:#1f1f1f;
    margin-bottom:6px;
    text-transform:uppercase;
}

.vote-body h3{
    margin:0;
    font-size:18px;
    font-weight:700;
    line-height:1.3;
    color:#fff;
}


/* =========================
   FOOTER
========================= */

.vote-footer{
    flex-shrink:0;
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
}

.vote-footer small{
    display:block;
    margin-bottom:4px;
    color:#1f1f1f;
    font-size:12px;
    font-weight:600;
}

.vote-footer p{
    margin:0;
    font-size:11px;
    font-weight:600;
    color:#fff;
}

.vote-now{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:8px 14px;
    border-radius:999px;
    background:#fff;
    color:#111;
    font-size:14px;
    font-weight:700;
    text-decoration:none;
    white-space:nowrap;
}

/* =========================
   TABLET
========================= */

@media (min-width:768px){

    .vote-list{
        grid-template-columns:repeat(2, 1fr);
        gap:18px;
    }
}

/* =========================
   DESKTOP 
========================= */

@media (min-width:1024px){
    .global-content{
        width:100%;
        max-width:1024px;
        margin:0 auto;
    }

    .vote-list{
        grid-template-columns:repeat(2, 1fr);
        gap:20px;
    }
    
}

.vote-empty{
    width:100%;
    min-height:180px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    font-size:14px;
    font-weight:500;
    color:#999;
}

.vote-loading,
.loading-spinner,
.vote-empty{
    grid-column:1 / -1;
}