
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #10b981;
    --secondary-dark: #0e9f6e;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border: #e5e7eb;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 10px 25px rgba(0, 0, 0, 0.2);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
}

button {cursor:pointer;}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 60px;
    z-index: 999;
    transition: transform 0.3s ease;
}


.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}


.logo-nav {
    margin-top: 20px;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}
.logo-nav img {
    height: 60px;
    max-width: 100%;
    object-fit: contain;
}


.nav-menu {
margin-top:20px;
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;  /* Mírně zvětšeno */
    transition: color 0.3s ease;
    cursor: pointer;
}


.nav-link:hover {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-bar {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s ease;
}

/* Search Section */
.search-section {
    background: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-button {
    padding: 12px 30px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-button:hover {
    background: var(--primary-dark);
}

/* Hero Section - upravená margin-top */
.hero {
    margin-top: 140px;  /* Zvýšeno ze 130px (60px search + 80px navbar) */
    padding: 80px 20px;
    
    background: linear-gradient(rgba(67, 67, 71, 0.4), rgba(67, 67, 71, 0.4)), url('/obrazek.jpg') center/cover no-repeat;
    position: relative;
    color: var(--white);
    text-align: center;
}


.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--primary);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Stats Section */
.stats {
    padding: 40px 20px;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-description {
    color: var(--text-light);
    line-height: 1.6;
}

/* Video Section */
.video-showcase {
    background: var(--bg-light);
}

.featured-video {
    margin-bottom: 4rem;
    text-align: center;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    text-align: left;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.video-info h3 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.video-info p {
    color: var(--text-light);
}

/* Search Results - upravená margin-top */
.search-results {
    max-width: 1200px;
    margin: 140px auto 0;  /* Zvýšeno ze 130px */
    padding: 40px 20px;
    display: none;
}

.search-results.active {
    display: block;
}

.search-results-header {
    margin-bottom: 30px;
}

.search-results-count {
    color: var(--text-light);
    margin-bottom: 10px;
}

.search-results-query {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.search-result-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.search-result-item:hover {
    box-shadow: var(--shadow-md);
}

.search-result-title {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.search-result-title a {
    color: inherit;
    text-decoration: none;
}

.search-result-title a:hover {
    text-decoration: underline;
}

.search-result-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.search-result-description {
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 10px;
}

.search-result-text {
    color: var(--text-light);
    font-style: italic;
    font-size: 0.95rem;
    padding: 10px;
    background: var(--bg-light);
    border-radius: 6px;
}

.search-result-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Search results layout improvements */
.search-result-content-wrapper {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.search-result-thumbnail {
    flex-shrink: 0;
    width: 180px;
    height: 100px;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
}

.search-result-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.search-result-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
    flex-wrap: wrap;
}

.search-result-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-result-content-wrapper {
        flex-direction: column;
    }
    
    .search-result-thumbnail {
        width: 100%;
        height: 180px;
    }
}

.highlight {
    background: yellow;
    font-weight: 600;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.video-modal-close:hover {
    color: #ccc;
}

.video-modal .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.video-modal .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Buttons - společné styly */
.play-video-button,
a.detail-button {text-decoration:none;font-size:18px;border:0;border-radius:20px;padding-left:15px;padding-right:25px;}
.detail-button {
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
}

.play-video-button {
    background: var(--primary);
    color: white;
}

.play-video-button:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.detail-button {
    background: var(--secondary);
    color: white;
}

.detail-button:hover {
    background: var(--secondary-dark);
    transform: scale(1.05);
}

/* Categories */
.categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.category-tag {
    padding: 0.5rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 25px;
    color: var(--primary);
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.category-tag:hover,
.category-tag.active {
    background: var(--primary);
    color: var(--white);
}

/* Playlist Section - Grid Layout */
.playlist-container {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 2rem;
    max-height: 1000px;
    overflow-y: auto;
}

.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.playlist-header h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.playlist-count {
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Playlist Grid */
.playlist-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    padding: 20px;
}

.playlist-item {
    display: block;
    padding: 0;
    border: none;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.playlist-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.playlist-number {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(37, 99, 235, 0.9);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.playlist-title {
    padding: 0;
    color: var(--text-dark);
}

.playlist-item-content {
    width: 100%;
    position: relative;
}

/* YouTube thumbnail with black bars cropping */
.playlist-thumbnail-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}

.playlist-thumbnail-wrapper img {
    width: 100%;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
}

.playlist-item-header {
    padding: 15px 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.playlist-item-header a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.playlist-item-header a:hover {
    color: var(--primary);
}

.playlist-date {
    color: var(--text-light);
    font-size: 0.85rem;
    margin: 0;
}

.playlist-item-buttons {
    display: flex;
    gap: 10px;
    padding: 0 20px 20px;
    margin-top: 10px;
}

.playlist-item .play-video-button,
.playlist-item .detail-button {
    flex: 1;
    padding: 10px 15px;
    font-size: 0.85rem;
}

/* Detail Sections - společné pro playlist a search */
.playlist-item-detail,
.search-item-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, margin 0.3s ease;
    margin-top: 0;
}

.playlist-item-detail {
    margin: 0 20px;
    padding-bottom: 20px;
}

.playlist-item-detail.active,
.search-item-detail.active {
    max-height: 2000px;
    margin-top: 20px;
    transition: max-height 0.5s ease-in, margin 0.3s ease;
}

.playlist-item-detail.active {
    margin-top: 0;
}

.detail-content {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
}

.detail-content h4 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.song-text {
    color: var(--text-dark);
    line-height: 1.8;
    font-family: 'Courier New', monospace;
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    white-space: pre-wrap;
    font-size: 0.95rem;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border);
}

.detail-info {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
    font-size: 0.95rem;
}

.detail-info:last-of-type {
    border-bottom: none;
}

.detail-info strong {
    color: var(--primary);
    margin-right: 10px;
}

.detail-tiktok {
    margin-top: 20px;
    text-align: center;
}

.tiktok-button {
    display: inline-block;
    background: linear-gradient(135deg, #ff0050, #00f2ea);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1rem;
}

.tiktok-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: white;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 3rem 20px 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer a {color:white;text-decoration:none;}
.footer a:hover {color:white;text-decoration:underline;}


.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-link {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-link:hover {
    background: var(--primary);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.playlist-item-detail.active .detail-content {
    animation: slideDown 0.3s ease-out;
}

.playlist-item {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.playlist-item:nth-child(1) { animation-delay: 0.05s; }
.playlist-item:nth-child(2) { animation-delay: 0.1s; }
.playlist-item:nth-child(3) { animation-delay: 0.15s; }
.playlist-item:nth-child(4) { animation-delay: 0.2s; }
.playlist-item:nth-child(5) { animation-delay: 0.25s; }
.playlist-item:nth-child(6) { animation-delay: 0.3s; }

/* Responsive */
@media (max-width: 1200px) {
    .playlist-items {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

.nav-menu {
        position: fixed;
        left: -100%;
        top: 140px;  /* Upraveno podle nové výšky */
        flex-direction: column;
        background: var(--white);
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }
    .nav-container {
        height: 100px;
        padding: 10px 20px;
    }
    
     .hero {
        margin-top: 130px;  /* Na mobilu menší margin */
        
    }

    .hero h1 {
        font-size: 2rem;
    }
    .stat-item {
    padding: 10px;
    }


    .section-title {
        font-size: 1.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .playlist-items {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }
    
    .playlist-thumbnail-wrapper {
        height: 180px;
    }

    .playlist-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .playlist-date {
        margin-left: 0;
        margin-top: 5px;
    }

    .playlist-item-buttons,
    .search-result-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .play-video-button,
    .detail-button,
    .search-result-item .play-video-button,
    .search-result-item .detail-button {
        width: 100%;
    }
    
    .song-text {
        max-height: 300px;
        font-size: 0.85rem;
    }
    
    .tiktok-button {
        width: 100%;
        display: block;
    }
}

.search-result-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.search-item-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, margin 0.3s ease;
    margin-top: 0;
}

.search-item-detail.active {
    max-height: 2000px;
    margin-top: 20px;
    transition: max-height 0.5s ease-in, margin 0.3s ease;
}

.playlist-item-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.playlist-item-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, margin 0.3s ease;
    margin-top: 0;
}

.playlist-item-detail.active {
    max-height: 2000px;
    margin-top: 20px;
    transition: max-height 0.5s ease-in, margin 0.3s ease;
}

.detail-content {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border);
}

.detail-content h4 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.song-text {
    color: var(--text-dark);
    line-height: 1.8;
    font-family: 'Courier New', monospace;
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    white-space: pre-wrap;
    font-size: 0.95rem;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border);
}

.detail-info {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
    font-size: 0.95rem;
}

.detail-info strong {
    color: var(--primary);
    margin-right: 10px;
}

.detail-tiktok {
    margin-top: 20px;
    text-align: center;
}

.tiktok-button {
    display: inline-block;
    background: linear-gradient(135deg, #ff0050, #00f2ea);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tiktok-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* TikTok wrapper specifické styly */
.tiktok-wrapper {
    width: 100%;
    max-width: 605px;
    margin: 0 auto;
    background: black;
    border-radius: 12px;
    overflow: hidden;
}

.tiktok-wrapper blockquote {
    margin: 0;
}

/* Upravit modal pro TikTok */
#tiktokModal .video-modal-content {
    max-width: 650px;
}
