@font-face {
    font-family: 'DSEG14';
    src: url('repetition-scrolling.regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
:root {
    --bg-color: #121212;
    --panel-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --text-muted: #8a8a8a;
    --accent: #d4af37;
    --accent-hover: #f3cd5d;
    --recording-color: #ff4444;
    --border-color: #2a2a2a;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    padding: 10px;
    max-width: 1300px;
    margin: 0 auto;
    font-size: 13px;
}
header h1 {
    font-size: 1.4rem;
    font-weight: 400;
    padding-bottom: 6px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
.player-panel {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 0px;
    padding: 10px 15px;
    margin-bottom: 15px;
}
.player-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
#current-track-title {
    font-weight: bold;
    font-size:18px;
    color: var(--accent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}
.player-controls-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.custom-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}
.timeline-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
}
.time-display {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    min-width: 35px;
}
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: #333;
    height: 6px;
    border-radius: 1px;
    outline: none;
    cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
}
#timeline {
    flex-grow: 1;
}
.volume-container {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 120px;
}
#volume-slider {
    width: 100%;
}
#vumeter-container {
    width: 250px;
    height: 10px;
    background-color: #000;
    border: 1px solid #222;
    border-radius: 0px;
    overflow: hidden;
    position: relative;
    display: flex; 
    flex-direction: column;
}
button, .btn-link {
    background: #2a2a2a;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1.0rem;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: background 0.1s;
}
button:hover, .btn-link:hover {
    background: #3a3a3aaa;
    color: #ff0;
}
button.primary {
    color: #fff;
    background: #2a2a2a;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    width: 40px;
    height: 30px;
}
button.primary:hover {
    background: #3a3a3aaa;
    color: #ff0;
}
.main-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 15px;
}
.calendar-panel {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    align-self: start;
}
.calendar-header {
    display: flex;
    font-family: 'Calibri';
    font-size:23px;
    justify-content: space-between;
    margin-bottom: 10px;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
    text-align: center;
}
.day-name {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: bold;
    padding-bottom: 2px;
}
.calendar-day {
    position: relative;
    padding: 6px 0;
    background: #161616;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.85rem;
    border: 1px solid #000;
    color: #777;
}
.calendar-day:hover {
    background: #530;
    color: #fff;
}
.calendar-day.selected {
    border: 1px solid #000;
    color: #fff;
    font-weight: bold;
    background: #ffaa0066;
}
.calendar-day.empty {
    background: transparent;
    cursor: default;
}
.calendar-day.has-record::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 3px;
    width: 4px;
    height: 4px;
    background-color: #a00;
    border-radius: 50%;
}
.calendar-day.saturday:not(.selected) {
    background: #00ff0022;
}

.calendar-day.sunday:not(.selected) {
    background: #ff000022;
}

.calendar-day.saturday:not(.selected):hover {
    background: #00ff0055;
}

.calendar-day.sunday:not(.selected):hover {
    background: #ff000055;
}

.files-panel {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 12px;
}
.files-panel h2 {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 10px;
}
#file-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width:1200px;
    white-space: nowrap;
    text-overflow: ellipsis;
    min-width: 0;
    overflow: hidden;

}

.file-item {
    position: relative;
    display: flex;
    max-width: 1200px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #111;
    background-color: #111;
    font-size: 15px;
    line-height: 1.2;
    height: 24px;
    overflow: hidden;
    box-sizing: border-box;
    padding: 2px 10px;
    gap: 10px;
}
.file-item > * {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-item:hover {
    background-color: #2a2a2a;
}

.file-row-content {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    pointer-events: auto;
}
.file-info-col {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    padding-right: 15px;
}
.file-main-name {
    font-weight: bold;
    color: #555;
    margin-right: 6px;
}
.file-separator {
    color: #444;
    margin: 0 8px;
}
.file-titles-inline {
    color: #aaa;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-meta-col {
    display: flex;
    gap: 12px;
    color: #666;
    font-family: monospace;
    white-space: nowrap;
}
.file-actions-overlay {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(to left, #1a1a1a 85%, transparent 100%);
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 30px;
    padding-right: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}

.file-item:hover .file-actions-overlay {
    opacity: 1;
    pointer-events: auto;
}

.file-actions-overlay button, 
.file-actions-overlay .btn-link {
    padding: 1px 6px;
    font-size: 11px;
    height: 18px;
    line-height: 16px;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
}

.recording-badge {
    color: #ff8888;
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 10px;
    font-weight: bold;
    margin-left: 6px;
    animation: blinker 1.5s linear infinite;
}

.play-button {
    font-size: 26px;
    line-height: 1;
    font-family: arial;
    color: #ffff00;
    transition: color 0.2s;
    cursor: pointer;
}

.play-button:hover {
    color: #ffaa00;
}

.play-track-li {
    cursor: pointer;
}

.disks-container {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    margin-top: 15px;
    box-sizing: border-box;
}

.disks-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-family: monospace;
    font-size: 11px;
    color: var(--text-muted);
}

.disk-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.disk-label {
    display: flex;
    justify-content: space-between;
}

.disk-bar-bg {
    background: #151515;
    border: 1px solid #252525;
    height: 8px;
    border-radius: 2px;
    overflow: hidden;
}

.disk-bar-fill {
    background: var(--accent);
    height: 100%;
    width: 0%;
}

@keyframes blinker {
    50% { opacity: 0.0; }
}

@media (max-width: 768px) {
    .player-controls-row {
        flex-direction: column;
        align-items: stretch;
    }
    .timeline-container, .volume-container, #vumeter-container {
        width: 100%;
    }
    .main-content {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .calendar-panel {
        grid-column: 1;
        grid-row: 1;
    }
    .disks-container {
        grid-column: 1;
        grid-row: 2;
        align-self: start;
    }
    .files-panel {
        grid-column: 2;
        grid-row: 1 / span 2;
    }
}

.uppercase-text {
  text-transform: uppercase;
  font-size: 30px;
}
.foot {
	font-family: monospace;
        text-align: center;
	color:#444;
}
.ma {
    text-align: center;
    color:#444;
}

.ma:hover {
    color:#ff4;
}
