Files
Lycostorrent/app/static/css/discover.css
2026-03-23 20:59:26 +01:00

699 lines
12 KiB
CSS

/* ============================================================
LYCOSTORRENT - Page Découvrir
============================================================ */
/* Onglets de catégories */
.discover-tabs {
display: flex;
gap: 10px;
margin-bottom: 30px;
flex-wrap: wrap;
justify-content: center;
}
.discover-tab {
padding: 12px 20px;
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: var(--radius);
color: var(--text-secondary);
font-size: 0.95rem;
font-weight: 500;
cursor: pointer;
transition: all 0.3s ease;
}
.discover-tab:hover {
background: var(--bg-card);
color: var(--text-primary);
border-color: var(--accent-primary);
}
.discover-tab.active {
background: var(--accent-primary);
color: white;
border-color: var(--accent-primary);
}
/* Grille de résultats */
.discover-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 25px;
margin-bottom: 30px;
}
/* Carte de film/série */
.discover-card {
background: var(--bg-secondary);
border-radius: var(--radius);
overflow: hidden;
cursor: pointer;
transition: all 0.3s ease;
border: 1px solid var(--border-color);
}
.discover-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
border-color: var(--accent-primary);
}
.discover-card .poster-container {
position: relative;
aspect-ratio: 2/3;
overflow: hidden;
}
.discover-card .poster {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease;
}
.discover-card:hover .poster {
transform: scale(1.05);
}
.discover-card .poster-placeholder {
width: 100%;
height: 100%;
background: var(--bg-card);
display: flex;
align-items: center;
justify-content: center;
font-size: 3rem;
color: var(--text-secondary);
}
.discover-card .rating-badge {
position: absolute;
top: 10px;
right: 10px;
background: rgba(0, 0, 0, 0.8);
color: #ffd700;
padding: 5px 10px;
border-radius: 20px;
font-size: 0.85rem;
font-weight: 600;
}
.discover-card .card-info {
padding: 15px;
}
.discover-card .card-title {
font-size: 0.95rem;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 5px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.discover-card .card-meta {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.85rem;
color: var(--text-secondary);
}
.discover-card .card-year {
opacity: 0.8;
}
.discover-card .card-type {
background: var(--accent-secondary);
padding: 2px 8px;
border-radius: 10px;
font-size: 0.75rem;
}
/* Badge nombre de torrents sur les cartes */
.torrent-badge {
position: absolute;
bottom: 8px;
left: 8px;
background: rgba(0, 0, 0, 0.8);
color: #4ade80;
padding: 3px 8px;
border-radius: 12px;
font-size: 0.75rem;
font-weight: 600;
}
/* Loader */
.discover-loader {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 60px;
color: var(--text-secondary);
gap: 15px;
}
.spinner {
width: 40px;
height: 40px;
border: 3px solid var(--border-color);
border-top-color: var(--accent-primary);
border-radius: 50%;
animation: spin 1s linear infinite;
}
.spinner-small {
width: 20px;
height: 20px;
border: 2px solid var(--border-color);
border-top-color: var(--accent-primary);
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
/* État vide */
.discover-empty {
text-align: center;
padding: 60px 20px;
color: var(--text-secondary);
}
.discover-empty .empty-icon {
font-size: 4rem;
display: block;
margin-bottom: 15px;
opacity: 0.5;
}
/* Modal détails */
.modal-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.9);
display: flex;
align-items: center;
justify-content: center;
z-index: 10000;
padding: 20px;
overflow-y: auto;
}
.detail-modal {
background: var(--bg-secondary);
border-radius: var(--radius);
max-width: 900px;
width: 100%;
max-height: 90vh;
overflow-y: auto;
position: relative;
}
.modal-close {
position: absolute;
top: 15px;
right: 15px;
background: var(--bg-card);
border: none;
color: var(--text-primary);
width: 35px;
height: 35px;
border-radius: 50%;
font-size: 1.2rem;
cursor: pointer;
z-index: 10;
transition: all 0.2s;
}
.modal-close:hover {
background: var(--danger);
color: white;
}
.detail-header {
display: flex;
gap: 25px;
padding: 25px;
}
.detail-poster {
width: 200px;
border-radius: var(--radius);
flex-shrink: 0;
}
.detail-info {
flex: 1;
}
.detail-info h2 {
font-size: 1.8rem;
margin-bottom: 10px;
color: var(--text-primary);
}
.detail-meta {
display: flex;
gap: 15px;
margin-bottom: 15px;
color: var(--text-secondary);
}
.detail-rating {
color: #ffd700;
font-weight: 600;
}
.detail-overview {
color: var(--text-secondary);
line-height: 1.7;
margin-bottom: 15px;
}
.detail-genres {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.detail-genres span {
background: var(--accent-secondary);
color: var(--text-primary);
padding: 5px 12px;
border-radius: 15px;
font-size: 0.85rem;
}
/* Section torrents */
.detail-torrents {
padding: 25px;
border-top: 1px solid var(--border-color);
}
.detail-torrents h3 {
margin-bottom: 15px;
color: var(--text-primary);
}
.torrents-loading {
display: flex;
align-items: center;
gap: 10px;
color: var(--text-secondary);
padding: 20px;
}
.torrents-list {
display: flex;
flex-direction: column;
gap: 10px;
}
.torrent-item {
display: flex;
align-items: center;
gap: 15px;
padding: 12px 15px;
background: var(--bg-primary);
border-radius: var(--radius);
transition: all 0.2s;
}
.torrent-item:hover {
background: var(--bg-card);
}
.torrent-info {
flex: 1;
min-width: 0;
}
.torrent-name {
font-weight: 500;
color: var(--text-primary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
margin-bottom: 5px;
}
.torrent-meta {
display: flex;
gap: 15px;
font-size: 0.85rem;
color: var(--text-secondary);
}
.torrent-meta .seeds {
color: var(--success);
}
.torrent-meta .quality {
color: var(--accent-primary);
}
.torrent-actions {
display: flex;
gap: 8px;
}
.torrent-actions button {
padding: 8px 12px;
border: none;
border-radius: var(--radius);
cursor: pointer;
font-size: 1rem;
transition: all 0.2s;
}
.torrent-actions .btn-download {
background: var(--accent-primary);
color: white;
}
.torrent-actions .btn-download:hover {
background: #d63850;
}
.torrent-actions .btn-magnet {
background: var(--bg-secondary);
color: var(--text-primary);
}
.torrent-actions .btn-send {
background: var(--success);
color: white;
}
.torrents-empty {
text-align: center;
padding: 30px;
color: var(--text-secondary);
}
/* Footer crédit TMDb */
.tmdb-credit {
margin-left: 15px;
font-size: 0.85rem;
}
.tmdb-credit a {
color: var(--accent-primary);
text-decoration: none;
}
.tmdb-credit a:hover {
text-decoration: underline;
}
/* Responsive */
@media (max-width: 768px) {
/* Navigation mobile */
.main-nav {
display: flex;
flex-wrap: wrap;
gap: 8px;
justify-content: center;
}
.main-nav a {
padding: 8px 15px;
font-size: 0.85rem;
flex: 1 1 auto;
text-align: center;
min-width: 80px;
max-width: 150px;
}
.main-nav a.nav-logout {
flex: 0 0 auto;
min-width: 50px;
max-width: 50px;
padding: 8px 12px;
}
.discover-tabs {
gap: 8px;
}
.discover-tab {
padding: 10px 15px;
font-size: 0.85rem;
}
.discover-grid {
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
gap: 15px;
}
.modal-overlay {
padding: 10px;
}
.detail-modal {
max-height: 95vh;
}
.detail-header {
flex-direction: column;
align-items: center;
text-align: center;
padding: 15px;
gap: 15px;
}
.detail-poster {
width: 120px;
}
.detail-info h2 {
font-size: 1.3rem;
}
.detail-meta {
justify-content: center;
flex-wrap: wrap;
gap: 10px;
}
.detail-overview {
font-size: 0.9rem;
line-height: 1.5;
}
.detail-genres {
justify-content: center;
}
.detail-genres span {
padding: 4px 10px;
font-size: 0.8rem;
}
/* Bande-annonce mobile */
.detail-trailer {
padding: 0 15px 15px;
}
.detail-trailer h3 {
font-size: 1rem;
}
/* Torrents mobile */
.detail-torrents {
padding: 15px;
}
.detail-torrents h3 {
font-size: 1rem;
margin-bottom: 10px;
}
.torrents-list {
gap: 8px;
}
.torrent-item {
flex-direction: column;
align-items: stretch;
padding: 12px;
gap: 10px;
}
.torrent-info {
width: 100%;
}
.torrent-name {
font-size: 0.85rem;
white-space: normal;
word-break: break-word;
line-height: 1.4;
}
.torrent-meta {
flex-wrap: wrap;
gap: 8px;
font-size: 0.8rem;
}
.torrent-meta span {
background: var(--bg-secondary);
padding: 3px 8px;
border-radius: 4px;
}
.torrent-actions {
width: 100%;
justify-content: space-between;
gap: 6px;
padding-top: 10px;
border-top: 1px solid var(--border-color);
}
.torrent-actions a,
.torrent-actions button {
flex: 1;
padding: 10px 8px;
text-align: center;
font-size: 1rem;
min-width: 0;
}
}
/* Très petit écran */
@media (max-width: 480px) {
/* Navigation */
.main-nav {
gap: 6px;
}
.main-nav a {
padding: 8px 10px;
font-size: 0.8rem;
min-width: 70px;
}
.main-nav a.nav-logout {
min-width: 40px;
max-width: 40px;
padding: 8px;
}
.discover-tabs {
gap: 6px;
}
.discover-tab {
padding: 8px 12px;
font-size: 0.8rem;
flex: 1 1 auto;
text-align: center;
min-width: 0;
}
.discover-grid {
grid-template-columns: repeat(2, 1fr);
gap: 10px;
}
.discover-card .card-info {
padding: 10px;
}
.discover-card .card-title {
font-size: 0.85rem;
}
.discover-card .card-meta {
font-size: 0.75rem;
}
.detail-poster {
width: 100px;
}
.detail-info h2 {
font-size: 1.1rem;
}
.torrent-actions {
flex-wrap: wrap;
}
.torrent-actions a,
.torrent-actions button {
flex: 1 1 45%;
padding: 10px 6px;
font-size: 0.95rem;
}
}
/* Hidden class */
.hidden {
display: none !important;
}
/* Bande-annonce YouTube */
.detail-trailer {
padding: 0 25px 25px;
}
.detail-trailer h3 {
margin-bottom: 15px;
color: var(--text-primary);
}
.trailer-container {
position: relative;
width: 100%;
padding-bottom: 56.25%; /* Ratio 16:9 */
height: 0;
overflow: hidden;
border-radius: var(--radius);
background: var(--bg-primary);
}
.trailer-container iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: var(--radius);
}
/* Lien vers le tracker */
.torrent-item .torrent-link {
color: var(--accent-primary);
text-decoration: none;
font-size: 0.85rem;
margin-left: 10px;
}
.torrent-item .torrent-link:hover {
text-decoration: underline;
}
.torrent-actions .btn-link {
background: var(--bg-secondary);
color: var(--text-primary);
text-decoration: none;
display: inline-flex;
align-items: center;
justify-content: center;
}
.torrent-actions .btn-link:hover {
background: var(--accent-secondary);
}