Files
T

710 lines
16 KiB
CSS

/* YakTube Accessibility & On-Demand CSS */
:focus-visible {
outline: 3px solid #ff8f37 !important;
outline-offset: 3px !important;
box-shadow: 0 0 12px rgba(255, 143, 55, 0.7) !important;
}
/* Screen reader only utility */
.yaktube-sr-only {
position: absolute !important;
width: 1px !important;
height: 1px !important;
padding: 0 !important;
margin: -1px !important;
overflow: hidden !important;
clip: rect(0, 0, 0, 0) !important;
white-space: nowrap !important;
border: 0 !important;
}
/* On-Demand Search Section */
.yaktube-ondemand-section {
margin: 24px 0;
padding: 20px;
background: rgba(22, 22, 30, 0.92);
border: 1px solid rgba(255, 143, 55, 0.35);
border-radius: 16px;
backdrop-filter: blur(10px);
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
color: #fff;
font-family: inherit;
}
.yaktube-header {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 16px;
border-bottom: 1px solid rgba(255, 255, 255, 0.12);
padding-bottom: 12px;
}
.yaktube-header-left {
display: flex;
align-items: center;
gap: 12px;
}
.yaktube-badge {
background: linear-gradient(135deg, #ff8f37 0%, #ff5e3a 100%);
color: #fff;
font-size: 11px;
font-weight: 700;
padding: 4px 10px;
border-radius: 20px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.yaktube-title-h3 {
margin: 0;
font-size: 1.15rem;
font-weight: 600;
color: #f1f1f1;
}
.yaktube-shortcuts-btn {
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.15);
color: #ddd;
padding: 6px 12px;
border-radius: 8px;
font-size: 12px;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 6px;
transition: all 0.2s ease;
}
.yaktube-shortcuts-btn:hover {
background: rgba(255, 143, 55, 0.2);
border-color: #ff8f37;
color: #fff;
}
.yaktube-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
gap: 18px;
}
.yaktube-card {
background: #12121a;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 12px;
overflow: hidden;
display: flex;
flex-direction: column;
transition:
transform 0.2s ease,
border-color 0.2s ease,
box-shadow 0.2s ease;
}
.yaktube-card:hover,
.yaktube-card:focus-within {
transform: translateY(-4px);
border-color: rgba(255, 143, 55, 0.6);
box-shadow: 0 10px 22px rgba(255, 143, 55, 0.18);
}
.yaktube-thumb-wrap {
position: relative;
width: 100%;
padding-top: 56.25%;
background: #000;
overflow: hidden;
}
.yaktube-thumb-img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}
.yaktube-card:hover .yaktube-thumb-img {
transform: scale(1.05);
}
.yaktube-duration-badge {
position: absolute;
bottom: 8px;
right: 8px;
background: rgba(0, 0, 0, 0.85);
color: #fff;
font-size: 11px;
font-weight: 600;
padding: 2px 6px;
border-radius: 4px;
border: 1px solid rgba(255, 255, 255, 0.15);
}
.yaktube-info {
padding: 12px;
display: flex;
flex-direction: column;
justify-content: space-between;
flex-grow: 1;
gap: 10px;
}
.yaktube-video-name {
font-size: 13px;
font-weight: 600;
line-height: 1.35;
color: #fff;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
.yaktube-channel-name {
font-size: 11px;
color: #aaa;
margin-top: 4px;
}
.yaktube-import-btn {
background: linear-gradient(135deg, #ff8f37 0%, #ff6600 100%);
border: none;
color: #fff;
padding: 8px 12px;
font-size: 12px;
font-weight: 600;
border-radius: 8px;
cursor: pointer;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
transition:
opacity 0.2s ease,
transform 0.1s ease;
}
.yaktube-import-btn:hover {
opacity: 0.92;
transform: translateY(-1px);
}
.yaktube-import-btn:disabled {
background: #555;
cursor: not-allowed;
opacity: 0.6;
}
/* Modals */
.yaktube-modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.85);
backdrop-filter: blur(6px);
display: flex;
align-items: center;
justify-content: center;
z-index: 99999;
}
.yaktube-modal-card {
background: #181824;
border: 1px solid rgba(255, 143, 55, 0.5);
border-radius: 16px;
padding: 28px 24px;
max-width: 460px;
width: 90%;
text-align: center;
box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
color: #fff;
}
.yaktube-modal-title {
font-size: 1.25rem;
font-weight: 700;
margin-top: 14px;
color: #ff8f37;
}
.yaktube-modal-desc {
font-size: 13px;
color: #bbb;
margin-top: 8px;
line-height: 1.4;
}
.yaktube-spinner {
width: 44px;
height: 44px;
border: 4px solid rgba(255, 143, 55, 0.2);
border-top-color: #ff8f37;
border-radius: 50%;
animation: yaktube-spin 0.8s linear infinite;
margin: 0 auto;
}
@keyframes yaktube-spin {
to {
transform: rotate(360deg);
}
}
/* Accessible Shortcuts Table */
.yaktube-shortcuts-table {
width: 100%;
text-align: left;
border-collapse: collapse;
margin-top: 16px;
font-size: 13px;
}
.yaktube-shortcuts-table th {
border-bottom: 1px solid rgba(255, 255, 255, 0.2);
padding: 8px;
color: #ff8f37;
}
.yaktube-shortcuts-table td {
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
padding: 8px;
color: #ddd;
}
.yaktube-kbd {
background: #2a2a38;
border: 1px solid #444;
border-radius: 4px;
padding: 2px 6px;
font-family: monospace;
font-weight: bold;
color: #ff8f37;
}
.yaktube-modal-close-btn {
background: #ff8f37;
color: #111;
border: none;
padding: 8px 20px;
font-weight: 700;
border-radius: 8px;
cursor: pointer;
margin-top: 18px;
}
.yaktube-play-btn {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
color: #fff;
padding: 8px 12px;
font-size: 12px;
font-weight: 700;
border-radius: 8px;
cursor: pointer;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
text-decoration: none;
border: none;
box-sizing: border-box;
transition:
opacity 0.2s ease,
transform 0.1s ease;
}
.yaktube-play-btn:hover {
opacity: 0.92;
transform: translateY(-1px);
color: #fff;
}
/* YakNet SSO Button and Account Header */
.yaknet-login-banner {
background: linear-gradient(135deg, rgba(255, 143, 55, 0.15) 0%, rgba(255, 94, 58, 0.15) 100%);
border: 1px solid rgba(255, 143, 55, 0.4);
border-radius: 12px;
padding: 16px;
margin-bottom: 20px;
text-align: center;
}
.yaknet-sso-login-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 12px;
background: linear-gradient(135deg, #ff8f37 0%, #ff5e3a 100%);
color: #fff !important;
font-size: 14px;
font-weight: 700;
padding: 12px 24px;
border-radius: 10px;
text-decoration: none;
width: 100%;
box-sizing: border-box;
box-shadow: 0 4px 18px rgba(255, 143, 55, 0.4);
transition:
transform 0.2s ease,
box-shadow 0.2s ease;
cursor: pointer;
border: none;
}
.yaknet-sso-login-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 24px rgba(255, 143, 55, 0.6);
color: #fff !important;
}
.yaknet-header-widget {
display: inline-flex !important;
align-items: center !important;
position: relative !important;
z-index: 9999999 !important;
margin-left: 10px;
}
yaknet-account {
display: inline-block !important;
position: relative !important;
z-index: 9999999 !important;
}
my-header,
.header,
.header-right,
my-header .header-right,
my-header .user-menu,
my-header .action-buttons {
overflow: visible !important;
}
.yaktube-admin-login-link {
margin-top: 15px;
text-align: center;
font-size: 12px;
color: #888;
}
.yaktube-admin-login-link a {
color: #ff8f37;
text-decoration: none;
}
.yaktube-admin-login-link a:hover {
text-decoration: underline;
}
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* -------------------------------------------------------------------------- */
/* YOUTUBE-STYLE SEARCH BAR & VOICE SEARCH MODAL (v1.2.2 - A11y Optimized) */
/* -------------------------------------------------------------------------- */
/* Header Search Container Pill Styling */
my-search-typeahead,
.search-container,
.header-search {
display: flex !important;
align-items: center !important;
position: relative !important;
width: 100% !important;
max-width: 580px !important;
margin: 0 auto !important;
}
.yaktube-search-pill-wrapper {
display: flex !important;
align-items: center !important;
background: #121212 !important;
border: 1px solid #303030 !important;
border-radius: 40px !important;
padding: 2px 10px 2px 14px !important;
transition: all 0.2s ease !important;
width: 100% !important;
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4) !important;
}
.yaktube-search-pill-wrapper:focus-within {
border-color: #ff8f37 !important;
box-shadow:
0 0 0 1px #ff8f37,
0 0 12px rgba(255, 143, 55, 0.3) !important;
background: #0f0f0f !important;
}
.yaktube-search-pill-wrapper input {
background: transparent !important;
border: none !important;
color: #f1f1f1 !important;
font-size: 15px !important;
padding: 8px 6px !important;
width: 100% !important;
outline: none !important;
box-shadow: none !important;
}
.yaktube-search-pill-wrapper input::placeholder {
color: #888 !important;
font-size: 14px !important;
}
/* Clear Button Inside Pill */
.yaktube-clear-search-btn {
background: rgba(255, 255, 255, 0.12) !important;
color: #aaa !important;
border: none !important;
border-radius: 50% !important;
width: 24px !important;
height: 24px !important;
display: none;
align-items: center !important;
justify-content: center !important;
font-size: 12px !important;
font-weight: 700 !important;
cursor: pointer !important;
margin: 0 6px !important;
transition: all 0.2s ease !important;
flex-shrink: 0 !important;
}
.yaktube-clear-search-btn:hover {
background: rgba(255, 255, 255, 0.25) !important;
color: #fff !important;
}
/* YouTube Circular Voice Button Beside Search Box */
.yaktube-voice-search-btn {
background: #1f1f1f !important;
color: #f1f1f1 !important;
border: 1px solid rgba(255, 255, 255, 0.08) !important;
border-radius: 50% !important;
width: 40px !important;
height: 40px !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
font-size: 18px !important;
cursor: pointer !important;
margin-left: 8px !important;
transition: all 0.25s ease !important;
flex-shrink: 0 !important;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}
.yaktube-voice-search-btn:hover {
background: #2a2a2a !important;
border-color: #ff8f37 !important;
color: #ff8f37 !important;
transform: scale(1.06) !important;
}
/* Hide back button on desktop */
@media (min-width: 769px) {
.yaktube-search-back-btn {
display: none !important;
}
.yaktube-mobile-search-trigger {
display: none !important;
}
}
/* YouTube-Style Voice Search Modal Overlay */
.yaktube-voice-modal-overlay {
position: fixed !important;
top: 0 !important;
left: 0 !important;
width: 100vw !important;
height: 100vh !important;
background: rgba(0, 0, 0, 0.75) !important;
backdrop-filter: blur(8px) !important;
z-index: 99999 !important;
display: flex !important;
align-items: flex-start !important;
justify-content: center !important;
padding-top: 80px !important;
animation: yaktube-fade-in 0.2s ease !important;
}
.yaktube-voice-modal-card {
background: #212121 !important;
border: 1px solid rgba(255, 255, 255, 0.1) !important;
border-radius: 16px !important;
width: 90% !important;
max-width: 560px !important;
padding: 24px 28px !important;
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7) !important;
color: #fff !important;
position: relative !important;
}
.yaktube-voice-modal-header {
display: flex !important;
justify-content: space-between !important;
align-items: center !important;
margin-bottom: 24px !important;
}
.yaktube-voice-modal-title {
font-size: 20px !important;
font-weight: 500 !important;
margin: 0 !important;
color: #f1f1f1 !important;
}
.yaktube-voice-modal-close-btn {
background: transparent !important;
border: none !important;
color: #aaa !important;
font-size: 20px !important;
cursor: pointer !important;
width: 36px !important;
height: 36px !important;
border-radius: 50% !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
transition: all 0.2s ease !important;
}
.yaktube-voice-modal-close-btn:hover {
background: rgba(255, 255, 255, 0.1) !important;
color: #fff !important;
}
.yaktube-voice-modal-body {
text-align: center !important;
padding: 10px 0 20px 0 !important;
}
.yaktube-voice-status-text {
font-size: 22px !important;
font-weight: 600 !important;
color: #f1f1f1 !important;
margin-bottom: 12px !important;
min-height: 30px !important;
}
.yaktube-voice-transcript-preview {
font-size: 16px !important;
color: #ff8f37 !important;
font-weight: 500 !important;
margin-bottom: 30px !important;
min-height: 24px !important;
word-break: break-word !important;
}
/* Pulsing Mic Circle Animation */
.yaktube-voice-mic-wrapper {
position: relative !important;
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
margin: 10px 0 25px 0 !important;
}
.yaktube-voice-mic-pulse-btn {
background: #cc0000 !important;
color: #fff !important;
border: none !important;
border-radius: 50% !important;
width: 76px !important;
height: 76px !important;
font-size: 34px !important;
cursor: pointer !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
box-shadow: 0 4px 20px rgba(204, 0, 0, 0.5) !important;
z-index: 2 !important;
transition: all 0.2s ease !important;
}
.yaktube-voice-mic-pulse-btn:hover {
transform: scale(1.05) !important;
}
.yaktube-voice-mic-pulse-btn.yaktube-idle-mic {
background: #333 !important;
box-shadow: none !important;
}
.yaktube-voice-ripple {
position: absolute !important;
width: 76px !important;
height: 76px !important;
border-radius: 50% !important;
background: rgba(204, 0, 0, 0.4) !important;
animation: yaktube-ripple-wave 1.6s infinite ease-out !important;
z-index: 1 !important;
}
@keyframes yaktube-ripple-wave {
0% {
transform: scale(1);
opacity: 0.8;
}
100% {
transform: scale(2.2);
opacity: 0;
}
}
.yaktube-voice-hint-text {
font-size: 13px !important;
color: #888 !important;
margin-top: 10px !important;
}
/* Mobile Search Overlay (< 768px) */
@media (max-width: 768px) {
body:not(.yaktube-mobile-search-active) my-search-typeahead,
body:not(.yaktube-mobile-search-active) .search-container {
display: none !important;
}
body.yaktube-mobile-search-active my-header .header-left,
body.yaktube-mobile-search-active my-header .header-right,
body.yaktube-mobile-search-active my-header .user-menu,
body.yaktube-mobile-search-active my-header .brand-name {
display: none !important;
}
body.yaktube-mobile-search-active my-search-typeahead,
body.yaktube-mobile-search-active .search-container {
width: 100% !important;
max-width: 100% !important;
display: flex !important;
position: static !important;
margin: 0 !important;
z-index: 1000 !important;
}
.yaktube-search-back-btn {
display: inline-flex !important;
background: transparent !important;
border: none !important;
color: #fff !important;
font-size: 22px !important;
width: 38px !important;
height: 38px !important;
border-radius: 50% !important;
align-items: center !important;
justify-content: center !important;
cursor: pointer !important;
margin-right: 6px !important;
flex-shrink: 0 !important;
}
}