/* YesStreaming Centova theme 2.13.35 */

body.ys-theme {
    margin: 0;
    padding: 0 0 28px;
    background: #f4f6fb;
    background-image: none;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* No scroll bounce: the sticky header and the fixed sidebar would drift apart
   and show the page background between them. */
html:has(body.ys-theme),
body.ys-theme {
    overscroll-behavior-y: none;
}

/* Desktop: the left 240px behind the sidebar is dark too, so no white can show
   under the logo while scrolling. */
@media (min-width: 1181px) {
    /* Floating player centred in the content area, right of the sidebar. */
    body.ys-theme .ys-fp {
        left: calc(50% + 120px);
    }

    html:has(body.ys-theme),
    body.ys-theme {
        background: linear-gradient(90deg, #0c1424 0, #0c1424 240px, #f4f6fb 240px) fixed;
    }
}

body.ys-theme,
body.ys-theme input,
body.ys-theme select,
body.ys-theme textarea,
body.ys-theme td,
body.ys-theme th,
body.ys-theme button {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
}

body.ys-theme a:link,
body.ys-theme a:visited,
body.ys-theme a:active {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}

body.ys-theme a:hover {
    text-decoration: none;
}

.ys-clear {
    clear: both;
}

/* Sidebar menu */

body.ys-theme #leftcolumn {
    position: fixed;
    top: 72px;
    left: 0;
    bottom: 0;
    box-sizing: border-box;
    width: 240px;
    margin: 0;
    padding: 6px 0 24px;
    float: none;
    overflow-x: hidden;
    overflow-y: auto;
    /* Glow positions continue the logo block above (72px higher). */
    background:
        radial-gradient(280px 240px at 0% -72px, rgba(236, 72, 153, 0.22), transparent 70%),
        radial-gradient(260px 220px at 100% 40%, rgba(139, 92, 246, 0.16), transparent 70%),
        linear-gradient(180deg, #0c1424 0%, #0a1120 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
    z-index: 30;
}

body.ys-theme #navigation,
body.ys-theme #navigation #navigation-content {
    background: transparent;
    background-image: none;
    height: auto;
}

body.ys-theme .navigation-section,
body.ys-theme .navigation-section.last {
    height: auto;
    margin: 0;
    padding: 0 14px 6px;
    clear: both;
    background: transparent;
    background-image: none;
}

body.ys-theme .navigation-links {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
}

.ys-nav-label {
    margin: 18px 10px 8px;
    color: #f9a8d4;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body.ys-theme a.ys-nav-link,
body.ys-theme a.ys-nav-link:link,
body.ys-theme a.ys-nav-link:visited,
body.ys-theme a.ys-nav-link:active {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 2px 0;
    padding: 6px 10px 6px 6px;
    border-radius: 12px;
    color: #b8c4d8;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.3;
    transition: background 0.15s ease, color 0.15s ease;
}

body.ys-theme a.ys-nav-link::before {
    content: "";
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

body.ys-theme a.ys-nav-link::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 14px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    background: currentColor;
    -webkit-mask: url("icons/link.svg") center / 16px 16px no-repeat;
    mask: url("icons/link.svg") center / 16px 16px no-repeat;
}

body.ys-theme a.ys-nav-link[href="index.php"]::after,
body.ys-theme a.ys-nav-link[href$="/index.php"]::after { -webkit-mask-image: url("icons/home.svg"); mask-image: url("icons/home.svg"); }
body.ys-theme a.ys-nav-link[href*="page=quicklinks"]::after { -webkit-mask-image: url("icons/bolt.svg"); mask-image: url("icons/bolt.svg"); }
body.ys-theme a.ys-nav-link[href*="page=configure"]::after,
body.ys-theme a.ys-nav-link[href*="page=settings"]::after { -webkit-mask-image: url("icons/gear.svg"); mask-image: url("icons/gear.svg"); }
body.ys-theme a.ys-nav-link[href*="page=widgets"]::after { -webkit-mask-image: url("icons/grid.svg"); mask-image: url("icons/grid.svg"); }
body.ys-theme a.ys-nav-link[href*="page=djaccounts"]::after { -webkit-mask-image: url("icons/mic.svg"); mask-image: url("icons/mic.svg"); }
body.ys-theme a.ys-nav-link[href*="page=statistics"]::after,
body.ys-theme a.ys-nav-link[href*="page=accountstats"]::after { -webkit-mask-image: url("icons/chart.svg"); mask-image: url("icons/chart.svg"); }
body.ys-theme a.ys-nav-link[href*="page=livestats"]::after { -webkit-mask-image: url("icons/headphones.svg"); mask-image: url("icons/headphones.svg"); }
body.ys-theme a.ys-nav-link[href*="page=logs"]::after { -webkit-mask-image: url("icons/file.svg"); mask-image: url("icons/file.svg"); }
body.ys-theme a.ys-nav-link[href*="action=start"]::after { -webkit-mask-image: url("icons/play.svg"); mask-image: url("icons/play.svg"); }
body.ys-theme a.ys-nav-link[href*="action=stop"]::after { -webkit-mask-image: url("icons/stop.svg"); mask-image: url("icons/stop.svg"); }
body.ys-theme a.ys-nav-link[href*="action=restart"]::after { -webkit-mask-image: url("icons/restart.svg"); mask-image: url("icons/restart.svg"); }
body.ys-theme a.ys-nav-link[href*="page=serveradmin"]::after,
body.ys-theme a.ys-nav-link[href*="page=serverstatus"]::after { -webkit-mask-image: url("icons/shield.svg"); mask-image: url("icons/shield.svg"); }
body.ys-theme a.ys-nav-link[href*="page=playlists"]::after { -webkit-mask-image: url("icons/list.svg"); mask-image: url("icons/list.svg"); }
body.ys-theme a.ys-nav-link[href*="page=library"]::after,
body.ys-theme a.ys-nav-link[href*="page=media"]::after { -webkit-mask-image: url("icons/music.svg"); mask-image: url("icons/music.svg"); }
body.ys-theme a.ys-nav-link[href*="page=filemanager"]::after { -webkit-mask-image: url("icons/folder.svg"); mask-image: url("icons/folder.svg"); }
body.ys-theme a.ys-nav-link[href*="page=accounts"]::after { -webkit-mask-image: url("icons/server.svg"); mask-image: url("icons/server.svg"); }
body.ys-theme a.ys-nav-link[href*="page=accountstats"]::after { -webkit-mask-image: url("icons/chart.svg"); mask-image: url("icons/chart.svg"); }
body.ys-theme a.ys-nav-link[href*="page=staffaccounts"]::after { -webkit-mask-image: url("icons/users.svg"); mask-image: url("icons/users.svg"); }
body.ys-theme a.ys-nav-link[href*="page=emails"]::after { -webkit-mask-image: url("icons/file.svg"); mask-image: url("icons/file.svg"); }
body.ys-theme a.ys-nav-link[href*="page=rpchosts"]::after { -webkit-mask-image: url("icons/link.svg"); mask-image: url("icons/link.svg"); }
body.ys-theme a.ys-nav-link[href*="page=accounttemplates"]::after { -webkit-mask-image: url("icons/grid.svg"); mask-image: url("icons/grid.svg"); }
body.ys-theme a.ys-nav-link[href*="page=news"]::after { -webkit-mask-image: url("icons/list.svg"); mask-image: url("icons/list.svg"); }
body.ys-theme a.ys-nav-link[href*="page=utilities"]::after { -webkit-mask-image: url("icons/cog.svg"); mask-image: url("icons/cog.svg"); }
body.ys-theme a.ys-nav-link[href*="logout"]::after { -webkit-mask-image: url("icons/logout.svg"); mask-image: url("icons/logout.svg"); }

body.ys-theme a.ys-nav-link:hover {
    background: rgba(236, 72, 153, 0.1);
    color: #ffffff;
}

body.ys-theme a.ys-nav-link:hover::before {
    background: rgba(236, 72, 153, 0.22);
}

body.ys-theme a.ys-nav-link[href="index.php"]::before,
body.ys-theme a.ys-nav-link[href$="/index.php"]::before { background: rgba(236, 72, 153, 0.18); }
body.ys-theme a.ys-nav-link[href*="page=quicklinks"]::before { background: rgba(245, 158, 11, 0.18); }
body.ys-theme a.ys-nav-link[href*="page=configure"]::before,
body.ys-theme a.ys-nav-link[href*="page=settings"]::before { background: rgba(139, 92, 246, 0.18); }
body.ys-theme a.ys-nav-link[href*="page=widgets"]::before { background: rgba(20, 184, 166, 0.18); }
body.ys-theme a.ys-nav-link[href*="page=djaccounts"]::before { background: rgba(244, 63, 94, 0.18); }
body.ys-theme a.ys-nav-link[href*="page=statistics"]::before,
body.ys-theme a.ys-nav-link[href*="page=accountstats"]::before { background: rgba(59, 130, 246, 0.18); }
body.ys-theme a.ys-nav-link[href*="page=livestats"]::before { background: rgba(14, 165, 233, 0.18); }
body.ys-theme a.ys-nav-link[href*="page=logs"]::before { background: rgba(148, 163, 184, 0.16); }
body.ys-theme a.ys-nav-link[href*="action=start"]::before { background: rgba(34, 197, 94, 0.2); }
body.ys-theme a.ys-nav-link[href*="action=stop"]::before { background: rgba(239, 68, 68, 0.2); }
body.ys-theme a.ys-nav-link[href*="action=restart"]::before { background: rgba(59, 130, 246, 0.18); }
body.ys-theme a.ys-nav-link[href*="page=playlists"]::before { background: rgba(139, 92, 246, 0.18); }
body.ys-theme a.ys-nav-link[href*="page=library"]::before,
body.ys-theme a.ys-nav-link[href*="page=media"]::before { background: rgba(236, 72, 153, 0.18); }
body.ys-theme a.ys-nav-link[href*="page=filemanager"]::before { background: rgba(249, 115, 22, 0.18); }
body.ys-theme a.ys-nav-link[href*="logout"]::before { background: rgba(239, 68, 68, 0.16); }

body.ys-theme a.ys-nav-link[href*="action=stop"]:hover::before { background: rgba(239, 68, 68, 0.32); }
body.ys-theme a.ys-nav-link[href*="action=start"]:hover::before { background: rgba(34, 197, 94, 0.32); }
body.ys-theme a.ys-nav-link[href*="logout"]:hover::before { background: rgba(239, 68, 68, 0.28); }

body.ys-theme a.ys-nav-current,
body.ys-theme a.ys-nav-current:link,
body.ys-theme a.ys-nav-current:visited,
body.ys-theme a.ys-nav-current:hover {
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.28), rgba(139, 92, 246, 0.08));
    color: #ffffff;
    font-weight: 600;
}

body.ys-theme a.ys-nav-current::before,
body.ys-theme a.ys-nav-current:hover::before {
    background: linear-gradient(145deg, #ec4899, #8b5cf6);
    box-shadow: 0 6px 14px -4px rgba(236, 72, 153, 0.7);
}

body.ys-theme .navigation-end,
body.ys-theme .nav-section-icon {
    display: none;
}

body.ys-theme #autodj_control_buttons {
    display: flex;
    float: none;
    width: auto;
    gap: 6px;
    margin: 2px 0 6px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

body.ys-theme #autodj_control_buttons a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    height: 32px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
    color: #b8c4d8;
    transition: background 0.15s ease, color 0.15s ease;
}

body.ys-theme #autodj_control_buttons a::before {
    content: "";
    width: 15px;
    height: 15px;
    background: currentColor;
    -webkit-mask: url("icons/gear.svg") center / 15px 15px no-repeat;
    mask: url("icons/gear.svg") center / 15px 15px no-repeat;
}

body.ys-theme #autodj_control_buttons a[href*="switch=down"]::before { -webkit-mask-image: url("icons/stop.svg"); mask-image: url("icons/stop.svg"); }
body.ys-theme #autodj_control_buttons a[href*="switch=up"]::before { -webkit-mask-image: url("icons/play.svg"); mask-image: url("icons/play.svg"); }
body.ys-theme #autodj_control_buttons a[href*="nextsong"]::before { -webkit-mask-image: url("icons/skip.svg"); mask-image: url("icons/skip.svg"); }

body.ys-theme #autodj_control_buttons a:hover {
    background: rgba(236, 72, 153, 0.28);
    color: #ffffff;
}

body.ys-theme #autodj_control_buttons a[href*="switch=down"]:hover { background: rgba(239, 68, 68, 0.3); }
body.ys-theme #autodj_control_buttons a[href*="switch=up"]:hover { background: rgba(34, 197, 94, 0.3); }

body.ys-theme #userclassident {
    position: relative;
    margin: 14px 14px 0;
    padding: 10px 12px 10px 54px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #8ea0bb;
    font-size: 12px;
    line-height: 1.4;
}

body.ys-theme #userclassident::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 12px;
    width: 32px;
    height: 32px;
    margin-top: -16px;
    border-radius: 10px;
    background: linear-gradient(145deg, #ec4899, #8b5cf6);
}

body.ys-theme #userclassident::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 20px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    background: #ffffff;
    -webkit-mask: url("icons/shield.svg") center / 16px 16px no-repeat;
    mask: url("icons/shield.svg") center / 16px 16px no-repeat;
}

body.ys-theme #userclassident img {
    display: none;
}

body.ys-theme #userclassident div {
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
}

body.ys-theme #autodj_control_buttons img {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* Top bar */

body.ys-theme #topbar {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 72px;
    min-height: 72px;
    margin: 0;
    padding: 0 22px 0 0;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.9);
    background-image: none;
    border-bottom: 1px solid #e6eaf2;
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    color: #0f172a;
    position: sticky;
    top: 0;
    z-index: 40;
}

/* Logo block and sidebar form one dark panel: same glow, same right edge,
   and the block covers the header's bottom border so no line runs under it. */
.ys-brand {
    display: flex;
    align-items: center;
    flex: 0 0 240px;
    align-self: flex-start;
    width: 240px;
    height: 73px;
    margin-bottom: -1px;
    padding-left: 16px;
    box-sizing: border-box;
    background:
        radial-gradient(280px 240px at 0% 0%, rgba(236, 72, 153, 0.22), transparent 70%),
        #0c1424;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    z-index: 1;
}

.ys-brand img {
    display: block;
    width: auto;
    max-width: 200px;
    max-height: 50px;
}

body.ys-theme #topbar_admin,
body.ys-theme #topbar_client {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    padding-left: 10px;
    overflow: hidden;
    color: #475569;
}

body.ys-theme #topbar_admin > div,
body.ys-theme #topbar_client_tunein {
    float: none;
}

body.ys-theme #topbar_admin > div {
    order: 2;
    margin-left: auto;
    color: #94a3b8;
    font-size: 12px;
}

