@font-face {
  font-family: "ProtestStrike";
  src: url("../souborykaktus/PROTESTSTRIKEFONT.ttf");
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "ProtestStrike";
  line-height: 1.6;
  color: #1a3a1a;
  background: linear-gradient(
    135deg,
    #fbfcfd 0%,
    #f4f7f6 22%,
    #eef4f0 45%,
    #e8f5e9 65%,
    #f7faf8 100%
  );
  background-size: auto;
  animation: none;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Kaktusové pozadí */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 18% 82%, rgba(76, 175, 80, 0.07) 0%, transparent 54%),
    radial-gradient(circle at 82% 18%, rgba(102, 187, 106, 0.07) 0%, transparent 54%),
    radial-gradient(circle at 42% 40%, rgba(139, 195, 74, 0.04) 0%, transparent 52%),
    radial-gradient(circle at 50% 12%, rgba(15, 23, 42, 0.03) 0%, transparent 55%);
  pointer-events: none;
  z-index: -1;
  animation: none;
}

/* Animace */
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes kaktusFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(1deg); }
  66% { transform: translateY(10px) rotate(-1deg); }
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Modern Header */
.modern-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  backdrop-filter: blur(25px);
  border-bottom: 3px solid rgba(76, 175, 80, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(76, 175, 80, 0.2);
  transition: all 0.3s ease;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  display: flex; 
  align-items: center; 
}

.logo-icon img {
  width: 4.5rem;
  height: 3rem;
  border-radius: 0.375rem;
  object-fit: contain; 
}

.site-title {
  font-family: "ProtestStrike";
  font-size: 1.5rem;
  color: #2d3748;
  font-weight: 700;
}

.header-nav {
  display: flex;
  gap: 1rem;
}

.nav-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.nav-button.primary {
  background: rgba(47, 107, 31, 0.08);
  color: #14532d;
  border-color: rgba(47, 107, 31, 0.22);
  box-shadow: none;
}

.nav-button.primary:hover {
  background: rgba(47, 107, 31, 0.12);
  transform: translateY(-1px);
  box-shadow: none;
}

.nav-button:focus-visible {
  outline: 3px solid rgba(47, 107, 31, 0.35);
  outline-offset: 3px;
}

.nav-icon {
  font-size: 1.1rem;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 2rem 0;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-title {
  font-family: "ProtestStrike";
  font-size: 3rem;
  color: #0f172a;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-shadow: none;
}

.title-icon {
  font-size: 3rem;
  filter: none;
}

.page-subtitle {
  font-size: 1.2rem;
  color: rgba(15, 23, 42, 0.70);
  font-weight: 300;
  text-shadow: none;
}

/* Gallery Controls - OPRAVA ZDE */
.gallery-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 12px 40px rgba(76, 175, 80, 0.15);
  border: 2px solid rgba(76, 175, 80, 0.2);
  position: relative;
  overflow: visible;
  z-index: 50;
}

/* Výběr alba vždy nad filtrem hráče */
.filter-section-album {
  order: 1;
}

.filter-section:not(.filter-section-album) {
  order: 2;
}

.filter-section {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 51; /* Mírně vyšší než controls */
}

.filter-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #2d3748;
  font-size: 1.1rem;
}

.filter-result-count {
  font-size: 0.95rem;
  font-weight: 500;
  color: #4caf50;
  margin-left: 0.25rem;
}

.label-icon {
  font-size: 1.2rem;
}

.custom-select-wrapper {
  position: relative;
  min-width: 250px;
  z-index: 10001;
}

.custom-select-button {
  width: 100%;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: "ProtestStrike";
  color: #2d3748;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.custom-select-button:hover {
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.custom-select-button:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.selected-album-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex: 1;
  width: 100%;
}

.selected-album-display .album-name {
  color: #2d3748;
}

.selected-album-display .album-date {
  color: #ff9800;
}

.dropdown-arrow {
  font-size: 0.8rem;
  color: #718096;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.custom-select-wrapper.active .dropdown-arrow {
  transform: rotate(180deg);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  overflow-y: auto; /* Povolit scrollování pokud je alb hodně */
  overflow-x: visible;
  z-index: 10002;
  display: none;
  padding: 0.5rem;
  min-width: 100%;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.custom-select-dropdown.active {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.custom-select-option {
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  min-height: 48px;
  width: 100%;
  box-sizing: border-box;
  font-family: "ProtestStrike";
}

.custom-select-option .album-name {
  color: #2d3748;
}

.custom-select-option .album-date {
  color: #ff9800;
}

.custom-select-option:hover {
  background: #f7fafc;
}

.custom-select-option.selected {
  background: #edf2f7;
  font-weight: 600;
}

.custom-select-option .album-badge-container {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.modern-select:hover {
  border-color: #cbd5e0;
}

.select-wrapper::after {
  content: "▼";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #718096;
  font-size: 0.8rem;
}

/* Gallery */
.gallery-wrapper {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.9));
  backdrop-filter: blur(20px);
  border-radius: 25px;
  padding: 2rem;
  box-shadow: 0 12px 40px rgba(76, 175, 80, 0.15);
  border: 2px solid rgba(76, 175, 80, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 1; /* Nižší index než ovládací prvky */
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); 
  gap: 1.5rem;
}

.gallery-item {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  width: 100%;
  animation: fadeIn 0.6s ease forwards;
}

.gallery-item:nth-child(even) {
  animation-delay: 0.1s;
}

.gallery-item:nth-child(3n) {
  animation-delay: 0.2s;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.12);
}

