1fe7392063
This commit adds comprehensive Sonarr webhook integration and implements critical security improvements identified in code review. ## Sonarr Integration - Full webhook support for Grab, Download, Rename, Delete, and Test events - HMAC SHA256 signature verification for webhook authentication - Series mapping system (Sonarr TVDB ID → Anime Provider URL) - 11 new API endpoints for configuration, mappings, search, and downloads - Comprehensive test suite (31 tests, all passing) - Complete documentation in docs/SONARR_INTEGRATION.md ## Security Enhancements - CORS restricted to specific origins (user's IP: 192.168.1.204:3000) - Path traversal prevention via sanitize_filename() and is_safe_filename() - Structured logging infrastructure (replaced all print() statements) - Environment-based configuration with .env support - Filename sanitization prevents malicious path attacks ## New Features - Lpayer and Sibnet downloader support - Kitsu API integration for anime metadata - Recommendation engine based on download history - Latest releases endpoint for new anime - Modular web interface with component-based templates ## Configuration - Centralized settings via app/config.py with pydantic-settings - Sonarr config auto-created in config/ directory - Example configurations provided for easy setup ## Tests - 31 Sonarr integration tests (23 functionality + 9 security) - 100+ tests passing in core test files - Security utilities fully tested ## Documentation - Updated CLAUDE.md with Sonarr and testing info - Added IMPROVEMENTS_2024-01-24.md analysis - Added SONARR_IMPLEMENTATION.md technical summary Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <[email protected]> Co-Authored-By: Happy <[email protected]>
1255 lines
31 KiB
CSS
1255 lines
31 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
|
|
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
|
|
min-height: 100vh;
|
|
color: #eee;
|
|
padding: 20px;
|
|
}
|
|
|
|
.container {
|
|
max-width: 900px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
h1 {
|
|
text-align: center;
|
|
margin-bottom: 10px;
|
|
font-size: 2.5em;
|
|
background: linear-gradient(45deg, #00d9ff, #00ff88);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
}
|
|
|
|
.subtitle {
|
|
text-align: center;
|
|
color: #888;
|
|
margin-bottom: 30px;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.url-form {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border-radius: 12px;
|
|
padding: 25px;
|
|
margin-bottom: 30px;
|
|
backdrop-filter: blur(10px);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.input-group {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
input[type="text"] {
|
|
flex: 1;
|
|
padding: 12px 15px;
|
|
border: 2px solid rgba(255, 255, 255, 0.1);
|
|
border-radius: 8px;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
color: #fff;
|
|
font-size: 14px;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
input[type="text"]:focus {
|
|
outline: none;
|
|
border-color: #00d9ff;
|
|
box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
|
|
}
|
|
|
|
button {
|
|
padding: 12px 25px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
button svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.btn-small svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: linear-gradient(45deg, #00d9ff, #00ff88);
|
|
color: #000;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 5px 20px rgba(0, 217, 255, 0.4);
|
|
}
|
|
|
|
.btn-small {
|
|
padding: 6px 12px;
|
|
font-size: 11px;
|
|
}
|
|
|
|
.btn-pause {
|
|
background: #ffa500;
|
|
color: #000;
|
|
}
|
|
|
|
.btn-resume {
|
|
background: #00ff88;
|
|
color: #000;
|
|
}
|
|
|
|
.btn-cancel {
|
|
background: #ff4444;
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-download {
|
|
background: #00d9ff;
|
|
color: #000;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
color: #fff;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: rgba(255, 255, 255, 0.2);
|
|
}
|
|
|
|
/* Tabs */
|
|
.tabs {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 20px;
|
|
border-bottom: 2px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.tab {
|
|
padding: 10px 20px;
|
|
background: transparent;
|
|
color: #888;
|
|
border: none;
|
|
border-bottom: 2px solid transparent;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
transition: all 0.3s;
|
|
text-transform: none;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
.tab:hover {
|
|
color: #00d9ff;
|
|
}
|
|
|
|
.tab.active {
|
|
color: #00d9ff;
|
|
border-bottom-color: #00d9ff;
|
|
}
|
|
|
|
.tab-content {
|
|
display: none;
|
|
}
|
|
|
|
.tab-content.active {
|
|
display: block;
|
|
}
|
|
|
|
select {
|
|
padding: 12px 15px;
|
|
border: 2px solid rgba(255, 255, 255, 0.1);
|
|
border-radius: 8px;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
color: #fff;
|
|
font-size: 14px;
|
|
transition: all 0.3s;
|
|
cursor: pointer;
|
|
}
|
|
|
|
select:focus {
|
|
outline: none;
|
|
border-color: #00d9ff;
|
|
}
|
|
|
|
.search-results {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
gap: 15px;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.anime-card {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
backdrop-filter: blur(10px);
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
transition: all 0.3s;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.anime-card:hover {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
border-color: rgba(0, 217, 255, 0.3);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.anime-card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.anime-card-title {
|
|
font-size: 16px;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
}
|
|
|
|
.anime-card-provider {
|
|
font-size: 12px;
|
|
padding: 4px 8px;
|
|
border-radius: 6px;
|
|
background: rgba(0, 217, 255, 0.2);
|
|
color: #00d9ff;
|
|
}
|
|
|
|
.anime-card-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.anime-card-actions select {
|
|
flex: 1;
|
|
padding: 8px;
|
|
border: 2px solid rgba(255, 255, 255, 0.1);
|
|
border-radius: 6px;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
color: #fff;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.anime-card-actions button {
|
|
flex: 1;
|
|
padding: 8px 12px;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.anime-metadata {
|
|
font-size: 12px;
|
|
color: #aaa;
|
|
margin-bottom: 10px;
|
|
padding: 8px 12px;
|
|
background: rgba(0, 0, 0, 0.2);
|
|
border-radius: 6px;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.anime-synopsis {
|
|
margin-bottom: 10px;
|
|
padding: 10px 12px;
|
|
background: rgba(0, 217, 255, 0.05);
|
|
border-left: 3px solid #00d9ff;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.anime-synopsis summary {
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: #00d9ff;
|
|
margin-bottom: 8px;
|
|
user-select: none;
|
|
}
|
|
|
|
.anime-synopsis summary:hover {
|
|
color: #00ff88;
|
|
}
|
|
|
|
.anime-synopsis p {
|
|
font-size: 12px;
|
|
color: #ccc;
|
|
line-height: 1.5;
|
|
margin: 0;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 20px;
|
|
margin-top: 40px;
|
|
}
|
|
|
|
.section-header h2 {
|
|
font-size: 1.8em;
|
|
margin: 0;
|
|
background: linear-gradient(45deg, #00d9ff, #00ff88);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
}
|
|
|
|
.downloads-stats {
|
|
display: flex;
|
|
gap: 15px;
|
|
font-size: 0.85em;
|
|
}
|
|
|
|
.stat-item {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
padding: 5px 12px;
|
|
border-radius: 15px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.stat-count {
|
|
font-weight: bold;
|
|
color: #00d9ff;
|
|
}
|
|
|
|
.downloads-controls {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
margin-bottom: 20px;
|
|
background: rgba(255, 255, 255, 0.03);
|
|
padding: 15px;
|
|
border-radius: 10px;
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.filter-group {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.filter-group label {
|
|
font-size: 0.85em;
|
|
color: #aaa;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.filter-group select,
|
|
.filter-group input {
|
|
padding: 8px 12px;
|
|
border: 1px solid rgba(255, 255, 255, 0.15);
|
|
border-radius: 6px;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
color: #fff;
|
|
font-size: 13px;
|
|
min-width: 120px;
|
|
}
|
|
|
|
.filter-group select:focus,
|
|
.filter-group input:focus {
|
|
outline: none;
|
|
border-color: #00d9ff;
|
|
}
|
|
|
|
.search-group input {
|
|
min-width: 200px;
|
|
}
|
|
|
|
.actions-group {
|
|
margin-left: auto;
|
|
}
|
|
|
|
.downloads-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
|
|
.downloads-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.downloads-group-header {
|
|
background: rgba(255, 255, 255, 0.08);
|
|
padding: 12px 18px;
|
|
border-radius: 8px;
|
|
margin-bottom: 12px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
cursor: pointer;
|
|
user-select: none;
|
|
transition: all 0.3s;
|
|
position: relative;
|
|
}
|
|
|
|
.downloads-group-header:hover {
|
|
background: rgba(255, 255, 255, 0.12);
|
|
}
|
|
|
|
.downloads-group-header::before {
|
|
content: '▼';
|
|
position: absolute;
|
|
right: 18px;
|
|
font-size: 0.8em;
|
|
transition: transform 0.3s;
|
|
}
|
|
|
|
.downloads-group-header.collapsed::before {
|
|
transform: rotate(-90deg);
|
|
}
|
|
|
|
.downloads-group-title {
|
|
font-weight: 600;
|
|
font-size: 1.05em;
|
|
color: #00d9ff;
|
|
padding-right: 30px;
|
|
}
|
|
|
|
.downloads-group-count {
|
|
background: rgba(0, 217, 255, 0.2);
|
|
padding: 4px 10px;
|
|
border-radius: 12px;
|
|
font-size: 0.85em;
|
|
color: #00d9ff;
|
|
}
|
|
|
|
.downloads-group-items {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.download-item {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border-radius: 10px;
|
|
padding: 20px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.download-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.filename {
|
|
font-weight: 600;
|
|
color: #00d9ff;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.status {
|
|
padding: 4px 12px;
|
|
border-radius: 20px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.status-pending { background: #666; }
|
|
.status-downloading { background: #00d9ff; color: #000; }
|
|
.status-paused { background: #ffa500; color: #000; }
|
|
.status-completed { background: #00ff88; color: #000; }
|
|
.status-failed { background: #ff4444; }
|
|
.status-cancelled { background: #999; }
|
|
|
|
.progress-bar {
|
|
width: 100%;
|
|
height: 8px;
|
|
background: rgba(255, 255, 255, 0.1);
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.progress-fill {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, #00d9ff, #00ff88);
|
|
transition: width 0.3s;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.download-info {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 12px;
|
|
color: #888;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.download-actions {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.url-display {
|
|
font-size: 11px;
|
|
color: #666;
|
|
word-break: break-all;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.error-message {
|
|
color: #ff4444;
|
|
font-size: 12px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 60px 20px;
|
|
color: #666;
|
|
}
|
|
|
|
.empty-state svg {
|
|
width: 80px;
|
|
height: 80px;
|
|
margin-bottom: 20px;
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.supported-hosts {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
margin-top: 15px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.host-badge {
|
|
background: rgba(255, 255, 255, 0.1);
|
|
padding: 6px 12px;
|
|
border-radius: 20px;
|
|
font-size: 11px;
|
|
color: #888;
|
|
}
|
|
|
|
.loading-spinner {
|
|
text-align: center;
|
|
padding: 40px;
|
|
color: #888;
|
|
}
|
|
|
|
.loading-spinner::after {
|
|
content: "";
|
|
display: inline-block;
|
|
width: 30px;
|
|
height: 30px;
|
|
border: 3px solid rgba(0, 217, 255, 0.3);
|
|
border-top-color: #00d9ff;
|
|
border-radius: 50%;
|
|
animation: spin 1s linear infinite;
|
|
margin-left: 10px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
@keyframes spin {
|
|
to { transform: rotate(360deg); }
|
|
}
|
|
|
|
.no-results {
|
|
text-align: center;
|
|
padding: 40px;
|
|
color: #888;
|
|
}
|
|
|
|
/* Mobile Responsive */
|
|
@media (max-width: 768px) {
|
|
body {
|
|
padding: 10px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 1.8em;
|
|
}
|
|
|
|
.container {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.url-form {
|
|
padding: 15px;
|
|
}
|
|
|
|
.input-group {
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.btn-primary {
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
|
|
.download-item {
|
|
padding: 15px;
|
|
}
|
|
|
|
.filename {
|
|
font-size: 14px;
|
|
word-break: break-word;
|
|
}
|
|
|
|
.download-header {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
}
|
|
|
|
.status {
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.download-actions {
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
|
|
.btn-small {
|
|
padding: 8px 10px;
|
|
font-size: 10px;
|
|
flex: 1 1 auto;
|
|
min-width: 80px;
|
|
justify-content: center;
|
|
}
|
|
|
|
.download-info {
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.supported-hosts {
|
|
gap: 6px;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
h1 {
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
.btn-small {
|
|
min-width: 70px;
|
|
padding: 6px 8px;
|
|
font-size: 9px;
|
|
}
|
|
|
|
.btn-small svg {
|
|
width: 12px;
|
|
height: 12px;
|
|
}
|
|
}
|
|
|
|
/* Recommendations & Releases Cards */
|
|
.anime-card-image {
|
|
width: 100%;
|
|
height: 200px;
|
|
object-fit: cover;
|
|
border-radius: 8px;
|
|
margin-bottom: 10px;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.anime-card-rating {
|
|
padding: 4px 10px;
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
font-weight: bold;
|
|
color: #000;
|
|
background: linear-gradient(45deg, #ffd700, #ffed4e);
|
|
}
|
|
|
|
.recommendation-card {
|
|
border: 2px solid rgba(0, 217, 255, 0.2);
|
|
}
|
|
|
|
.recommendation-card:hover {
|
|
border-color: rgba(0, 217, 255, 0.4);
|
|
box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
|
|
}
|
|
|
|
.release-card {
|
|
border: 2px solid rgba(255, 107, 107, 0.2);
|
|
}
|
|
|
|
.release-card:hover {
|
|
border-color: rgba(255, 107, 107, 0.4);
|
|
box-shadow: 0 0 20px rgba(255, 107, 107, 0.2);
|
|
}
|
|
|
|
.recommendation-reason {
|
|
background: rgba(0, 217, 255, 0.1);
|
|
border-left: 3px solid #00d9ff;
|
|
padding: 8px 12px;
|
|
margin-bottom: 10px;
|
|
font-size: 12px;
|
|
color: #00d9ff;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.release-badge {
|
|
background: rgba(255, 107, 107, 0.1);
|
|
border-left: 3px solid #ff6b6b;
|
|
padding: 8px 12px;
|
|
margin-bottom: 10px;
|
|
font-size: 12px;
|
|
color: #ff6b6b;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Mobile responsive for cards */
|
|
@media (max-width: 768px) {
|
|
.search-results {
|
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
gap: 10px;
|
|
}
|
|
|
|
.anime-card-image {
|
|
height: 150px;
|
|
}
|
|
|
|
.anime-card-title {
|
|
font-size: 13px !important;
|
|
}
|
|
|
|
.anime-card-actions {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.anime-card-actions button {
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
/* Horizontal Carousel Layout for Recommendations & Releases */
|
|
.recommendations-carousel,
|
|
.releases-carousel {
|
|
display: flex;
|
|
gap: 15px;
|
|
overflow-x: auto;
|
|
overflow-y: hidden;
|
|
padding: 10px 5px;
|
|
scroll-behavior: smooth;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
/* Custom scrollbar */
|
|
.recommendations-carousel::-webkit-scrollbar,
|
|
.releases-carousel::-webkit-scrollbar {
|
|
height: 8px;
|
|
}
|
|
|
|
.recommendations-carousel::-webkit-scrollbar-track,
|
|
.releases-carousel::-webkit-scrollbar-track {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.recommendations-carousel::-webkit-scrollbar-thumb,
|
|
.releases-carousel::-webkit-scrollbar-thumb {
|
|
background: rgba(0, 217, 255, 0.3);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.recommendations-carousel::-webkit-scrollbar-thumb:hover,
|
|
.releases-carousel::-webkit-scrollbar-thumb:hover {
|
|
background: rgba(0, 217, 255, 0.5);
|
|
}
|
|
|
|
.anime-card-horizontal {
|
|
flex: 0 0 auto;
|
|
width: 200px;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border-radius: 10px;
|
|
padding: 12px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
transition: all 0.3s;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.recommendation-card {
|
|
border: 2px solid rgba(0, 217, 255, 0.2);
|
|
}
|
|
|
|
.recommendation-card:hover {
|
|
border-color: rgba(0, 217, 255, 0.4);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 5px 20px rgba(0, 217, 255, 0.2);
|
|
}
|
|
|
|
.release-card {
|
|
border: 2px solid rgba(255, 107, 107, 0.2);
|
|
}
|
|
|
|
.release-card:hover {
|
|
border-color: rgba(255, 107, 107, 0.4);
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 5px 20px rgba(255, 107, 107, 0.2);
|
|
}
|
|
|
|
.anime-card-horizontal .anime-card-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
margin-bottom: 8px;
|
|
gap: 8px;
|
|
}
|
|
|
|
.anime-card-horizontal .anime-card-title {
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
flex: 1;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.anime-card-horizontal .anime-card-rating {
|
|
padding: 3px 8px;
|
|
border-radius: 10px;
|
|
font-size: 11px;
|
|
font-weight: bold;
|
|
color: #000;
|
|
background: linear-gradient(45deg, #ffd700, #ffed4e);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.anime-card-horizontal .anime-card-content {
|
|
display: flex;
|
|
gap: 12px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.anime-card-horizontal .anime-card-image {
|
|
width: 80px;
|
|
height: 110px;
|
|
object-fit: cover;
|
|
border-radius: 6px;
|
|
flex-shrink: 0;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.anime-card-horizontal .anime-card-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.anime-card-horizontal .anime-genres {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 4px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
.anime-card-horizontal .anime-genre-tag {
|
|
background: rgba(0, 217, 255, 0.15);
|
|
padding: 2px 6px;
|
|
border-radius: 4px;
|
|
font-size: 10px;
|
|
color: #00d9ff;
|
|
}
|
|
|
|
.anime-card-horizontal .anime-card-meta {
|
|
font-size: 11px;
|
|
color: #888;
|
|
}
|
|
|
|
.anime-card-horizontal .recommendation-badge,
|
|
.anime-card-horizontal .release-badge {
|
|
background: rgba(0, 217, 255, 0.1);
|
|
border-left: 3px solid #00d9ff;
|
|
padding: 6px 10px;
|
|
margin-bottom: 8px;
|
|
font-size: 11px;
|
|
color: #00d9ff;
|
|
border-radius: 4px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
.anime-card-horizontal .release-badge {
|
|
background: rgba(255, 107, 107, 0.1);
|
|
border-left-color: #ff6b6b;
|
|
color: #ff6b6b;
|
|
}
|
|
|
|
.anime-card-horizontal .anime-card-actions {
|
|
display: flex;
|
|
gap: 6px;
|
|
}
|
|
|
|
.anime-card-horizontal .anime-card-actions button {
|
|
flex: 1;
|
|
padding: 6px 10px;
|
|
font-size: 11px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.anime-card-horizontal .anime-synopsis {
|
|
margin-bottom: 8px;
|
|
max-height: 60px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.anime-card-horizontal .anime-synopsis summary {
|
|
cursor: pointer;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
color: #00d9ff;
|
|
}
|
|
|
|
.anime-card-horizontal .anime-synopsis p {
|
|
font-size: 11px;
|
|
color: #ccc;
|
|
line-height: 1.4;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Anime Details Card */
|
|
.anime-details-card {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border-radius: 16px;
|
|
padding: 30px;
|
|
margin-top: 20px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.anime-details-header {
|
|
display: flex;
|
|
gap: 25px;
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.anime-details-poster {
|
|
width: 200px;
|
|
height: 280px;
|
|
object-fit: cover;
|
|
border-radius: 12px;
|
|
flex-shrink: 0;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
|
|
background: rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.anime-details-info {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.anime-details-title {
|
|
font-size: 2em;
|
|
font-weight: 700;
|
|
color: #fff;
|
|
margin-bottom: 8px;
|
|
line-height: 1.2;
|
|
background: linear-gradient(45deg, #00d9ff, #00ff88);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
}
|
|
|
|
.anime-details-subtitle {
|
|
font-size: 1.1em;
|
|
color: #888;
|
|
margin-bottom: 15px;
|
|
font-style: italic;
|
|
}
|
|
|
|
.anime-details-meta {
|
|
display: flex;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.anime-details-rating {
|
|
padding: 6px 14px;
|
|
border-radius: 20px;
|
|
font-size: 14px;
|
|
font-weight: bold;
|
|
color: #000;
|
|
background: linear-gradient(45deg, #ffd700, #ffed4e);
|
|
}
|
|
|
|
.anime-details-rank,
|
|
.anime-details-popularity {
|
|
padding: 6px 14px;
|
|
border-radius: 20px;
|
|
font-size: 13px;
|
|
background: rgba(0, 217, 255, 0.15);
|
|
color: #00d9ff;
|
|
border: 1px solid rgba(0, 217, 255, 0.3);
|
|
}
|
|
|
|
.anime-details-stats {
|
|
display: flex;
|
|
gap: 15px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 15px;
|
|
font-size: 13px;
|
|
color: #aaa;
|
|
}
|
|
|
|
.anime-details-stats span {
|
|
padding: 4px 10px;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.anime-details-studios {
|
|
font-size: 13px;
|
|
color: #888;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.anime-details-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.anime-details-tags {
|
|
display: flex;
|
|
gap: 8px;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.anime-details-tag {
|
|
padding: 6px 12px;
|
|
border-radius: 8px;
|
|
font-size: 12px;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.anime-details-tag.genre {
|
|
background: rgba(0, 217, 255, 0.15);
|
|
color: #00d9ff;
|
|
border: 1px solid rgba(0, 217, 255, 0.3);
|
|
}
|
|
|
|
.anime-details-tag.theme {
|
|
background: rgba(255, 107, 107, 0.15);
|
|
color: #ff6b6b;
|
|
border: 1px solid rgba(255, 107, 107, 0.3);
|
|
}
|
|
|
|
.anime-details-section {
|
|
margin-bottom: 25px;
|
|
padding-bottom: 25px;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
.anime-details-section:last-child {
|
|
border-bottom: none;
|
|
margin-bottom: 0;
|
|
padding-bottom: 0;
|
|
}
|
|
|
|
.anime-details-section h3 {
|
|
font-size: 1.3em;
|
|
margin-bottom: 15px;
|
|
color: #00d9ff;
|
|
}
|
|
|
|
.anime-details-synopsis,
|
|
.anime-details-background {
|
|
font-size: 14px;
|
|
color: #ccc;
|
|
line-height: 1.6;
|
|
max-width: 900px;
|
|
}
|
|
|
|
/* Related Anime List */
|
|
.anime-related-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 15px;
|
|
}
|
|
|
|
.anime-related-group {
|
|
background: rgba(255, 255, 255, 0.03);
|
|
border-radius: 10px;
|
|
padding: 15px;
|
|
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.anime-related-type {
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
color: #00d9ff;
|
|
margin-bottom: 10px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.anime-related-items {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.anime-related-item {
|
|
padding: 8px 12px;
|
|
background: rgba(0, 0, 0, 0.2);
|
|
border-radius: 6px;
|
|
font-size: 13px;
|
|
color: #ccc;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.anime-related-item:hover {
|
|
background: rgba(0, 217, 255, 0.1);
|
|
color: #00d9ff;
|
|
transform: translateX(5px);
|
|
}
|
|
|
|
/* Streaming Results */
|
|
.streaming-results-header {
|
|
margin-top: 30px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.streaming-results-header h3 {
|
|
font-size: 1.5em;
|
|
background: linear-gradient(45deg, #ff6b6b, #ffa500);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
}
|
|
|
|
.streaming-results-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
|
|
gap: 15px;
|
|
}
|
|
|
|
.streaming-result-card {
|
|
background: rgba(255, 107, 107, 0.05);
|
|
border: 1px solid rgba(255, 107, 107, 0.2);
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
transition: all 0.3s;
|
|
}
|
|
|
|
.streaming-result-card:hover {
|
|
background: rgba(255, 107, 107, 0.1);
|
|
border-color: rgba(255, 107, 107, 0.4);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.streaming-result-header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.streaming-result-icon {
|
|
font-size: 20px;
|
|
}
|
|
|
|
.streaming-result-name {
|
|
flex: 1;
|
|
font-weight: 600;
|
|
color: #fff;
|
|
}
|
|
|
|
.streaming-result-count {
|
|
padding: 4px 10px;
|
|
background: rgba(255, 107, 107, 0.2);
|
|
border-radius: 12px;
|
|
font-size: 12px;
|
|
color: #ff6b6b;
|
|
}
|
|
|
|
.streaming-result-episodes {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.streaming-episode-select {
|
|
flex: 1;
|
|
padding: 10px 12px;
|
|
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
border-radius: 8px;
|
|
background: rgba(0, 0, 0, 0.3);
|
|
color: #fff;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.streaming-result-link {
|
|
display: block;
|
|
text-align: center;
|
|
padding: 8px 12px;
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border-radius: 8px;
|
|
font-size: 13px;
|
|
color: #ff6b6b;
|
|
text-decoration: none;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.streaming-result-link:hover {
|
|
background: rgba(255, 107, 107, 0.15);
|
|
color: #fff;
|
|
}
|
|
|
|
/* Mobile responsive for anime details */
|
|
@media (max-width: 768px) {
|
|
.anime-details-header {
|
|
flex-direction: column;
|
|
align-items: center;
|
|
text-align: center;
|
|
}
|
|
|
|
.anime-details-poster {
|
|
width: 180px;
|
|
height: 252px;
|
|
}
|
|
|
|
.anime-details-title {
|
|
font-size: 1.5em;
|
|
}
|
|
|
|
.anime-details-meta {
|
|
justify-content: center;
|
|
}
|
|
|
|
.anime-details-stats {
|
|
justify-content: center;
|
|
}
|
|
|
|
.anime-details-actions {
|
|
flex-direction: column;
|
|
width: 100%;
|
|
}
|
|
|
|
.anime-details-actions button,
|
|
.anime-details-actions a {
|
|
width: 100%;
|
|
}
|
|
|
|
.streaming-results-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|