body.ys-theme #topbar_client_tunein,
body.ys-theme #topbar_client > img {
    display: none;
}

body.ys-theme #topbar a,
body.ys-theme #topbar a:link,
body.ys-theme #topbar a:visited,
body.ys-theme #topbar a:hover {
    color: #0f172a;
}

.ys-top-song {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    max-width: 560px;
    height: 44px;
    padding: 0 16px 0 6px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    background:
        linear-gradient(120deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.06) 45%, rgba(255, 255, 255, 0) 70%),
        rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(16px) saturate(1.6);
    backdrop-filter: blur(16px) saturate(1.6);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.ys-top-onair {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
}

.ys-top-onair::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

body.ys-theme #coverfloat,
body.ys-theme #coverfloat_gloss {
    display: none;
}

body.ys-theme #client-audio {
    position: static;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    height: 32px;
    line-height: 0;
}

body.ys-theme #client-audio #client-player {
    height: 32px;
    margin: 0;
    padding: 0;
}

body.ys-theme .ys-top-song #client-audio {
    margin-left: 0;
}

body.ys-theme #client-audio.ys-top-audio {
    margin-left: auto;
}

body.ys-theme #client-audio #client-tunein {
    display: none;
}

body.ys-theme #client-player .cell {
    padding: 0;
}

body.ys-theme #client-player button.mainbutton {
    position: relative;
    display: block;
    width: 32px;
    min-width: 0;
    height: 32px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff5c9a, #ec4899 55%, #c026d3);
    box-shadow: 0 2px 6px rgba(236, 72, 153, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 0;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

body.ys-theme #client-player button.mainbutton::after {
    display: none;
}

/* Replaces Centova's off-centre triangle with a centred icon */
body.ys-theme #client-player button.mainbutton::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -6px;
    border: 0;
    background: #ffffff;
    transform: none;
    -webkit-mask: url("icons/play-solid.svg") center / contain no-repeat;
    mask: url("icons/play-solid.svg") center / contain no-repeat;
}

body.ys-theme #client-player button.mainbutton.stop::before {
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    transform: none;
    -webkit-mask-image: url("icons/stop-solid.svg");
    mask-image: url("icons/stop-solid.svg");
}

body.ys-theme #client-player button.mainbutton:hover {
    background: linear-gradient(145deg, #ff5c9a, #ec4899 55%, #c026d3);
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    color: #ffffff;
    transform: scale(1.06);
}

body.ys-theme #client-player button.mainbutton.stop {
    animation: ys-play-pulse 1.8s ease-out infinite;
}

@keyframes ys-play-pulse {
    0% { box-shadow: 0 2px 6px rgba(236, 72, 153, 0.35), 0 0 0 0 rgba(236, 72, 153, 0.45); }
    100% { box-shadow: 0 2px 6px rgba(236, 72, 153, 0.35), 0 0 0 5px rgba(236, 72, 153, 0); }
}

.ys-top-onair.is-off {
    background: #f1f4f9;
    color: #64748b;
}

.ys-top-onair.is-off::before {
    background: #94a3b8;
    box-shadow: none;
}

.ys-top-title {
    min-width: 0;
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ys-top-artist {
    flex: 0 1 auto;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

body.ys-theme #nowplaying {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.ys-wave {
    display: none;
}

.ys-clock,
.ys-user {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    height: 36px;
    padding: 0 12px;
    border-radius: 10px;
    background: #f1f4f9;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.ys-clock::before,
.ys-user::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    background: currentColor;
}

.ys-clock::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ys-user::before {
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.4-4 4.2-6 8-6s6.6 2 8 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.4-4 4.2-6 8-6s6.6 2 8 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.ys-theme #logobar {
    position: absolute;
    top: 28px;
    right: 290px;
    width: auto;
    height: auto;
    margin-left: 0;
    padding: 0;
    background: transparent;
    background-image: none;
    z-index: 41;
}

body.ys-theme #notifyanchor {
    float: none;
    width: 16px;
    height: 16px;
    margin: 0;
}

/* Page layout */

body.ys-theme #header,
body.ys-theme #maincontent,
body.ys-theme #footer {
    margin-left: 240px;
}

body.ys-theme #header {
    height: auto;
    padding: 22px 28px 0;
    background: transparent;
    border: 0;
    box-sizing: border-box;
}

body.ys-theme #header #header_content,
body.ys-theme #header #header_right,
body.ys-theme #heading #heading_content,
body.ys-theme #heading #heading_right {
    float: none;
    width: auto;
    height: auto;
    padding: 0;
    overflow: visible;
}

body.ys-theme #header h1 {
    margin: 0;
    background: linear-gradient(90deg, #db2777, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

body.ys-theme #header h2 {
    height: auto;
    margin: 2px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

body.ys-theme #section_icon,
body.ys-theme #heading_icon {
    display: none;
}

body.ys-theme .headermetergroup {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    float: none;
    height: auto;
    margin: 14px 0 0;
    overflow: visible;
}

body.ys-theme .headermeter,
body.ys-theme .headermeter.last {
    float: none;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #e6eaf2;
    border-radius: 16px;
    background: #ffffff;
    color: #0f172a;
}

/* Admin header: page title plus usage meter cards */

body.ys-theme #header:has(.headermetergroup) {
    display: block;
}

body.ys-theme .headermetergroup {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 16px 0 0;
}

