mirror of
https://github.com/ranaldsgift/KefinTweaks.git
synced 2026-11-05 07:42:47 +01:00
394 lines
7.1 KiB
CSS
394 lines
7.1 KiB
CSS
/* Spotlight Section Styles */
|
|
|
|
.spotlight-section {
|
|
position: relative;
|
|
width: calc(100% - (2 * max(env(safe-area-inset-left), 3.3%)));
|
|
margin-bottom: 2em;
|
|
}
|
|
|
|
.spotlight-banner-container {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 450px;
|
|
overflow: hidden;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.spotlight-items-container {
|
|
position: relative;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.spotlight-item {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-size: cover;
|
|
background-position: center;
|
|
transition: opacity 0.8s ease-in-out;
|
|
}
|
|
|
|
.spotlight-item[data-index="0"] {
|
|
opacity: 1;
|
|
}
|
|
|
|
.spotlight-item:not([data-index="0"]) {
|
|
opacity: 0;
|
|
}
|
|
|
|
.spotlight-overlay {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
width: 45%;
|
|
background: linear-gradient(to right, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 70%, transparent 100%);
|
|
padding: 40px;
|
|
color: white;
|
|
display: flex;
|
|
flex-direction: column;
|
|
z-index: 2;
|
|
}
|
|
|
|
.spotlight-overlay.has-title {
|
|
padding: 70px 40px 20px 40px;
|
|
}
|
|
|
|
.spotlight-section-title {
|
|
position: absolute;
|
|
top: 20px;
|
|
left: 20px;
|
|
color: white;
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
z-index: 10;
|
|
background: rgba(0,0,0,0.4);
|
|
padding: 8px 16px;
|
|
border-radius: 4px;
|
|
backdrop-filter: blur(4px);
|
|
}
|
|
|
|
.spotlight-item-title {
|
|
margin: 0 0 16px 0;
|
|
font-size: 1.6em;
|
|
font-weight: bold;
|
|
height: 80px;
|
|
align-content: end;
|
|
}
|
|
|
|
.spotlight-item-logo {
|
|
max-width: 206.8px;
|
|
height: 80px;
|
|
object-fit: contain;
|
|
margin-bottom: 16px;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.spotlight-clearart {
|
|
position: absolute;
|
|
bottom: 0px;
|
|
right: 0px;
|
|
max-height: 70%;
|
|
object-fit: contain;
|
|
z-index: 5;
|
|
opacity: 0.9;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.spotlight-rating-container {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.spotlight-rating-star {
|
|
color: #4A9EFF;
|
|
font-size: 24px;
|
|
}
|
|
|
|
.spotlight-rating-value {
|
|
font-size: 20px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.spotlight-rating-value.na {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.spotlight-metadata-row {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
gap: 12px;
|
|
font-size: 14px;
|
|
opacity: 0.9;
|
|
}
|
|
|
|
.spotlight-metadata-row .spotlight-end-time {
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.metadata-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
margin-bottom: 2em;
|
|
}
|
|
|
|
.spotlight-truncated-list {
|
|
font-size: 14px;
|
|
opacity: 0.9;
|
|
position: relative;
|
|
}
|
|
|
|
.spotlight-truncated-list .spotlight-ellipsis {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.spotlight-tagline {
|
|
margin: 0 0 24px 0;
|
|
font-size: 18px;
|
|
font-style: italic;
|
|
opacity: 0.9;
|
|
line-height: 1.4;
|
|
max-width: 90%;
|
|
display: -webkit-box;
|
|
-webkit-line-clamp: 3;
|
|
-webkit-box-orient: vertical;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
min-height: 75px;
|
|
max-height: 75px;
|
|
}
|
|
|
|
.spotlight-buttons-container {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
margin-top: auto;
|
|
}
|
|
|
|
.spotlight-play-button {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 50%;
|
|
background: rgba(255,255,255,0.9);
|
|
color: #000;
|
|
border: none;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.spotlight-play-button:hover {
|
|
background: rgba(255,255,255,1);
|
|
}
|
|
|
|
.spotlight-play-button .material-icons {
|
|
font-size: 28px;
|
|
}
|
|
|
|
.spotlight-watchlist-button {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 50%;
|
|
background: rgba(255,255,255,0.2);
|
|
color: white;
|
|
border: 2px solid rgba(255,255,255,0.5);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.spotlight-watchlist-button:hover {
|
|
background: rgba(255,255,255,0.3);
|
|
}
|
|
|
|
.spotlight-watchlist-button.watchlisted {
|
|
border-color: #4CAF50;
|
|
}
|
|
|
|
.spotlight-watchlist-button.watchlisted .material-icons {
|
|
color: #4CAF50;
|
|
}
|
|
|
|
.spotlight-watchlist-button:not(.watchlisted):hover {
|
|
border-color: rgba(255,255,255,0.7);
|
|
}
|
|
|
|
.spotlight-watchlist-button .material-icons {
|
|
font-size: 28px;
|
|
color: white;
|
|
}
|
|
|
|
.spotlight-info-button {
|
|
width: 48px;
|
|
height: 48px;
|
|
border-radius: 50%;
|
|
background: rgba(255,255,255,0.2);
|
|
color: white;
|
|
border: 2px solid rgba(255,255,255,0.5);
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0;
|
|
transition: all 0.2s;
|
|
position: relative;
|
|
}
|
|
|
|
.spotlight-info-button:hover {
|
|
background: rgba(255,255,255,0.3);
|
|
border-color: rgba(255,255,255,0.7);
|
|
}
|
|
|
|
.spotlight-info-button .material-icons {
|
|
font-size: 28px;
|
|
}
|
|
|
|
.spotlight-overview-tooltip {
|
|
position: absolute;
|
|
text-align: left;
|
|
bottom: 100%;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
margin-bottom: 12px;
|
|
padding: 16px;
|
|
background: rgba(0,0,0,0.95);
|
|
color: white;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
line-height: 1.6;
|
|
max-width: 400px;
|
|
min-width: 300px;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.2s;
|
|
z-index: 1000;
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.5);
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.spotlight-info-button:hover .spotlight-overview-tooltip {
|
|
opacity: 1;
|
|
}
|
|
|
|
.spotlight-nav-container {
|
|
position: absolute;
|
|
top: 20px;
|
|
right: 20px;
|
|
display: flex;
|
|
gap: 8px;
|
|
z-index: 10;
|
|
background: rgba(0,0,0,0.4);
|
|
border-radius: 4px;
|
|
padding: 4px;
|
|
}
|
|
|
|
.spotlight-nav-button {
|
|
width: 36px;
|
|
height: 36px;
|
|
background: transparent;
|
|
color: white;
|
|
border: none;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 0;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.spotlight-nav-button:hover {
|
|
background: rgba(255,255,255,0.2);
|
|
}
|
|
|
|
.spotlight-nav-button .material-icons {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.spotlight-pause-button {
|
|
width: 36px;
|
|
height: 36px;
|
|
background: transparent;
|
|
color: white;
|
|
border: none;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
z-index: 10;
|
|
padding: 0;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.spotlight-pause-button .material-icons {
|
|
font-size: 24px;
|
|
}
|
|
|
|
.spotlight-dots {
|
|
position: absolute;
|
|
bottom: 20px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
display: flex;
|
|
gap: 8px;
|
|
z-index: 10;
|
|
}
|
|
|
|
.spotlight-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
border: none;
|
|
background: rgba(255,255,255,0.5);
|
|
cursor: pointer;
|
|
padding: 0;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.spotlight-dot.active {
|
|
background: white;
|
|
}
|
|
|
|
.spotlight-genre-link,
|
|
.spotlight-person-link {
|
|
color: inherit;
|
|
text-decoration: underline;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.spotlight-empty-writer-container {
|
|
font-size: 14px;
|
|
opacity: 0.9;
|
|
height: 1em;
|
|
}
|
|
|
|
/* Mobile Styles */
|
|
@media (max-width: 768px) {
|
|
.metadata-container {
|
|
display: none !important;
|
|
}
|
|
|
|
.spotlight-nav-container {
|
|
display: none !important;
|
|
}
|
|
|
|
.spotlight-pause-button {
|
|
display: none !important;
|
|
}
|
|
|
|
.spotlight-clearart {
|
|
display: none !important;
|
|
}
|
|
}
|