/* ==========================================================
   Followeb – responsive fixes for every glass page (all pages except the home).
   Loaded after glass.css. Rule: at ANY window width nothing may overlap or overflow.
   ========================================================== */

/* never a horizontal scrollbar because of one element that is too wide */
html, body.fw-glass-page { overflow-x: hidden; }
body.fw-glass-page img, body.fw-glass-page iframe, body.fw-glass-page video { max-width: 100%; }

/* ---------- top menu ----------
   Bootstrap shows the full menu from 768px, but with 5-6 items it no longer fits under ~1200px
   and wraps onto the page titles. Below 1200px we use the hamburger, and the open menu is a
   liquid-glass panel (solid enough that the page text never shows through it). */
@media (max-width: 1199px) {
    body.fw-glass-page .discover-custom-header > .container { width: auto; padding-left: 16px; padding-right: 16px; }
    body.fw-glass-page .discover-custom-header .navbar-header { float: none; margin-left: 0 !important; margin-right: 0 !important; }
    body.fw-glass-page .discover-custom-header .navbar-toggle {
        display: block; margin-right: 0; border-radius: 12px; padding: 10px 11px;
        background: rgba(255, 255, 255, .08) !important; border: 1px solid var(--fw-line) !important;
    }
    body.fw-glass-page .discover-custom-header .navbar-toggle:hover,
    body.fw-glass-page .discover-custom-header .navbar-toggle:focus { background: rgba(255, 255, 255, .16) !important; }

    body.fw-glass-page .discover-custom-header .navbar-collapse.collapse { display: none !important; }
    body.fw-glass-page .discover-custom-header .navbar-collapse.collapse.in,
    body.fw-glass-page .discover-custom-header .navbar-collapse.collapsing { display: block !important; }

    body.fw-glass-page .discover-custom-header .navbar-collapse {
        position: absolute; top: calc(100% + 10px); left: 12px; right: 12px; z-index: 1050;
        max-height: calc(100vh - 100px) !important; overflow-y: auto; overflow-x: hidden;
        margin: 0 !important; padding: 8px 20px 12px; border-radius: 24px;
        /* fully opaque (the page text must never show through), glass look from gradient + border + highlight */
        background: linear-gradient(135deg, #2a2236 0%, #17151f 45%, #1b1a2b 100%) !important;
        -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
        border: 1px solid var(--fw-line) !important; border-top-color: rgba(255, 255, 255, .35) !important;
        box-shadow: 0 18px 50px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .2);
    }
    body.fw-glass-page .discover-custom-header .navbar-nav,
    body.fw-glass-page .discover-custom-header .navbar-right { float: none !important; margin: 0 !important; }
    body.fw-glass-page .discover-custom-header .custom-menu-style { margin-top: 0 !important; }
    body.fw-glass-page .discover-custom-header .navbar-nav > li,
    body.fw-glass-page .wrapper.clear .discover-custom-header .custom-menu-style li:first-child {
        float: none !important; display: block !important; width: auto !important; margin: 0 !important; padding: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }
    body.fw-glass-page .discover-custom-header .navbar-nav > li:last-child { border-bottom: 0; }
    body.fw-glass-page .discover-custom-header .navbar-nav > li > a { padding: 14px 4px !important; line-height: 1.3; }

    /* avatar + logout: shown inside the panel instead of a floating dropdown */
    body.fw-glass-page .discover-custom-header .custom-menu-style-des > a.dropdown-toggle { display: none !important; }
    body.fw-glass-page .discover-custom-header .custom-menu-style-des > .dropdown-menu {
        display: block !important; position: static !important; float: none; width: auto; margin: 0 !important; padding: 0;
        opacity: 1 !important; visibility: visible !important; transform: none !important; height: auto !important; max-height: none !important;
        background: transparent !important; border: 0 !important; box-shadow: none !important;
        -webkit-backdrop-filter: none; backdrop-filter: none;
    }
    body.fw-glass-page .discover-custom-header .custom-menu-style-des > .dropdown-menu > li > a {
        padding: 14px 4px !important; color: var(--fw-muted) !important; background: transparent !important;
    }
    body.fw-glass-page .discover-custom-header .custom-menu-style-des > .dropdown-menu > li > a:hover { color: #fff !important; }

    /* guest menu: the CTA as a full-width button */
    body.fw-glass-page .navbar-nav.fw-menu-guest > li > a.fw-nav-cta { display: block; margin: 10px 0 4px !important; text-align: center; padding: 14px 18px !important; }
}

/* ---------- gate wizard (create / edit) ---------- */
/* PREVIOUS / NEXT / FINISH never on top of each other */
body.fw-glass-page .wizard > .actions {
    width: 100% !important; float: none !important; text-align: right;
    position: static !important; top: auto !important; bottom: auto !important; right: auto !important; left: auto !important; margin-top: 18px;
}
/* the card: same inner space on both sides (the theme removed the right padding under 768px) */
body.fw-glass-page #create_gate.steps-main-ele.wizard.clearfix { padding-left: 28px !important; padding-right: 28px !important; }
@media (max-width: 767px) {
    body.fw-glass-page #create_gate.steps-main-ele.wizard.clearfix { padding-left: 16px !important; padding-right: 16px !important; }
}
/* track / user rows: field and remove button side by side, the button never leaves the card */
body.fw-glass-page #create_gate .newItem { display: flex !important; align-items: center; gap: 10px; position: relative; }
body.fw-glass-page #create_gate .newItem > input,
body.fw-glass-page #create_gate .newItem > .form-control { flex: 1 1 auto; min-width: 0; width: auto !important; margin: 0 !important; }
body.fw-glass-page #create_gate .newItem .remove_btn {
    position: static !important; flex: 0 0 38px; width: 38px !important; height: 38px !important; margin: 0 !important; top: auto !important; right: auto !important;
}
body.fw-glass-page .wizard > .actions > ul {
    display: flex !important; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px;
    float: none !important; width: 100%; margin: 0; padding: 0;
}
body.fw-glass-page .wizard > .actions > ul::before,
body.fw-glass-page .wizard > .actions > ul::after { display: none; }
body.fw-glass-page .wizard > .actions > ul > li { float: none !important; margin: 0 !important; position: static !important; }
body.fw-glass-page .wizard > .actions > ul > li[style*="display: none"],
body.fw-glass-page .wizard > .actions > ul > li[aria-hidden="true"] { display: none !important; }
body.fw-glass-page .wizard > .actions > ul > li > a { position: static !important; transform: none !important; display: inline-block !important; }
@media (max-width: 480px) {
    body.fw-glass-page .wizard > .actions > ul > li { flex: 1 1 auto; }
    body.fw-glass-page .wizard > .actions > ul > li > a { display: block; text-align: center; }
}
/* steps bar: only the labels shrink, the numbered circles keep their round shape */
@media (max-width: 640px) {
    body.fw-glass-page .wizard > .steps h6 { font-size: 8.5px !important; letter-spacing: .4px !important; white-space: nowrap; }
}
@media (max-width: 420px) {
    body.fw-glass-page .wizard > .steps h6 { display: none; }
    body.fw-glass-page .wizard > .steps .current h6 { display: block; }
}

