Files
2026-11-25 20:29:47 -06:00

1381 lines
17 KiB
CSS

/* ==========================================================
GLOBAL
========================================================== */
* {
box-sizing: border-box;
}
html,
body {
margin: 0;
padding: 0;
}
body {
background: #151515;
color: #eeeeee;
font-family:
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
Arial,
sans-serif;
}
body.player-open {
overflow: hidden;
}
a {
color: inherit;
}
/* ==========================================================
HEADER
========================================================== */
.topbar {
background: #202020;
border-bottom: 1px solid #333;
padding: 16px 24px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
position: sticky;
top: 0;
z-index: 100;
}
.topbar-left {
display: flex;
align-items: center;
gap: 24px;
}
.site-title {
color: #ffffff;
text-decoration: none;
font-size: 24px;
font-weight: 700;
white-space: nowrap;
}
.main-nav {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
/* ==========================================================
BUTTONS
========================================================== */
button,
.button {
border: 1px solid #555;
background: #303030;
color: #ffffff;
padding: 9px 14px;
border-radius: 6px;
font-size: 14px;
cursor: pointer;
text-decoration: none;
transition:
background 0.12s ease,
border-color 0.12s ease,
transform 0.12s ease;
}
button:hover,
.button:hover {
background: #414141;
border-color: #666;
}
button:active,
.button:active {
transform: translateY(1px);
}
button.primary,
.button.primary {
background: #285f90;
border-color: #367cb7;
}
button.primary:hover,
.button.primary:hover {
background: #3375ac;
}
button.danger {
background: #702a2a;
border-color: #8b3939;
}
button.danger:hover {
background: #873333;
}
/* ==========================================================
INPUTS / SELECTS
========================================================== */
input,
select {
background: #252525;
color: #eeeeee;
border: 1px solid #555;
border-radius: 6px;
padding: 9px 10px;
font-size: 14px;
}
input:focus,
select:focus {
outline: none;
border-color: #4c8ac0;
}
/* ==========================================================
SEARCH
========================================================== */
.search-form {
display: flex;
align-items: center;
gap: 8px;
min-width: 320px;
}
.search-form input {
width: 360px;
max-width: 45vw;
}
/* ==========================================================
MAIN PAGE
========================================================== */
.page-container {
max-width: 1700px;
margin: 0 auto;
padding: 28px;
}
.content-area {
width: 100%;
}
.breadcrumb {
margin-bottom: 18px;
color: #9c9c9c;
min-height: 18px;
}
.breadcrumb a {
color: #7ab8ff;
text-decoration: none;
}
.breadcrumb a:hover {
text-decoration: underline;
}
.toolbar {
display: flex;
gap: 10px;
flex-wrap: wrap;
align-items: center;
margin-bottom: 24px;
}
h1,
h2,
h3 {
margin-top: 0;
}
h2 {
margin-bottom: 20px;
}
/* ==========================================================
HOME LIBRARY GRID
========================================================== */
.library-grid {
display: grid;
grid-template-columns:
repeat(
auto-fill,
minmax(260px, 1fr)
);
gap: 20px;
}
.library-card {
background: #222;
border: 1px solid #383838;
border-radius: 10px;
padding: 22px;
min-height: 155px;
cursor: pointer;
transition:
transform 0.12s ease,
background 0.12s ease,
border-color 0.12s ease;
}
.library-card:hover {
background: #292929;
border-color: #4c4c4c;
transform: translateY(-2px);
}
.library-card h3 {
margin-bottom: 14px;
font-size: 21px;
}
.library-card-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 10px;
}
.library-card-header h3 {
margin: 0;
}
.library-type-badge {
background: #303030;
border: 1px solid #444;
border-radius: 5px;
padding: 4px 7px;
color: #aaa;
font-size: 11px;
white-space: nowrap;
}
.library-path {
color: #888;
font-family: monospace;
word-break: break-all;
font-size: 12px;
}
.library-count {
margin-top: 18px;
color: #b0b0b0;
font-size: 14px;
line-height: 1.5;
}
/* ==========================================================
SCAN PROGRESS
========================================================== */
.scan-status {
margin-top: 18px;
min-height: 20px;
}
.scan-stage {
margin-bottom: 6px;
color: #bbb;
font-size: 13px;
}
.scan-current-path {
margin-bottom: 8px;
color: #777;
font-family: monospace;
font-size: 10px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.scan-progress-track {
width: 100%;
height: 8px;
overflow: hidden;
background: #111;
border: 1px solid #353535;
border-radius: 5px;
}
.scan-progress-fill {
height: 100%;
background: #3375ac;
transition: width 0.25s ease;
}
.scan-percent {
margin-top: 5px;
color: #999;
font-size: 11px;
text-align: right;
}
.scan-complete {
color: #75bf7c;
}
.scan-error {
color: #e28484;
font-size: 12px;
}
/* ==========================================================
MEDIA GRID
========================================================== */
.media-grid {
display: grid;
grid-template-columns:
repeat(
auto-fill,
minmax(250px, 1fr)
);
gap: 22px;
align-items: stretch;
}
.media-card {
background: #202020;
border: 1px solid #383838;
border-radius: 10px;
overflow: hidden;
display: flex;
flex-direction: column;
min-width: 0;
transition:
transform 0.12s ease,
background 0.12s ease,
border-color 0.12s ease;
}
.media-card:hover {
background: #252525;
border-color: #4a4a4a;
transform: translateY(-2px);
}
.media-title {
padding: 14px 14px 12px;
font-size: 17px;
font-weight: 650;
line-height: 1.25;
min-height: 58px;
display: flex;
align-items: center;
overflow-wrap: anywhere;
}
/* ==========================================================
THUMBNAILS
========================================================== */
.thumbnail-container {
width: 100%;
aspect-ratio: 16 / 9;
background: #090909;
overflow: hidden;
position: relative;
cursor: pointer;
}
.media-thumbnail {
width: 100%;
height: 100%;
display: block;
object-fit: cover;
transition:
opacity 0.12s ease,
transform 0.12s ease;
}
.thumbnail-container:hover .media-thumbnail {
opacity: 0.82;
transform: scale(1.01);
}
.thumbnail-play-overlay {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: opacity 0.12s ease;
background:
rgba(0, 0, 0, 0.25);
font-size: 48px;
color: #ffffff;
pointer-events: none;
}
.thumbnail-container:hover .thumbnail-play-overlay {
opacity: 1;
}
.thumbnail-placeholder {
position: absolute;
inset: 0;
display: none;
align-items: center;
justify-content: center;
background:
linear-gradient(
135deg,
#161616,
#242424
);
color: #666;
font-size: 42px;
}
/* ==========================================================
MEDIA METADATA
========================================================== */
.media-meta {
padding: 13px 14px;
color: #aaa;
line-height: 1.65;
flex-grow: 1;
font-size: 14px;
}
.media-meta-row {
display: flex;
gap: 6px;
min-width: 0;
}
.media-meta-label {
color: #ddd;
font-weight: 600;
}
.media-meta-value {
color: #aaa;
min-width: 0;
overflow-wrap: anywhere;
}
.media-actions {
padding: 0 14px 15px;
display: flex;
gap: 8px;
}
.media-actions .button,
.media-actions button {
flex: 1;
text-align: center;
}
/* ==========================================================
SHOW / SEASON GRID
========================================================== */
.show-grid {
display: grid;
grid-template-columns:
repeat(
auto-fill,
minmax(240px, 1fr)
);
gap: 22px;
}
.show-card,
.season-card {
overflow: hidden;
background: #202020;
border: 1px solid #383838;
border-radius: 10px;
cursor: pointer;
transition:
transform 0.12s ease,
background 0.12s ease,
border-color 0.12s ease;
}
.show-card:hover,
.season-card:hover {
transform: translateY(-2px);
background: #272727;
border-color: #4a4a4a;
}
.show-title {
min-height: 55px;
padding: 14px;
display: flex;
align-items: center;
font-size: 18px;
font-weight: 600;
overflow-wrap: anywhere;
}
.show-thumbnail {
width: 100%;
aspect-ratio: 16 / 9;
overflow: hidden;
background: #090909;
}
.show-thumbnail img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
.show-meta {
padding: 13px 14px;
color: #aaa;
line-height: 1.5;
font-size: 14px;
}
/* ==========================================================
PLAYER OVERLAY
========================================================== */
.player-overlay {
position: fixed;
inset: 0;
display: none;
align-items: center;
justify-content: center;
padding: 28px;
background:
rgba(0, 0, 0, 0.82);
backdrop-filter:
blur(5px);
z-index: 1000;
}
.player-overlay.active {
display: flex;
}
.player-window {
width:
min(
1400px,
95vw
);
max-height: 95vh;
background: #101010;
border: 1px solid #444;
border-radius: 10px;
overflow: hidden;
display: flex;
flex-direction: column;
box-shadow:
0 20px 70px
rgba(0, 0, 0, 0.65);
}
.player-header {
min-height: 54px;
background: #202020;
border-bottom: 1px solid #383838;
padding: 9px 12px 9px 16px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 15px;
}
.player-title {
min-width: 0;
font-size: 16px;
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.player-controls {
display: flex;
gap: 8px;
flex-shrink: 0;
}
.player-close-button {
min-width: 42px;
}
.player-frame-container {
width: 100%;
aspect-ratio: 16 / 9;
background: #000;
position: relative;
}
.media-player-frame {
display: block;
width: 100%;
height: 100%;
border: 0;
background: #000;
}
/* ==========================================================
PLAYER FULLSCREEN
========================================================== */
.player-window:fullscreen {
width: 100vw;
height: 100vh;
max-height: none;
border: 0;
border-radius: 0;
background: #000;
}
.player-window:fullscreen .player-frame-container {
flex: 1;
aspect-ratio: auto;
min-height: 0;
}
.player-window:fullscreen .media-player-frame {
width: 100%;
height: 100%;
}
.player-window:-moz-full-screen {
width: 100vw;
height: 100vh;
max-height: none;
border-radius: 0;
}
.player-window:-webkit-full-screen {
width: 100vw;
height: 100vh;
max-height: none;
border-radius: 0;
}
/* ==========================================================
SEARCH INFO
========================================================== */
.search-info {
margin-bottom: 20px;
padding: 14px 16px;
background: #202020;
border: 1px solid #373737;
border-radius: 7px;
color: #bbb;
line-height: 1.6;
}
/* ==========================================================
GENERAL PANELS
========================================================== */
.panel {
background: #202020;
border: 1px solid #383838;
border-radius: 8px;
padding: 20px;
margin-bottom: 20px;
}
.form-row {
margin-bottom: 15px;
}
.form-row label {
display: block;
margin-bottom: 6px;
color: #ddd;
font-weight: 600;
}
/* ==========================================================
SERVER FOLDER BROWSER
========================================================== */
.folder-list {
background: #202020;
border: 1px solid #383838;
border-radius: 8px;
overflow: hidden;
margin-bottom: 20px;
}
.folder {
padding: 12px 15px;
border-bottom: 1px solid #333;
cursor: pointer;
}
.folder:last-child {
border-bottom: none;
}
.folder:hover {
background: #292929;
}
/* ==========================================================
TABLES
========================================================== */
table {
width: 100%;
border-collapse: collapse;
background: #202020;
}
th,
td {
padding: 12px;
text-align: left;
border-bottom: 1px solid #3a3a3a;
vertical-align: middle;
}
th {
background: #292929;
color: #ddd;
}
tr:hover {
background: #252525;
}
.inline {
display: flex;
gap: 8px;
align-items: center;
flex-wrap: wrap;
}
/* ==========================================================
MULTI-FOLDER LIBRARY MANAGEMENT
========================================================== */
.manage-library-card {
background: #202020;
border: 1px solid #383838;
border-radius: 10px;
padding: 20px;
margin-bottom: 22px;
}
.manage-library-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 20px;
margin-bottom: 18px;
}
.manage-library-header h3 {
margin-bottom: 5px;
}
.manage-library-controls {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.library-folder-list {
margin-bottom: 15px;
border: 1px solid #353535;
border-radius: 7px;
overflow: hidden;
}
.library-folder-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 15px;
padding: 11px 12px;
background: #181818;
border-bottom: 1px solid #303030;
}
.library-folder-row:last-child {
border-bottom: none;
}
.library-folder-path {
min-width: 0;
color: #aaa;
font-family: monospace;
font-size: 13px;
overflow-wrap: anywhere;
}
.library-folder-row button {
flex-shrink: 0;
}
/* ==========================================================
STATUS / FEEDBACK
========================================================== */
.loading {
padding: 28px;
color: #999;
}
.muted {
color: #999;
}
.error {
background: #492626;
border: 1px solid #793d3d;
border-radius: 7px;
padding: 16px;
color: #eee;
}
/* ==========================================================
RESPONSIVE
========================================================== */
@media (max-width: 1000px) {
.topbar {
flex-direction: column;
align-items: stretch;
}
.topbar-left {
justify-content: space-between;
}
.search-form {
width: 100%;
min-width: 0;
}
.search-form input {
width: auto;
max-width: none;
flex-grow: 1;
}
.player-overlay {
padding: 12px;
}
}
@media (max-width: 750px) {
.manage-library-header {
flex-direction: column;
}
.library-folder-row {
flex-direction: column;
align-items: stretch;
}
.manage-library-controls {
width: 100%;
}
}
@media (max-width: 700px) {
.page-container {
padding: 16px;
}
.topbar-left {
flex-direction: column;
align-items: flex-start;
}
.media-grid {
grid-template-columns:
repeat(
auto-fill,
minmax(180px, 1fr)
);
gap: 14px;
}
.show-grid {
grid-template-columns:
repeat(
auto-fill,
minmax(180px, 1fr)
);
gap: 14px;
}
.library-grid {
grid-template-columns: 1fr;
}
.media-title {
font-size: 15px;
min-height: 54px;
}
.media-meta {
font-size: 13px;
}
.player-overlay {
padding: 0;
}
.player-window {
width: 100vw;
max-height: 100vh;
border-radius: 0;
}
.player-header {
min-height: 50px;
}
}