body.ys-theme .headermeter,
body.ys-theme .headermeter.last {
    position: relative;
    min-height: 44px;
    padding: 18px 18px 18px 78px;
    border-radius: 18px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

body.ys-theme .headermeter span {
    display: block;
    margin-top: 2px;
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
}

body.ys-theme .headermeter > img {
    display: none;
}

body.ys-theme .headermeter::before,
body.ys-theme .headermeter::after {
    content: '';
    position: absolute;
    top: 18px;
    left: 18px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
}

body.ys-theme .headermeter::before {
    background: linear-gradient(150deg, #4ade80, #16a34a);
    box-shadow: 0 8px 18px rgba(22, 163, 74, 0.25);
}

body.ys-theme .headermeter::after {
    top: 31px;
    left: 31px;
    width: 20px;
    height: 20px;
    border-radius: 0;
    background: #ffffff;
    -webkit-mask: url("icons/cloud.svg") center / contain no-repeat;
    mask: url("icons/cloud.svg") center / contain no-repeat;
}

body.ys-theme .headermeter:nth-child(2)::before {
    background: linear-gradient(150deg, #fdba74, #f97316);
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.25);
}

body.ys-theme .headermeter:nth-child(2)::after {
    -webkit-mask-image: url("icons/disk.svg");
    mask-image: url("icons/disk.svg");
}

body.ys-theme .headermeter:nth-child(3)::before {
    background: linear-gradient(150deg, #60a5fa, #2563eb);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

body.ys-theme .headermeter:nth-child(3)::after {
    -webkit-mask-image: url("icons/users.svg");
    mask-image: url("icons/users.svg");
}

body.ys-theme .headermeter .graph_bg {
    width: auto;
    height: 7px;
    margin: 12px 0 0 -60px;
    padding: 0;
    border-radius: 99px;
    background: #eef1f6;
    background-image: none;
    overflow: hidden;
}

body.ys-theme .headermeter .graph_fg {
    max-width: 100%;
    height: 7px;
    border-radius: 99px;
    background: #22c55e;
    background-image: none;
}

body.ys-theme .headermeter:nth-child(2) .graph_fg { background: #f97316; }
body.ys-theme .headermeter:nth-child(3) .graph_fg { background: #2563eb; }

/* Admin button bars (accounts list etc.) */

body.ys-theme .buttonbar .boxcontent {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #fbcfe8;
    border-radius: 14px;
    background: #fdf8fc;
}

body.ys-theme .buttonbar ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    float: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.ys-theme .buttonbar li {
    float: none;
    margin: 0;
}

body.ys-theme .buttonbar .buttonbar_divider {
    display: none;
}

body.ys-theme .box.buttonbar {
    float: none;
    width: auto;
    margin-bottom: 16px;
}

body.ys-theme .buttonbar li > div {
    padding: 0;
    background-image: none;
}

body.ys-theme .buttonbar ul {
    gap: 8px;
}

body.ys-theme .buttonbar .boxinner,
body.ys-theme .buttonbar .boxcontent,
body.ys-theme .buttonbar ul,
body.ys-theme .buttonbar li,
body.ys-theme .buttonbar li > div {
    height: auto;
    overflow: visible;
}

body.ys-theme .buttonbar li {
    padding: 0;
}

body.ys-theme .buttonbar li > div > a {
    display: block;
    padding: 8px 14px 8px 34px;
    border: 1px solid #dbe2ec;
    border-radius: 10px;
    background: #ffffff no-repeat 12px center / 15px 15px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    text-decoration: none;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}

body.ys-theme .buttonbar li > div > a:hover {
    border-color: #f9a8d4;
    background-color: #fdf2f8;
    box-shadow: 0 2px 6px rgba(236, 72, 153, .12);
    color: #be185d;
}

body.ys-theme .buttonbar .btnstart > div > a:hover,
body.ys-theme .buttonbar .btnunsuspend > div > a:hover {
    border-color: #a7e3c0;
    background-color: #ecfdf3;
    color: #047857;
}

body.ys-theme .buttonbar .btnstop > div > a:hover,
body.ys-theme .buttonbar .btnsuspend > div > a:hover {
    border-color: #f5d49a;
    background-color: #fff8eb;
    color: #b45309;
}

body.ys-theme .buttonbar .btndelete > div > a:hover {
    border-color: #f5b5b5;
    background-color: #fef2f2;
    color: #b91c1c;
}

body.ys-theme .buttonbar #btnnew > div > a,
body.ys-theme .buttonbar .btnnew > div > a {
    border-color: transparent;
    background-color: #ec4899;
    background-image: url("icons/c-add-white.svg"), linear-gradient(135deg, #ec4899, #8b5cf6);
    box-shadow: 0 4px 12px rgba(236, 72, 153, .28);
    color: #ffffff;
}

body.ys-theme .buttonbar #btnnew > div > a:hover,
body.ys-theme .buttonbar .btnnew > div > a:hover {
    border-color: transparent;
    background-color: #db2777;
    background-image: url("icons/c-add-white.svg"), linear-gradient(135deg, #db2777, #7c3aed);
    color: #ffffff;
}

body.ys-theme .buttonbar .btnnew > div > a,
body.ys-theme .buttonbar #btnnew > div > a { background-repeat: no-repeat, no-repeat; background-position: 12px center, 0 0; background-size: 15px 15px, auto; }
body.ys-theme .buttonbar .btnstart > div > a,
body.ys-theme .buttonbar .btnunsuspend > div > a { background-image: url("icons/c-enable.svg"); }
body.ys-theme .buttonbar .btnstop > div > a,
body.ys-theme .buttonbar .btnsuspend > div > a { background-image: url("icons/c-disable.svg"); }
body.ys-theme .buttonbar .btndelete > div > a { background-image: url("icons/c-delete.svg"); }
body.ys-theme .buttonbar .btnview > div > a { background-image: url("icons/c-info.svg"); }
body.ys-theme .buttonbar .pagenav > div > a { padding-left: 12px; }

body.ys-theme .buttonbar input[type="text"] {
    width: 200px;
    padding: 8px 12px;
    border: 1px solid #dbe2ec;
    border-radius: 10px;
    background: #ffffff;
    font-size: 13px;
    line-height: 18px;
}

body.ys-theme #heading {
    display: flow-root;
}

body.ys-theme #heading_right {
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

body.ys-theme #maincontent {
    margin: 18px 28px 0 268px;
    border: 1px solid #f1e4f3;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(139, 92, 246, .06);
}

body.ys-theme .content-top,
body.ys-theme .content-top-inner,
body.ys-theme .content-bottom,
body.ys-theme .content-bottom-inner,
body.ys-theme .content-container,
body.ys-theme .content-container-inner,
body.ys-theme .content-container-innermost {
    height: auto;
    background: transparent;
    background-image: none;
}

body.ys-theme #heading {
    height: auto;
    padding: 22px 24px 4px;
}

body.ys-theme #heading h1 {
    margin: 0;
    background: linear-gradient(90deg, #db2777, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

body.ys-theme #heading h2 {
    height: auto;
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

body.ys-theme .content-area {
    padding: 14px 24px 24px;
}

/* Content pages: boxes, tabs, forms, tables */

body.ys-theme .box {
    margin-bottom: 16px;
    padding: 0;
    border: 1px solid #f1e4f3;
    border-radius: 16px;
    background: linear-gradient(90deg, #ec4899, #8b5cf6) top / 100% 4px no-repeat, #ffffff;
    box-shadow: 0 8px 24px rgba(139, 92, 246, .06);
    overflow: hidden;
}

body.ys-theme .boxinner {
    background: transparent;
    border-radius: 0;
}

body.ys-theme .boxtitle {
    padding: 14px 18px;
    border-bottom: 1px solid #fce7f3;
    background: #fdf8fc;
    color: #be185d;
    font-size: 14px;
    font-weight: 700;
}

body.ys-theme .boxcontent {
    padding: 14px 18px 16px;
    color: #334155;
    line-height: 1.6;
}

body.ys-theme .tabset {
    height: auto;
    margin: 0 0 20px;
    padding: 0;
    border: 0;
    background: none;
    background-image: none;
    overflow: visible !important;
}

body.ys-theme .tabset > div {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 100%;
    padding: 5px;
    box-sizing: border-box;
    border: 1px solid #fbcfe8;
    border-radius: 14px;
    background: #fdf2f8;
    background-image: none;
}

body.ys-theme .tabset .tab {
    float: none;
    height: auto;
    margin: 0;
}

body.ys-theme .tabset .tab_left,
body.ys-theme .tabset .tab_right {
    display: none;
}

body.ys-theme .tabset .tab_center,
body.ys-theme .tabset .tab_center_active {
    float: none;
    height: auto;
    padding: 0;
    background: none;
    background-image: none;
}

body.ys-theme .tabset .tab_center a,
body.ys-theme .tabset .tab_center a:link,
body.ys-theme .tabset .tab_center a:visited {
    display: block;
    margin: 0;
    padding: 8px 14px;
    border: 0;
    border-radius: 10px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

body.ys-theme .tabset .tab_center a:hover {
    background: rgba(255, 255, 255, 0.7);
    color: #0f172a;
}

body.ys-theme .tabset .tab_center_active a,
body.ys-theme .tabset .tab_center_active a:link,
body.ys-theme .tabset .tab_center_active a:visited {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    box-shadow: 0 6px 14px rgba(236, 72, 153, .28);
    color: #ffffff;
}

body.ys-theme .tab_page,
body.ys-theme .tab_page_list {
    height: auto !important;
    min-height: 0;
    padding: 4px 0 0;
    border: 0;
    background: none;
    background-image: none;
    overflow: visible;
}

body.ys-theme fieldset {
    margin: 0 0 14px;
    padding: 14px 16px;
    border: 1px solid #f1e4f3;
    border-radius: 12px;
}

body.ys-theme legend {
    padding: 0 6px;
    color: #be185d;
    font-weight: 700;
}

body.ys-theme .content-area table {
    border-collapse: collapse;
}

body.ys-theme .content-area td {
    padding: 7px 10px;
    color: #334155;
    vertical-align: middle;
}

body.ys-theme .content-area th {
    padding: 10px;
    border-bottom: 1px solid #fce7f3;
    background: #fdf8fc;
    color: #be185d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
}

body.ys-theme .content-area table.listtable td,
body.ys-theme .content-area table.list td {
    border-bottom: 1px solid #f1f4f9;
}

/* Content pages: page header with status tiles */

body.ys-theme #header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

body.ys-theme #header #header_content {
    flex: 1 1 auto;
    min-width: 0;
}

/* Dashboard: stat cards live in #header_right and need the full width */
body.ys-theme #header:has(.ys-stats) {
    display: block;
}

body.ys-theme #header #header_right {
    flex: 0 0 auto;
}

body.ys-theme #header .streamstatus {
    display: flex;
    gap: 8px;
}

body.ys-theme #header .streamstatus img {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

/* Admin account list: per-station server icon (Centova's accounts_map.png sprite) */
body.ys-theme .servericon {
    width: 24px;
    height: 24px;
    margin-left: 0;
    background: url("icons/c-acct-idle.svg") center / 24px 24px no-repeat;
}

body.ys-theme .servericon.svrup { background-image: url("icons/c-acct-up.svg"); }
body.ys-theme .servericon.svrdown { background-image: url("icons/c-acct-down.svg"); }
body.ys-theme .servericon.suspended { background-image: url("icons/c-acct-suspended.svg"); }

/* Account hover box: Centova can report a stopped server as online with its last song.
   Trust the server state icon it sets in the same box instead (!important beats jQuery's inline show/hide). */
body.ys-theme #rowovertab_details:has(#rowovertab_serverstate[src*="serverdown"]) #rowovertab_online {
    display: none !important;
}

body.ys-theme #rowovertab_details:has(#rowovertab_serverstate[src*="serverdown"]) #rowovertab_offline {
    display: block !important;
}

body.ys-theme img[src*="status/serverup"] { content: url("icons/c-server-up.svg"); }
body.ys-theme img[src*="status/serverdown"] { content: url("icons/c-server-down.svg"); }
body.ys-theme img[src*="status/autodjup"] { content: url("icons/c-autodj-up.svg"); }
body.ys-theme img[src*="status/autodjdown"] { content: url("icons/c-autodj-down.svg"); }
body.ys-theme img[src*="status/sourceup"] { content: url("icons/c-source-up.svg"); }
body.ys-theme img[src*="status/sourcedown"] { content: url("icons/c-source-down.svg"); }

/* Content pages: vector replacements for Centova's small icons */

body.ys-theme .content-area img[src*="icons/add."] { content: url("icons/c-add.svg"); }
body.ys-theme .content-area img[src*="icons/delete."] { content: url("icons/c-delete.svg"); }
body.ys-theme .content-area img[src*="icons/edit."] { content: url("icons/c-edit.svg"); }
body.ys-theme .content-area img[src*="icons/enable."] { content: url("icons/c-enable.svg"); }
body.ys-theme .content-area img[src*="icons/disable."] { content: url("icons/c-disable.svg"); }
body.ys-theme .content-area img[src*="icons/information."] { content: url("icons/c-info.svg"); }
body.ys-theme .content-area img[src*="icons/trend-up."] { content: url("icons/c-trend.svg"); }
body.ys-theme .content-area img[src*="models/playlist."] { content: url("icons/c-playlist.svg"); }
body.ys-theme .content-area img[src*="models/djaccount."] { content: url("icons/c-dj.svg"); }
body.ys-theme .content-area img[src*="library/library."] { content: url("icons/c-library.svg"); }
body.ys-theme .content-area img[src*="filemanager/filemanager."] { content: url("icons/c-folder.svg"); }
body.ys-theme .content-area img[src*="images/csv."] { content: url("icons/c-csv.svg"); }

body.ys-theme .content-area img[src*="icons/delete."],
body.ys-theme .content-area img[src*="icons/edit."],
body.ys-theme .content-area img[src*="icons/enable."],
body.ys-theme .content-area img[src*="icons/disable."],
body.ys-theme .content-area img[src*="models/"] {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

body.ys-theme .content-area a img[src*="icons/delete."],
body.ys-theme .content-area a img[src*="icons/edit."],
body.ys-theme .content-area a img[src*="icons/enable."],
body.ys-theme .content-area a img[src*="icons/disable."] {
    margin: 0 2px;
    transition: transform 0.15s ease, filter 0.15s ease;
}

body.ys-theme .content-area a:hover img[src*="icons/"] {
    transform: translateY(-1px);
    filter: saturate(1.4);
}

body.ys-theme .content-area img[src*="icons/add."],
body.ys-theme .content-area img[src*="icons/information."],
body.ys-theme .content-area img[src*="icons/trend-up."],
body.ys-theme .content-area img[src*="images/csv."] {
    width: 18px;
    height: 18px;
    vertical-align: -4px;
}

body.ys-theme .content-area img[src*="library/library."],
body.ys-theme .content-area img[src*="filemanager/filemanager."] {
    width: 28px;
    height: 28px;
    vertical-align: middle;
}

/* Content pages: list captions and data tables */

body.ys-theme .listcaption {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 10px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
}

body.ys-theme .listcaption > div[style*="float"] {
    order: 2;
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
}

body.ys-theme .listcaption > div[style*="float"] a,
body.ys-theme .listcaption > div[style*="float"] a:link,
body.ys-theme .listcaption > div[style*="float"] a:visited {
    color: #2563eb;
}

body.ys-theme .listcaption br {
    display: none;
}

body.ys-theme .content-area .tablewrapper {
    margin-bottom: 14px;
    border: 1px solid #e6eaf2;
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
}

body.ys-theme .content-area table.listtable {
    width: 100%;
    border: 0;
    border-collapse: collapse;
    border-spacing: 0;
}

body.ys-theme .content-area table.listtable th {
    padding: 12px 14px;
}

body.ys-theme .content-area table.listtable td,
body.ys-theme .content-area td.rowodd,
body.ys-theme .content-area td.roweven {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f4f9;
    background: #ffffff;
}

body.ys-theme .content-area table.listtable td:last-child {
    white-space: nowrap;
}

body.ys-theme .content-area table.listtable tr:last-child td {
    border-bottom: 0;
}

body.ys-theme .content-area table.listtable tr:hover td {
    background: #fdf2f8;
}

body.ys-theme .content-area table.listtable td a,
body.ys-theme .content-area table.listtable td a:link,
body.ys-theme .content-area table.listtable td a:visited {
    color: #db2777;
    font-weight: 600 !important;
}

/* Full-screen pages (Media Library, File Manager) */

body.ys-theme #rawcontent {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.ys-theme #rawcontent > .ui-layout-container,
body.ys-theme #rawcontent > form > .ui-layout-container {
    top: 72px !important;
}

body.ys-theme:has(#rawcontent) {
    background: #f4f6fb;
}

body.ys-theme:has(#rawcontent) .ys-menu-btn {
    display: none !important;
}

body.ys-theme:has(#rawcontent) .ys-brand {
    margin-left: 0 !important;
}

body.ys-theme input[type="text"],
body.ys-theme input[type="password"],
body.ys-theme input[type="email"],
body.ys-theme input[type="number"],
body.ys-theme input[type="file"],
body.ys-theme select,
body.ys-theme textarea {
    min-height: 36px;
    box-sizing: border-box;
    padding: 7px 10px;
    border: 1px solid #d8dfea;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.ys-theme input[type="text"]:focus,
body.ys-theme input[type="password"]:focus,
body.ys-theme input[type="email"]:focus,
body.ys-theme input[type="number"]:focus,
body.ys-theme select:focus,
body.ys-theme textarea:focus {
    border-color: #ec4899;
    outline: none;
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.14);
}

body.ys-theme input[type="submit"],
body.ys-theme input[type="button"],
body.ys-theme button {
    min-height: 36px;
    padding: 0 16px;
    border: 1px solid #d8dfea;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

body.ys-theme input[type="button"]:hover,
body.ys-theme button:hover {
    border-color: #c3cddc;
    background: #f8fafc;
}

body.ys-theme input[type="submit"] {
    border-color: transparent;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(236, 72, 153, 0.28);
}

body.ys-theme input[type="submit"]:hover {
    border-color: transparent;
    background: linear-gradient(135deg, #db2777, #7c3aed);
}

body.ys-theme #footer {
    background: transparent;
    background-image: none;
}

body.ys-theme #footer #footer_content {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 28px 0;
    color: #94a3b8;
    font-size: 12px;
}

body.ys-theme #footer #footer_content .sep {
    display: none;
}

body.ys-theme #rawcontent {
    margin: 18px 28px 0 268px;
    border: 1px solid #e6eaf2;
    border-radius: 18px;
    background: #ffffff;
}

/* Client home */

body.ys-theme:has(#ys-dash) #header_content,
body.ys-theme:has(#ys-dash) #heading,
body.ys-theme.ys-home #header_content,
body.ys-theme.ys-home #heading {
    display: none;
}

body.ys-theme:has(#ys-dash) #maincontent,
body.ys-theme.ys-home #maincontent {
    margin-top: 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

body.ys-theme:has(#ys-dash) .content-area,
body.ys-theme.ys-home .content-area {
    padding: 0;
}

.ys-pagehead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

body.ys-theme #header .ys-pagehead h1 {
    margin: 0;
    letter-spacing: -0.03em;
    text-transform: none;
    color: #0f172a;
    font-size: 26px;
    font-weight: 700;
}

body.ys-theme .ys-pagehead p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
}

.ys-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.ys-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.ys-pill.is-on {
    background: #ecfdf3;
    color: #15803d;
}

.ys-pill.is-off {
    background: #fef2f2;
    color: #b91c1c;
}

.ys-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.ys-stat {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 18px;
    border: 1px solid #edf0f6;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ys-stat:hover {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.ys-stat-top {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.ys-stat-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(150deg, #4f8dff, #2563eb);
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

.ys-stat-ico::before {
    content: "";
    width: 22px;
    height: 22px;
    background: #ffffff;
    -webkit-mask: url("icons/users.svg") center / 22px 22px no-repeat;
    mask: url("icons/users.svg") center / 22px 22px no-repeat;
}

.ys-stat-transfer .ys-stat-ico { background: linear-gradient(150deg, #4ade80, #16a34a); box-shadow: 0 8px 18px rgba(22, 163, 74, 0.25); }
.ys-stat-disk .ys-stat-ico { background: linear-gradient(150deg, #fdba74, #f97316); box-shadow: 0 8px 18px rgba(249, 115, 22, 0.25); }
.ys-stat-rate .ys-stat-ico { background: linear-gradient(150deg, #f472d0, #c026d3); box-shadow: 0 8px 18px rgba(192, 38, 211, 0.25); }
.ys-stat-status .ys-stat-ico { background: linear-gradient(150deg, #4ade80, #16a34a); box-shadow: 0 8px 18px rgba(22, 163, 74, 0.25); }
.ys-stat-status.is-off .ys-stat-ico { background: linear-gradient(150deg, #f87171, #dc2626); box-shadow: 0 8px 18px rgba(220, 38, 38, 0.25); }

.ys-stat-transfer .ys-stat-ico::before { -webkit-mask-image: url("icons/cloud.svg"); mask-image: url("icons/cloud.svg"); }
.ys-stat-disk .ys-stat-ico::before { -webkit-mask-image: url("icons/disk.svg"); mask-image: url("icons/disk.svg"); }
.ys-stat-rate .ys-stat-ico::before { -webkit-mask-image: url("icons/wave.svg"); mask-image: url("icons/wave.svg"); }
.ys-stat-status .ys-stat-ico::before { -webkit-mask-image: url("icons/check.svg"); mask-image: url("icons/check.svg"); }

.ys-stat-body {
    flex: 1;
    min-width: 0;
}

.ys-stat-name {
    overflow: hidden;
    color: #1e293b;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ys-stat-value {
    margin-top: 3px;
    overflow: hidden;
    color: #0f172a;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ys-stat-value small {
    color: #94a3b8;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ys-stat-status.is-on .ys-stat-value { color: #16a34a; }
.ys-stat-status.is-off .ys-stat-value { color: #dc2626; }

.ys-stat-sub {
    margin-top: 4px;
    overflow: hidden;
    color: #475569;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ys-stat-sub + .ys-stat-sub {
    margin-top: 2px;
}

.ys-stat-uptime {
    white-space: normal;
}

.ys-stat-pct {
    margin-top: 10px;
    overflow: hidden;
    color: #334155;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ys-stat-pct-right {
    margin-top: 14px;
    text-align: right;
}

.ys-bar {
    height: 7px;
    margin-top: auto;
    border-radius: 99px;
    background: #e8ecf3;
    overflow: hidden;
}

.ys-stat-top + .ys-bar {
    margin-top: 18px;
}

.ys-stat-pct-right + .ys-bar {
    margin-top: 6px;
}

.ys-bar i {
    display: block;
    width: 0;
    min-width: 0;
    height: 100%;
    border-radius: 99px;
    background: #2563eb;
    transition: width 0.6s ease;
}

.ys-stat-transfer .ys-bar i { background: #22c55e; }
.ys-stat-disk .ys-bar i { background: #f97316; }
.ys-stat-rate .ys-bar i,
.ys-bar-full i { width: 100%; background: linear-gradient(90deg, #d946ef, #c026d3); }

.ys-status-live {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.ys-dash {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 18px;
    align-items: start;
}

.ys-card {
    padding: 18px;
    border: 1px solid #e6eaf2;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ys-dash-side .ys-card + .ys-card,
.ys-dash-main .ys-card {
    margin-top: 18px;
}

.ys-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.ys-card-head h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #0f172a;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.ys-card-head a,
.ys-card-head a:link,
.ys-card-head a:visited {
    color: #2563eb;
    font-size: 12px;
    font-weight: 600;
}

.ys-h-ico {
    width: 16px;
    height: 16px;
    background: #64748b;
    -webkit-mask: url("icons/headphones.svg") center / 16px 16px no-repeat;
    mask: url("icons/headphones.svg") center / 16px 16px no-repeat;
}

.ys-h-mic {
    -webkit-mask-image: url("icons/mic.svg");
    mask-image: url("icons/mic.svg");
}

/* Now playing */

.ys-player {
    position: relative;
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto auto;
    gap: 18px;
    align-items: center;
    padding: 16px 22px;
    border: 1px solid #edf0f6;
    border-radius: 22px;
    background:
        radial-gradient(420px 200px at 0% 0%, rgba(251, 146, 60, 0.12), transparent 70%),
        radial-gradient(460px 220px at 100% 100%, rgba(99, 102, 241, 0.12), transparent 70%),
        radial-gradient(320px 180px at 60% 0%, rgba(236, 72, 153, 0.07), transparent 70%),
        #ffffff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
    color: #0f172a;
    overflow: hidden;
}

.ys-player-art {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 14px;
    background: linear-gradient(145deg, #fb923c 0%, #ec4899 55%, #6366f1 100%) center / cover no-repeat;
    box-shadow: 0 14px 30px -8px rgba(236, 72, 153, 0.45), 0 6px 14px -6px rgba(99, 102, 241, 0.4);
}

.ys-player-art span {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    -webkit-mask: url("icons/note.svg") center / 42px 42px no-repeat;
    mask: url("icons/note.svg") center / 42px 42px no-repeat;
}

.ys-player-art.has-cover span {
    display: none;
}

.ys-player-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ys-player .ys-onair {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 10px;
    border: 1px solid #bbf7d0;
    border-radius: 999px;
    background: #f0fdf4;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.ys-player .ys-onair::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    animation: ys-pulse 1.8s ease-out infinite;
}

.ys-player.is-off .ys-onair {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #64748b;
}

.ys-player.is-off .ys-onair::before {
    background: #94a3b8;
    animation: none;
}

@keyframes ys-pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
    70% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.ys-eq {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.ys-eq i {
    display: block;
    width: 3px;
    height: 4px;
    border-radius: 2px;
    background: #22c55e;
    animation: ys-eq 1.1s ease-in-out infinite;
}

.ys-eq i:nth-child(2) { animation-delay: 0.2s; }
.ys-eq i:nth-child(3) { animation-delay: 0.4s; }
.ys-eq i:nth-child(4) { animation-delay: 0.1s; }

.ys-player.is-off .ys-eq {
    display: none;
}

@keyframes ys-eq {
    0%, 100% { height: 4px; }
    50% { height: 14px; }
}

/* Stereo VU meter in the now playing card (decorative, on air only) */
.ys-vu {
    display: grid;
    gap: 6px;
    width: 170px;
}

.ys-vu-row {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
}

.ys-vu-row b {
    color: #94a3b8;
    font-size: 9px;
    font-weight: 700;
}

.ys-vu-bar {
    position: relative;
    display: block;
    height: 8px;
    border-radius: 3px;
    overflow: hidden;
    background:
        repeating-linear-gradient(90deg, transparent 0 5px, #ffffff 5px 7px),
        linear-gradient(90deg, #22c55e 0%, #22c55e 60%, #facc15 75%, #f97316 88%, #ef4444 100%);
}

/* --lv is the live audio level (0-100%) set by the player in yesstreaming.js */
.ys-vu-bar::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: calc(100% - var(--lv, 0%));
    background: #e9edf5;
}

@media (max-width: 1180px) {
    .ys-vu {
        width: 110px;
    }
}

/* Centova's own small header player is replaced by the floating player */
body.ys-has-fp #client-audio {
    display: none;
}

/* Play button in the top bar */
/* Player buttons: undo the general button size and white hover */
body.ys-theme button.ys-top-play,
body.ys-theme .ys-fp button.ys-fp-btn,
body.ys-theme .ys-fp button.ys-fp-close {
    min-height: 0;
    padding: 0;
    border: 0;
    aspect-ratio: 1 / 1;
}

body.ys-theme button.ys-top-play:hover,
body.ys-theme .ys-fp button.ys-fp-btn:hover {
    border: 0;
    background-color: transparent;
    background-image: linear-gradient(160deg, #ec4899, #6366f1);
    filter: brightness(1.08);
}

body.ys-theme .ys-fp button.ys-fp-close:hover {
    background: #e2e8f0;
    color: #0f172a;
}

body.ys-theme .ys-top-play {
    flex: 0 0 30px;
    padding: 0;
    width: 30px;
    height: 30px;
    margin-right: 8px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(160deg, #ec4899, #6366f1);
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
    cursor: pointer;
    position: relative;
}

.ys-top-play::before,
.ys-fp-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #ffffff;
    -webkit-mask: url("icons/play-solid.svg") center / 12px 12px no-repeat;
    mask: url("icons/play-solid.svg") center / 12px 12px no-repeat;
}

.ys-top-play.is-playing::before,
.ys-fp.is-playing .ys-fp-btn::before,
.ys-fp.is-loading .ys-fp-btn::before {
    -webkit-mask-image: url("icons/stop-solid.svg");
    mask-image: url("icons/stop-solid.svg");
}

/* Floating player: shown while playing, stays on every client page */
/* Centred at the bottom so it does not cover the right-hand cards (Encoder settings). */
.ys-fp {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    z-index: 9000;
    display: none;
    align-items: center;
    gap: 12px;
    width: 380px;
    max-width: calc(100vw - 40px);
    padding: 10px 14px 10px 10px;
    border: 1px solid #edf0f6;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.35);
    color: #0f172a;
}

.ys-fp.is-playing,
.ys-fp.is-loading,
.ys-fp.is-needs-tap,
.ys-fp.is-paused,
.ys-fp.is-error {
    display: flex;
}

body.ys-theme .ys-fp .ys-fp-btn {
    position: relative;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(160deg, #ec4899, #6366f1) center / cover no-repeat;
    box-shadow: 0 6px 14px -6px rgba(99, 102, 241, 0.5);
    overflow: hidden;
    cursor: pointer;
}

/* Album art on the button: darken it a little so the play/stop icon stays visible */
body.ys-theme .ys-fp .ys-fp-btn.has-cover {
    background-size: cover;
    background-position: center;
}

body.ys-theme .ys-fp .ys-fp-btn.has-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
}

body.ys-theme .ys-fp .ys-fp-btn::before {
    z-index: 1;
    -webkit-mask-size: 15px 15px;
    mask-size: 15px 15px;
}

.ys-fp.is-needs-tap .ys-fp-btn {
    animation: ys-pulse 1.4s ease-out infinite;
}

.ys-fp-meta {
    display: grid;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.25;
}

.ys-fp-title,
.ys-fp-artist {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ys-fp-title {
    font-size: 13px;
    font-weight: 700;
}

.ys-fp-artist {
    color: #64748b;
    font-size: 11px;
}

.ys-fp.is-needs-tap .ys-fp-artist::before {
    content: "Tap play to resume - ";
    color: #db2777;
    font-weight: 700;
}

.ys-fp.is-error .ys-fp-artist::before {
    content: "Stream not reachable - ";
    color: #dc2626;
    font-weight: 700;
}

.ys-fp-vu {
    display: grid;
    flex: 0 0 56px;
    gap: 3px;
}

.ys-fp-vu .ys-vu-bar {
    height: 5px;
}

.ys-fp-vol {
    flex: 0 0 64px;
    width: 64px;
    accent-color: #6366f1;
}

body.ys-theme .ys-fp .ys-fp-close {
    flex: 0 0 auto;
    padding: 0;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 15px;
    line-height: 24px;
    cursor: pointer;
}

.ys-fp-close::before {
    content: "\00d7";
}

@media (max-width: 640px) {
    .ys-fp {
        right: 10px;
        bottom: 10px;
        left: 10px;
        transform: none;
        width: auto;
        max-width: none;
    }

    .ys-fp-vol {
        display: none;
    }
}

.ys-player #ys-track-title {
    margin: 12px 0 0;
    overflow: hidden;
    color: #0f172a;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ys-player #ys-track-artist {
    margin-top: 4px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.ys-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.ys-chips span {
    height: 24px;
    padding: 0 10px;
    border: 1px solid #e8ecf3;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    color: #475569;
    font-size: 11px;
    font-weight: 600;
    line-height: 24px;
}

body.ys-theme a.ys-listen,
body.ys-theme a.ys-listen:link,
body.ys-theme a.ys-listen:visited {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px 0 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, #4f8dff, #2563eb);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 22px -6px rgba(37, 99, 235, 0.5);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.ys-theme a.ys-listen:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -6px rgba(37, 99, 235, 0.55);
    color: #ffffff;
}

body.ys-theme a.ys-listen::before {
    content: "";
    width: 18px;
    height: 18px;
    background: #ffffff;
    -webkit-mask: url("icons/play.svg") center / 18px 18px no-repeat;
    mask: url("icons/play.svg") center / 18px 18px no-repeat;
}

/* Playing: red Stop button with a stop icon (class set by the floating player) */
body.ys-theme a.ys-listen.is-playing,
body.ys-theme a.ys-listen.is-playing:link,
body.ys-theme a.ys-listen.is-playing:visited {
    background: linear-gradient(135deg, #f87171, #dc2626);
    box-shadow: 0 10px 22px -6px rgba(220, 38, 38, 0.5);
}

body.ys-theme a.ys-listen.is-playing::before {
    -webkit-mask-image: url("icons/stop-solid.svg");
    mask-image: url("icons/stop-solid.svg");
    -webkit-mask-size: 14px 14px;
    mask-size: 14px 14px;
}

/* Recent tracks */

.ys-tracks {
    padding-bottom: 8px;
}

.ys-tracks-cols,
body.ys-theme .cctrack {
    display: grid;
    grid-template-columns: 24px 36px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) 76px;
    gap: 12px;
    align-items: center;
}

.ys-tracks-cols {
    padding: 0 10px 8px;
    border-bottom: 1px solid #eef1f6;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ys-tracks-cols span:nth-child(2) {
    grid-column: 3;
}

.ys-tracks-cols span:last-child {
    text-align: right;
}

body.ys-theme .ys-tracks .tablewrapper {
    border: 0;
    background: transparent;
}

body.ys-theme .cc_recenttracks_list {
    counter-reset: ys-track;
}

body.ys-theme .cctrack {
    margin: 2px 0 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    counter-increment: ys-track;
    transition: background 0.15s ease;
}

body.ys-theme .cctrack:hover {
    background: #f6f8fc;
}

body.ys-theme .cctrack::before {
    content: counter(ys-track);
    grid-column: 1;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

body.ys-theme .cctrack .cccover { grid-column: 2; grid-row: 1; }
body.ys-theme .cctrack .cctitle { grid-column: 3; grid-row: 1; }
body.ys-theme .cctrack .ccartist { grid-column: 4; grid-row: 1; }
body.ys-theme .cctrack .ccalbum { grid-column: 5; grid-row: 1; }
body.ys-theme .cctrack .cctime { grid-column: 6; grid-row: 1; }

body.ys-theme .cctrack .ccdetails > div:not(.cctitle):not(.ccartist):not(.ccalbum) {
    display: none;
}

body.ys-theme .cctrack > div:not(.cccover):not(.ccdetails):not(.cctime) {
    display: none;
}

body.ys-theme .cctrack .cccover {
    float: none;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(145deg, #e0e7ff, #fce7f3);
    overflow: hidden;
}

body.ys-theme .cctrack .cccover img {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: cover;
}

body.ys-theme .cctrack .cccover img[src*="nocover"] {
    opacity: 0;
}

body.ys-theme .cctrack .ccdetails,
body.ys-theme .cctrack .ccdetails_withcover {
    display: contents;
    margin: 0;
}

body.ys-theme .cctrack .cctitle {
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
}

body.ys-theme .cctrack .ccartist,
body.ys-theme .cctrack .ccalbum {
    margin: 0;
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
}

body.ys-theme .cctrack .cctime,
body.ys-theme .cctrack .cctime.ccnowplaying {
    display: block;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 500;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

body.ys-theme .cctrack .cctitle.ccnowplaying {
    color: #2563eb;
}

body.ys-theme .cctrack .cctime.ccnowplaying {
    color: #16a34a;
    font-weight: 700;
}

/* Server control */

.ys-h-gear {
    -webkit-mask-image: url("icons/cog.svg");
    mask-image: url("icons/cog.svg");
}

.ys-control .ys-card-head h3 {
    font-size: 15px;
}

.ys-control .ys-h-ico {
    width: 20px;
    height: 20px;
    background: #0f172a;
    -webkit-mask-size: 20px 20px;
    mask-size: 20px 20px;
}

.ys-ctl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 4px 0 6px;
}

body.ys-theme a.ys-ctl-btn,
body.ys-theme a.ys-ctl-btn:link,
body.ys-theme a.ys-ctl-btn:visited {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 74px;
    padding: 12px 6px;
    border-radius: 14px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

body.ys-theme a.ys-ctl-btn::before {
    content: "";
    width: 22px;
    height: 22px;
    background: #ffffff;
    -webkit-mask: url("icons/play.svg") center / 22px 22px no-repeat;
    mask: url("icons/play.svg") center / 22px 22px no-repeat;
}

body.ys-theme a.ys-ctl-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    color: #ffffff;
}

body.ys-theme a.ys-ctl-btn:active {
    transform: translateY(0);
}

body.ys-theme a.ys-ctl-start { background: linear-gradient(160deg, #4ade80, #22a55a); box-shadow: 0 8px 18px rgba(34, 165, 90, 0.28); }
body.ys-theme a.ys-ctl-stop { background: linear-gradient(160deg, #f87171, #d94848); box-shadow: 0 8px 18px rgba(217, 72, 72, 0.28); }
body.ys-theme a.ys-ctl-restart { background: linear-gradient(160deg, #60a5fa, #2f6bff); box-shadow: 0 8px 18px rgba(47, 107, 255, 0.28); }

/* Power icons, so Start/Stop are not mistaken for player play/stop */
body.ys-theme a.ys-ctl-start::before { -webkit-mask-image: url("icons/power.svg"); mask-image: url("icons/power.svg"); }
body.ys-theme a.ys-ctl-stop::before { -webkit-mask-image: url("icons/power-off.svg"); mask-image: url("icons/power-off.svg"); }
body.ys-theme a.ys-ctl-restart::before { -webkit-mask-image: url("icons/restart.svg"); mask-image: url("icons/restart.svg"); }

.ys-control.is-on a.ys-ctl-start,
.ys-control.is-off a.ys-ctl-stop,
.ys-control.is-off a.ys-ctl-restart {
    opacity: 0.6;
    box-shadow: none;
}

.ys-info {
    margin: 8px 0 0;
}

.ys-info div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 2px;
    border-top: 1px solid #eef1f6;
}

.ys-info div::before {
    content: "";
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    background: #334155;
    -webkit-mask: url("icons/server.svg") center / 18px 18px no-repeat;
    mask: url("icons/server.svg") center / 18px 18px no-repeat;
}

.ys-info .ys-info-status::before { -webkit-mask-image: url("icons/check.svg"); mask-image: url("icons/check.svg"); }
.ys-info .ys-info-source::before { -webkit-mask-image: url("icons/mic.svg"); mask-image: url("icons/mic.svg"); }
.ys-info .ys-info-autodj::before { -webkit-mask-image: url("icons/music.svg"); mask-image: url("icons/music.svg"); }
.ys-info .ys-info-peak::before { -webkit-mask-image: url("icons/chart.svg"); mask-image: url("icons/chart.svg"); }
.ys-info .ys-info-uptime::before { -webkit-mask-image: url("icons/clock.svg"); mask-image: url("icons/clock.svg"); }

.ys-info dt {
    flex: 1 1 auto;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
}

.ys-info dd {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

.ys-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
}

.ys-dot.is-off {
    background: #ef4444;
}

/* Listen links and encoder */

.ys-compact {
    padding: 16px;
}

.ys-compact .ys-card-head {
    margin-bottom: 8px;
}

.ys-compact .ys-card-head h3 {
    font-size: 14px;
}

.ys-url {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 30px;
    gap: 8px;
    align-items: center;
    padding: 7px 0;
}

.ys-url + .ys-url {
    border-top: 1px dashed #eef1f6;
}

.ys-url-k {
    justify-self: start;
    padding: 2px 6px;
    border-radius: 6px;
    background: #f1f4f9;
    color: #475569;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

body.ys-theme .ys-url a,
body.ys-theme .ys-url a:link,
body.ys-theme .ys-url a:visited {
    min-width: 0;
    overflow: hidden;
    color: #334155;
    font-family: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

body.ys-theme .ys-url a:hover {
    color: #2563eb;
}

body.ys-theme button.ys-copy {
    position: relative;
    width: 30px;
    min-height: 0;
    height: 30px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    font-size: 0;
    color: transparent;
    cursor: pointer;
}

body.ys-theme button.ys-copy::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #94a3b8;
    -webkit-mask: url("icons/copy.svg") center / 15px 15px no-repeat;
    mask: url("icons/copy.svg") center / 15px 15px no-repeat;
}

body.ys-theme button.ys-copy:hover {
    border-color: #e6eaf2;
    background: #f8fafc;
}

body.ys-theme button.ys-copy:hover::before {
    background: #2563eb;
}

/* Small copy buttons next to encoder setting values */
body.ys-theme .ys-meta dd:has(.ys-copy-sm) {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-right: -6px;
}

body.ys-theme button.ys-copy.ys-copy-sm {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    opacity: 0.55;
    transition: opacity 0.15s;
}

body.ys-theme .ys-meta div:hover button.ys-copy-sm,
body.ys-theme button.ys-copy-sm:focus-visible,
body.ys-theme button.ys-copy-sm[data-state="copied"] {
    opacity: 1;
}

body.ys-theme button.ys-copy.ys-copy-sm::before {
    -webkit-mask-size: 13px 13px;
    mask-size: 13px 13px;
}

body.ys-theme button.ys-copy[data-state="copied"] {
    border-color: #bbf7d0;
    background: #ecfdf3;
}

body.ys-theme button.ys-copy[data-state="copied"]::before {
    background: #16a34a;
    -webkit-mask-image: url("icons/tick.svg");
    mask-image: url("icons/tick.svg");
}

.ys-seg {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    margin-bottom: 6px;
    padding: 3px;
    border-radius: 10px;
    background: #f1f4f9;
}

body.ys-theme button.ys-seg-btn {
    min-height: 0;
    height: 28px;
    padding: 0 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

body.ys-theme button.ys-seg-btn:hover {
    background: transparent;
    color: #0f172a;
}

body.ys-theme button.ys-seg-btn.is-active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.ys-pane {
    display: none;
}

.ys-pane.is-active {
    display: block;
}

.ys-meta {
    margin: 0;
}

.ys-meta div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
}

.ys-meta div + div {
    border-top: 1px dashed #eef1f6;
}

.ys-meta dt {
    color: #64748b;
    font-size: 12px;
    font-weight: 500;
}

.ys-meta dd {
    margin: 0;
    overflow: hidden;
    color: #0f172a;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Login: brand panel on the left, sign-in card on the right */

body.ys-login {
    margin: 0;
    min-height: 100vh;
    background: #f4f6fb;
    color: #0f172a;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ys-login-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    min-height: 100vh;
}

.ys-login-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 48px 56px;
    overflow: hidden;
    background:
        radial-gradient(600px 400px at 85% 10%, rgba(59, 130, 246, 0.35), transparent 60%),
        radial-gradient(500px 380px at 0% 100%, rgba(249, 115, 22, 0.28), transparent 60%),
        linear-gradient(160deg, #0b1324 0%, #111c36 55%, #0a1020 100%);
    color: #e2e8f0;
}

.ys-login-hero::after {
    content: '';
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 50%;
    box-shadow: 0 0 0 60px rgba(148, 163, 184, 0.04), 0 0 0 130px rgba(148, 163, 184, 0.03);
}

.ys-login-brand {
    position: relative;
    z-index: 1;
}

.ys-login-brand img {
    width: 220px;
    height: auto;
}

.ys-login-pitch {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: auto 0;
    padding: 48px 0;
}

.ys-login-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid rgba(74, 222, 128, 0.3);
    border-radius: 99px;
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
    font-size: 12px;
    font-weight: 700;
}

.ys-login-live i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
}

.ys-login-pitch h1 {
    margin: 22px 0 14px;
    color: #ffffff;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.ys-login-pitch p {
    margin: 0;
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.6;
}

.ys-login-points {
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.ys-login-points li {
    position: relative;
    margin: 0 0 14px;
    padding: 9px 0 9px 50px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.ys-login-points li::before,
.ys-login-points li::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.08);
}

.ys-login-points li::after {
    left: 10px;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    border-radius: 0;
    background: #93c5fd;
    -webkit-mask: url("icons/server.svg") center / contain no-repeat;
    mask: url("icons/server.svg") center / contain no-repeat;
}

.ys-login-points .ys-lp-music::after { background: #fdba74; -webkit-mask-image: url("icons/music.svg"); mask-image: url("icons/music.svg"); }
.ys-login-points .ys-lp-chart::after { background: #86efac; -webkit-mask-image: url("icons/chart.svg"); mask-image: url("icons/chart.svg"); }

.ys-login-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.ys-login-card {
    width: 100%;
    max-width: 400px;
    padding: 36px 34px 28px;
    box-sizing: border-box;
    border: 1px solid #e6eaf2;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

.ys-login-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.ys-login-head p {
    margin: 6px 0 22px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

body.ys-login #login_logo {
    display: none;
}

/* Centova's show/hide password toggle, placed inside the field */
body.ys-login #login_table td {
    position: relative;
}

body.ys-login #passwordfield {
    padding-right: 48px;
}

body.ys-login .centovapassword {
    position: absolute;
    top: 23px;
    right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: -18px 0 0;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    background-image: none;
    opacity: 1;
}

body.ys-login .centovapassword:hover,
body.ys-login .centovapassword.buttondown {
    border: 0 !important;
    background: #e8eefc !important;
    background-image: none !important;
}

body.ys-login .centovapassword div {
    display: block;
    width: 18px;
    height: 18px;
    padding: 0;
    background: #64748b;
    background-image: none;
    -webkit-mask: url("icons/eye.svg") center / contain no-repeat;
    mask: url("icons/eye.svg") center / contain no-repeat;
}

body.ys-login .centovapassword:hover div {
    background: #2563eb;
}

body.ys-login .centovapassword div.revealed {
    -webkit-mask-image: url("icons/eye-off.svg");
    mask-image: url("icons/eye-off.svg");
}

body.ys-login #login_block {
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    text-align: left;
}

body.ys-login #login_table {
    width: 100%;
    border-spacing: 0;
}

body.ys-login #login_table th {
    display: block;
    padding: 12px 0 6px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
}

body.ys-login #login_table td {
    display: block;
}

body.ys-login .loginfield {
    width: 100%;
    height: 46px;
    box-sizing: border-box;
    padding: 10px 14px;
    border: 1px solid #dbe2ec;
    border-radius: 12px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 15px;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

body.ys-login .loginfield:focus {
    border-color: #3b82f6;
    outline: none;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

body.ys-login #login_remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
}

body.ys-login #login_remember input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #2563eb;
}

body.ys-login .login_sep {
    height: 0;
    margin: 20px 0 0;
    background: none;
    border: 0;
}

body.ys-login #login_block input[type="submit"] {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

body.ys-login #login_block input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.36);
}

body.ys-login #loginerror {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 13px;
    text-align: center;
}

body.ys-login #loginerror:empty {
    display: none;
}

.ys-login-forgot {
    margin-top: 18px;
    text-align: center;
}

.ys-login-forgot a {
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.ys-login-forgot a:hover {
    text-decoration: underline;
}

body.ys-login #footer {
    position: static;
    margin-top: 24px;
    border: 0;
    background: transparent;
}

body.ys-login #footer .content {
    color: #94a3b8;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 900px) {
    .ys-login-wrap {
        grid-template-columns: 1fr;
    }

    .ys-login-hero {
        padding: 28px 24px;
    }

    .ys-login-brand {
        text-align: center;
    }

    .ys-login-brand img {
        width: 180px;
    }

    .ys-login-pitch {
        margin: 20px auto 0;
        padding: 0;
        text-align: center;
    }

    .ys-login-pitch h1 {
        margin: 14px 0 8px;
        font-size: 26px;
    }

    .ys-login-pitch p {
        font-size: 14px;
    }

    .ys-login-points {
        display: none;
    }

    .ys-login-main {
        justify-content: flex-start;
        padding: 24px 16px 32px;
    }

    .ys-login-card {
        margin-top: -8px;
        padding: 28px 22px 22px;
    }
}

/* Media library and File Manager (full-screen jQuery Layout pages).
   Pane sizes are computed by jquery.layout, so only colours, borders,
   corners and row spacing are changed here, never pane margins. */
body.ys-theme:has(#rawcontent) {
    background: #eef2f8;
}

/* Full-width pages (File Manager, Media Library) have no dark menu column.
   Show only the colour logo on the white top bar, with no dark badge. */
body.ys-theme:has(#rawcontent) #topbar {
    padding-left: 16px;
}

body.ys-theme:has(#rawcontent) #topbar .ys-brand,
body.ys-theme:has(#rawcontent) .ys-brand {
    flex: 0 0 auto;
    width: auto;
    height: auto;
    min-height: 0;
    margin: 0 !important;
    padding: 0 8px 0 0;
    border: 0;
    border-radius: 0;
    background: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

body.ys-theme:has(#rawcontent) #topbar .ys-brand img,
body.ys-theme:has(#rawcontent) .ys-brand img {
    width: auto;
    max-width: 168px;
    max-height: 36px;
}

body.ys-theme #rawcontent .ui-layout-container {
    background: transparent;
}

body.ys-theme #rawcontent .ui-layout-pane {
    border: 1px solid #e3e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .05);
}

body.ys-theme #rawcontent #searchpane,
body.ys-theme #rawcontent #statuspane {
    border: 1px solid #e3e8f0;
    background: #ffffff;
}

/* Resize bars: invisible until hovered, with a small grip */
body.ys-theme #rawcontent .ui-layout-resizer {
    background: transparent;
    border: 0;
}

body.ys-theme #rawcontent .ui-layout-resizer:hover {
    background: #dbe6fb;
}

body.ys-theme #rawcontent .ui-layout-toggler {
    border: 0;
    border-radius: 99px;
    background: #cbd5e1;
}

body.ys-theme #rawcontent .ui-layout-toggler:hover {
    background: #2563eb;
}

/* List rows (playlists, artists, albums, tracks, files) */
body.ys-theme #rawcontent .lbt_row,
body.ys-theme #rawcontent .lbt_row_selected {
    border-radius: 8px;
    margin: 2px 6px;
    padding-top: 6px;
    padding-bottom: 6px;
    color: #1e293b;
    font-size: 13px;
    line-height: 18px;
}

body.ys-theme #rawcontent .lbt_row_stripe {
    background-color: #f8fafc;
}

body.ys-theme #rawcontent .lbt_row:hover {
    background-color: #eef3fe;
}

body.ys-theme #rawcontent .lbt_row_selected {
    background-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, .25);
}

body.ys-theme #rawcontent .lbt_row_selected * {
    color: #ffffff;
}

body.ys-theme #rawcontent .lbt_row_mediaroot,
body.ys-theme #rawcontent .lbt_row_playlistroot {
    margin-top: 8px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

body.ys-theme #rawcontent .lbt_row_mediaroot:hover,
body.ys-theme #rawcontent .lbt_row_playlistroot:hover {
    background-color: transparent;
}

body.ys-theme #rawcontent .lbt_row_playlist_secondline {
    color: #94a3b8;
    font-size: 11px;
}

body.ys-theme #rawcontent .lbt_row_selected .lbt_row_playlist_secondline {
    color: rgba(255, 255, 255, .8);
}

body.ys-theme #rawcontent .lbt_row_right,
body.ys-theme #rawcontent .lbt_row_right_col {
    color: #94a3b8;
    font-size: 12px;
}

/* Folder tree */
body.ys-theme #rawcontent .treenode {
    padding: 2px 0;
    font-size: 13px;
    line-height: 20px;
}

body.ys-theme #rawcontent .treenode_caption,
body.ys-theme #rawcontent .treenode_caption_selected {
    padding: 2px 8px;
    border-radius: 6px;
    color: #1e293b;
}

body.ys-theme #rawcontent .treenode_caption:hover {
    background: #eef3fe;
}

body.ys-theme #rawcontent .treenode_caption_selected {
    background: #2563eb;
    color: #ffffff;
}

/* Search bar and status bar controls */
body.ys-theme #rawcontent #searchform {
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

body.ys-theme #rawcontent input[type="text"],
body.ys-theme #rawcontent select {
    height: 30px;
    padding: 0 10px;
    border: 1px solid #dbe2ec;
    border-radius: 8px;
    background-color: #ffffff;
    color: #1e293b;
    font-size: 12.5px;
}

body.ys-theme #rawcontent input[type="text"]:focus,
body.ys-theme #rawcontent select:focus {
    border-color: #2563eb;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

body.ys-theme #rawcontent input[type="button"],
body.ys-theme #rawcontent input[type="submit"] {
    height: 30px;
    padding: 0 14px;
    border: 1px solid #dbe2ec;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
    color: #1e293b;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
}

body.ys-theme #rawcontent input[type="button"]:hover:not(:disabled),
body.ys-theme #rawcontent input[type="submit"]:hover:not(:disabled) {
    border-color: #bfd0f5;
    background: #eef3fe;
    color: #1d4ed8;
}

body.ys-theme #rawcontent input[type="button"]:disabled {
    opacity: .45;
    cursor: default;
}

body.ys-theme #rawcontent #btn_upload,
body.ys-theme #rawcontent #btn_save,
body.ys-theme #rawcontent #searchform input[type="button"],
body.ys-theme #rawcontent #searchform input[type="submit"] {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
}

body.ys-theme #rawcontent #btn_upload:hover,
body.ys-theme #rawcontent #btn_save:hover:not(:disabled),
body.ys-theme #rawcontent #searchform input[type="button"]:hover,
body.ys-theme #rawcontent #searchform input[type="submit"]:hover {
    border-color: #1d4ed8;
    background: #1d4ed8;
    color: #ffffff;
}

body.ys-theme #rawcontent #btn_delete:hover:not(:disabled),
body.ys-theme #rawcontent #btn_remove:hover:not(:disabled) {
    border-color: #f5b5b5;
    background: #fef2f2;
    color: #b91c1c;
}

