/* Modernized Apple-inspired design system */
:root {
   --apple-white: #ffffff;
   --apple-light-gray: #f7f7f9;
   --apple-medium-gray: #d1d1d6;
   --apple-dark-gray: #86868b;
   --apple-text: #1a1a1e;
   --apple-blue: #007aff;
   --apple-accent: #ff2d55;
   --gradient-overlay: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.6) 100%);
 }
 
 /* Video container */
 .video-container {
   position: relative;
   padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
   height: 0;
   overflow: hidden;
   background: #000;
   border-radius: 12px;
   transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
 }
 
 .video-container iframe {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   border: 0;
 }
 
 .card-image-container {
   height: 220px;
   overflow: hidden;
   position: relative;
   background: #000;
   border-radius: 12px;
 }
 
 .card-image {
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: center;
   transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
 }
 
 .card-image-container:hover .card-image {
   opacity: 0.9;
   transform: scale(1.08);
 }
 
 .card-image-container::after {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: var(--gradient-overlay);
   opacity: 0.7;
   transition: opacity 0.3s ease;
 }
 
 .card-image-container:hover::after {
   opacity: 0.9;
 }
 
 .card-placeholder {
   width: 100%;
   height: 100%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 2.5rem;
   color: #ccc;
   background-color: var(--apple-light-gray);
 }
 
 .play-button {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   width: 72px;
   height: 72px;
   background: rgba(255, 255, 255, 0.95);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   opacity: 0;
   transition: opacity 0.3s ease, transform 0.3s ease;
   z-index: 2;
   animation: pulse 2s infinite;
 }
 
 .card-image-container:hover .play-button {
   opacity: 1;
   transform: translate(-50%, -50%) scale(1.1);
 }
 
 @keyframes pulse {
   0% { box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.4); }
   70% { box-shadow: 0 0 0 20px rgba(255, 45, 85, 0); }
   100% { box-shadow: 0 0 0 0 rgba(255, 45, 85, 0); }
 }
 
 .play-button i {
   color: var(--apple-accent);
   font-size: 28px;
   margin-left: 4px;
 }
 
 .video-duration {
   position: absolute;
   bottom: 12px;
   right: 12px;
   background: rgba(0, 0, 0, 0.8);
   color: white;
   padding: 4px 8px;
   border-radius: 6px;
   font-size: 13px;
   z-index: 1;
   font-weight: 500;
 }
 
 .card {
   border: none;
   border-radius: 12px;
   overflow: hidden;
   box-shadow: 0 4px 20px rgba(0,0,0,0.08);
   transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
   height: 100%;
   display: flex;
   flex-direction: column;
   background: var(--apple-white);
 }
 
 .card:hover {
   transform: translateY(-8px);
   box-shadow: 0 8px 24px rgba(0,0,0,0.15);
 }
 
 .card-content {
   padding: 20px;
   flex: 1;
   display: flex;
   flex-direction: column;
 }
 
 .card-title {
   font-size: 1.2rem;
   font-weight: 600;
   margin-bottom: 10px;
   line-height: 1.4;
   color: var(--apple-text);
 }
 
 .card-description {
   color: var(--apple-dark-gray);
   font-size: 0.95rem;
   line-height: 1.5;
   margin-bottom: 16px;
   flex-grow: 1;
 }
 
 .view-button {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   background: var(--apple-blue);
   color: var(--apple-white);
   font-weight: 500;
   padding: 10px 20px;
   border-radius: 8px;
   text-decoration: none;
   transition: background 0.3s ease, transform 0.3s ease;
 }
 
 .view-button:hover {
   background: #005bb5;
   transform: translateY(-2px);
 }
 
 .view-button i {
   margin-right: 8px;
   font-size: 1.2em;
 }
 
 .empty-state {
   text-align: center;
   padding: 60px 20px;
   color: var(--apple-dark-gray);
   background: var(--apple-light-gray);
   border-radius: 12px;
   margin: 20px 0;
 }
 
 .empty-state .empty-icon {
   font-size: 3.5rem;
   margin-bottom: 24px;
   color: var(--apple-medium-gray);
 }
 
 .empty-state h2 {
   color: var(--apple-text);
   font-size: 1.8rem;
   margin-bottom: 12px;
 }
 
 .empty-state p {
   margin-bottom: 24px;
   font-size: 1.1rem;
 }
 
 body {
   font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
   background: linear-gradient(180deg, var(--apple-white) 0%, var(--apple-light-gray) 100%);
   color: var(--apple-text);
   margin: 0;
   padding: 0;
   -webkit-font-smoothing: antialiased;
 }
 
 .container {
   max-width: 1280px;
   margin: 0 auto;
   padding: 48px 24px;
 }
 
 .header {
   text-align: center;
   margin-bottom: 72px;
 }
 
 .back-link {
   display: inline-flex;
   align-items: center;
   color: var(--apple-blue);
   text-decoration: none;
   font-size: 15px;
   margin-bottom: 20px;
   transition: color 0.2s ease;
 }
 
 .back-link:hover {
   color: #005bb5;
 }
 
 .back-link i {
   margin-right: 8px;
   font-size: 13px;
 }
 
 h1 {
   font-size: 44px;
   font-weight: 700;
   letter-spacing: -0.02em;
   margin: 0;
   background: linear-gradient(45deg, var(--apple-text), var(--apple-blue));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
 }
 
 .company-subtitle {
   color: var(--apple-dark-gray);
   font-size: 18px;
   margin-top: 10px;
 }
 
 .grid-view {
   display: grid;
   grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
   gap: 32px;
   margin-top: 48px;
 }
 
 .listing-card {
   background: var(--apple-white);
   border-radius: 12px;
   overflow: hidden;
   box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
   transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
   display: flex;
   flex-direction: column;
   height: 100%;
 }
 
 .listing-card:hover {
   transform: translateY(-8px);
   box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
 }
 
 .filter-bar {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding-bottom: 28px;
   border-bottom: 1px solid var(--apple-light-gray);
   margin-bottom: 40px;
 }
 
 .search-container {
   flex: 1;
   max-width: 440px;
   position: relative;
 }
 
 .search-input {
   width: 100%;
   padding: 14px 22px;
   padding-left: 48px;
   border-radius: 10px;
   border: 1px solid var(--apple-medium-gray);
   font-size: 16px;
   background-color: var(--apple-white);
   transition: all 0.3s ease;
   box-shadow: 0 2px 8px rgba(0,0,0,0.05);
 }
 
 .search-input:focus {
   outline: none;
   border-color: var(--apple-blue);
   box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15);
 }
 
 .search-icon {
   position: absolute;
   left: 18px;
   top: 50%;
   transform: translateY(-50%);
   color: var(--apple-dark-gray);
   font-size: 18px;
 }
 
 .view-options {
   display: flex;
   gap: 16px;
 }
 
 .view-option {
   background: transparent;
   border: none;
   color: var(--apple-dark-gray);
   font-size: 16px;
   cursor: pointer;
   padding: 10px;
   transition: color 0.2s ease;
 }
 
 .view-option.active {
   color: var(--apple-blue);
   font-weight: 500;
 }
 
 .video-container {
   position: relative;
   padding-bottom: 56.25%; /* 16:9 aspect ratio */
   height: 0;
   overflow: hidden;
   background-color: var(--apple-light-gray);
}

.video-container iframe {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
}
 
 @media (max-width: 768px) {
   .grid-view {
     grid-template-columns: 1fr;
   }
 
   .filter-bar {
     flex-direction: column;
     align-items: stretch;
     gap: 20px;
   }
 
   .search-container {
     max-width: none;
   }
 
   .container {
     padding: 32px 16px;
   }
 
   h1 {
     font-size: 32px;
   }
 
   .card-image-container {
     height: 180px;
   }
 }