body {
    background: #111;
    color: white;
    text-align: center;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: black;
    color: darkred;
}

h1 {
    padding: 20px;
}

header > div {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px;
}

h2 {
    margin: 20px;
}

#form-container {
    margin-top: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#options {
    display: flex;
    flex-direction: column;
    width: 200px;
}

input, label, select {
    text-align: left;
    width: 200px;
}

input, select {
    background-color: #555;
    color: white;
    border: none;
    padding: 4px;
    border-radius: 4px;
    margin-bottom: 15px;
    padding-left: 10px;
    transition: 0.1s ease;
}

input:hover, input:focus,
select:hover, select:focus {
    background-color: #888;
    outline: none;
}

#play-button {
    margin-top: 10px;
}

.btn-danger {
    transition: 0.1s ease;
    background-color: darkred;
    border: darkred;
}

#content {
    display: none;
    max-width: 1000px;
    margin: 0 auto;
}

#player-wrapper {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    margin-bottom: 30px;
    transition: box-shadow 0.6s ease;
}

#player-wrapper.loved-glow {
    box-shadow: 0 0 18px 6px darkred;
}

#player-wrapper iframe {
    position: absolute;
    width: 100%;
    height: 100%;
}

#controls {
    display: flex;
    align-items: center;
}

#seeking {
    display: none;
}

#editing {
    flex: 1;
    text-align: left;
}

#looping {
    flex: 1;
    text-align: right;
}

.btn:focus, .btn:active {
    box-shadow: none !important;
}

.btn-secondary {
    margin: 0 7.5px;
    width: 100px;
}

#scrobble-button {
    width: 50px;
}

#edit-video-button, #loop-button {
    width: 50px;
    background-color: #444;
    border-color: #444;
}

#edit-video-button {
    margin-left: 0;
}

#loop-button {
    margin-right: 0;
}

#setup-notice {
    margin-top: 20px;
    color: #ff6666;
}

#edit-video-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 15px;
    margin-bottom: 12px;
}

#edit-video-input {
    width: 280px;
    background-color: #555;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    margin: 0;
}

#edit-video-cancel {
    margin: 0;
}

.modal-content {
    background: #222;
    color: white;
}

.modal-header, .modal-footer {
    border-color: #444;
}

.modal-body input {
    background-color: #555;
    color: white;
    border: none;
    width: 100%;
}

.modal-body label {
    width: 100%;
    text-align: left;
    margin-top: 8px;
}

#home-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

#home-button:hover {
    opacity: 1;
}