.media-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.media-container img,
.media-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover .media-container img,
.gallery-item:hover .media-container video {
  transform: scale(1.02);
}

.media-overlay {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(76, 175, 80, 0.1);
  color: #2d7a2d;
  border: 1px solid rgba(76, 175, 80, 0.3);
  padding: 0.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .media-overlay {
  opacity: 1;
}

.media-type {
  color: white;
  font-size: 1.2rem;
}

.item-info {
  padding: 1rem;
}

.album-name-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  width: 100%;
}

.album-name {
  display: inline-block;
  color: #2d3748;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: "ProtestStrike";
  text-transform: capitalize;
}

.album-date {
  display: inline-block;
  color: #ff9800;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.9;
}

/* Styly pro dropdown a tlačítko */
.custom-select-option .album-name-container {
  width: 100%;
}

.selected-album-display .album-name-container {
  width: 100%;
}

.item-stats {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.likes-badge {
  background: rgba(76, 175, 80, 0.1);
  color: #2d7a2d;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.likes-badge:hover {
  background: rgba(76, 175, 80, 0.2);
  transform: translateY(-1px);
}

.dislikes-badge {
  background: rgba(244, 67, 54, 0.1);
  color: #c62828;
  border: 1px solid rgba(244, 67, 54, 0.3);
}

.dislikes-badge:hover {
  background: rgba(244, 67, 54, 0.2);
  transform: translateY(-1px);
}

.tagy-badge {
  background: rgba(66, 153, 225, 0.15);
  color: #2c5282;
  border: 1px solid rgba(66, 153, 225, 0.3);
}

.downloads-badge {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.3);
  cursor: default;
}

.stat-count {
  font-weight: 700;
}

.modal-likes {
  position: absolute;
  top: 2rem;
  left: 2rem;
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.like-btn,
.dislike-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: "ProtestStrike";
}

.like-btn {
  background: rgba(76, 175, 80, 0.2);
  color: #2d7a2d;
  border: 2px solid rgba(76, 175, 80, 0.4);
}

.like-btn:hover {
  background: rgba(76, 175, 80, 0.3);
  transform: translateY(-1px);
  box-shadow: none;
}

.dislike-btn {
  background: rgba(244, 67, 54, 0.2);
  color: #c62828;
  border: 2px solid rgba(244, 67, 54, 0.4);
}

.dislike-btn:hover {
  background: rgba(244, 67, 54, 0.3);
  transform: translateY(-1px);
  box-shadow: none;
}

.like-icon,
.dislike-icon {
  font-size: 1.2rem;
}

.like-count,
.dislike-count {
  font-weight: 700;
  min-width: 1.5rem;
  text-align: center;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #718096;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.empty-state p {
  font-size: 1.1rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
}

.modal-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.modal-image,
.modal-video {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
}

.modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  color: #0f172a;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(-1px);
}

.modal-navigation {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
  pointer-events: none;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  color: #0f172a;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: all;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(-1px);
}

.modal-counter {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 20px;
  font-weight: 500;
}

.modal-album-info {
  position: absolute;
  top: 5.5rem;
  right: 2rem;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 20px;
  font-weight: 500;
  z-index: 10;
  font-family: "ProtestStrike";
  max-width: calc(100% - 4rem);
  word-wrap: break-word;
}

.modal-album-info .album-name-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.modal-album-info .album-name {
  color: white;
  font-size: 1rem;
  font-weight: 600;
}

.modal-album-info .album-date {
  color: #ff9800;
  font-size: 0.95rem;
  font-weight: 600;
}

.modal-actions {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: rgba(45, 103, 55, 0.92);
  border: none;
  border-radius: 999px;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: none;
  font-family: "ProtestStrike";
}

.action-btn:hover {
  transform: translateY(-1px);
  box-shadow: none;
  background: rgba(45, 103, 55, 0.98);
}

.action-icon {
  font-size: 1.2rem;
}

.action-text {
  font-size: 0.95rem;
}

/* Tagy hráčů na fotkách v lightboxu */
.modal-image-wrapper {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

/* Obdélníky na hráčích – skryté výchozí, zvýrazní se až po najetí myší */
.galerie-tag-overlay {
  position: absolute;
  cursor: pointer;
  background: transparent;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 2px;
}

.galerie-tag-overlay:hover {
  background: rgba(76, 175, 80, 0.45);
  border-color: rgba(255, 255, 255, 0.95);
}

.galerie-tag-overlay:hover .galerie-tag-label {
  display: block;
}

.galerie-tag-label {
  display: none;
  font-size: 0.7em;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.modal-image-wrapper.tagy-labels-visible .galerie-tag-label {
  display: block;
}

.modal-image-wrapper.tagy-labels-visible .galerie-tag-overlay {
  background: rgba(76, 175, 80, 0.45);
  border-color: rgba(255, 255, 255, 0.95);
}

.action-btn.tagy-toggle-btn.active {
  background: rgba(76, 175, 80, 0.3);
  border-color: rgba(76, 175, 80, 0.6);
}

.modal-video-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
}

.modal-video-wrapper .modal-video {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
}

.modal-video-tagy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.5rem 0;
  max-width: 100%;
  justify-content: center;
}

