/* Radio City Eighty Five – Bewerbung (Design wie Startseite, Webplayer-Popup und Webseite) */
:root {
    --rc85-primary: #9b111e;
    --rc85-primary-hover: #b71c1c;
    --rc85-accent: #d32f2f;
    --rc85-bg-page: #121212;
    --rc85-bg-surface: #1b1b1b;
    --rc85-bg-surface-light: #232324;
    --rc85-text-main: #ffffff;
    --rc85-text-muted: #aaaaaa;
    --rc85-border-color: rgba(255,255,255,.08);
    --rc85-radius-element: 12px;
    --rc85-radius-box: 20px;
    --rc85-card-bg: linear-gradient(120deg, #151516 0%, #1a1a1b 55%, #2a1317 100%);
    --rc85-transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    --rc85-main-width: 860px;
}

* { box-sizing: border-box; }

html, body { height: 100%; }
html { overflow-x: hidden; max-width: 100%; }

body {
    background: var(--rc85-bg-page);
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: var(--rc85-text-main);
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    max-width: 100%;
}

/* Kopfzeile (wie im Webplayer-Popup: Logo links, Titel rechts) */
.rc85-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px 14px;
    background: transparent;
    flex: 0 0 auto;
}
.rc85-logo { max-height: 46px; width: auto; max-width: 52%; object-fit: contain; }
.rc85-top-title {
    font-size: 11px; font-weight: 700; letter-spacing: 2.6px; text-transform: uppercase;
    color: rgba(255,255,255,.5); text-align: right;
}

.container {
    width: 100%;
    max-width: var(--rc85-main-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Hauptbereich nimmt den freien Platz, nur die Liste scrollt */
.rc85-main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding-top: 4px; }
.rc85-recent-wrap { flex: 0 0 auto; padding-top: 14px; }

.card {
    position: relative;
    background: var(--rc85-card-bg);
    padding: 22px 24px;
    border-radius: var(--rc85-radius-box);
    border: 1px solid var(--rc85-border-color);
    box-shadow: 0 14px 30px rgba(0,0,0,.35);
    overflow: hidden;
}
.card::before {
    content: '';
    position: absolute; left: 0; right: 0; top: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--rc85-accent), var(--rc85-primary), transparent);
}
.rc85-main-card > .rc85-card-title { display: none; }
.rc85-main-card { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }

.rc85-card-title {
    display: flex; align-items: center; gap: 12px;
    margin: 0 0 10px 0;
    font-size: 11px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase;
    color: var(--rc85-text-main);
}
.rc85-card-title::before {
    content: ''; display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--rc85-accent);
}

.rc85-live-notice {
    font-size: 12.5px;
    color: var(--rc85-text-muted);
    line-height: 1.55;
    margin: 0 0 16px 0;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--rc85-border-color);
}
.rc85-live-notice strong { color: var(--rc85-text-main); }