/* Disk usage meter in the File Manager status bar */
body.ys-theme #rawcontent #diskusage.graph_bg {
    height: 8px;
    border: 0;
    border-radius: 99px;
    background: #e2e8f0;
    overflow: hidden;
}

body.ys-theme #rawcontent #diskusage .graph_fg {
    height: 8px;
    border-radius: 99px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
}

/* Popup dialogs (New account, confirmations): Centova draws the white box as an
   image sized to a fixed 230px, so taller forms spilled out. Use a real card. */
body.ys-theme #centovaDialogImg {
    display: none !important;
}

body.ys-theme div.overlay {
    height: auto !important;
    min-height: 0;
    background-color: #fff !important;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
}

/* Progress dialogs (Optimize database, bulk account actions): Centova builds
   #progresswindow in res.progress.js with an hourglass PNG, red title, PNG
   log icons and a striped bar. centovaDialog moves the icon, h1 and h2 into
   div.overlay .caption, and the overlay is a fixed 320px wide. */
body.ys-theme div.overlay:has(#progresswindow) {
    width: 680px !important;
    max-width: calc(100vw - 32px);
    padding: 28px 30px 24px !important;
    box-sizing: border-box;
}

body.ys-theme div.overlay:has(#progresswindow) .caption {
    position: relative;
    height: auto !important;
    min-height: 52px;
    padding: 0 0 18px 66px !important;
    border-bottom: 1px solid #eef2f7 !important;
}