.modal-video-tagy-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.modal-video-tag-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.modal-video-tag-badge:hover {
  background: rgba(76, 175, 80, 0.4);
  border-color: rgba(76, 175, 80, 0.6);
  color: #fff;
}

.modal-share {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 10;
}

.share-toggle-btn {
  display: none; /* Skryté na desktopu */
}

.share-menu {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 200px;
  position: relative;
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: none;
}

.share-label {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.25rem;
}

.share-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  width: 100%;
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateX(5px);
}

.share-btn.copied {
  background: rgba(76, 175, 80, 0.3);
  border-color: rgba(76, 175, 80, 0.5);
}

.share-icon {
  font-size: 1.3rem;
  width: 24px;
  text-align: center;
}

.share-text {
  flex: 1;
}

.share-facebook:hover {
  background: rgba(24, 119, 242, 0.3);
  border-color: rgba(24, 119, 242, 0.5);
}

.share-instagram:hover {
  background: rgba(225, 48, 108, 0.3);
  border-color: rgba(225, 48, 108, 0.5);
}

.share-threads:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
}

.share-x:hover {
  background: rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.5);
}

.share-copy:hover {
  background: rgba(76, 175, 80, 0.3);
  border-color: rgba(76, 175, 80, 0.5);
}

/* Instagram instruction modal */
.instagram-instruction-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.instagram-instruction-modal.active {
  display: flex;
  opacity: 1;
}

.instruction-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.instruction-content {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  margin: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  text-align: center;
  z-index: 1;
}

.instruction-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #718096;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.instruction-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: #2d3748;
}

.instruction-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.instruction-content h3 {
  font-size: 1.5rem;
  color: #2d3748;
  margin-bottom: 1rem;
}

.instruction-content p {
  font-size: 1.1rem;
  color: #4a5568;
  margin-bottom: 1rem;
}

.instruction-steps {
  text-align: left;
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  color: #4a5568;
}

.instruction-steps li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.instruction-ok-btn {
  background: linear-gradient(135deg, #4caf50, #45a049);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.instruction-ok-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  .logo-icon img {
    width: 3.75rem; 
    height: 2.5rem;
  }
  .site-title {
    font-size: 1.25rem;
  }

  .page-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .title-icon {
    font-size: 2rem;
  }

  .content-container {
    padding: 0 1rem;
  }

  .gallery-controls,
  .gallery-wrapper {
    padding: 1.5rem;
  }

  .filter-section {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .modern-select {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }

  .modal-container {
    padding: 1rem;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .modal-album-info {
    top: 4.5rem;
    right: 1rem;
    left: 1rem;
    max-width: calc(100% - 2rem);
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .modal-album-info .album-name {
    font-size: 0.9rem;
  }

  .modal-album-info .album-date {
    font-size: 0.85rem;
  }

  .nav-btn {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .modal-navigation {
    padding: 0 1rem;
  }

  .modal-video-tagy {
    padding: 0.5rem 0.25rem;
    justify-content: flex-start;
  }
  .modal-video-tagy-label {
    width: 100%;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .modal-album-info {
    top: 4rem;
    right: 0.5rem;
    left: 0.5rem;
    max-width: calc(100% - 1rem);
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  .modal-album-info .album-name {
    font-size: 0.85rem;
  }

  .modal-album-info .album-date {
    font-size: 0.8rem;
  }

  .logo-icon img {
    width: 3rem;
    height: 2rem;
  }
  .page-title {
    font-size: 1.5rem;
  }

  .page-subtitle {
    font-size: 1rem;
  }
  
  .modal-counter {
    bottom: 1rem;
    left: 1rem;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .modal-actions {
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem;
  }

  .action-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .action-icon {
    font-size: 1.1rem;
  }

  .action-text {
    font-size: 0.85rem;
  }
  
  .modal-likes {
    top: 1rem;
    left: 1rem;
    gap: 0.5rem;
  }

  .like-btn,
  .dislike-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
  }

  .modal-share {
    bottom: 1rem;
    right: 1rem;
  }

  .share-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 11;
    position: relative;
  }

  .share-toggle-btn:hover,
  .share-toggle-btn.active {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
  }

  .share-toggle-svg {
    width: 18px;
    height: 18px;
    display: block;
    color: inherit;
  }

  .share-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    min-width: 200px;
    max-width: 90vw;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .share-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .share-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .share-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .share-icon {
    font-size: 1.2rem;
  }
  
  .share-label {
    font-size: 0.8rem;
  }
}

/* Loading animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}