/* Tabs */
.rc85-tabs {
    display: flex; gap: 4px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--rc85-border-color);
    padding: 4px;
    border-radius: 50px;
    margin-bottom: 14px;
    flex: 0 0 auto;
}
.rc85-tab {
    flex: 1; text-align: center; padding: 9px 8px;
    border-radius: 50px; font-size: 12px; font-weight: 700; letter-spacing: .3px;
    color: var(--rc85-text-muted); cursor: pointer; transition: var(--rc85-transition);
    user-select: none; background: transparent; border: none; font-family: inherit;
}
.rc85-tab:hover { color: #fff; }
.rc85-tab.active {
    background: linear-gradient(135deg, var(--rc85-accent), var(--rc85-primary));
    color: #fff;
    box-shadow: 0 6px 14px rgba(155,17,30,.45);
}

#rc85-result-banner { flex: 0 0 auto; }
.rc85-tabpanel { display: none; }
.rc85-tabpanel.active { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }

/* Suche */
.rc85-search-wrap { position: relative; margin-bottom: 10px; flex: 0 0 auto; }
.rc85-search-wrap input {
    width: 100%; padding: 13px 40px 13px 16px;
    border-radius: 50px;
    border: 1px solid var(--rc85-border-color);
    background: rgba(255,255,255,.05);
    color: var(--rc85-text-main);
    font-family: inherit; font-size: 14px; outline: none; transition: var(--rc85-transition);
}
.rc85-search-wrap input::placeholder { color: rgba(255,255,255,.4); }
.rc85-search-wrap input:focus { border-color: var(--rc85-accent); box-shadow: 0 0 0 3px rgba(211,47,47,.2); }
.rc85-search-clear {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--rc85-text-muted); cursor: pointer; font-size: 15px; padding: 4px; display: none;
}
.rc85-search-clear:hover { color: #fff; }

.rc85-result-count {
    font-size: 10.5px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
    color: var(--rc85-text-muted); margin: 0 0 8px 4px; flex: 0 0 auto; min-height: 0;
}
.rc85-result-count:empty { display: none; }

.rc85-song-list, #rc85-wishlist {
    display: flex; flex-direction: column; gap: 8px;
    flex: 1 1 auto; min-height: 120px; overflow-y: auto; padding-right: 4px;
    scrollbar-width: thin; scrollbar-color: #3a3a3c transparent;
}
#rc85-wishlist { display: block; }
#rc85-wishlist .rc85-wl-item { margin-bottom: 8px; }
.rc85-song-list::-webkit-scrollbar, #rc85-wishlist::-webkit-scrollbar { width: 6px; }
.rc85-song-list::-webkit-scrollbar-thumb, #rc85-wishlist::-webkit-scrollbar-thumb { background: #3a3a3c; border-radius: 6px; }

.rc85-song-row, .rc85-wl-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,.04);
    border-radius: 14px;
    border: 1px solid var(--rc85-border-color);
    transition: var(--rc85-transition);
    flex: 0 0 auto;
}
.rc85-song-row:hover { background: rgba(255,255,255,.07); border-color: rgba(211,47,47,.35); }

.rc85-song-avatar {
    width: 38px; height: 38px; border-radius: 11px;
    background: linear-gradient(135deg, var(--rc85-accent), var(--rc85-primary));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px; flex-shrink: 0;
    box-shadow: 0 6px 12px rgba(155,17,30,.35);
}
.rc85-song-info, .rc85-wl-info { flex: 1; min-width: 0; }
.rc85-song-title, .rc85-wl-title {
    font-size: 13.5px; font-weight: 700; color: var(--rc85-text-main);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rc85-song-artist, .rc85-wl-artist {
    font-size: 11.5px; color: var(--rc85-text-muted); font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.rc85-wish-btn {
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--rc85-accent), var(--rc85-primary));
    color: #fff; border: none; padding: 9px 18px; border-radius: 50px;
    font-family: inherit; font-weight: 800; font-size: 10.5px; text-transform: uppercase; letter-spacing: .8px;
    cursor: pointer; transition: var(--rc85-transition);
    box-shadow: 0 6px 14px rgba(155,17,30,.4);
}
.rc85-wish-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(155,17,30,.55); }
.rc85-wish-btn:disabled {
    background: transparent; color: var(--rc85-text-muted); cursor: default;
    border: 1px solid var(--rc85-border-color); box-shadow: none;
}

.rc85-empty-state {
    text-align: center; padding: 34px 10px; color: var(--rc85-text-muted); font-size: 13px; line-height: 1.5;
}
.rc85-empty-state .rc85-empty-icon { font-size: 30px; display: block; margin-bottom: 8px; opacity: .85; }

/* Ergebnis-Banner */
#rc85-result-banner {
    display: none; padding: 11px 14px; border-radius: 12px;
    font-size: 12.5px; font-weight: 600; line-height: 1.5; margin-bottom: 12px;
}
#rc85-result-banner.success { display: block; background: rgba(46,204,113,.1); border: 1px solid rgba(46,204,113,.55); color: #4fd88a; }
#rc85-result-banner.error { display: block; background: rgba(231,76,60,.1); border: 1px solid rgba(231,76,60,.55); color: #ef7b6e; }
#rc85-result-banner.info { display: block; background: rgba(255,255,255,.06); border: 1px solid var(--rc85-border-color); color: var(--rc85-text-main); }