body.ys-theme div.overlay:has(#progresswindow) .caption::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: url(icons/database-white.svg) center / 24px no-repeat, linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .3);
}

body.ys-theme div.overlay:has(#progresswindow) img.dialogicon,
body.ys-theme div.overlay:has(#progresswindow) .caption img {
    display: none !important;
}

body.ys-theme div.overlay:has(#progresswindow) h1 {
    margin: 2px 0 0 !important;
    padding: 0;
    color: #0f172a !important;
    font-family: inherit !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.3;
    text-align: left;
}

body.ys-theme div.overlay:has(#progresswindow) h2 {
    margin: 4px 0 0 !important;
    padding: 0;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    text-align: left;
}

body.ys-theme #progresswindow {
    display: block;
    color: #0f172a;
}

body.ys-theme #progresswindow .progresswindow_status {
    margin: 18px 0 8px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

body.ys-theme #progresswindow .progresswindow_log {
    height: 360px !important;
    max-height: calc(100vh - 320px);
    overflow: auto;
    margin: 0 0 18px;
    padding: 4px 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
}

body.ys-theme #progresswindow .progresswindow_info,
body.ys-theme #progresswindow .progresswindow_success,
body.ys-theme #progresswindow .progresswindow_failure {
    position: relative;
    margin: 0;
    padding: 7px 12px 7px 34px;
    border-bottom: 1px solid #eef2f7;
    background-image: none;
}

