* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
}

header {
    background: #2c3e50;
    color: white;
    padding: 1rem;
    text-align: center;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.category {
    background: white;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.category-header {
    background: #34495e;
    color: white;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.torrent-item {
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.torrent-item:last-child {
    border-bottom: none;
}

.torrent-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.torrent-info {
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.hash-section {
    margin-bottom: 1rem;
}

.hash-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.torrent-sha {
    font-family: monospace;
    background: #f8f9fa;
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    word-break: break-all;
    margin-bottom: 0.25rem;
}

.hash-cmd {
    font-family: monospace;
    background: #e9ecef;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #495057;
}

.links-section {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.download-btn {
    background: #27ae60;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #219a52;
}

.info-btn {
    background: #3498db;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    transition: background 0.3s;
}

.info-btn:hover {
    background: #2980b9;
}

.direct-btn {
    background: #e67e22;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    transition: background 0.3s;
}

.direct-btn:hover {
    background: #d35400;
}

@media (max-width: 768px) {
    main {
        padding: 0 0.5rem;
    }
    
    .torrent-item {
        padding: 0.75rem;
    }
}