/* long words / links never push the page wider */
body.fw-glass-page .deshboard, body.fw-glass-page .container { overflow-wrap: anywhere; }
body.fw-glass-page .input-group { max-width: 100%; }
@media (max-width: 575px) {
    body.fw-glass-page .input-group .input-group-addon { white-space: normal; word-break: break-all; font-size: 12px; }
}

/* login / signup / password reset: the box had a fixed 400px width and left the screen on small phones */
body.fw-glass-page .login { width: auto !important; max-width: min(460px, 100%) !important; box-sizing: border-box; }
@media (max-width: 480px) {
    body.fw-glass-page .login { margin-left: 0 !important; margin-right: 0 !important; padding: 22px 16px !important; }
}

/* ---------- dashboard: list of gates ----------
   Under 768px the 4-column table did not fit: Stats and Edit/Delete ended up outside the card.
   On small screens every gate becomes a stacked block. */
body.fw-glass-page .fw-gate-genres { margin-top: 6px; color: var(--fw-muted); font-size: 13px; }
body.fw-glass-page .fw-gate-genres b { color: #fff; }
body.fw-glass-page .fw-gate-genres-missing a { color: #ffb199 !important; text-decoration: underline; }
@media (max-width: 767px) {
    body.fw-glass-page #dasboard_div.table-responsive { overflow: visible !important; border: 0 !important; margin: 0; }
    body.fw-glass-page #dashboard_table, body.fw-glass-page #dashboard_table tbody,
    body.fw-glass-page #dashboard_table tr, body.fw-glass-page #dashboard_table td { display: block !important; width: 100% !important; }
    body.fw-glass-page #dashboard_table thead { display: none !important; }
    body.fw-glass-page #dashboard_table > tbody > tr { padding: 16px 16px 18px; border-top: 1px solid var(--fw-line); }
    body.fw-glass-page #dashboard_table > tbody > tr:first-child { border-top: 0; }
    body.fw-glass-page #dashboard_table > tbody > tr > td { border: 0 !important; padding: 4px 0 !important; white-space: normal !important; }
    body.fw-glass-page #dashboard_table td .row { margin: 0; }
    body.fw-glass-page #dashboard_table td .row > [class*="col-"] { padding: 0; }
    body.fw-glass-page #dashboard_table td img { max-width: 160px; margin-bottom: 12px; }
    body.fw-glass-page #dashboard_table .copy-icon, body.fw-glass-page #dashboard_table .copy-icon input { max-width: 100%; width: 100%; }
    /* stats on one line */
    body.fw-glass-page #dashboard_table > tbody > tr > td:nth-child(2) br { display: none; }
    body.fw-glass-page #dashboard_table > tbody > tr > td:nth-child(2) i { margin-left: 12px; }
    body.fw-glass-page #dashboard_table > tbody > tr > td:nth-child(2) i:first-child { margin-left: 0; }
    /* actions: buttons side by side, full width */
    body.fw-glass-page #dashboard_table > tbody > tr > td:last-child .btn-group { display: flex !important; gap: 10px; width: 100%; float: none; }
    body.fw-glass-page #dashboard_table > tbody > tr > td:last-child .btn-group > .btn:not(.hidden) { flex: 1 1 0; float: none; margin: 0 !important; text-align: center; border-radius: 999px !important; }
}

/* charts: small podium cards keep the download button inside */
@media (max-width: 420px) {
    #fw-chart .fc-pod:not(:first-child) .fc-dl .fc-lbl { display: none; }
    #fw-chart .fc-pod:not(:first-child) .fc-dl { width: 40px; height: 40px; padding: 0; flex: none; }
}
/* dashboard: the gate number column was removed, the first column is now the track (normal text colour) */
body.fw-glass-page #dashboard_table > tbody > tr > td:first-child { color: var(--fw-text) !important; }
/* column widths for the 3 columns (the theme had widths for 5 columns, starting with the removed "#") */
@media (min-width: 768px) {
    body.fw-glass-page #dasboard_div .table tr td:nth-child(1) { width: 58% !important; padding-right: 3% !important; }
    body.fw-glass-page #dasboard_div .table tr td:nth-child(2) { width: 24% !important; padding-right: 10px !important; }
    body.fw-glass-page #dasboard_div .table tr td:nth-child(3) { width: 18% !important; }
}

/* ---------- dashboard gate rows (2026-11-17 redesign) ---------- */
body.fw-glass-page #dashboard_table th.fw-th-center { text-align: center !important; }
body.fw-glass-page .fw-gr { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px; align-items: start; }
body.fw-glass-page .fw-gr-cover { width: 132px; height: 132px; border-radius: 14px; background: #222 center / cover no-repeat; box-shadow: 0 10px 26px rgba(0, 0, 0, .45); }
body.fw-glass-page .fw-gr-info { min-width: 0; }
body.fw-glass-page .fw-gr-title { font-weight: 800; font-size: 16px; color: #fff; line-height: 1.3; margin-bottom: 6px; }
body.fw-glass-page .fw-gr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
body.fw-glass-page .fw-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--fw-line); font-size: 12px; color: var(--fw-muted); background: rgba(255, 255, 255, .05); white-space: nowrap; }
body.fw-glass-page .fw-chip-peak { color: #ffd98a; border-color: rgba(255, 197, 61, .45); background: rgba(255, 197, 61, .1); }
body.fw-glass-page a.fw-chip-warn { color: #ffb199 !important; border-color: rgba(255, 140, 100, .5); }
body.fw-glass-page .fw-chip-soon { color: #9fd3ff; border-color: rgba(120, 190, 255, .45); background: rgba(120, 190, 255, .1); }
body.fw-glass-page .fw-chip-live { color: #8ff0b8; border-color: rgba(61, 220, 132, .4); background: rgba(61, 220, 132, .08); }
body.fw-glass-page .fw-chip-ended { color: rgba(244, 244, 249, .55); border-style: dashed; }
body.fw-glass-page .fw-gr-link { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 8px; align-items: center; margin-bottom: 8px; }
body.fw-glass-page .fw-gr-k { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--fw-muted); }
body.fw-glass-page .fw-gr-link .copy-icon { margin: 0; position: relative; max-width: 100%; }
body.fw-glass-page .fw-gr-link .copy-icon input { width: 100% !important; max-width: none !important; cursor: copy; font-size: 13px; }
body.fw-glass-page .fw-sbox { border: 1px solid var(--fw-line); border-radius: 16px; background: rgba(255, 255, 255, .05); padding: 12px 10px; margin-bottom: 10px; }
body.fw-glass-page .fw-sbox-h { display: flex; align-items: center; gap: 6px; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--fw-muted); margin-bottom: 8px; padding-left: 4px; }
body.fw-glass-page .fw-sbox-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; text-align: center; }
body.fw-glass-page .fw-sbox-g .v { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 18px; color: #fff; line-height: 1.15; white-space: nowrap; }
body.fw-glass-page .fw-sbox-g .l { font-size: 11px; color: var(--fw-muted); }
body.fw-glass-page .fw-sbox.off .v { color: rgba(244, 244, 249, .38); }
body.fw-glass-page .fw-sbox.off { background: rgba(255, 255, 255, .025); }
body.fw-glass-page .fw-btn-share { background: rgba(255, 255, 255, .12) !important; border: 1px solid rgba(255, 255, 255, .3) !important; box-shadow: none !important; }
body.fw-glass-page #dashboard_table .btn-group { margin: 0 auto; }
@media (min-width: 768px) and (max-width: 1100px) {
    body.fw-glass-page .fw-gr { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
    body.fw-glass-page .fw-gr-cover { width: 96px; height: 96px; }
    body.fw-glass-page .fw-sbox-g .v { font-size: 15px; }
    body.fw-glass-page .fw-gr-link { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 767px) {
    body.fw-glass-page .fw-gr { grid-template-columns: 1fr; gap: 12px; }
    body.fw-glass-page .fw-gr-cover { width: 100%; height: auto; aspect-ratio: 1 / 1; max-width: 260px; }
    body.fw-glass-page .fw-gr-link { grid-template-columns: 64px minmax(0, 1fr); }
    body.fw-glass-page #dashboard_table > tbody > tr > td:last-child .btn-group { flex-wrap: wrap; }
    body.fw-glass-page #dashboard_table > tbody > tr > td:last-child .btn-group > .btn:not(.hidden) { flex: 1 1 40%; }
}

/* dashboard: link to the public artist page */
body.fw-glass-page .fw-artist-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; margin: -6px auto 18px; font-size: 14px; color: var(--fw-muted); text-align: center; }
body.fw-glass-page .fw-artist-bar a { color: #ffb199 !important; font-weight: 700; overflow-wrap: anywhere; }

/* step 5 is now "File & Release": no "/upload" suffix from the old theme */
.wizard > .steps ul[role="tablist"] li:nth-child(5) h6:after { content: none !important; }