body.ys-theme #progresswindow .progresswindow_last {
    border-bottom: 0;
}

body.ys-theme #progresswindow .progresswindow_info::before,
body.ys-theme #progresswindow .progresswindow_success::before,
body.ys-theme #progresswindow .progresswindow_failure::before {
    content: '';
    position: absolute;
    top: 11px;
    left: 13px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #94a3b8;
}

body.ys-theme #progresswindow .progresswindow_success {
    color: #166534;
    font-weight: 600;
}

body.ys-theme #progresswindow .progresswindow_success::before {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
}

body.ys-theme #progresswindow .progresswindow_failure {
    color: #b91c1c;
}

body.ys-theme #progresswindow .progresswindow_failure::before {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .18);
}

body.ys-theme #progresswindow .progresswindow_log span {
    margin-top: 2px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 400;
}

body.ys-theme #progresswindow .progresswindow_bar {
    width: 100% !important;
    height: 8px;
    margin: 0 0 20px;
    padding: 0 !important;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #e2e8f0;
    background-image: none;
    box-sizing: border-box;
}

/* Centova sets the fill in pixels, 0-141px (res.common.js). The 620px track
   (680px dialog minus padding) is 141 x 4.3972, so scale the fill to match. */
body.ys-theme #progresswindow .progresswindow_bar .graph_fg {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    background-image: linear-gradient(90deg, #2563eb, #7c3aed);
    font-size: 0;
    line-height: 0;
    transform: scaleX(4.3972);
    transform-origin: left center;
    transition: width .3s ease;
}

body.ys-theme #progresswindow > img.buttontip {
    display: none !important;
}

body.ys-theme #progresswindow .progresswindow_button {
    display: block;
    margin-left: auto !important;
    min-width: 110px;
    height: 40px;
    margin-top: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

body.ys-theme #progresswindow .progresswindow_button:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: default;
}

/* Admin account list: Start / Stop / Suspend / Delete streams dialog
   (#multacctdialog in admin_accounts.tpl, log lines from res.accounts.js).
   centovaDialog adds .overlay to #multacctdialog itself and sets height 300px inline. */
body.ys-theme div#multacctdialog.overlay {
    width: 520px !important;
    height: auto !important;
    max-width: calc(100vw - 32px);
    padding: 28px 30px 24px !important;
    border: 0 !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .28) !important;
    box-sizing: border-box;
}

body.ys-theme div#multacctdialog.overlay .caption {
    position: relative;
    height: auto !important;
    min-height: 50px;
    padding: 0 0 18px 64px !important;
    border-bottom: 1px solid #eef2f7 !important;
    background: none !important;
}

body.ys-theme div#multacctdialog.overlay .caption::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: url(icons/server-white.svg) center / 24px no-repeat, linear-gradient(135deg, #ec4899, #8b5cf6);
    box-shadow: 0 8px 18px rgba(139, 92, 246, .3);
}

body.ys-theme div#multacctdialog.overlay img.dialogicon,
body.ys-theme div#multacctdialog.overlay .caption img {
    display: none !important;
}

body.ys-theme div#multacctdialog.overlay h1 {
    margin: 2px 0 0 !important;
    padding: 0;
    color: #0f172a !important;
    font-family: inherit !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.3;
    text-align: left;
}

body.ys-theme div#multacctdialog.overlay h2 {
    margin: 4px 0 0 !important;
    padding: 0;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    text-align: left;
}

body.ys-theme #multacctdialog #status {
    margin: 18px 0 8px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

body.ys-theme #multacctlog {
    height: 180px;
    max-height: calc(100vh - 320px);
    overflow: auto;
    margin: 0 0 18px;
    padding: 4px 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #475569;
    font-size: 13px;
}

body.ys-theme #multacctlog .multacctlog_info,
body.ys-theme #multacctlog .multacctlog_success,
body.ys-theme #multacctlog .multacctlog_failure {
    margin: 0;
    padding: 8px 12px 8px 38px;
    border-bottom: 1px solid #eef2f7;
    background: url(icons/c-log-info.svg) 12px 9px / 16px 16px no-repeat;
}

body.ys-theme #multacctlog .multacctlog_last {
    border-bottom: 0;
}

body.ys-theme #multacctlog .multacctlog_success {
    background-image: url(icons/c-log-success.svg);
    color: #166534;
    font-weight: 600;
}

body.ys-theme #multacctlog .multacctlog_failure {
    background-image: url(icons/c-log-failure.svg);
    color: #b91c1c;
    font-weight: 600;
}

body.ys-theme #multacctlog span.maadresult {
    margin-top: 2px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 400;
}

body.ys-theme #multacctprogressbar {
    width: 100% !important;
    height: 8px;
    margin: 0 0 20px;
    padding: 0 !important;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #e2e8f0;
    background-image: none;
    box-sizing: border-box;
}

/* Fill is set in pixels (0-141px); the 460px track is 141 x 3.2624. */
body.ys-theme #multacctprogressbar .graph_fg {
    height: 100%;
    background: linear-gradient(90deg, #ec4899, #8b5cf6);
    font-size: 0;
    line-height: 0;
    transform: scaleX(3.2624);
    transform-origin: left center;
    transition: width .3s ease;
}

body.ys-theme #multacctokbtn {
    display: block;
    min-width: 110px;
    height: 40px;
    margin: 0 0 0 auto !important;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

body.ys-theme #multacctokbtn:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: default;
}

/* Edit Account > TLS/SSL: second TLS port row (added by yesstreaming.js) */
body.ys-theme .ys-tls-port-row td:last-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

body.ys-theme .ys-tls-port-input {
    width: 96px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font-size: 14px;
    box-sizing: border-box;
}

body.ys-theme .ys-tls-port-input:focus {
    border-color: #a78bfa;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, .15);
}

body.ys-theme .ys-tls-port-btn {
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

body.ys-theme .ys-tls-port-btn.is-light {
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #334155;
}

body.ys-theme .ys-tls-port-row .ys-tls-port-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #db2777, #7c3aed);
    color: #fff;
    box-shadow: 0 6px 14px rgba(139, 92, 246, .3);
}

body.ys-theme .ys-tls-port-row .ys-tls-port-btn.is-light:hover:not(:disabled) {
    border-color: #c4b5fd;
    background: #f5f3ff;
    color: #6d28d9;
    box-shadow: none;
}

body.ys-theme .ys-tls-port-btn:disabled {
    opacity: .5;
    cursor: default;
}

body.ys-theme .ys-tls-port-status {
    flex-basis: 100%;
    color: #64748b;
    font-size: 12px;
}

body.ys-theme .ys-tls-port-status.is-ok { color: #15803d; }
body.ys-theme .ys-tls-port-status.is-error { color: #b91c1c; }

/* Centova pop-up bubbles (confirm "Are you sure?" etc., jquery.centova.tooltip).
   The frame is sprite pieces (tl/tr/ml/mr/bl/br) that size the box, so keep
   them in place but invisible; the 30px right column was only drop shadow. */
body.ys-theme .ctooltip {
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 0 0 1px #e2e8f0, 0 18px 40px rgba(15, 23, 42, .18);
}

body.ys-theme .ctooltip .ctooltip_pc,
body.ys-theme .ctooltip .ctooltip_tab {
    background: none !important;
}

body.ys-theme .ctooltip .ctipcontent {
    width: 100% !important;
    padding: 0 18px 16px;
    box-sizing: border-box;
    color: #334155;
    font-size: 13px;
    line-height: 1.5;
}

body.ys-theme .ctooltip .ctiptitle {
    margin: 0 0 8px;
    padding: 16px 0 10px 30px;
    border-bottom: 1px solid #eef2f7;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
}

body.ys-theme .ctooltip .ctooltip_icon {
    position: relative;
    z-index: 1;
    width: 22px;
    height: 22px;
    margin: 14px 0 0 16px;
    background: url(icons/c-tip-help.svg) center / 22px no-repeat !important;
}

body.ys-theme .ctooltip .ctooltipicon_info { background-image: url(icons/c-log-info.svg) !important; }
body.ys-theme .ctooltip .ctooltipicon_ok { background-image: url(icons/c-log-success.svg) !important; }
body.ys-theme .ctooltip .ctooltipicon_error { background-image: url(icons/c-log-failure.svg) !important; }

body.ys-theme .ctooltip .ctipcontent input[type="button"] {
    min-width: 96px;
    height: 36px;
    margin: 4px 3px 0;
    padding: 0 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

body.ys-theme .ctooltip .ctipcontent input[type="button"]:first-child {
    border-color: transparent;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: #fff;
}

/* Pointer: Centova places the tab just past the bubble edge (4px overlap). */
body.ys-theme .ctooltip .ctooltip_tab_top::before,
body.ys-theme .ctooltip .ctooltip_tab_bottom::before {
    content: '';
    position: absolute;
    left: 16px;
    width: 14px;
    height: 14px;
    background: #fff;
    transform: rotate(45deg);
}

body.ys-theme .ctooltip .ctooltip_tab_top::before {
    top: -3px;
    box-shadow: 1px 1px 0 #e2e8f0;
}

body.ys-theme .ctooltip .ctooltip_tab_bottom::before {
    bottom: -3px;
    box-shadow: -1px -1px 0 #e2e8f0;
}

/* File Manager upload dialog (system/templates/upload_multiple.tpl, #upload).
   Stock: 320px overlay, 500x400 content, 350px queue, 141px pixel meters.
   Layout here: 760px overlay -> 700px content = 506px queue + 24px gap +
   170px button column; meters 245px each (141 x 1.7376). */
body.ys-theme div.overlay:has(#upload) {
    width: 760px !important;
    max-width: calc(100vw - 32px);
    padding: 28px 30px 26px !important;
    box-sizing: border-box;
}

body.ys-theme div.overlay:has(#upload) .caption {
    position: relative;
    height: auto !important;
    min-height: 52px;
    padding: 0 0 18px 66px !important;
    border-bottom: 1px solid #eef2f7 !important;
}

body.ys-theme div.overlay:has(#upload) .caption::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: url(icons/upload-white.svg) center / 24px no-repeat, linear-gradient(135deg, #2563eb, #7c3aed);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .3);
}

body.ys-theme div.overlay:has(#upload) img.dialogicon,
body.ys-theme div.overlay:has(#upload) .caption img {
    display: none !important;
}

body.ys-theme div.overlay:has(#upload) h1 {
    margin: 2px 0 0 !important;
    color: #0f172a !important;
    font-family: inherit !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.3;
}

body.ys-theme div.overlay:has(#upload) h2 {
    margin: 4px 0 0 !important;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 400 !important;
}

body.ys-theme #upload {
    width: auto !important;
    height: auto !important;
    color: #0f172a;
    font-size: 13px;
}

body.ys-theme #upload #uploadform_ui {
    display: flex;
    flex-direction: row-reverse;
    gap: 24px;
    margin-top: 20px;
}

body.ys-theme #upload #queuepanel {
    width: 506px !important;
    height: auto !important;
    margin: 0 !important;
}

body.ys-theme #upload #queuepanel #queuewrapper {
    width: 100% !important;
    height: 320px !important;
    max-height: calc(100vh - 360px);
    overflow-y: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    box-sizing: border-box;
}

body.ys-theme #upload .upload_queue {
    margin: 0;
    padding: 8px;
    border: 0;
    background: none;
}

body.ys-theme #upload .progressplaceholder {
    padding: 70px 20px;
    border: 2px dashed #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