.rc85-badge {
    flex-shrink: 0; font-size: 10px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
    padding: 5px 11px; border-radius: 50px;
}
.rc85-badge.wartend { background: var(--rc85-primary); color: #fff; border: 1px solid var(--rc85-primary-hover); box-shadow: 0 3px 10px rgba(155,17,30,.28); }
.rc85-wl-badge { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.rc85-badge.aktiv { background: rgba(52,152,219,.18); color: #5dade2; border: 1px solid rgba(52,152,219,.5); box-shadow: 0 0 10px rgba(52,152,219,.22); }
.rc85-badge.gespielt { background: rgba(46,204,113,.16); color: #2ecc71; border: 1px solid rgba(46,204,113,.5); box-shadow: 0 0 10px rgba(46,204,113,.18); }

/* Vorschlag-Tab */
[data-panel="suggest"] { overflow-y: auto; padding-bottom: 4px; }
[data-panel="suggest"] .rc85-live-notice { margin: 0 0 12px 0; padding: 0; border: 0; font-size: 12px; }
.form-group { text-align: left; margin-bottom: 10px; }
label {
    display: block; font-size: 10.5px; color: var(--rc85-text-muted); text-transform: uppercase;
    font-weight: 800; margin-bottom: 5px; letter-spacing: 2px;
}
input[type="text"], input[type="email"], textarea {
    display: block; width: 100%; max-width: 100%; padding: 10px 16px;
    border-radius: 50px; border: 1px solid var(--rc85-border-color);
    background: rgba(255,255,255,.05); color: var(--rc85-text-main);
    font-family: inherit; font-size: 14px; outline: none; transition: var(--rc85-transition);
}
input:focus, textarea:focus { border-color: var(--rc85-accent); box-shadow: 0 0 0 3px rgba(211,47,47,.2); }
.submit-btn {
    background: linear-gradient(135deg, var(--rc85-accent), var(--rc85-primary));
    color: #fff; border: none; padding: 12px 25px; border-radius: 50px; cursor: pointer;
    font-family: inherit; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 1.2px;
    transition: var(--rc85-transition); box-shadow: 0 8px 18px rgba(155,17,30,.45);
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
}
.submit-btn:hover:not(:disabled) { box-shadow: 0 10px 22px rgba(155,17,30,.6); transform: translateY(-2px); }
.submit-btn:disabled { opacity: .7; cursor: default; transform: none; }

/* Footer */
.rc85-footer {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 18px 14px; border-top: 1px solid var(--rc85-border-color); flex: 0 0 auto; margin-top: 14px;
    background: var(--rc85-bg-page);
}
.rc85-footer-link {
    display: flex; align-items: center; gap: 7px; color: var(--rc85-text-muted);
    text-decoration: none; font-size: 12px; font-weight: 600; transition: var(--rc85-transition);
}
.rc85-footer-link:hover { color: #fff; }
.rc85-footer-link svg { width: 16px; height: 16px; fill: currentColor; }

.rc85-cc-hidden { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Zuletzt gewünschte Songs (kompakt: die 2 neuesten) */
.rc85-recent-card { padding: 16px 20px 14px; margin-top: 0; }
.rc85-recent-title {
    display: flex; align-items: center; gap: 12px; margin: 0 0 10px 0;
    font-size: 11px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--rc85-text-main);
}
.rc85-recent-title::before { content: ''; display: block; width: 24px; height: 2px; border-radius: 2px; background: var(--rc85-accent); }
.cc_recenttracks_list, .rc85-recent-list { display: flex; flex-direction: column; gap: 6px; }
.rc85-recent-empty { text-align: center; padding: 8px 10px; color: var(--rc85-text-muted); font-size: 12.5px; margin: 0; }
.cc_recenttracks_list > .cctrack, .rc85-recent-item {
    display: flex; align-items: center; gap: 12px; padding: 8px 12px;
    background: rgba(255,255,255,.04); border: 1px solid var(--rc85-border-color); border-radius: 12px;
}
.rc85-recent-item:nth-child(n+3) { display: none; }
.cc_recenttracks_list > .cctrack > .ccdetails, .rc85-recent-details { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cc_recenttracks_list > .cctrack > .ccdetails > .cctitle, .rc85-recent-details > .rc85-recent-item-title {
    display: block; font-size: 12.5px; font-weight: 700; color: var(--rc85-text-main);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cc_recenttracks_list > .cctrack > .ccdetails > .ccartist, .rc85-recent-details > .rc85-recent-item-artist {
    display: block; font-size: 11px; font-weight: 500; color: var(--rc85-text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cc_recenttracks_list > .cctrack > .ccdetails > .ccalbum,
.cc_recenttracks_list > .cctrack > .ccdetails > .ccbuy { display: none; }
.cc_recenttracks_list > .cctrack > .cctime, .rc85-recent-time {
    flex-shrink: 0; font-size: 10px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase;
    color: var(--rc85-text-muted); background: rgba(255,255,255,.07); padding: 5px 10px; border-radius: 50px;
}

/* Kleine Bildschirme / Handy */
@media (max-width: 700px) {
    .container { padding: 0 12px; }
    .card { padding: 18px 16px; border-radius: 18px; }
    .rc85-topbar { padding: 14px 18px 10px; }
    .rc85-logo { max-height: 38px; }
    .rc85-top-title { font-size: 10px; letter-spacing: 1.6px; }
    .rc85-tab { font-size: 11px; padding: 9px 4px; }
    .rc85-live-notice { font-size: 12px; }
    .rc85-recent-card { padding: 14px 14px 12px; }
}

/* Handy / sehr kleines Fenster: Seite scrollt normal, alles bleibt erreichbar */
@media (max-width: 700px), (max-height: 720px) {
    html, body { height: auto; }
    body { height: auto; min-height: 100vh; min-height: 100dvh; overflow-y: auto; }
    .rc85-main { flex: 0 0 auto; min-height: 0; display: block; }
    .rc85-main-card { display: block; }
    .rc85-tabpanel.active { display: block; }
    .rc85-song-list, #rc85-wishlist { overflow: visible; min-height: 0; padding-right: 0; }
    [data-panel="suggest"] { overflow: visible; }
    .rc85-footer { margin-top: 12px; }
}


/* ---- Bewerbungsformular ---- */
.rc85-bw-form { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: #3a3a3c transparent; }
.rc85-bw-form::-webkit-scrollbar { width: 6px; }
.rc85-bw-form::-webkit-scrollbar-thumb { background: #3a3a3c; border-radius: 6px; }
.rc85-bw-form textarea { border-radius: 16px; min-height: 52px; height: 52px; resize: vertical; line-height: 1.45; }
.rc85-bw-form input[type="tel"] { display: block; width: 100%; max-width: 100%; padding: 10px 16px; border-radius: 50px; border: 1px solid var(--rc85-border-color); background: rgba(255,255,255,.05); color: var(--rc85-text-main); font-family: inherit; font-size: 14px; outline: none; transition: var(--rc85-transition); }
.rc85-bw-form input[type="tel"]:focus { border-color: var(--rc85-accent); box-shadow: 0 0 0 3px rgba(211,47,47,.2); }
.rc85-bw-form input::placeholder, .rc85-bw-form textarea::placeholder { color: rgba(255,255,255,.35); }
.rc85-bw-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rc85-bw-row .form-group { min-width: 0; }
.rc85-opt { text-transform: none; letter-spacing: 0; font-weight: 500; opacity: .75; }
.rc85-bw-privacy { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: 12px; color: var(--rc85-text-muted); line-height: 1.5; }
.rc85-bw-privacy input { margin-top: 3px; flex: none; accent-color: #d32f2f; }
.rc85-bw-privacy label { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 12px; margin: 0; display: inline; }
.rc85-bw-privacy a { color: #ff6b6b; }
.rc85-hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 480px) { .rc85-bw-row { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 700px), (max-height: 720px) { .rc85-bw-form { overflow: visible; padding-right: 0; } }

.rc85-bw-form #bw-idee { min-height: 72px; height: 72px; }
.rc85-bw-form .form-group { margin-bottom: 8px; }
.rc85-bw-form input[type="text"], .rc85-bw-form input[type="email"], .rc85-bw-form input[type="tel"] { padding-top: 8px; padding-bottom: 8px; }
.rc85-bw-form { scrollbar-width: none; -ms-overflow-style: none; }
.rc85-bw-form::-webkit-scrollbar { display: none; width: 0; }
.rc85-bw-form label { margin-bottom: 4px; }
.rc85-live-notice { margin-bottom: 12px; padding-bottom: 10px; }

.rc85-bw-form select { display: block; width: 100%; max-width: 100%; padding: 9px 16px; border-radius: 50px; border: 1px solid var(--rc85-border-color); background-color: rgba(255,255,255,.05); color: var(--rc85-text-main); font-family: inherit; font-size: 14px; outline: none; transition: var(--rc85-transition); appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #d32f2f 50%), linear-gradient(135deg, #d32f2f 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; cursor: pointer; }
.rc85-bw-form select:focus { border-color: var(--rc85-accent); box-shadow: 0 0 0 3px rgba(211,47,47,.2); }
.rc85-bw-form select option { background: #1b1b1b; color: #fff; }

/* Dunkles Klappmenü (eigene Auswahl statt weißem Browser-Menü) */
.rc85-dd { position: relative; }
.rc85-dd-btn { display: block; width: 100%; text-align: left; padding: 9px 40px 9px 16px; border-radius: 50px; border: 1px solid var(--rc85-border-color); background-color: rgba(255,255,255,.05); color: var(--rc85-text-main); font-family: inherit; font-size: 14px; cursor: pointer; outline: none; transition: var(--rc85-transition); background-image: linear-gradient(45deg, transparent 50%, #d32f2f 50%), linear-gradient(135deg, #d32f2f 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.rc85-dd-btn:focus, .rc85-dd-btn[aria-expanded="true"] { border-color: var(--rc85-accent); box-shadow: 0 0 0 3px rgba(211,47,47,.2); }
.rc85-dd-btn.placeholder { color: rgba(255,255,255,.4); }
.rc85-dd-list { position: fixed; z-index: 100; margin: 0; padding: 6px; list-style: none; background: #1b1b1b; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; box-shadow: 0 16px 34px rgba(0,0,0,.6); max-height: 260px; overflow-y: auto; scrollbar-width: none; }
.rc85-dd-list::-webkit-scrollbar { display: none; }
.rc85-dd-list[hidden] { display: none; }
.rc85-dd-list li { padding: 10px 14px; border-radius: 11px; font-size: 14px; color: var(--rc85-text-main); cursor: pointer; }
.rc85-dd-list li:hover, .rc85-dd-list li.hl { background: rgba(211,47,47,.18); }
.rc85-dd-list li.sel { background: linear-gradient(135deg, var(--rc85-accent), var(--rc85-primary)); color: #fff; font-weight: 700; }

/* Meldung als Einblendung: verändert die Seitenhöhe nicht, kein Scrollbalken */
#rc85-result-banner { position: fixed; left: 50%; bottom: 64px; transform: translateX(-50%); width: calc(100% - 40px); max-width: 520px; z-index: 90; margin: 0; box-shadow: 0 12px 30px rgba(0,0,0,.55); text-align: center; transition: opacity .35s ease; }
#rc85-result-banner.success { background: #10291b; }
#rc85-result-banner.error { background: #2e1512; }
#rc85-result-banner.hide { opacity: 0; pointer-events: none; }
