Advanced_DRM_Player/css/player_modal.css

363 lines
14 KiB
CSS

.player-window {
position: fixed;
top: 50px;
left: 50px;
width: 60vw;
height: 70vh;
max-width: 1000px;
min-width: 400px;
min-height: 300px;
background-color: rgba(0, 0, 0, var(--player-window-opacity, 1));
border: 1px solid var(--border-color);
border-radius: var(--radius-md);
box-shadow: 0 8px 30px var(--shadow-color);
z-index: 1950;
display: flex;
flex-direction: column;
pointer-events: auto;
resize: none;
transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out, background-color 0.3s ease-in-out;
}
.player-window.active {
border-color: var(--accent-primary);
box-shadow: 0 0 20px var(--accent-primary-transparent);
}
.modal-header-draggable {
cursor: move;
}
.player-window .modal-header {
border-bottom: 1px solid var(--border-color);
padding: 0.5rem 1rem;
background: rgba(var(--rgb-bg-tertiary), calc(0.8 * var(--player-window-opacity, 1)));
display: flex;
justify-content: space-between;
align-items: center;
flex-shrink: 0;
}
.player-window .modal-header .player-window-title {
font-size: 1rem;
color: var(--text-primary);
font-weight: 500;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
flex-grow: 1;
margin-right: 1rem;
}
.player-window .modal-header .player-window-controls {
display: flex;
gap: 0.5rem;
}
.btn-window-control {
background: transparent;
border: none;
color: var(--text-secondary);
font-size: 1.2rem;
padding: 0.2rem;
line-height: 1;
transition: color 0.2s, transform 0.2s;
width: 24px;
height: 24px;
display: flex;
align-items: center;
justify-content: center;
}
.btn-window-control:hover {
color: var(--text-primary);
transform: scale(1.1);
}
.player-window-minimize-btn::before { content: "\2014"; }
.player-window-close-btn::before { content: "\00D7"; }
.player-window .modal-body {
padding: 0;
flex-grow: 1;
display: flex;
overflow: hidden;
position: relative;
background: transparent;
}
.player-window .player-container {
width: 100%;
height: 100%;
background-color: transparent;
position: relative;
flex-grow: 1;
display: flex;
overflow: hidden;
}
.player-window .player-video {
width: 100%;
height: 100%;
flex-grow: 1;
}
.resize-handle {
position: absolute;
bottom: 0;
right: 0;
width: 16px;
height: 16px;
cursor: se-resize;
z-index: 100;
}
.resize-handle::after {
content: '';
position: absolute;
bottom: 2px;
right: 2px;
width: 8px;
height: 8px;
border-bottom: 2px solid rgba(255,255,255,0.4);
border-right: 2px solid rgba(255,255,255,0.4);
}
#player-taskbar {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: var(--taskbar-height);
background-color: rgba(var(--rgb-bg-tertiary), 0.9);
backdrop-filter: blur(10px);
border-top: 1px solid var(--border-color);
z-index: 2000;
display: flex;
align-items: center;
padding: 0 0.75rem;
gap: 0.75rem;
overflow-x: auto;
box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}
.taskbar-item {
background-color: var(--bg-element);
border: 1px solid var(--border-color);
color: var(--text-secondary);
padding: 0.5rem 1rem;
border-radius: var(--radius-md);
font-size: 0.85rem;
cursor: pointer;
transition: var(--transition-smooth);
display: flex;
align-items: center;
gap: 0.6rem;
flex-shrink: 0;
}
.taskbar-item-icon-container {
width: 24px;
height: 24px;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
border-radius: var(--radius-sm);
background-color: rgba(255,255,255,0.05);
overflow: hidden;
}
.taskbar-item-logo {
width: 100%;
height: 100%;
object-fit: contain;
}
.taskbar-item-logo-placeholder {
font-size: 0.9rem;
font-weight: 600;
color: var(--text-primary);
display: inline-flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
}
.taskbar-item-text {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 120px;
}
.taskbar-item:hover {
background-color: var(--bg-element-hover);
color: var(--text-primary);
border-color: var(--border-color-strong);
transform: translateY(-2px);
box-shadow: 0 4px 8px var(--shadow-color);
}
.taskbar-item.active {
color: var(--text-primary);
font-weight: 500;
border-color: var(--accent-primary);
background-color: color-mix(in srgb, var(--accent-primary) 20%, var(--bg-element));
box-shadow: 0 0 12px color-mix(in srgb, var(--accent-primary) 50%, transparent),
inset 0 0 15px color-mix(in srgb, var(--accent-primary) 15%, transparent);
transform: translateY(-2px) scale(1.02);
}
video::-webkit-media-controls { display: none !important; }
video::-webkit-media-controls-enclosure { display: none !important; }
video::-webkit-media-controls-panel { display: none !important; -webkit-appearance: none; }
video::-moz-media-controls { display: none !important; }
.player-infobar { position: absolute; bottom: 15px; left: 20px; right: 20px; background-color: rgba(var(--rgb-bg-tertiary), 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-lg); padding: 1rem 1.5rem; display: flex; align-items: center; gap: 1.25rem; z-index: 100; opacity: 0; transform: translateY(30px) scale(0.95); transition: opacity 0.3s ease-out, transform 0.3s ease-out; pointer-events: none; box-shadow: 0 8px 32px rgba(0,0,0,0.3); }
.player-infobar.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.infobar-logo { height: 60px; width: auto; max-width: 110px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.infobar-details { flex-grow: 1; min-width: 0; }
.infobar-channel-name { font-size: 1.5rem; font-weight: 700; color: var(--text-primary); margin: 0 0 0.25rem 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 1px 1px 3px rgba(0,0,0,0.4); }
.infobar-epg-current { font-size: 1.05rem; font-weight: 500; color: var(--accent-primary); margin-bottom: 0.25rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 1px 1px 2px rgba(0,0,0,0.3); }
.infobar-epg-next { font-size: 0.85rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.9; }
.infobar-epg-progress-container { width: 100%; height: 6px; background-color: rgba(255, 255, 255, 0.15); border-radius: 3px; margin-top: 0.6rem; overflow: hidden; }
.infobar-epg-progress { height: 100%; background-color: var(--accent-primary); border-radius: 3px; width: 0%; transition: width 1s linear; box-shadow: 0 0 8px var(--accent-primary-transparent); }
.infobar-time { font-size: 2.2rem; font-weight: 700; color: var(--text-primary); flex-shrink: 0; text-shadow: 1px 1px 4px rgba(0,0,0,0.5); }
.shaka-spinner-path { stroke: var(--accent-primary) !important; stroke-width: 5px !important; }
.shaka-bottom-controls { background: none !important; border-top: none !important; padding: 10px 15px !important; transition: opacity 0.25s ease-in-out !important; }
.shaka-controls-button-panel button>i.material-icons-round { font-size: 26px !important; color: var(--text-primary) !important; opacity: 1 !important; transition: color 0.15s ease, opacity 0.15s ease, transform 0.1s ease; text-shadow: 0px 0px 6px rgba(0, 0, 0, 0.9), 0px 0px 10px rgba(0, 0, 0, 0.8) !important; }
.shaka-controls-button-panel button:hover>i.material-icons-round { opacity: 1 !important; color: var(--accent-primary) !important; transform: scale(1.1); }
.shaka-current-time, .shaka-time-divider, .shaka-duration { color: var(--text-primary) !important; opacity: 0.95 !important; text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.95) !important; font-weight: 500; font-size: 0.9rem; }
input[type=range].shaka-volume-bar, input[type=range].shaka-seek-bar { background: transparent !important; border: none !important; height: 10px !important; }
input[type=range].shaka-volume-bar::-webkit-slider-runnable-track, input[type=range].shaka-seek-bar::-webkit-slider-runnable-track { height: 10px !important; background: transparent !important; }
input[type=range].shaka-volume-bar::-webkit-slider-thumb, input[type=range].shaka-seek-bar::-webkit-slider-thumb { background: var(--accent-primary) !important; border: 2px solid rgba(0,0,0,0.4) !important; box-shadow: 0 0 6px var(--accent-primary), 0 0 4px rgba(0,0,0,0.7); height: 18px !important; width: 18px !important; margin-top: -4px !important; }
input[type=range].shaka-seek-bar { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; cursor: pointer; position: relative; }
.shaka-seek-bar-container { --shaka-bar-color: var(--accent-primary) !important; --shaka-buffer-bar-color: rgba(200, 200, 200, 0.5) !important; --shaka-bg-color: transparent !important; height: 10px; }
.shaka-range-container > div[второй-child], .shaka-seek-bar-container > div:not(.shaka-buffer-bar) { background: transparent !important; }
.shaka-overflow-menu, .shaka-settings-menu { background-color: rgba(var(--rgb-bg-secondary, 22, 27, 34), 0.98) !important; border: 1px solid var(--border-color-strong) !important; border-radius: var(--radius-md) !important; backdrop-filter: blur(10px) !important; -webkit-backdrop-filter: blur(10px) !important; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.shaka-overflow-menu button, .shaka-settings-menu button { color: var(--text-primary) !important; padding: 12px 18px !important; font-size: 0.95rem !important; transition: background-color 0.15s ease, color 0.15s ease !important; }
.shaka-overflow-menu button:hover, .shaka-settings-menu button:hover, .shaka-overflow-menu button[aria-pressed="true"], .shaka-settings-menu button[aria-pressed="true"] { background-color: var(--accent-primary) !important; color: #fff !important; }
.shaka-text-input { background-color: var(--bg-element) !important; color: var(--text-primary) !important; border: 1px solid var(--border-color) !important; }
.player-channel-list-panel {
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 280px;
background-color: var(--bg-secondary);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px);
border-right: 1px solid var(--border-color);
z-index: 15;
transform: translateX(-100%);
transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
display: flex;
flex-direction: column;
box-shadow: 2px 0 10px rgba(0,0,0,0.4);
}
.player-channel-list-panel.open {
transform: translateX(0);
box-shadow: 2px 0 15px rgba(0,0,0,0.5);
}
.player-channel-list-header {
padding: 0.75rem 1rem;
font-size: 0.9rem;
font-weight: 600;
color: var(--text-primary);
border-bottom: 1px solid var(--border-color);
flex-shrink: 0;
background-color: var(--bg-hover);
}
.player-channel-list-content {
flex-grow: 1;
overflow-y: auto;
padding: 0.5rem 0;
}
.player-channel-list-content::-webkit-scrollbar { width: 6px; height: 6px; }
.player-channel-list-content::-webkit-scrollbar-track { background: transparent; }
.player-channel-list-content::-webkit-scrollbar-thumb { background-color: var(--accent-primary); border-radius: var(--radius-sm); border: 1px solid var(--bg-secondary); }
.player-channel-list-group-header {
padding: 0.5rem 1rem;
font-size: 0.8rem;
font-weight: bold;
color: var(--accent-primary);
background-color: var(--bg-element);
border-top: 1px solid var(--border-color);
border-bottom: 1px solid var(--border-color);
margin-top: 0.5rem;
}
.player-channel-list-group-header:first-child {
margin-top: 0;
border-top: none;
}
.player-channel-list-item {
display: flex;
align-items: center;
padding: 0.5rem 1rem;
cursor: pointer;
transition: background-color var(--transition-fast);
border-bottom: 1px solid var(--border-color-strong);
}
.player-channel-list-item:last-child {
border-bottom: none;
}
.player-channel-list-item:hover, .player-channel-list-item.active {
background-color: var(--bg-hover);
}
.player-channel-list-item.active {
background-color: color-mix(in srgb, var(--accent-primary) 20%, transparent);
border-left: 3px solid var(--accent-primary);
padding-left: calc(1rem - 3px);
}
.player-channel-list-logo {
width: 40px;
height: 30px;
object-fit: contain;
margin-right: 0.75rem;
flex-shrink: 0;
border-radius: var(--radius-sm);
background-color: rgba(255,255,255,0.05);
}
.player-channel-list-logo-placeholder {
width: 40px;
height: 30px;
margin-right: 0.75rem;
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
color: var(--text-tertiary);
background-color: rgba(255,255,255,0.03);
border-radius: var(--radius-sm);
}
.player-channel-list-logo-placeholder::before {
content: "\1F4FA";
font-family: sans-serif;
}
.player-channel-list-info {
display: flex;
flex-direction: column;
overflow: hidden;
flex-grow: 1;
}
.player-channel-list-name {
font-size: 0.85rem;
color: var(--text-primary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
font-weight: 500;
}
.player-channel-list-epg {
font-size: 0.7rem;
color: var(--text-secondary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-top: 0.1rem;
}
.player-channel-list-epg.no-epg {
opacity: 0.6;
font-style: italic;
}
.shaka-channel-list-button > i.material-icons-round {
font-size: 24px !important;
}