body.ys-theme #upload .progressplaceholder strong {
    display: block;
    margin-bottom: 4px;
    color: #0f172a;
    font-size: 15px;
}

body.ys-theme #upload .upload_file {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 6px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
}

body.ys-theme #upload .upload_file_status {
    flex: 0 0 24px;
    order: 0;
    width: 24px;
    height: 24px;
    float: none;
    background-size: 24px 24px;
}

body.ys-theme #upload .upload_file_info {
    flex: 1 1 auto;
    order: 1;
    min-width: 0;
    height: auto;
    margin: 0;
}

body.ys-theme #upload .upload_file_name {
    overflow: hidden;
    padding: 0;
    color: #0f172a;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.ys-theme #upload .upload_file_details {
    margin-top: 2px;
    color: #94a3b8;
    font-size: 12px;
}

body.ys-theme #upload .upload_file_remove,
body.ys-theme #upload .upload_file_cancel {
    order: 2;
    float: none;
    margin: 0;
    color: #ef4444;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}

body.ys-theme #upload #progressmeters {
    display: flex;
    gap: 16px;
    height: auto !important;
    margin: 16px 0 10px !important;
}

body.ys-theme #upload .progressmeterwrapper {
    width: 245px !important;
    height: auto !important;
    float: none !important;
    color: #64748b;
    font-size: 11px !important;
    font-weight: 600;
    letter-spacing: .04em;
    text-align: left !important;
    text-transform: uppercase;
}

body.ys-theme #upload .progressmeterwrapper .graph_bg {
    width: 100% !important;
    height: 8px !important;
    margin-top: 6px;
    padding: 0 !important;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
    background-image: none;
    box-sizing: border-box;
}

body.ys-theme #upload .progressmeterwrapper .graph_fg {
    height: 100% !important;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    background-image: linear-gradient(90deg, #2563eb, #7c3aed);
    transform: scaleX(1.7376);
    transform-origin: left center;
}

body.ys-theme #upload #divStatus {
    color: #64748b;
    font-size: 13px;
    text-align: left;
}

body.ys-theme #upload #buttonpanel {
    display: flex;
    flex: 0 0 170px;
    flex-direction: column;
    float: none !important;
    margin: 0 !important;
}

body.ys-theme #upload #buttonpanel > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.ys-theme #upload #buttonpanel > div:first-child br {
    display: none;
}

body.ys-theme #upload #buttonpanel button {
    width: 100% !important;
    height: 42px;
    min-height: 0;
    margin: 0;
    padding: 0 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    background-image: none;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

body.ys-theme #upload #buttonpanel button:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

body.ys-theme #upload #buttonpanel button.btnselectfile {
    border: 0;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, .25);
}

body.ys-theme #upload #buttonpanel button.btncancelall:hover {
    border-color: #fecaca;
    background: #fef2f2;
    color: #b91c1c;
}

body.ys-theme #upload #avail_space {
    margin-top: 18px !important;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
    text-align: left !important;
}

body.ys-theme #upload #upload_disk_avail_text,
body.ys-theme #upload #upload_queued_text {
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
}

body.ys-theme #upload #upload_driver {
    display: none;
}

/* Statistics report (system/templates/statistics*.tpl, not overridable).
   The wrapper is an inline 715px div holding .boxhighlight #periodsummary and
   the tabset; every rule is scoped to it. Flot charts size themselves to
   .ccgraph_placeholder when drawn, so a larger placeholder = larger chart. */
body.ys-theme div:has(> .boxhighlight #periodsummary) {
    width: auto !important;
    max-width: 1100px;
}

body.ys-theme div:has(> .boxhighlight #periodsummary) > .boxhighlight,
body.ys-theme div:has(> .boxhighlight #periodsummary) > .boxhighlight .innerbox {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
}

body.ys-theme div:has(> .boxhighlight #periodsummary) > br {
    display: none;
}

body.ys-theme #periodsummary {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 18px;
    padding: 14px 16px;
    border: 1px solid #fbcfe8;
    border-radius: 16px;
    background: linear-gradient(120deg, #fdf2f8 0%, #f5f3ff 50%, #ecfeff 100%);
    box-shadow: 0 6px 20px rgba(236, 72, 153, .08);
    color: #334155;
    font-size: 14px;
}

body.ys-theme #periodsummary #period_summary_relative,
body.ys-theme #periodsummary #period_summary_range,
body.ys-theme #periodsummary #period_summary_month {
    background: linear-gradient(90deg, #db2777, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

body.ys-theme #periodsummary > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    float: none !important;
    font-size: 0;
}

body.ys-theme #periodsummary > div a {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 14px;
    border: 1px solid #fbcfe8;
    border-radius: 999px;
    background: #fff;
    color: #db2777;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

body.ys-theme #periodsummary > div a:hover {
    border-color: transparent;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    box-shadow: 0 6px 14px rgba(236, 72, 153, .3);
    color: #fff;
}

body.ys-theme #periodselect,
body.ys-theme #periodchooser {
    margin: 0 0 12px;
    padding: 0 4px;
    color: #475569;
    font-size: 13px;
    line-height: 2.2;
}

body.ys-theme #periodchooser input[type='text'],
body.ys-theme #periodchooser select {
    height: 32px;
    padding: 0 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

body.ys-theme #periodchooser input[type='button'] {
    height: 34px;
    margin: 8px 6px 0 0;
    padding: 0 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    font-weight: 600;
    cursor: pointer;
}

body.ys-theme #periodchooser input[type='button']:first-of-type {
    border: 0;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: #fff;
}

/* Recent activity: the "48 Hour Overview" label and two metric tables. */
body.ys-theme div:has(> .boxhighlight #periodsummary) .tab_page > div[style*='text-align: center'] {
    margin: 6px 0 14px;
    color: #db2777;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .06em;
    text-align: left !important;
    text-transform: uppercase;
}

body.ys-theme div:has(> .boxhighlight #periodsummary) table:has(.recent_activity_table) > tbody > tr > td[width='16'] {
    width: 20px !important;
}

