/* src/App.css */ body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .App { text-align: center; min-height: 100vh; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); } .App-header { background: rgba(255, 255, 255, 0.1); padding: 2rem; backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, 0.2); } .App-header h1 { color: white; margin-bottom: 1.5rem; font-size: 2.5rem; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); } .channel-selector { max-width: 600px; margin: 0 auto; } .selector-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; } .selector-header label { color: white; font-size: 1.1rem; font-weight: bold; } .refresh-button { padding: 0.4rem 0.8rem; border: none; border-radius: 15px; background: rgba(255, 255, 255, 0.2); color: white; cursor: pointer; font-size: 0.9rem; transition: all 0.3s ease; } .refresh-button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.3); transform: rotate(45deg); } .refresh-button:disabled { opacity: 0.6; cursor: not-allowed; } .channel-select { width: 100%; padding: 0.8rem 1.2rem; border: none; border-radius: 25px; font-size: 1rem; background: rgba(255, 255, 255, 0.9); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); margin-bottom: 1rem; } .channel-select:focus { outline: none; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); } .channel-info { color: rgba(255, 255, 255, 0.9); font-size: 0.9rem; } .subscription-main { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 0.3rem 0; } .channel-info strong { color: #74b9ff; } .subscription-type { color: #74b9ff; font-size: 0.8em; background: rgba(116, 185, 255, 0.2); padding: 0.2rem 0.5rem; border-radius: 10px; } .last-dates { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; margin: 0; font-size: 0.9em; } .last-updated { color: rgba(255, 255, 255, 0.7); } .last-fetched { color: rgba(255, 255, 255, 0.7); } .subscription-id { color: rgba(255, 255, 255, 0.7); font-size: 0.8em; font-weight: normal; } /* Responsive updates */ @media (max-width: 768px) { .subscription-main { justify-content: center; text-align: center; gap: 0.3rem; } .last-dates { justify-content: center; text-align: center; gap: 0.5rem; } .channel-info { font-size: 0.8rem; } } .subscription-section { max-width: 600px; margin: 1.5rem auto 0; } .add-subscription-toggle { padding: 0.6rem 1.2rem; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 20px; background: rgba(255, 255, 255, 0.15); color: white; cursor: pointer; font-size: 0.9rem; transition: all 0.3s ease; } .add-subscription-toggle:hover { background: rgba(255, 255, 255, 0.25); transform: translateY(-1px); } .subscription-form-container { margin-top: 1.5rem; padding: 1.5rem; background: rgba(255, 255, 255, 0.1); border-radius: 15px; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); } .subscription-form h3 { color: white; margin-bottom: 1.5rem; text-align: center; font-size: 1.3rem; } .form-group { margin-bottom: 1.5rem; text-align: left; } .form-group label { display: block; color: white; margin-bottom: 0.5rem; font-weight: bold; } .subscription-input { width: 100%; padding: 0.8rem 1rem; border: none; border-radius: 10px; background: rgba(255, 255, 255, 0.9); font-size: 1rem; box-sizing: border-box; } .subscription-input:focus { outline: none; box-shadow: 0 0 0 2px rgba(116, 185, 255, 0.5); } .interval-help { display: block; color: rgba(255, 255, 255, 0.7); font-size: 0.8rem; margin-top: 0.3rem; } .subscription-error { color: #ff6b6b; background: rgba(255, 107, 107, 0.1); padding: 0.8rem; border-radius: 8px; border-left: 3px solid #ff6b6b; margin-bottom: 1rem; font-size: 0.9rem; } .subscription-success { color: #51cf66; background: rgba(81, 207, 102, 0.1); padding: 0.8rem; border-radius: 8px; border-left: 3px solid #51cf66; margin-bottom: 1rem; font-size: 0.9rem; } .form-actions { text-align: center; } .submit-subscription { padding: 0.8rem 2rem; border: none; border-radius: 20px; background: #51cf66; color: white; font-weight: bold; cursor: pointer; transition: all 0.3s ease; font-size: 1rem; } .submit-subscription:hover:not(:disabled) { background: #69db7c; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(81, 207, 102, 0.3); } .submit-subscription:disabled { background: rgba(255, 255, 255, 0.3); cursor: not-allowed; transform: none; box-shadow: none; } /* Responsive design updates */ @media (max-width: 768px) { .subscription-form-container { padding: 1rem; margin-top: 1rem; } .subscription-form h3 { font-size: 1.1rem; } .submit-subscription { width: 100%; } } .main-content { padding: 2rem; max-width: 1200px; margin: 0 auto; } .loading, .error, .no-channels, .no-videos, .no-selection { color: white; font-size: 1.2rem; padding: 2rem; background: rgba(255, 255, 255, 0.1); border-radius: 15px; backdrop-filter: blur(10px); margin: 1rem 0; } .error { color: #ff6b6b; } .no-channels, .no-selection { color: #ffd93d; } .no-videos { color: #ffd93d; } .retry-button { margin-top: 1rem; padding: 0.5rem 1rem; border: none; border-radius: 20px; background: rgba(255, 255, 255, 0.2); color: white; cursor: pointer; transition: all 0.3s ease; } .retry-button:hover { background: rgba(255, 255, 255, 0.3); } .videos-container h2 { color: white; margin-bottom: 2rem; font-size: 2rem; text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); } .videos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2rem; margin-top: 2rem; } .video-card { background: rgba(255, 255, 255, 0.1); border-radius: 15px; overflow: hidden; backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); transition: all 0.3s ease; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); } .video-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2); border-color: rgba(255, 255, 255, 0.3); } .video-thumbnail { position: relative; height: 180px; overflow: hidden; } .thumbnail-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; } .video-card:hover .thumbnail-image { transform: scale(1.05); } .new-overlay { position: absolute; top: 8px; right: 8px; background: linear-gradient(135deg, #ff6b6b, #ff4757); color: white; padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: bold; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4); z-index: 2; animation: pulse 2s infinite; } @keyframes pulse { 0% { box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4); } 50% { box-shadow: 0 2px 16px rgba(255, 107, 107, 0.6); } 100% { box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4); } } .duration-overlay { position: absolute; bottom: 8px; right: 8px; background: rgba(0, 0, 0, 0.8); color: white; padding: 2px 6px; border-radius: 4px; font-size: 0.8rem; font-weight: bold; backdrop-filter: blur(4px); z-index: 2; } .play-button { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 3rem; color: white; text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7); opacity: 0.9; transition: all 0.3s ease; z-index: 1; } .video-card:hover .play-button { opacity: 1; transform: translate(-50%, -50%) scale(1.1); } .video-info { padding: 1.5rem; text-align: left; } .video-title { color: white; font-size: 1.1rem; font-weight: bold; margin-bottom: 0.8rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; position: relative; cursor: help; } .video-author, .video-date { color: rgba(255, 255, 255, 0.8); font-size: 0.9rem; margin-bottom: 0.5rem; } .channel-link { color: #74b9ff; text-decoration: none; } .channel-link:hover { text-decoration: underline; } .video-summary { margin: 1rem 0; padding: 0.8rem; background: rgba(255, 255, 255, 0.1); border-radius: 8px; border-left: 3px solid #74b9ff; } .video-summary p { color: rgba(255, 255, 255, 0.9); font-size: 0.85rem; line-height: 1.4; margin: 0; transition: all 0.3s ease; } .video-summary p.collapsed { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .video-summary p.expanded { display: block; overflow: visible; } .expand-button { background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.3); color: #74b9ff; padding: 0.3rem 0.8rem; border-radius: 12px; font-size: 0.75rem; cursor: pointer; margin-top: 0.5rem; transition: all 0.3s ease; } .expand-button:hover { background: rgba(255, 255, 255, 0.25); transform: translateY(-1px); } .video-actions { margin-top: 1rem; } .watch-button { display: inline-block; padding: 0.6rem 1.2rem; background: #ff4757; color: white; text-decoration: none; border-radius: 20px; font-weight: bold; transition: all 0.3s ease; font-size: 0.9rem; } .watch-button:hover { background: #ff6b81; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(255, 71, 87, 0.3); } /* Responsive design */ @media (max-width: 768px) { .selector-header { flex-direction: column; gap: 0.5rem; align-items: flex-start; } .videos-grid { grid-template-columns: 1fr; } .App-header h1 { font-size: 2rem; } .video-info { padding: 1rem; } }