body.ys-theme .recent_activity_table {
    overflow: hidden;
    padding-top: 4px;
    border: 1px solid #f1e4f3 !important;
    border-radius: 16px;
    background: linear-gradient(90deg, #ec4899, #8b5cf6) top / 100% 4px no-repeat, #fff;
    box-shadow: 0 8px 24px rgba(139, 92, 246, .08);
}

body.ys-theme td:last-child > .recent_activity_table {
    background: linear-gradient(90deg, #8b5cf6, #3b82f6, #14b8a6) top / 100% 4px no-repeat, #fff;
}

body.ys-theme .recent_activity_table table.listtable {
    border: 0;
    border-collapse: collapse;
    border-spacing: 0;
}

body.ys-theme .recent_activity_table th {
    padding: 12px 16px !important;
    border: 0;
    border-bottom: 1px solid #fce7f3;
    background: #fdf8fc !important;
    background-image: none !important;
    color: #be185d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

body.ys-theme .recent_activity_table td {
    padding: 11px 16px !important;
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    background: #fff !important;
    color: #475569;
    font-size: 13px;
    vertical-align: middle;
}

body.ys-theme .recent_activity_table td.tdlast,
body.ys-theme .recent_activity_table tr:last-child td {
    border-bottom: 0;
}

body.ys-theme .recent_activity_table td[style*='bold'] {
    background: linear-gradient(90deg, #db2777, #7c3aed) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent;
    font-weight: 800 !important;
    font-size: 12px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

body.ys-theme .recent_activity_table td[align='right'] {
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

body.ys-theme .recent_activity_table td#recentstats_mostlisteners_name {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Charts: one centred 50% column becomes a full-width card. */
body.ys-theme div:has(> .boxhighlight #periodsummary) table:has(.ccgraph_wrapper) > tbody > tr > td:not(:has(.ccgraph_wrapper)) {
    display: none;
}

body.ys-theme div:has(> .boxhighlight #periodsummary) table:has(.ccgraph_wrapper) > tbody > tr > td:has(.ccgraph_wrapper) {
    width: 100% !important;
}

body.ys-theme div:has(> .boxhighlight #periodsummary) [id^='graph_'] {
    margin: 0 0 18px;
    padding: 22px 18px 12px;
    border: 1px solid #f1e4f3;
    border-radius: 16px;
    background: linear-gradient(90deg, #ec4899, #8b5cf6, #3b82f6, #14b8a6) top / 100% 4px no-repeat, #fff;
    box-shadow: 0 8px 24px rgba(139, 92, 246, .08);
}

body.ys-theme .ccgraph_title::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, .15);
    vertical-align: 1px;
}

body.ys-theme .ccgraph_title {
    width: auto !important;
    margin: 0 0 12px !important;
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
    text-align: left !important;
}

body.ys-theme .ccgraph_wrapper {
    width: 100% !important;
    height: auto !important;
    background: none !important;
}

body.ys-theme .ccgraph_placeholder {
    width: 100% !important;
    height: 280px !important;
}

body.ys-theme .ccgraph_overview {
    width: auto !important;
    height: 56px;
    margin: 12px 0 0 !important;
    padding: 0 !important;
    background: none !important;
}

body.ys-theme .ccgraph_placeholder .legend > div {
    border-radius: 8px;
    opacity: .9 !important;
}

body.ys-theme .ccgraph_placeholder .legend table {
    padding: 4px 6px;
    color: #475569;
    font-size: 12px;
}

body.ys-theme .ccgraph_placeholder .tickLabel,
body.ys-theme .ccgraph_overview .tickLabel {
    color: #94a3b8;
    font-size: 11px;
}

/* Other statistics tabs (Listeners, User Agents, Countries, Tracks ...). */
body.ys-theme div:has(> .boxhighlight #periodsummary) .tab_page .tablewrapper:not(.recent_activity_table) {
    overflow: hidden;
    padding-top: 4px;
    border: 1px solid #f1e4f3;
    border-radius: 16px;
    background: linear-gradient(90deg, #ec4899, #8b5cf6, #3b82f6) top / 100% 4px no-repeat, #fff;
    box-shadow: 0 8px 24px rgba(139, 92, 246, .08);
}

body.ys-theme div:has(> .boxhighlight #periodsummary) .tab_page .listtable:not(.recent_activity_table table) th {
    padding: 12px 14px;
    background: #fdf8fc;
    background-image: none;
    color: #be185d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

body.ys-theme div:has(> .boxhighlight #periodsummary) .tab_page .listtable:not(.recent_activity_table table) td {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
    color: #334155;
    font-size: 13px;
}

/* Widgets page (system/templates/widgets.tpl). Unique hooks:
   #widgetselector and #widgetcontainer. The left <select size=N> is replaced
   by .ys-widget-list buttons in yesstreaming.js. */
body.ys-theme:has(#widgetselector) #maincontent > form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

body.ys-theme:has(#widgetselector) #maincontent > form > table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

body.ys-theme:has(#widgetselector) #maincontent > form > table + table {
    display: flex;
}

body.ys-theme:has(#widgetselector) #maincontent > form > table + table > tbody,
body.ys-theme:has(#widgetselector) #maincontent > form > table + table > tbody > tr {
    display: flex;
    width: 100%;
    gap: 20px;
    align-items: stretch;
}

body.ys-theme:has(#widgetselector) #widgetselector {
    flex: 0 0 240px;
    width: 240px !important;
}

body.ys-theme:has(#widgetselector) #widgetcontainer {
    flex: 1 1 auto;
    min-width: 0;
}

body.ys-theme:has(#widgetselector) #widgetselector + td,
body.ys-theme:has(#widgetselector) td[width='15'],
body.ys-theme:has(#widgetselector) td[width='10'] {
    display: none;
}

body.ys-theme:has(#widgetselector) #widgetselector .box,
body.ys-theme:has(#widgetselector) #widgetcontainer .box {
    height: 100%;
    margin-bottom: 0;
    border-color: #f1e4f3;
    border-radius: 16px;
    background: linear-gradient(90deg, #ec4899, #8b5cf6) top / 100% 4px no-repeat, #fff;
    box-shadow: 0 8px 24px rgba(139, 92, 246, .08);
}

body.ys-theme:has(#widgetselector) #maincontent > form > table:first-child .box {
    margin-bottom: 0;
    border-color: #f1e4f3;
    border-radius: 16px;
    background: linear-gradient(90deg, #ec4899, #8b5cf6, #3b82f6) top / 100% 4px no-repeat, #fff;
    box-shadow: 0 8px 24px rgba(139, 92, 246, .08);
}

body.ys-theme:has(#widgetselector) .boxtitle {
    padding: 16px 18px 12px;
    border-bottom: 1px solid #fce7f3;
    background: transparent;
    color: #be185d;
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

body.ys-theme:has(#widgetselector) #widgetselector select {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

body.ys-theme .ys-widget-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

body.ys-theme .ys-widget-item {
    display: block;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

body.ys-theme .ys-widget-item:hover {
    background: #fdf2f8;
    color: #be185d;
}

body.ys-theme .ys-widget-item.is-active {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    box-shadow: 0 6px 14px rgba(236, 72, 153, .28);
    color: #fff;
}

/* Link card to the YesStreaming website widgets builder */
body.ys-theme a.ys-widget-pack,
body.ys-theme a.ys-widget-pack:link,
body.ys-theme a.ys-widget-pack:visited {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    box-shadow: 0 8px 18px rgba(236, 72, 153, .28);
    color: #fff;
    font-weight: 400;
}

body.ys-theme a.ys-widget-pack strong {
    font-size: 15px;
}

body.ys-theme a.ys-widget-pack span {
    font-size: 13px;
    opacity: .9;
}

body.ys-theme a.ys-widget-pack:hover {
    color: #fff;
    filter: brightness(1.05);
}

body.ys-theme #widgetcontainer .boxcontent {
    position: relative;
}

body.ys-theme #widgetcontainer .boxcontent > div[style*='float'] {
    float: none !important;
    position: absolute;
    top: 14px;
    right: 18px;
}

body.ys-theme #widgetcontainer input[type='button'] {
    height: 36px;
    min-height: 0;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    box-shadow: 0 6px 14px rgba(236, 72, 153, .25);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

body.ys-theme #widgetcontainer textarea.widget_anchor,
body.ys-theme #widgetcontainer textarea.widget_script {
    display: block;
    width: 100% !important;
    height: 140px !important;
    margin: 10px 0 8px !important;
    padding: 14px 16px !important;
    border: 1px solid #fbcfe8 !important;
    border-radius: 12px !important;
    background: #fdf8fc !important;
    background-image: none !important;
    box-sizing: border-box;
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    font-size: 12px !important;
    line-height: 1.55;
    resize: vertical;
}

body.ys-theme #widgetcontainer textarea.widget_anchor:focus,
body.ys-theme #widgetcontainer textarea.widget_script:focus {
    border-color: #ec4899 !important;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, .15);
    outline: 0;
}

body.ys-theme:has(#widgetselector) select[name='charset'],
body.ys-theme:has(#widgetselector) select[name='mountpoint'] {
    min-width: 280px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #fbcfe8;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
}

@media (max-width: 900px) {
    body.ys-theme:has(#widgetselector) #maincontent > form > table + table > tbody > tr {
        flex-direction: column;
    }

    body.ys-theme:has(#widgetselector) #widgetselector {
        flex: 0 0 auto;
        width: 100% !important;
    }
}

/* Shared colour treatment for every remaining page and the admin area.
   Same weight as the base link rule, so any styled button (a.class) keeps its own colour. */
body.ys-theme :where(.content-area) a:link,
body.ys-theme :where(.content-area) a:visited {
    color: #db2777;
}

body.ys-theme :where(.content-area) a:hover {
    color: #9d174d;
}

body.ys-theme .boxhighlight,
body.ys-theme .innerbox {
    border-color: #f1e4f3;
    border-radius: 14px;
    background: #fff;
}

body.ys-theme .headermeter,
body.ys-theme .headermeter.last {
    border-color: #f1e4f3;
    background: linear-gradient(90deg, #ec4899, #8b5cf6) top / 100% 4px no-repeat, #fff;
}

body.ys-theme .tablewrapper {
    overflow: hidden;
    border: 1px solid #f1e4f3;
    border-radius: 14px;
}

body.ys-theme .pagenav a,
body.ys-theme .pagenav a:link,
body.ys-theme .pagenav a:visited {
    color: #db2777;
}

body.ys-theme #footer #footer_content a,
body.ys-theme #footer #footer_content a:link {
    color: #db2777;
}

/* Overview + menus colour refresh */
body.ys-theme:has(#ys-dash) #header_content h1 {
    background: linear-gradient(90deg, #db2777, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.ys-stat {
    border-color: #f1e4f3;
    overflow: hidden;
}

.ys-stat-listeners {
    background: linear-gradient(180deg, #fdf2f8 0%, #ffffff 42%);
}

.ys-stat-transfer {
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 42%);
}

.ys-stat-disk {
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 42%);
}

.ys-stat-rate {
    background: linear-gradient(180deg, #faf5ff 0%, #ffffff 42%);
}

.ys-stat-status.is-on {
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 42%);
}

.ys-stat-status.is-off {
    background: linear-gradient(180deg, #fef2f2 0%, #ffffff 42%);
}

.ys-stat-ico {
    background: linear-gradient(150deg, #ec4899, #8b5cf6);
    box-shadow: 0 8px 18px rgba(236, 72, 153, 0.28);
}

.ys-dash-side .ys-card,
.ys-dash-main .ys-card,
.ys-player {
    border-color: #f1e4f3;
    box-shadow: 0 8px 24px rgba(139, 92, 246, .07);
}

/* Compact now playing card */
body.ys-theme .ys-player {
    grid-template-columns: 56px minmax(0, 1fr) auto auto;
    gap: 14px;
    padding: 10px 16px;
    border-radius: 16px;
}

body.ys-theme .ys-player-art {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    box-shadow: 0 8px 18px -8px rgba(236, 72, 153, 0.45);
}

body.ys-theme .ys-player-art span {
    -webkit-mask-size: 28px 28px;
    mask-size: 28px 28px;
}

body.ys-theme .ys-player .ys-onair {
    height: 20px;
    padding: 0 8px;
    font-size: 10px;
}

body.ys-theme .ys-player #ys-track-title {
    margin: 4px 0 0;
    font-size: 17px;
    line-height: 1.25;
}

body.ys-theme .ys-player #ys-track-artist {
    margin-top: 1px;
    font-size: 12px;
}

body.ys-theme .ys-player .ys-chips {
    gap: 4px;
    margin-top: 5px;
}

body.ys-theme .ys-player .ys-chips span {
    height: 20px;
    padding: 0 8px;
    font-size: 10px;
    line-height: 20px;
}

body.ys-theme .ys-player .ys-vu {
    width: 130px;
    gap: 4px;
}

/* Small Centova Cast logo in the sidebar, under the Session links */
.ys-cc-brand {
    display: flex;
    justify-content: center;
    padding: 14px 0 6px;
}

.ys-cc-logo {
    display: block;
    width: 64px;
    height: 26px;
    background: #94a3b8;
    -webkit-mask: url("centova-logo.png") center / contain no-repeat;
    mask: url("centova-logo.png") center / contain no-repeat;
    opacity: 0.85;
}

body.ys-theme .ys-player a.ys-listen,
body.ys-theme .ys-player a.ys-listen:link,
body.ys-theme .ys-player a.ys-listen:visited {
    height: 36px;
    padding: 0 16px 0 12px;
    font-size: 13px;
}

.ys-card-head h3 {
    color: #be185d;
}

.ys-card-head a,
.ys-card-head a:link,
.ys-card-head a:visited {
    color: #db2777;
}

.ys-h-ico {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
}

.ys-tracks-cols {
    color: #be185d;
}

.ys-url-k {
    border-radius: 6px;
    background: #fdf2f8;
    color: #be185d;
}

.ys-url:nth-child(2) .ys-url-k { background: #ecfdf5; color: #047857; }
.ys-url:nth-child(3) .ys-url-k { background: #eff6ff; color: #1d4ed8; }
.ys-url:nth-child(4) .ys-url-k { background: #faf5ff; color: #6d28d9; }
.ys-url:nth-child(5) .ys-url-k { background: #fff7ed; color: #c2410c; }

body.ys-theme button.ys-seg-btn.is-active {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: #fff;
}

/* Help tooltips */

body.ys-theme .ys-help,
body.ys-theme button.ys-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 20px;
    min-width: 0;
    height: 20px;
    min-height: 0;
    margin: 0 0 0 6px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    background-image: none;
    box-shadow: none;
    color: #94a3b8;
    font-size: 0;
    line-height: 0;
    vertical-align: middle;
    cursor: help;
    transition: color 0.15s, background 0.15s;
}

body.ys-theme .ys-help::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: url("icons/info.svg") center / contain no-repeat;
    mask: url("icons/info.svg") center / contain no-repeat;
}

body.ys-theme .ys-help:hover,
body.ys-theme .ys-help:focus-visible {
    outline: none;
    background: #dbeafe;
    color: #2563eb;
}

.ys-tip {
    position: fixed;
    z-index: 10000;
    max-width: 280px;
    padding: 10px 13px;
    border-radius: 12px;
    background: #0f172a;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
    color: #e2e8f0;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.5;
    text-align: left;
    white-space: normal;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 0.15s, transform 0.15s;
}

.ys-tip.is-on {
    opacity: 1;
    transform: translateY(0);
}

[data-ys-tip]:not(.ys-help):not(a) {
    cursor: help;
}

/* Responsive */

.ys-menu-btn,
.ys-nav-overlay {
    display: none;
}

/* Large laptops */
@media (max-width: 1320px) {
    .ys-dash {
        grid-template-columns: minmax(0, 1fr) 400px;
    }

    .ys-stats {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .ys-stat {
        grid-column: span 2;
    }

    .ys-stat-rate,
    .ys-stat-status {
        grid-column: span 3;
    }
}

/* Small laptops and tablets in landscape */
@media (max-width: 1180px) {
    body.ys-theme .ys-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 60px;
        width: 60px;
        min-height: 0;
        height: 72px;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: #0c1424;
        box-shadow: none;
        cursor: pointer;
    }

    .ys-menu-btn span,
    .ys-menu-btn span::before,
    .ys-menu-btn span::after {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: #ffffff;
        transition: transform 0.2s ease, background 0.2s ease;
    }

    .ys-menu-btn span {
        position: relative;
    }

    .ys-menu-btn span::before,
    .ys-menu-btn span::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .ys-menu-btn span::before { top: -6px; }
    .ys-menu-btn span::after { top: 6px; }

    body.ys-nav-open .ys-menu-btn span { background: transparent; }
    body.ys-nav-open .ys-menu-btn span::before { transform: translateY(6px) rotate(45deg); }
    body.ys-nav-open .ys-menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

    .ys-brand {
        flex: 0 0 auto;
        width: auto;
        margin-left: -14px;
        padding: 0 18px 0 4px;
    }

    body.ys-theme #leftcolumn {
        top: 72px;
        width: 272px;
        box-shadow: none;
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.25s ease, visibility 0s linear 0.25s;
        z-index: 60;
    }

    body.ys-nav-open #leftcolumn {
        box-shadow: 18px 0 40px rgba(2, 6, 23, 0.35);
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.25s ease, visibility 0s;
    }

    body.ys-nav-open .ys-nav-overlay {
        display: block;
        position: fixed;
        top: 72px;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(15, 23, 42, 0.45);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
        z-index: 55;
    }

    body.ys-theme #header,
    body.ys-theme #footer {
        margin-left: 0;
    }

    body.ys-theme #header {
        padding: 20px 20px 0;
    }

    body.ys-theme #maincontent,
    body.ys-theme #rawcontent {
        margin: 16px 20px 0;
    }

    body.ys-theme #footer #footer_content {
        padding: 16px 20px 0;
    }

    .ys-dash {
        grid-template-columns: 1fr;
    }

    .ys-dash-side {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
        align-items: start;
    }

    .ys-dash-side .ys-card + .ys-card {
        margin-top: 0;
    }

    .ys-dash-side .ys-control {
        grid-column: 1 / -1;
    }

    body.ys-theme .tabset > div {
        display: flex;
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    body.ys-theme .tab_page,
    body.ys-theme .content-area {
        overflow-x: auto;
    }
}

/* Tablets in portrait */
@media (max-width: 900px) {
    body.ys-theme #topbar {
        gap: 10px;
        padding-right: 12px;
    }

    .ys-brand {
        margin-left: -10px;
    }

    body.ys-theme #ys-clock {
        display: none;
    }

    #ys-top-artist {
        display: none;
    }

    .ys-dash-side {
        grid-template-columns: 1fr;
    }

    .ys-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ys-stat,
    .ys-stat-rate {
        grid-column: auto;
    }

    .ys-stat-status {
        grid-column: 1 / -1;
    }

    body.ys-theme input[type="text"],
    body.ys-theme input[type="password"],
    body.ys-theme input[type="email"],
    body.ys-theme input[type="number"],
    body.ys-theme select,
    body.ys-theme textarea {
        max-width: 100%;
    }

    body.ys-theme .content-area table {
        max-width: 100%;
    }
}

/* Phones */
@media (max-width: 640px) {
    body.ys-theme .ys-menu-btn {
        flex-basis: 52px;
        width: 52px;
        height: 60px;
    }

    body.ys-theme #topbar {
        height: 60px;
        min-height: 60px;
    }

    .ys-brand {
        height: 61px;
        padding-right: 12px;
    }

    .ys-brand img {
        max-width: 132px;
        max-height: 36px;
    }

    body.ys-theme #leftcolumn,
    body.ys-nav-open .ys-nav-overlay {
        top: 60px;
    }

    body.ys-theme #rawcontent > .ui-layout-container,
    body.ys-theme #rawcontent > form > .ui-layout-container {
        top: 60px !important;
    }

    body.ys-theme #leftcolumn {
        width: 84vw;
        max-width: 300px;
    }

    .ys-user {
        display: none;
    }

    .ys-top-onair {
        display: none;
    }

    body.ys-theme #header {
        padding: 16px 14px 0;
    }

    body.ys-theme #maincontent,
    body.ys-theme #rawcontent {
        margin: 14px 12px 0;
        border-radius: 16px;
    }

    body.ys-theme .content-area {
        padding: 12px 14px 18px;
    }

    body.ys-theme #heading {
        padding: 18px 14px 4px;
    }

    body.ys-theme #footer #footer_content {
        flex-direction: column;
        padding: 14px 14px 24px;
        text-align: center;
    }

    body.ys-theme #header .ys-pagehead h1 {
        font-size: 22px;
    }

    .ys-pagehead p {
        overflow-wrap: anywhere;
    }

    .ys-stats {
        gap: 10px;
    }

    .ys-stat {
        padding: 14px;
    }

    .ys-stat-ico {
        flex-basis: 38px;
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    .ys-stat-value,
    .ys-stat-value small {
        font-size: 18px;
    }

    .ys-player {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 14px;
        padding: 16px;
    }

    .ys-player .ys-vu {
        display: none;
    }

    .ys-player-art {
        width: 64px;
        height: 64px;
        border-radius: 14px;
    }

    .ys-player #ys-track-title {
        font-size: 18px;
        white-space: normal;
    }

    body.ys-theme a.ys-listen,
    body.ys-theme a.ys-listen:link,
    body.ys-theme a.ys-listen:visited {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .ys-tracks-cols {
        display: none;
    }

    body.ys-theme .cctrack {
        grid-template-columns: 36px minmax(0, 1fr) 64px;
        gap: 10px;
    }

    body.ys-theme .cctrack::before,
    body.ys-theme .cctrack .ccalbum {
        display: none;
    }

    body.ys-theme .cctrack .cccover { grid-column: 1; grid-row: 1 / span 2; }
    body.ys-theme .cctrack .cctitle { grid-column: 2; grid-row: 1; }
    body.ys-theme .cctrack .ccartist { grid-column: 2; grid-row: 2; }
    body.ys-theme .cctrack .cctime { grid-column: 3; grid-row: 1 / span 2; }

    .ys-ctl {
        gap: 8px;
    }

    body.ys-theme a.ys-ctl-btn,
    body.ys-theme a.ys-ctl-btn:link,
    body.ys-theme a.ys-ctl-btn:visited {
        min-height: 64px;
        font-size: 13px;
    }

    .ys-url {
        grid-template-columns: 50px minmax(0, 1fr) 30px;
        gap: 8px;
    }

    body.ys-theme .tab_page table,
    body.ys-theme .tab_page tbody,
    body.ys-theme .tab_page tr,
    body.ys-theme .tab_page td,
    body.ys-theme .tab_page th {
        display: block;
        width: auto !important;
        text-align: left;
    }

    body.ys-theme .tab_page td {
        padding: 4px 0;
    }

    body.ys-theme .tab_page input[type="text"],
    body.ys-theme .tab_page input[type="password"],
    body.ys-theme .tab_page select,
    body.ys-theme .tab_page textarea {
        width: 100% !important;
        box-sizing: border-box;
    }
}

/* Small phones */
@media (max-width: 420px) {
    .ys-stat {
        padding: 12px;
    }

    .ys-stat-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ys-stat-status .ys-stat-top {
        flex-direction: row;
        align-items: center;
    }

    .ys-stat-top + .ys-bar {
        margin-top: 12px;
    }

    .ys-stat-pct-right {
        margin-top: 10px;
    }

    .ys-top-song {
        display: none;
    }
}

@media (max-width: 330px) {
    .ys-stats {
        grid-template-columns: 1fr;
    }
}
